diff --git a/entropy/RAR/.gitignore b/entropy/RAR/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/entropy/RAR/.gitignore @@ -0,0 +1 @@ +.env diff --git a/entropy/RAR/app/.eslintrc.json b/entropy/RAR/app/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/entropy/RAR/app/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/entropy/RAR/app/.gitignore b/entropy/RAR/app/.gitignore new file mode 100644 index 0000000..7d33103 --- /dev/null +++ b/entropy/RAR/app/.gitignore @@ -0,0 +1,40 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local +.env + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + + + diff --git a/entropy/RAR/app/.prettierrc b/entropy/RAR/app/.prettierrc new file mode 100644 index 0000000..23e0981 --- /dev/null +++ b/entropy/RAR/app/.prettierrc @@ -0,0 +1,8 @@ +{ + "endOfLine": "lf", + "semi": false, + "singleQuote": false, + "tabWidth": 2, + "trailingComma": "es5", + "plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"] +} diff --git a/entropy/RAR/app/README.md b/entropy/RAR/app/README.md new file mode 100644 index 0000000..0547a7a --- /dev/null +++ b/entropy/RAR/app/README.md @@ -0,0 +1,41 @@ +# Pyth Entropy Example + +This Next.js project demonstrates a basic use case of Pyth Entropy by integrating it into a web application to simulate the growth process of NFTs. The application features frontend components and hooks to interact with smart contracts, handle state changes, and respond to events. + +## Features + +- **Minting NFTs**: Users can mint new NFTs. +- **Growing NFTs**: Users can request to grow their NFTs based on randomness provided by the Pyth network. +- **Event Watching**: The application listens to contract events to update UI accordingly. + +## Development Setup + +### Prerequisites + +- Node.js installed on your machine. +- Bun installed for fast package management. +- Farmiliarity with Next.js, Wagmi.sh, Tailwind, Shad.cn and React Query + +### Installation + +Clone the repository and install the dependencies: + +```bash +bun i +``` + +### Running the Development Server + +To start the development server, run: + +```bash +bun dev +``` + +This will start the server on `http://localhost:3000`, and you can view your application in the browser. + +## Acknowledgments + +This example of using Pyth Entropy was created by [lualabs.xyz](https://lualabs.xyz). + +We hope this starter example inspires you to continue innovating and building creative solutions with NFTs. diff --git a/entropy/RAR/app/app/(home)/page.tsx b/entropy/RAR/app/app/(home)/page.tsx new file mode 100644 index 0000000..c9f9b68 --- /dev/null +++ b/entropy/RAR/app/app/(home)/page.tsx @@ -0,0 +1,275 @@ +'use client' + +import { Card } from "@/components/ui/card" +import { Wallet } from "@/components/wagmi/components/wallet" +import { Play, Plus, MoreHorizontal } from "lucide-react" +import { UploadSong } from "@/components/media/upload-song" +import { RecentlyUploaded } from "@/components/media/recently-uploaded" +import { useState, useEffect, useCallback } from 'react' +import { randomSeedService } from '@/services/randomSeedService' +import { usePlaylistBattle } from '@/hooks/usePlaylistBattle' +import { useAccount } from 'wagmi' +import Link from "next/link" +import { playlistGenerationService } from '@/services/playlistGenerationService' +import { useAudioPlayer } from '@/contexts/AudioPlayerContext' + +export default function Home() { + const { startBattle, isLoading, error } = usePlaylistBattle() + const { isConnected } = useAccount() + const [showUpload, setShowUpload] = useState(false) + const [refreshSongs, setRefreshSongs] = useState(0) + const [playlists, setPlaylists] = useState([]) + const [isLoadingPlaylists, setIsLoadingPlaylists] = useState(true) + const [battlePrompts, setBattlePrompts] = useState([]) + const [isLoadingPrompts, setIsLoadingPrompts] = useState(true) + const [isGeneratingPlaylists, setIsGeneratingPlaylists] = useState(false) + const { playSong, setPlaylist } = useAudioPlayer() + + const handlePlaySong = async (song: any) => { + await playSong(song) + } + + const handlePlayPlaylist = (songs: any[]) => { + setPlaylist(songs) + if (songs.length > 0) { + playSong(songs[0]) + } + } + + const getFallbackPrompts = useCallback(() => { + return [ + { + id: 'temp-1', + name: 'Workout Energy Mix', + description: 'High-energy tracks to fuel your session', + color_gradient: 'from-purple-600 to-blue-600' + }, + { + id: 'temp-2', + name: 'Chill Vibes Only', + description: 'Relaxing beats for your downtime', + color_gradient: 'from-green-600 to-emerald-600' + }, + { + id: 'temp-3', + name: 'Party Starters', + description: 'Get the celebration going', + color_gradient: 'from-orange-600 to-red-600' + }, + { + id: 'temp-4', + name: 'Focus Flow', + description: 'Deep concentration soundtrack', + color_gradient: 'from-blue-600 to-cyan-600' + } + ] + }, []) + + const loadTodaysPlaylists = useCallback(async () => { + try { + setIsLoadingPlaylists(true) + const todaysPlaylists = await randomSeedService.getTodaysPlaylists() + setPlaylists(todaysPlaylists) + } catch (error) { + console.error('Error loading playlists:', error) + setPlaylists(randomSeedService.getFallbackPlaylists()) + } finally { + setIsLoadingPlaylists(false) + } + }, []) + + const loadBattlePrompts = useCallback(async () => { + try { + setIsLoadingPrompts(true) + const response = await fetch('/api/playlist-battle/prompts') + const data = await response.json() + + if (data.success && data.prompts.length > 0) { + setBattlePrompts(data.prompts) + console.log('Loaded battle prompts:', data.prompts) + } else { + console.warn('No prompts found, using fallback') + setBattlePrompts(getFallbackPrompts()) + } + } catch (error) { + console.error('Error loading battle prompts:', error) + setBattlePrompts(getFallbackPrompts()) + } finally { + setIsLoadingPrompts(false) + } + }, [getFallbackPrompts]) // Added dependency + +const generatePlaylistsOnStartup = useCallback(async () => { + setIsGeneratingPlaylists(true) + try { + await playlistGenerationService.ensurePlaylistsGenerated() + } catch (error) { + console.error('Error generating playlists on startup:', error) + } finally { + setIsGeneratingPlaylists(false) + await loadTodaysPlaylists() + await loadBattlePrompts() + } +}, [loadTodaysPlaylists, loadBattlePrompts]) + + + + useEffect(() => { + if (isConnected) { + const today = new Date().toISOString().split('T')[0] + const lastGenerated = localStorage.getItem('playlistsLastGenerated') + + const initialize = async () => { + // Only generate once per day + if (lastGenerated !== today) { + console.log('Generating playlists for today...') + await generatePlaylistsOnStartup() + localStorage.setItem('playlistsLastGenerated', today) + } else { + console.log('Playlists already generated today, loading...') + await loadTodaysPlaylists() + await loadBattlePrompts() + } + } + + initialize() + } +}, [isConnected, generatePlaylistsOnStartup, loadTodaysPlaylists, loadBattlePrompts]) + + + const handleUploadSuccess = () => { + setRefreshSongs(prev => prev + 1) + setShowUpload(false) + } + + const handleStartBattle = async (promptId: string) => { + console.log('Starting battle with prompt ID:', promptId) + await startBattle(promptId) + } + + // Show wallet connection if not connected + if (!isConnected) { + return ( +
+
+

Connect Your Wallet

+

Connect your wallet to listen to music on RAR

+ +
+
+ ) + } + + return ( +
+ {/* Show loading state during initial playlist generation */} + {isGeneratingPlaylists && ( +
+
+
⟳
+ Generating today's playlists... +
+
+ )} + + {showUpload ? ( +
+
+

Upload Your Music

+ +
+
+ +
+
+ ) : ( + <> + {/* Playlist Battle Section */} +
+

Play a fun little game of Playlisting 😃

+

You never know what song you will find next ;)

+ + {error && ( +
+ {error} +
+ )} + + {isLoadingPrompts ? ( +
+ {[1, 2, 3, 4].map((i) => ( +
+ ))} +
+ ) : ( +
+ {battlePrompts.map((prompt) => ( + + ))} +
+ )} +
+ +
+
+

Some Random Playlist 4 U

+ +
+
+ {playlists.map((playlist) => ( + +
+
+ +
+

{playlist.name}

+

{playlist.description}

+
+ + ))} +
+
+ + + + )} +
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/coin-flip/has-result/[address]/route.ts b/entropy/RAR/app/app/api/coin-flip/has-result/[address]/route.ts new file mode 100644 index 0000000..b02ad86 --- /dev/null +++ b/entropy/RAR/app/app/api/coin-flip/has-result/[address]/route.ts @@ -0,0 +1,35 @@ +import { NextRequest, NextResponse } from 'next/server' +import { ethers } from 'ethers' +import { CoinFlipAddress } from '@/contracts/addresses' +import COIN_FLIP_ABI from '@/contracts/CoinFlip.json' + +const RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc" + +export const dynamic = 'force-dynamic' + +export async function GET( + request: NextRequest, + { params }: { params: { address: string } } +) { + try { + const userAddress = params.address + console.log('Checking if user has result:', userAddress) + + const provider = new ethers.JsonRpcProvider(RPC_URL) + const contract = new ethers.Contract(CoinFlipAddress, COIN_FLIP_ABI.abi, provider) + + const hasResult = await contract.hasUserResult(userAddress) + console.log('Has result:', hasResult) + + return NextResponse.json({ + success: true, + hasResult + }) + } catch (error: any) { + console.error('Error checking user result:', error) + return NextResponse.json({ + success: false, + error: error.message + }, { status: 500 }) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/coin-flip/result/[address]/route.ts b/entropy/RAR/app/app/api/coin-flip/result/[address]/route.ts new file mode 100644 index 0000000..910ce0a --- /dev/null +++ b/entropy/RAR/app/app/api/coin-flip/result/[address]/route.ts @@ -0,0 +1,44 @@ +import { NextRequest, NextResponse } from 'next/server' +import { ethers } from 'ethers' +import { CoinFlipAddress } from '@/contracts/addresses' +import COIN_FLIP_ABI from '@/contracts/CoinFlip.json' + +const RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc" + +export const dynamic = 'force-dynamic' + +export async function GET( + request: NextRequest, + { params }: { params: { address: string } } +) { + try { + const userAddress = params.address + console.log('Getting result for:', userAddress) + + const provider = new ethers.JsonRpcProvider(RPC_URL) + const contract = new ethers.Contract(CoinFlipAddress, COIN_FLIP_ABI.abi, provider) + + const result = await contract.getUserResult(userAddress) + + // Log the format for debugging + console.log('Raw contract result:', result) + console.log('Random number format:', result[0]) + console.log('Type of random number:', typeof result[0]) + + return NextResponse.json({ + success: true, + result: { + randomNumber: result[0], + isHeads: result[1], + timestamp: Number(result[2]), + exists: result[3] + } + }) + } catch (error: any) { + console.error('Error getting user result:', error) + return NextResponse.json({ + success: false, + error: error.message + }, { status: 500 }) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/events/route.ts b/entropy/RAR/app/app/api/events/route.ts new file mode 100644 index 0000000..695c5ea --- /dev/null +++ b/entropy/RAR/app/app/api/events/route.ts @@ -0,0 +1,35 @@ +import { NextResponse } from 'next/server' +import { startDecayListener } from '@/lib/decayListener' + +export const maxDuration = 300 // 5 minutes + +let isListenerRunning = false + +export const dynamic = 'force-dynamic' + +export async function GET() { + try { + if (isListenerRunning) { + return NextResponse.json({ + success: true, + message: 'Event listener already running' + }) + } + + console.log('Starting event listeners...') + isListenerRunning = true + + // Import dynamically to avoid loading on server if not needed + const { startDecayListener } = await import('@/lib/decayListener') + startDecayListener() + + return NextResponse.json({ + success: true, + message: 'Event listeners started' + }) + } catch (error: any) { + console.error('Error starting listeners:', error) + isListenerRunning = false + return NextResponse.json({ error: error.message }, { status: 500 }) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/generate-daily-seed/route.ts b/entropy/RAR/app/app/api/generate-daily-seed/route.ts new file mode 100644 index 0000000..ec47c85 --- /dev/null +++ b/entropy/RAR/app/app/api/generate-daily-seed/route.ts @@ -0,0 +1,91 @@ +import { NextResponse } from 'next/server' +import { ethers } from 'ethers' +import { supabase } from '@/lib/supabase' + +import RANDOM_SEED_ARTIFACT from '@/contracts/RandomSeed.json' + +const RANDOM_SEED_ABI = RANDOM_SEED_ARTIFACT.abi +const CONTRACT_ADDRESS = "0xA13C674F8A8715E157BA42237A6b1Dff24EE274F" + +const PRIVATE_KEY = process.env.WALLET_PRIVATE_KEY +const RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc" + +export const dynamic = 'force-dynamic' + +export async function GET() { + try { + console.log('Connecting to RPC:', RPC_URL) + + if (!PRIVATE_KEY) { + throw new Error('WALLET_PRIVATE_KEY environment variable is not set') + } + + if (!RPC_URL) { + throw new Error('ARBITRUM_SEPOLIA_RPC_URL environment variable is not set') + } + + const provider = new ethers.JsonRpcProvider(RPC_URL) + const wallet = new ethers.Wallet(PRIVATE_KEY, provider) + const contract = new ethers.Contract(CONTRACT_ADDRESS, RANDOM_SEED_ABI, wallet) + + console.log('Checking current seed...') + const currentSeed = await contract.currentSeed() + console.log('Current seed:', currentSeed) + + if (currentSeed !== '0x0000000000000000000000000000000000000000000000000000000000000000') { + + await supabase + .from('daily_seeds') + .insert({ + seed_hash: currentSeed, + block_timestamp: new Date().toISOString() + }) + + return NextResponse.json({ + success: true, + message: 'Seed already exists', + seed: currentSeed + }) + } + + console.log('Requesting new seed...') + const fee = ethers.parseEther("0.0005") + const tx = await contract.requestRandomSeed({ value: fee }) + console.log('Transaction sent:', tx.hash) + + const receipt = await tx.wait() + console.log('Transaction confirmed in block:', receipt.blockNumber) + + console.log('Waiting for entropy callback (30 seconds)...') + await new Promise(resolve => setTimeout(resolve, 30000)) + + const newSeed = await contract.currentSeed() + console.log('New seed after wait:', newSeed) + + if (newSeed === '0x0000000000000000000000000000000000000000000000000000000000000000') { + throw new Error('Seed still not generated after callback wait') + } + + // Store the new seed in database + await supabase + .from('daily_seeds') + .insert({ + seed_hash: newSeed, + block_timestamp: new Date().toISOString() + }) + + return NextResponse.json({ + success: true, + message: 'Seed generated successfully', + seed: newSeed, + transactionHash: tx.hash + }) + + } catch (error: any) { + console.error('Error generating seed:', error) + return NextResponse.json({ + success: false, + error: error.message || 'Failed to generate seed' + }, { status: 500 }) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/generate-playlists/route.ts b/entropy/RAR/app/app/api/generate-playlists/route.ts new file mode 100644 index 0000000..6327b8f --- /dev/null +++ b/entropy/RAR/app/app/api/generate-playlists/route.ts @@ -0,0 +1,263 @@ +import { NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' + +export const dynamic = 'force-dynamic' + +export async function GET() { + try { + console.log('Starting playlist generation...') + + // Get the most recent seed from the database + const { data: latestSeed, error: seedError } = await supabase + .from('daily_seeds') + .select('seed_hash') + .order('created_at', { ascending: false }) + .limit(1) + .single() + + if (seedError) { + console.error('Error fetching seed:', seedError) + return NextResponse.json({ + success: false, + error: 'Error fetching seed from database' + }) + } + + if (!latestSeed) { + return NextResponse.json({ + success: false, + error: 'No seed found in database. Generate seed first.' + }) + } + + const seed = latestSeed.seed_hash + console.log('Using seed from database:', seed) + + // Generate and store playlists + const result = await generateAndStorePlaylists(seed) + + return NextResponse.json({ + success: true, + message: 'Playlists generated successfully', + seed: seed, + generatedPlaylists: result + }) + + } catch (error: any) { + console.error('Error generating playlists:', error) + return NextResponse.json({ + success: false, + error: error.message || 'Failed to generate playlists' + }, { status: 500 }) + } +} + +async function generateAndStorePlaylists(seed: string): Promise { + const allSongs = await getSongsFromSupabase() + const today = new Date().toISOString().split('T')[0] + + console.log(`Found ${allSongs.length} songs in database`) + + if (allSongs.length === 0) { + console.log('No songs available for playlist generation') + return { success: false, error: 'No songs available' } + } + + // Get playlist definitions + const { data: playlistDefs, error: defError } = await supabase + .from('playlist_definitions') + .select('*') + .eq('is_auto_generated', true) + + if (defError) { + console.error('Error fetching playlist definitions:', defError) + return { success: false, error: 'Failed to fetch playlist definitions' } + } + + if (!playlistDefs || playlistDefs.length === 0) { + console.log('No playlist definitions found') + return { success: false, error: 'No playlist definitions found' } + } + + console.log(`Generating ${playlistDefs.length} playlists from ${allSongs.length} songs`) + + const results = [] + + const songDistribution = distributeSongsAcrossPlaylists(allSongs, playlistDefs.length, seed) + console.log('Song distribution plan:', songDistribution) + + // Generate playlists for each definition + for (let i = 0; i < playlistDefs.length; i++) { + const definition = playlistDefs[i] + console.log(`\nšŸ”„ Generating playlist: ${definition.name}`) + + // Get this playlist's assigned songs from the distribution plan + const playlistSongs = songDistribution[i] || [] + console.log(` Assigned ${playlistSongs.length} songs for ${definition.name}:`, + playlistSongs.map(s => s.title)) + + // Store in daily_playlists + const { data, error } = await supabase + .from('daily_playlists') + .upsert({ + playlist_definition_id: definition.id, + seed_hash: seed, + day: today, + song_ids: playlistSongs.map(song => song.id) + }, { + onConflict: 'playlist_definition_id,day' + }) + + if (error) { + console.error(`Error storing playlist ${definition.name}:`, error) + results.push({ name: definition.name, success: false, error: error.message }) + } else { + console.log(`Successfully stored playlist: ${definition.name} with ${playlistSongs.length} songs`) + results.push({ name: definition.name, success: true, songCount: playlistSongs.length }) + } + } + + return { success: true, results } +} + + +function distributeSongsAcrossPlaylists(allSongs: any[], playlistCount: number, seed: string): any[][] { + const songsPerPlaylist = 5 + const availableSongs = allSongs.length + + console.log(`Distribution: ${playlistCount} playlists Ɨ ${songsPerPlaylist} songs = ${playlistCount * songsPerPlaylist} slots from ${availableSongs} songs`) + + + return distributeWithSmartRandomness(allSongs, playlistCount, songsPerPlaylist, seed) +} + +function distributeWithSmartRandomness(allSongs: any[], playlistCount: number, songsPerPlaylist: number, seed: string): any[][] { + const distribution: any[][] = Array(playlistCount).fill(null).map(() => []) + const songUsageCount = new Map() + + // Initialize usage count + allSongs.forEach(song => songUsageCount.set(song.id, 0)) + + // Calculate how many times we can use each song + const totalSlots = playlistCount * songsPerPlaylist + const maxUsagePerSong = Math.ceil(totalSlots / allSongs.length) + 1 // Allow some flexibility + + console.log(`Max usage per song: ${maxUsagePerSong}`) + + // Create a pool of available song slots + let availableSongPool: any[] = [] + allSongs.forEach(song => { + // Add each song multiple times to the pool based on max usage + for (let i = 0; i < maxUsagePerSong; i++) { + availableSongPool.push(song) + } + }) + + console.log(`Initial song pool size: ${availableSongPool.length}`) + + // Shuffle the entire pool once with the main seed + availableSongPool = fisherYatesShuffle(availableSongPool, seed) + + // Assign songs to playlists + for (let playlistIndex = 0; playlistIndex < playlistCount; playlistIndex++) { + const playlistSeed = seed + `_playlist_${playlistIndex}` + const playlist = distribution[playlistIndex] + + // Get unique songs for this playlist from the pool + const usedSongIds = new Set() + let attempts = 0 + const maxAttempts = availableSongPool.length * 2 + + while (playlist.length < songsPerPlaylist && attempts < maxAttempts && availableSongPool.length > 0) { + attempts++ + + // Use playlist-specific randomness to pick from the pool + const random = createSeededRandom(playlistSeed + `_attempt_${attempts}`) + const randomIndex = Math.floor(random() * availableSongPool.length) + const candidateSong = availableSongPool[randomIndex] + + // Check if this song is already in the playlist + if (!usedSongIds.has(candidateSong.id)) { + playlist.push(candidateSong) + usedSongIds.add(candidateSong.id) + + // Remove this instance from the pool (but other instances remain) + availableSongPool.splice(randomIndex, 1) + } + } + + // If we still don't have enough songs, fill with any available unique songs + if (playlist.length < songsPerPlaylist) { + const remainingSongs = [...allSongs].filter(song => !usedSongIds.has(song.id)) + const needed = songsPerPlaylist - playlist.length + const additionalSongs = remainingSongs.slice(0, needed) + playlist.push(...additionalSongs) + } + + // Final shuffle of this playlist + distribution[playlistIndex] = fisherYatesShuffle(playlist, playlistSeed + '_final') + + console.log(`Playlist ${playlistIndex}: ${playlist.map(s => s.title).join(', ')}`) + } + + // Log final statistics + console.log('Final song usage statistics:') + const finalUsage = new Map() + distribution.forEach(playlist => { + playlist.forEach(song => { + finalUsage.set(song.id, (finalUsage.get(song.id) || 0) + 1) + }) + }) + + allSongs.forEach(song => { + const usage = finalUsage.get(song.id) || 0 + console.log(` ${song.title}: used ${usage} times`) + }) + + // Verify we have unique songs in each playlist + distribution.forEach((playlist, index) => { + const uniqueSongs = new Set(playlist.map(s => s.id)) + if (uniqueSongs.size !== playlist.length) { + console.warn(`Playlist ${index} has duplicate songs!`) + } + }) + + return distribution +} + +// Get songs directly from Supabase (since we're in server environment) +async function getSongsFromSupabase() { + const { data: songs, error } = await supabase + .from('songs') + .select('*') + .order('created_at', { ascending: false }) + + if (error) { + console.error('Error fetching songs:', error) + return [] + } + + return songs || [] +} + +function fisherYatesShuffle(array: any[], seed: string): any[] { + const shuffled = [...array] + const random = createSeededRandom(seed) + for (let i = shuffled.length - 1; i > 0; i--) { + const j = Math.floor(random() * (i + 1)); + [shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]]; + } + return shuffled +} + +function createSeededRandom(seed: string): () => number { + let state = bytes32ToNumber(seed) + return () => { + state = (state * 1664525 + 1013904223) % 4294967296 + return state / 4294967296 + } +} + +function bytes32ToNumber(bytes32: string): number { + return parseInt(bytes32.slice(2, 10), 16) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/[id]/add-song/route.ts b/entropy/RAR/app/app/api/playlist-battle/[id]/add-song/route.ts new file mode 100644 index 0000000..61bcc7c --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/[id]/add-song/route.ts @@ -0,0 +1,98 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' +import { songService } from '@/services/songService' + +export const dynamic = 'force-dynamic' + +export async function POST( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const battleInstanceId = params.id + const { songId } = await request.json() + + if (!songId) { + return NextResponse.json({ error: 'Song ID is required' }, { status: 400 }) + } + + // Get current battle instance + const { data: battle, error: fetchError } = await supabase + .from('playlist_battle_instances') + .select('playlist_songs, queue_songs, energy_units') + .eq('id', battleInstanceId) + .single() + + if (fetchError) { + throw fetchError + } + + // Check if song exists in queue + if (!battle.queue_songs.includes(songId)) { + return NextResponse.json({ error: 'Song not found in queue' }, { status: 400 }) + } + + // Check if enough energy (5 units for adding) + if (battle.energy_units < 5) { + return NextResponse.json({ + error: 'Not enough energy to add song' + }, { status: 400 }) + } + + // Remove song from queue and add to playlist, and update energy + const updatedQueue = battle.queue_songs.filter((id: string) => id !== songId) + const updatedPlaylist = [...battle.playlist_songs, songId] + const newEnergy = battle.energy_units - 5 + + // Update the battle instance + const { data: updatedBattle, error: updateError } = await supabase + .from('playlist_battle_instances') + .update({ + playlist_songs: updatedPlaylist, + queue_songs: updatedQueue, + energy_units: newEnergy, + updated_at: new Date().toISOString() + }) + .eq('id', battleInstanceId) + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + if (updateError) { + throw updateError + } + + if (process.env.NODE_ENV === 'production') { + await new Promise(resolve => setTimeout(resolve, 100)) + } + + // Get updated song data + const allSongs = await songService.getSongs() + const songMap = new Map(allSongs.map(song => [song.id, song])) + + const playlistSongs = updatedPlaylist + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + const queueSongs = updatedQueue + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + return NextResponse.json({ + success: true, + updatedBattle, + playlistSongs, + queueSongs, + energy_units: newEnergy + }) + + } catch (error: any) { + console.error('Error adding song to playlist:', error) + return NextResponse.json( + { error: error.message || 'Failed to add song to playlist' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/[id]/energy/route.ts b/entropy/RAR/app/app/api/playlist-battle/[id]/energy/route.ts new file mode 100644 index 0000000..193d8e5 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/[id]/energy/route.ts @@ -0,0 +1,73 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' + +export const dynamic = 'force-dynamic' + +export async function POST( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const battleInstanceId = params.id + const { action, amount } = await request.json() + + if (!action || !amount) { + return NextResponse.json({ error: 'Action and amount are required' }, { status: 400 }) + } + + // Get current battle instance + const { data: battle, error: fetchError } = await supabase + .from('playlist_battle_instances') + .select('energy_units') + .eq('id', battleInstanceId) + .single() + + if (fetchError) { + throw fetchError + } + + let newEnergy = battle.energy_units + + if (action === 'consume') { + if (battle.energy_units < amount) { + return NextResponse.json({ + error: 'Not enough energy units' + }, { status: 400 }) + } + newEnergy = battle.energy_units - amount + } else if (action === 'restore') { + newEnergy = Math.min(100, battle.energy_units + amount) + } + + // Update energy in database + const { data: updatedBattle, error: updateError } = await supabase + .from('playlist_battle_instances') + .update({ + energy_units: newEnergy, + updated_at: new Date().toISOString() + }) + .eq('id', battleInstanceId) + .select('energy_units') + .single() + + if (updateError) { + throw updateError + } + + if (process.env.NODE_ENV === 'production') { + await new Promise(resolve => setTimeout(resolve, 100)) + } + + return NextResponse.json({ + success: true, + energy_units: updatedBattle.energy_units + }) + + } catch (error: any) { + console.error('Error updating energy:', error) + return NextResponse.json( + { error: error.message || 'Failed to update energy' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/[id]/pass-song/route.ts b/entropy/RAR/app/app/api/playlist-battle/[id]/pass-song/route.ts new file mode 100644 index 0000000..e883af4 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/[id]/pass-song/route.ts @@ -0,0 +1,90 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' +import { songService } from '@/services/songService' // Add this import + +export const dynamic = 'force-dynamic' + +export async function POST( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const battleInstanceId = params.id + const { songId } = await request.json() + + if (!songId) { + return NextResponse.json({ error: 'Song ID is required' }, { status: 400 }) + } + + // Get current battle instance + const { data: battle, error: fetchError } = await supabase + .from('playlist_battle_instances') + .select('queue_songs, energy_units') + .eq('id', battleInstanceId) + .single() + + if (fetchError) { + throw fetchError + } + + // Check if song exists in queue + if (!battle.queue_songs.includes(songId)) { + return NextResponse.json({ error: 'Song not found in queue' }, { status: 400 }) + } + + // Check if enough energy (3 units for passing) + if (battle.energy_units < 3) { + return NextResponse.json({ + error: 'Not enough energy to pass song' + }, { status: 400 }) + } + + // Remove song from queue and update energy + const updatedQueue = battle.queue_songs.filter((id: string) => id !== songId) + const newEnergy = battle.energy_units - 3 + + const { data: updatedBattle, error: updateError } = await supabase + .from('playlist_battle_instances') + .update({ + queue_songs: updatedQueue, + energy_units: newEnergy, + updated_at: new Date().toISOString() + }) + .eq('id', battleInstanceId) + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + if (updateError) { + throw updateError + } + + if (process.env.NODE_ENV === 'production') { + await new Promise(resolve => setTimeout(resolve, 100)) + } + + // Get updated song data using songService + const allSongs = await songService.getSongs() + const songMap = new Map(allSongs.map(song => [song.id, song])) + + const queueSongs = updatedQueue + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + return NextResponse.json({ + success: true, + updatedBattle, + queueSongs, + energy_units: newEnergy + }) + + } catch (error: any) { + console.error('Error passing song:', error) + return NextResponse.json( + { error: error.message || 'Failed to pass song' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/[id]/pause/route.ts b/entropy/RAR/app/app/api/playlist-battle/[id]/pause/route.ts new file mode 100644 index 0000000..11919a1 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/[id]/pause/route.ts @@ -0,0 +1,63 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' + +export const dynamic = 'force-dynamic' + +export async function POST( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const battleInstanceId = params.id + + // Get current battle instance + const { data: battle, error: fetchError } = await supabase + .from('playlist_battle_instances') + .select('energy_units') + .eq('id', battleInstanceId) + .single() + + if (fetchError) { + throw fetchError + } + + // Add 5 energy units + const newEnergy = Math.min(100, battle.energy_units + 5) + + // Update energy + const { data: updatedBattle, error: updateError } = await supabase + .from('playlist_battle_instances') + .update({ + energy_units: newEnergy, + updated_at: new Date().toISOString() + }) + .eq('id', battleInstanceId) + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + if (updateError) { + throw updateError + } + + if (process.env.NODE_ENV === 'production') { + await new Promise(resolve => setTimeout(resolve, 100)) + } + + return NextResponse.json({ + success: true, + updatedBattle, + energy_units: newEnergy, + message: 'Took a pause and gained 5 energy!' + }) + + } catch (error: any) { + console.error('Error during pause:', error) + return NextResponse.json( + { error: error.message || 'Failed to pause' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/[id]/rearrange/route.ts b/entropy/RAR/app/app/api/playlist-battle/[id]/rearrange/route.ts new file mode 100644 index 0000000..417f496 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/[id]/rearrange/route.ts @@ -0,0 +1,109 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' + +export const dynamic = 'force-dynamic' + +export async function POST( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const battleInstanceId = params.id + + // Parse request body - songOrder is optional + let songOrder: string[] | undefined + try { + const body = await request.json() + songOrder = body.songOrder + } catch (e) { + console.log('No song order provided, will use random shuffle') + } + + // Get current battle instance + const { data: battle, error: fetchError } = await supabase + .from('playlist_battle_instances') + .select('playlist_songs, energy_units') + .eq('id', battleInstanceId) + .single() + + if (fetchError) { + throw fetchError + } + + // Check if there are songs to rearrange + if (!battle.playlist_songs || battle.playlist_songs.length === 0) { + return NextResponse.json({ + error: 'No songs in playlist to rearrange' + }, { status: 400 }) + } + + // Determine the new song order + let reorderedSongs: string[] + + if (songOrder && Array.isArray(songOrder) && songOrder.length > 0) { + + const originalSet = new Set(battle.playlist_songs) + const newSet = new Set(songOrder) + + if (originalSet.size !== newSet.size || + !battle.playlist_songs.every((id: string) => newSet.has(id))) { + return NextResponse.json({ + error: 'Invalid song order provided. Song IDs do not match.' + }, { status: 400 }) + } + + reorderedSongs = songOrder + console.log('šŸ“‹ Manual rearrangement applied') + } else { + + reorderedSongs = [...battle.playlist_songs] + for (let i = reorderedSongs.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [reorderedSongs[i], reorderedSongs[j]] = [reorderedSongs[j], reorderedSongs[i]] + } + console.log('šŸŽ² Random shuffle applied') + } + + // Add 2 energy units + const newEnergy = Math.min(100, battle.energy_units + 2) + + // Update playlist order and energy + const { data: updatedBattle, error: updateError } = await supabase + .from('playlist_battle_instances') + .update({ + playlist_songs: reorderedSongs, + energy_units: newEnergy, + updated_at: new Date().toISOString() + }) + .eq('id', battleInstanceId) + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + if (updateError) { + throw updateError + } + + if (process.env.NODE_ENV === 'production') { + await new Promise(resolve => setTimeout(resolve, 100)) + } + + console.log('Playlist rearranged successfully') + + return NextResponse.json({ + success: true, + updatedBattle, + energy_units: newEnergy, + message: 'Playlist rearranged and gained 2 energy!' + }) + + } catch (error: any) { + console.error('Error rearranging playlist:', error) + return NextResponse.json( + { error: error.message || 'Failed to rearrange playlist' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/[id]/route.ts b/entropy/RAR/app/app/api/playlist-battle/[id]/route.ts new file mode 100644 index 0000000..07747c9 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/[id]/route.ts @@ -0,0 +1,33 @@ +import { NextRequest, NextResponse } from 'next/server' +import { playlistBattleService } from '@/services/playlistBattleService' + +export const dynamic = 'force-dynamic' + +export async function GET( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const battleInstanceId = params.id + + const battleInstance = await playlistBattleService.getBattleInstance(battleInstanceId) + if (!battleInstance) { + return NextResponse.json({ error: 'Battle instance not found' }, { status: 404 }) + } + + const battleSongs = await playlistBattleService.getBattleSongs(battleInstanceId) + + return NextResponse.json({ + success: true, + battleInstance, + ...battleSongs + }) + + } catch (error: any) { + console.error('Error fetching battle instance:', error) + return NextResponse.json( + { error: error.message || 'Failed to fetch battle instance' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/[id]/submit/route.ts b/entropy/RAR/app/app/api/playlist-battle/[id]/submit/route.ts new file mode 100644 index 0000000..052c73f --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/[id]/submit/route.ts @@ -0,0 +1,114 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' +import { userService } from '@/services/userService' + +export const dynamic = 'force-dynamic' + +export async function POST( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const battleInstanceId = params.id + const { userAddress, playlistName, playlistDescription } = await request.json() + + if (!userAddress) { + return NextResponse.json({ error: 'User address is required' }, { status: 400 }) + } + + // Get user from database + const user = await userService.getUserByWalletAddress(userAddress.toLowerCase()) + if (!user) { + return NextResponse.json({ error: 'User not found' }, { status: 404 }) + } + + // Get battle instance + const { data: battleInstance, error: battleError } = await supabase + .from('playlist_battle_instances') + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .eq('id', battleInstanceId) + .single() + + if (battleError || !battleInstance) { + return NextResponse.json({ error: 'Battle instance not found' }, { status: 404 }) + } + + // Check if user owns this battle instance + if (battleInstance.user_id !== user.id) { + return NextResponse.json({ error: 'Unauthorized' }, { status: 401 }) + } + + // Check if already submitted - return existing submission if found + const { data: existingSubmission } = await supabase + .from('gallery_playlists') + .select('*') + .eq('battle_instance_id', battleInstanceId) + .single() + + if (existingSubmission) { + return NextResponse.json({ + success: true, + galleryPlaylist: existingSubmission, + message: 'Playlist already submitted to gallery', + isResubmission: true + }) + } + + // Check if playlist has songs + if (!battleInstance.playlist_songs || battleInstance.playlist_songs.length === 0) { + return NextResponse.json({ + error: 'Cannot submit empty playlist' + }, { status: 400 }) + } + + // Create gallery playlist entry + const { data: galleryPlaylist, error: galleryError } = await supabase + .from('gallery_playlists') + .insert({ + user_id: user.id, + battle_instance_id: battleInstanceId, + playlist_prompt_id: battleInstance.playlist_prompt_id, + playlist_name: playlistName || `${battleInstance.playlist_prompt.name} - ${user.username}`, + playlist_description: playlistDescription || `Created by ${user.username} in a playlist battle`, + playlist_songs: battleInstance.playlist_songs, + energy_remaining: battleInstance.energy_units, + submitted_at: new Date().toISOString() + }) + .select(` + *, + user:users(username), + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + if (galleryError) { + console.error('Error creating gallery playlist:', galleryError) + return NextResponse.json({ error: 'Failed to submit playlist' }, { status: 500 }) + } + + // Mark battle instance as completed + await supabase + .from('playlist_battle_instances') + .update({ + is_completed: true, + completed_at: new Date().toISOString() + }) + .eq('id', battleInstanceId) + + return NextResponse.json({ + success: true, + galleryPlaylist, + message: 'Playlist submitted to gallery!' + }) + + } catch (error: any) { + console.error('Error submitting playlist:', error) + return NextResponse.json( + { error: error.message || 'Failed to submit playlist' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/gallery/[id]/route.ts b/entropy/RAR/app/app/api/playlist-battle/gallery/[id]/route.ts new file mode 100644 index 0000000..0117da4 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/gallery/[id]/route.ts @@ -0,0 +1,46 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' + +export const dynamic = 'force-dynamic' + +export async function GET( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const playlistId = params.id + + const { data: playlist, error } = await supabase + .from('gallery_playlists') + .select(` + *, + user:users(username, wallet_address, reputation_level), + playlist_prompt:playlist_battle_prompts(*) + `) + .eq('id', playlistId) + .single() + + if (error || !playlist) { + console.error('Playlist fetch error:', error) + return NextResponse.json({ error: 'Playlist not found' }, { status: 404 }) + } + + // Ensure playlist_songs exists and is an array + if (!playlist.playlist_songs || !Array.isArray(playlist.playlist_songs)) { + console.warn('Playlist songs is missing or not an array, setting to empty array') + playlist.playlist_songs = [] + } + + return NextResponse.json({ + success: true, + playlist + }) + + } catch (error: any) { + console.error('Error fetching gallery playlist:', error) + return NextResponse.json( + { error: error.message || 'Failed to fetch playlist' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/gallery/[id]/vote/route.ts b/entropy/RAR/app/app/api/playlist-battle/gallery/[id]/vote/route.ts new file mode 100644 index 0000000..b03e4e6 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/gallery/[id]/vote/route.ts @@ -0,0 +1,299 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' +import { userService } from '@/services/userService' +import { ethers } from 'ethers' +import { PlaylistReputationNFT } from '@/contracts/addresses' +import PLAYLIST_REPUTATION_NFT_ABI from '@/contracts/PlaylistReputationNFT.json' + +const RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc" +const PRIVATE_KEY = process.env.WALLET_PRIVATE_KEY + +export const dynamic = 'force-dynamic' + +export async function POST( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const playlistId = params.id + const { userAddress, voteType } = await request.json() + + if (!userAddress) { + return NextResponse.json({ error: 'User address is required' }, { status: 400 }) + } + + if (!['upvote', 'downvote'].includes(voteType)) { + return NextResponse.json({ error: 'Invalid vote type' }, { status: 400 }) + } + + // Get user from database + const user = await userService.getUserByWalletAddress(userAddress.toLowerCase()) + if (!user) { + return NextResponse.json({ error: 'User not found' }, { status: 404 }) + } + + // Get the gallery playlist with proper error handling + const { data: playlist, error: playlistError } = await supabase + .from('gallery_playlists') + .select('*') + .eq('id', playlistId) + .single() + + if (playlistError || !playlist) { + console.error('Playlist not found:', playlistError) + return NextResponse.json({ error: 'Playlist not found' }, { status: 404 }) + } + + // Check if user already voted + const { data: existingVote } = await supabase + .from('playlist_votes') + .select('*') + .eq('user_id', user.id) + .eq('gallery_playlist_id', playlistId) + .single() + + if (existingVote) { + return NextResponse.json({ + error: 'You have already voted on this playlist', + existingVote + }, { status: 400 }) + } + + // Check if user is trying to vote on their own playlist + if (playlist.user_id === user.id) { + return NextResponse.json({ + error: 'Cannot vote on your own playlist' + }, { status: 400 }) + } + + // Record vote in database + const { data: vote, error: voteError } = await supabase + .from('playlist_votes') + .insert({ + user_id: user.id, + gallery_playlist_id: playlistId, + vote_type: voteType, + created_at: new Date().toISOString() + }) + .select() + .single() + + if (voteError) { + console.error('Error recording vote:', voteError) + return NextResponse.json({ error: 'Failed to record vote' }, { status: 500 }) + } + + // Update vote count in gallery_playlists + const voteChange = voteType === 'upvote' ? 1 : -1 + const newVoteCount = (playlist.vote_count || 0) + voteChange + + const { data: updatedPlaylist, error: updateError } = await supabase + .from('gallery_playlists') + .update({ + vote_count: newVoteCount + }) + .eq('id', playlistId) + .select() + .single() + + if (updateError) { + console.error('Error updating vote count:', updateError) + } + + // Handle blockchain interactions based on vote type + if (voteType === 'upvote') { + try { + console.log('Processing upvote with growth and potential decay...') + await handleUpvoteWithDecay(playlistId, playlist.user_id, playlist.playlist_name) + } catch (blockchainError) { + console.error('Blockchain operation failed:', blockchainError) + } + } else { + console.log('Downvote recorded - no blockchain interaction') + } + + return NextResponse.json({ + success: true, + vote, + newVoteCount, + message: `Successfully ${voteType}d playlist!` + }) + + } catch (error: any) { + console.error('Error voting on playlist:', error) + return NextResponse.json( + { error: error.message || 'Failed to vote on playlist' }, + { status: 500 } + ) + } +} + +async function handleUpvoteWithDecay(playlistId: string, playlistOwnerId: string, playlistName: string) { + if (!PRIVATE_KEY) { + console.warn('No private key configured for blockchain operations') + return + } + + console.log('Starting upvote with potential decay...') + + try { + const provider = new ethers.JsonRpcProvider(RPC_URL) + const wallet = new ethers.Wallet(PRIVATE_KEY, provider) + const contract = new ethers.Contract(PlaylistReputationNFT, PLAYLIST_REPUTATION_NFT_ABI.abi, wallet) + + // Get playlist owner's wallet address + const { data: ownerUser } = await supabase + .from('users') + .select('wallet_address') + .eq('id', playlistOwnerId) + .single() + + if (!ownerUser) { + throw new Error('Playlist owner not found') + } + + console.log('Finding existing NFT for playlist...') + let existingTokenId: ethers.BigNumberish | null = null + + try { + const ownerTokens = await contract.tokensOfOwner(ownerUser.wallet_address) + console.log('Owner tokens:', ownerTokens.map((t: any) => t.toString())) + + // Check if any existing token matches this playlist + for (const token of ownerTokens) { + try { + const tokenInfo = await contract.getPlaylistInfo(token) + console.log(`Token ${token.toString()}:`, { + playlistId: tokenInfo.playlistId, + reputation: tokenInfo.reputation.toString() + }) + + if (tokenInfo.playlistId === playlistId) { + existingTokenId = token + console.log('Found matching token:', token.toString()) + break + } + } catch (error) { + console.log('Error checking token:', token.toString(), error) + continue + } + } + } catch (error) { + console.log('Error getting owner tokens:', error) + } + + if (existingTokenId) { + + console.log('Voting to grow reputation...') + const voteTx = await contract.voteForPlaylist(existingTokenId) + const voteReceipt = await voteTx.wait() + console.log('Growth vote confirmed:', voteReceipt.hash) + + // Get reputation after growth + const tokenInfoAfterGrowth = await contract.getPlaylistInfo(existingTokenId) + const reputationAfterGrowth = Number(tokenInfoAfterGrowth.reputation) + console.log('Reputation after growth:', reputationAfterGrowth) + + + if (reputationAfterGrowth > 0) { + console.log('Triggering decay with 0.001 ETH (should cover fee)...') + + try { + + const decayTx = await contract.triggerDecay(existingTokenId, { + value: ethers.parseEther("0.001") + }) + const decayReceipt = await decayTx.wait() + console.log('Decay triggered:', decayReceipt.hash) + console.log('Entropy callback will happen asynchronously...') + + + const reputationLevel = Math.floor(reputationAfterGrowth / 10) + await supabase + .from('users') + .update({ reputation_level: reputationLevel }) + .eq('id', playlistOwnerId) + + console.log('Updated with growth reputation (decay will happen later):', reputationLevel) + + } catch (decayError) { + console.error('Error triggering decay:', decayError) + const reputationLevel = Math.floor(reputationAfterGrowth / 10) + await supabase + .from('users') + .update({ reputation_level: reputationLevel }) + .eq('id', playlistOwnerId) + console.log('Updated with growth-only reputation:', reputationLevel) + } + } else { + console.log('Reputation is 0, skipping decay') + const reputationLevel = Math.floor(reputationAfterGrowth / 10) + await supabase + .from('users') + .update({ reputation_level: reputationLevel }) + .eq('id', playlistOwnerId) + } + + } else { + + console.log('Minting new NFT (no decay on first mint)...') + const mintTx = await contract.mintPlaylist(ownerUser.wallet_address, playlistName, playlistId) + const receipt = await mintTx.wait() + console.log('New NFT minted:', receipt.hash) + + + await supabase + .from('users') + .update({ reputation_level: 5 }) + .eq('id', playlistOwnerId) + + console.log('Set initial reputation level to 5') + } + + console.log('Upvote with decay processing completed!') + + } catch (error) { + console.error('Error in upvote with decay:', error) + throw error + } +} + + +export async function GET( + request: NextRequest, + { params }: { params: { id: string } } +) { + try { + const playlistId = params.id + const { searchParams } = new URL(request.url) + const userAddress = searchParams.get('userAddress') + + if (!userAddress) { + return NextResponse.json({ error: 'User address is required' }, { status: 400 }) + } + + const user = await userService.getUserByWalletAddress(userAddress.toLowerCase()) + if (!user) { + return NextResponse.json({ hasVoted: false }) + } + + const { data: vote } = await supabase + .from('playlist_votes') + .select('*') + .eq('user_id', user.id) + .eq('gallery_playlist_id', playlistId) + .single() + + return NextResponse.json({ + hasVoted: !!vote, + vote: vote || null + }) + + } catch (error: any) { + console.error('Error checking vote:', error) + return NextResponse.json( + { error: error.message || 'Failed to check vote' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/gallery/route.ts b/entropy/RAR/app/app/api/playlist-battle/gallery/route.ts new file mode 100644 index 0000000..fa088d2 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/gallery/route.ts @@ -0,0 +1,71 @@ +import { NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' + +export const dynamic = 'force-dynamic' + +export async function GET(request: Request) { + try { + const { searchParams } = new URL(request.url) + const userAddress = searchParams.get('userAddress') + + let query = supabase + .from('gallery_playlists') + .select(` + *, + user:users(username, wallet_address, reputation_level), + playlist_prompt:playlist_battle_prompts(*) + `) + .order('submitted_at', { ascending: false }) + + // Only filter by user if specifically requested + if (userAddress) { + const { data: user } = await supabase + .from('users') + .select('id') + .eq('wallet_address', userAddress.toLowerCase()) + .single() + + if (user) { + query = query.eq('user_id', user.id) + } + } + + const { data: galleryPlaylists, error } = await query + + if (error) { + throw error + } + + // Ensure all playlists have playlist_songs as array + const safePlaylists = (galleryPlaylists || []).map(playlist => ({ + ...playlist, + playlist_songs: Array.isArray(playlist.playlist_songs) ? playlist.playlist_songs : [] + })) + + // Group by playlist prompt + const groupedPlaylists = safePlaylists.reduce((acc: any, playlist) => { + const promptId = playlist.playlist_prompt_id + if (!acc[promptId]) { + acc[promptId] = { + prompt: playlist.playlist_prompt, + playlists: [] + } + } + acc[promptId].playlists.push(playlist) + return acc + }, {}) + + return NextResponse.json({ + success: true, + galleryPlaylists: groupedPlaylists || {}, + totalCount: safePlaylists.length + }) + + } catch (error: any) { + console.error('Error fetching gallery playlists:', error) + return NextResponse.json( + { error: error.message || 'Failed to fetch gallery playlists' }, + { status: 500 } + ) + } +} diff --git a/entropy/RAR/app/app/api/playlist-battle/initialize/route.ts b/entropy/RAR/app/app/api/playlist-battle/initialize/route.ts new file mode 100644 index 0000000..1475b44 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/initialize/route.ts @@ -0,0 +1,144 @@ +import { NextRequest, NextResponse } from 'next/server' +import { supabase } from '@/lib/supabase' +import { userService } from '@/services/userService' +import { songService } from '@/services/songService' + +export const dynamic = 'force-dynamic' + +export async function POST(request: NextRequest) { + try { + const { + playlistPromptId, + userAddress, + randomNumber, + coinFlipResult, + timestamp + } = await request.json() + + console.log('Initialize API called with:', { + playlistPromptId, + userAddress, + coinFlipResult, + hasRandomNumber: !!randomNumber + }) + + if (!userAddress) { + return NextResponse.json({ error: 'User address is required' }, { status: 400 }) + } + + if (!playlistPromptId) { + return NextResponse.json({ error: 'Playlist prompt ID is required' }, { status: 400 }) + } + + if (!randomNumber || coinFlipResult === undefined) { + return NextResponse.json({ error: 'Random data is required' }, { status: 400 }) + } + + // Verify the user exists in our database + const user = await userService.getUserByWalletAddress(userAddress.toLowerCase()) + + if (!user) { + console.error('User not found for address:', userAddress) + return NextResponse.json({ + error: 'User not found. Please ensure you are signed in.' + }, { status: 401 }) + } + + console.log('User found:', user.id, user.username) + + // Calculate initial seed count based on coin flip + const initialSeedCount = coinFlipResult ? 0 : 2 + console.log(`Coin flip result: ${coinFlipResult ? 'Heads' : 'Tails'} -> ${initialSeedCount} initial seeds`) + + // Get all songs for library generation + const allSongs = await songService.getSongs() + console.log(`Found ${allSongs.length} total songs`) + + if (allSongs.length === 0) { + return NextResponse.json({ + error: 'No songs available. Please upload some songs first.' + }, { status: 400 }) + } + + const librarySongs = generateLibrary(allSongs, randomNumber, 10) + console.log('Generated library:', librarySongs.map(s => s.title)) + + // Split songs between playlist and queue + const playlistSongs = librarySongs.slice(0, initialSeedCount) + const queueSongs = librarySongs.slice(initialSeedCount) + + console.log(`Distribution - Playlist: ${playlistSongs.length}, Queue: ${queueSongs.length}`) + + // Create battle instance in database + const { data: battleInstance, error: dbError } = await supabase + .from('playlist_battle_instances') + .insert({ + user_id: user.id, + playlist_prompt_id: playlistPromptId, + random_seed: randomNumber, + coin_flip_result: coinFlipResult, + initial_seed_count: initialSeedCount, + library_songs: librarySongs.map(song => song.id), + playlist_songs: playlistSongs.map(song => song.id), + queue_songs: queueSongs.map(song => song.id), + energy_units: 100 + }) + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + + if (dbError) { + console.error('Database error:', dbError) + throw dbError + } + + console.log('Battle instance created:', battleInstance.id) + + return NextResponse.json({ + success: true, + battleInstance + }) + + } catch (error: any) { + console.error('Error initializing playlist battle:', error) + return NextResponse.json( + { + error: error.message || 'Failed to initialize battle', + details: error.stack + }, + { status: 500 } + ) + } +} + +// Helper functions +function generateLibrary(allSongs: any[], seed: string, count: number): any[] { + if (allSongs.length <= count) return allSongs + const shuffled = seededShuffle([...allSongs], seed) + return shuffled.slice(0, count) +} + +function seededShuffle(array: any[], seed: string): any[] { + const shuffled = [...array] + const random = createSeededRandom(seed) + for (let i = shuffled.length - 1; i > 0; i--) { + const j = Math.floor(random() * (i + 1)); + [shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]] + } + return shuffled +} + +function createSeededRandom(seed: string): () => number { + let state = bytes32ToNumber(seed) + return () => { + state = (state * 1664525 + 1013904223) % 4294967296 + return state / 4294967296 + } +} + +function bytes32ToNumber(bytes32: string): number { + return parseInt(bytes32.slice(2, 10), 16) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/api/playlist-battle/prompts/route.ts b/entropy/RAR/app/app/api/playlist-battle/prompts/route.ts new file mode 100644 index 0000000..dc92e33 --- /dev/null +++ b/entropy/RAR/app/app/api/playlist-battle/prompts/route.ts @@ -0,0 +1,22 @@ +import { NextResponse } from 'next/server' +import { playlistBattleService } from '@/services/playlistBattleService' + +export const dynamic = 'force-dynamic' + +export async function GET() { + try { + const prompts = await playlistBattleService.getPlaylistBattlePrompts() + + return NextResponse.json({ + success: true, + prompts + }) + + } catch (error: any) { + console.error('Error fetching playlist battle prompts:', error) + return NextResponse.json( + { error: error.message || 'Failed to fetch prompts' }, + { status: 500 } + ) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/app/favicon.ico b/entropy/RAR/app/app/favicon.ico new file mode 100644 index 0000000..718d6fe Binary files /dev/null and b/entropy/RAR/app/app/favicon.ico differ diff --git a/entropy/RAR/app/app/globals.css b/entropy/RAR/app/app/globals.css new file mode 100644 index 0000000..f15a3be --- /dev/null +++ b/entropy/RAR/app/app/globals.css @@ -0,0 +1,149 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + :root { + --background: 0 0% 100%; + --foreground: 222.2 84% 4.9%; + + --card: 0 0% 100%; + --card-foreground: 222.2 84% 4.9%; + + --popover: 0 0% 100%; + --popover-foreground: 222.2 84% 4.9%; + + --primary: 222.2 47.4% 11.2%; + --primary-foreground: 210 40% 98%; + + --secondary: 210 40% 96.1%; + --secondary-foreground: 222.2 47.4% 11.2%; + + --muted: 210 40% 96.1%; + --muted-foreground: 215.4 16.3% 46.9%; + + --accent: 210 40% 96.1%; + --accent-foreground: 222.2 47.4% 11.2%; + + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 210 40% 98%; + + --border: 214.3 31.8% 91.4%; + --input: 214.3 31.8% 91.4%; + --ring: 222.2 84% 4.9%; + + --radius: 0.5rem; + } + + .dark { + --background: 222.2 84% 4.9%; + --foreground: 210 40% 98%; + + --card: 222.2 84% 4.9%; + --card-foreground: 210 40% 98%; + + --popover: 222.2 84% 4.9%; + --popover-foreground: 210 40% 98%; + + --primary: 210 40% 98%; + --primary-foreground: 222.2 47.4% 11.2%; + + --secondary: 217.2 32.6% 17.5%; + --secondary-foreground: 210 40% 98%; + + --muted: 217.2 32.6% 17.5%; + --muted-foreground: 215 20.2% 65.1%; + + --accent: 217.2 32.6% 17.5%; + --accent-foreground: 210 40% 98%; + + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 210 40% 98%; + + --border: 217.2 32.6% 17.5%; + --input: 217.2 32.6% 17.5%; + --ring: 212.7 26.8% 83.9%; + } +} + +@layer base { + * { + @apply border-border; + } + body { + @apply bg-background text-foreground; + } +} + +/* Custom scrollbar for Spotify style */ +::-webkit-scrollbar { + width: 12px; +} + +::-webkit-scrollbar-track { + background: #121212; +} + +::-webkit-scrollbar-thumb { + background: #535353; + border-radius: 6px; +} + +::-webkit-scrollbar-thumb:hover { + background: #727272; +} + +/* Flip card animations */ +.perspective-1000 { + perspective: 1000px; +} + +.backface-hidden { + backface-visibility: hidden; +} + +.rotate-y-180 { + transform: rotateY(180deg); +} + +.rotate-y-0 { + transform: rotateY(0deg); +} + +.main-content-with-player { + height: calc(100vh - 80px); /* Adjust based on your player bar height */ + overflow-y: auto; +} + +.sidebar-with-player { + height: calc(100vh - 80px); /* Adjust based on your player bar height */ +} + +/* Ensure proper flex behavior for scrolling */ +.flex-scroll-container { + flex: 1; + min-height: 0; /* Crucial for flex children to scroll properly */ + overflow-y: auto; +} + +.perspective-1000 { + perspective: 1000px; +} + +.backface-hidden { + backface-visibility: hidden; + -webkit-backface-visibility: hidden; +} + +.rotate-y-180 { + transform: rotateY(180deg); +} + +.rotate-y-0 { + transform: rotateY(0deg); +} + +/* Smooth transitions for 3D transforms */ +.transform-style-preserve-3d { + transform-style: preserve-3d; +} diff --git a/entropy/RAR/app/app/layout.tsx b/entropy/RAR/app/app/layout.tsx new file mode 100644 index 0000000..ee72533 --- /dev/null +++ b/entropy/RAR/app/app/layout.tsx @@ -0,0 +1,44 @@ +'use client' + +import { useState, useEffect } from 'react' +import AppProvider from "@/providers/app-provider" +import type { Metadata } from "next" +import { Inter } from "next/font/google" +import "./globals.css" +import { Sidebar } from "@/components/layout/Sidebar" +import { TopBar } from "@/components/layout/TopBar" +import { PlayerBar } from "@/components/layout/PlayerBar" + +const inter = Inter({ subsets: ["latin"] }) + +const metadata: Metadata = { + title: "RAR - Random Algotithm Radio", + description: "Discover, curate, and create with music", +} + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode +}>) { + const [showUpload, setShowUpload] = useState(false) + + return ( + + + +
+ setShowUpload(true)} /> +
+ +
+ {children} +
+
+ +
+
+ + + ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/LoadingState.tsx b/entropy/RAR/app/app/playlist-battle/[id]/LoadingState.tsx new file mode 100644 index 0000000..8df3dbf --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/LoadingState.tsx @@ -0,0 +1,31 @@ +export const LoadingState = () => { + return ( +
+
+
+
+ {[1, 2, 3, 4, 5].map(i => ( +
+ ))} +
+
+
+
+
+
+
+
+
+
+
+
+
+ {[1, 2, 3].map(i => ( +
+ ))} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/RearrangeModal.tsx b/entropy/RAR/app/app/playlist-battle/[id]/RearrangeModal.tsx new file mode 100644 index 0000000..fec2620 --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/RearrangeModal.tsx @@ -0,0 +1,187 @@ +'use client' + +import { useState, useEffect } from 'react' +import { GripVertical, X, Save, RotateCcw, Play } from 'lucide-react' +import { Song } from '@/app/playlist-battle/[id]/types/playlist-battle' + +interface RearrangeModalProps { + isOpen: boolean + songs: Song[] + onClose: () => void + onSave: (reorderedSongIds: string[]) => void +} + +export const RearrangeModal = ({ + isOpen, + songs, + onClose, + onSave +}: RearrangeModalProps) => { + const [reorderedSongs, setReorderedSongs] = useState(songs) + const [draggedIndex, setDraggedIndex] = useState(null) + const [dragOverIndex, setDragOverIndex] = useState(null) + + useEffect(() => { + setReorderedSongs(songs) + }, [songs]) + + const handleDragStart = (index: number) => { + setDraggedIndex(index) + } + + const handleDragOver = (e: React.DragEvent, index: number) => { + e.preventDefault() + setDragOverIndex(index) + } + + const handleDrop = (e: React.DragEvent, dropIndex: number) => { + e.preventDefault() + + if (draggedIndex === null) return + + const newSongs = [...reorderedSongs] + const [draggedSong] = newSongs.splice(draggedIndex, 1) + newSongs.splice(dropIndex, 0, draggedSong) + + setReorderedSongs(newSongs) + setDraggedIndex(null) + setDragOverIndex(null) + } + + const handleDragEnd = () => { + setDraggedIndex(null) + setDragOverIndex(null) + } + + const handleReset = () => { + setReorderedSongs(songs) + } + + const handleSave = () => { + const reorderedIds = reorderedSongs.map(song => song.id) + onSave(reorderedIds) + } + + const formatDuration = (seconds: number) => { + if (!seconds) return '0:00' + const mins = Math.floor(seconds / 60) + const secs = seconds % 60 + return `${mins}:${secs.toString().padStart(2, '0')}` + } + + if (!isOpen) return null + + return ( +
+
+ {/* Header */} +
+
+

Rearrange Playlist

+

+ Drag and drop songs to reorder them +

+
+ +
+ + {/* Song List */} +
+ {reorderedSongs.length === 0 ? ( +
+

No songs in playlist

+
+ ) : ( +
+ {reorderedSongs.map((song, index) => ( +
handleDragStart(index)} + onDragOver={(e) => handleDragOver(e, index)} + onDrop={(e) => handleDrop(e, index)} + onDragEnd={handleDragEnd} + className={` + flex items-center gap-4 p-4 rounded-lg cursor-move + transition-all duration-200 + ${draggedIndex === index + ? 'opacity-50 bg-gray-700' + : 'bg-gray-800 hover:bg-gray-750' + } + ${dragOverIndex === index && draggedIndex !== index + ? 'border-2 border-green-500' + : 'border-2 border-transparent' + } + `} + > + {/* Drag Handle */} + + + {/* Position Number */} +
+ {index + 1} +
+ + {/* Song Info */} +
+
+
+ +
+
+

{song.title}

+

{song.artist}

+
+
+
+ + {/* Album */} +
+ {song.album || 'Single'} +
+ + {/* Duration */} +
+ {formatDuration(song.duration)} +
+
+ ))} +
+ )} +
+ + {/* Footer */} +
+ + +
+ + +
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/components/MainContent/PlaylistHeader.tsx b/entropy/RAR/app/app/playlist-battle/[id]/components/MainContent/PlaylistHeader.tsx new file mode 100644 index 0000000..5a3e6ad --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/components/MainContent/PlaylistHeader.tsx @@ -0,0 +1,93 @@ +import { ListMusic, Music, Battery, BatteryCharging, BatteryLow } from 'lucide-react' +import { PlaylistPrompt } from '@/app/playlist-battle/[id]/types/playlist-battle' + +interface PlaylistHeaderProps { + playlistPrompt: PlaylistPrompt + playlistCount: number + energyUnits: number +} + +export const PlaylistHeader = ({ + playlistPrompt, + playlistCount, + energyUnits +}: PlaylistHeaderProps) => { + const getEnergyColor = () => { + const percentage = (energyUnits / 100) * 100 + if (percentage > 60) return 'bg-green-500' + if (percentage > 30) return 'bg-yellow-500' + return 'bg-red-500' + } + + const getEnergyIcon = () => { + const percentage = (energyUnits / 100) * 100 + if (percentage > 60) return + if (percentage > 30) return + return + } + + const getEnergyTextColor = () => { + const percentage = (energyUnits / 100) * 100 + if (percentage > 60) return 'text-green-500' + if (percentage > 30) return 'text-yellow-500' + return 'text-red-500' + } + + return ( +
+ {/* Content - Takes up most of the space */} +
+ {/* Badge */} +
+ + Playlist Battle + +
+ + {/* Title and Description */} +

+ {playlistPrompt.name} +

+

+ {playlistPrompt.description} +

+ + {/* Playlist Count */} +
+ + {playlistCount} songs in playlist +
+
+ + {/* Energy Bar - Far Right */} +
+
+
+
+ {getEnergyIcon()} + Energy +
+ + {energyUnits}/100 + +
+ + {/* Energy Bar */} +
+
0 ? `0 0 6px ${getEnergyColor().replace('bg-', '')}` : 'none' + }} + >
+
+ + +
+
+ + +
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/components/MainContent/SongList.tsx b/entropy/RAR/app/app/playlist-battle/[id]/components/MainContent/SongList.tsx new file mode 100644 index 0000000..31fa7cf --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/components/MainContent/SongList.tsx @@ -0,0 +1,94 @@ +import { Play, Heart, MoreHorizontal, ListMusic } from 'lucide-react' +import { Song } from '@/app/playlist-battle/[id]/types/playlist-battle' + +interface SongsListProps { + songs: Song[] + onPlaySong: (song: Song) => void + onLikeSong: (songId: string) => void +} + +export const SongsList = ({ + songs, + onPlaySong, + onLikeSong +}: SongsListProps) => { + const formatDuration = (seconds: number) => { + if (!seconds) return '0:00' + const mins = Math.floor(seconds / 60) + const secs = seconds % 60 + return `${mins}:${secs.toString().padStart(2, '0')}` + } + + if (songs.length === 0) { + return ( +
+ +

No songs in playlist yet

+

Add songs from the queue to build your battle playlist

+
+ ) + } + + return ( +
+ {/* Header Row - Fixed */} +
+
#
+
TITLE
+
ALBUM
+ {/*
DURATION
*/} +
+ + {/* Songs List - Scrollable */} +
+ {songs.map((song, index) => ( +
onPlaySong(song)} + > +
+ {index + 1} + +
+
+
+ +
+
+

{song.title}

+

{song.artist}

+
+
+
+

{song.album || 'Single'}

+
+
+ + + {/*

{formatDuration(song.duration)}

*/} +
+
+ ))} +
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/EnergyBar.tsx b/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/EnergyBar.tsx new file mode 100644 index 0000000..f60fc54 --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/EnergyBar.tsx @@ -0,0 +1,66 @@ +import { Battery, BatteryCharging, BatteryLow } from 'lucide-react' + +interface EnergyBarProps { + energyUnits: number + maxEnergy?: number +} + +export const EnergyBar = ({ energyUnits, maxEnergy = 100 }: EnergyBarProps) => { + const energyPercentage = (energyUnits / maxEnergy) * 100 + + const getEnergyColor = () => { + if (energyPercentage > 60) return 'bg-green-500' + if (energyPercentage > 30) return 'bg-yellow-500' + return 'bg-red-500' + } + + const getEnergyIcon = () => { + if (energyPercentage > 60) return + if (energyPercentage > 30) return + return + } + + return ( +
+
+
+ {getEnergyIcon()} + Energy +
+ + {energyUnits}/{maxEnergy} + +
+ +
+
+
+ +
+
+ Costs: + {energyUnits >= 5 ? ( + ⚔ Add: 5 + ) : ( + āŒ Add: 5 + )} + {energyUnits >= 3 ? ( + ā© Pass: 3 + ) : ( + āŒ Pass: 3 + )} +
+ + +
+ Restore: + šŸ”„ Rearrange: +2 + āøļø Pause: +5 +
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/RevealCard.tsx b/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/RevealCard.tsx new file mode 100644 index 0000000..02c8970 --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/RevealCard.tsx @@ -0,0 +1,207 @@ +import { Play, Plus, Eye, EyeOff, SkipForward, RefreshCw, Pause } from 'lucide-react' +import { RevealResult } from '@/app/playlist-battle/[id]/types/playlist-battle' + +interface RevealCardProps { + isFlipping: boolean + isCardFlipped: boolean + lastRevealResult: RevealResult | null + canFlipMore: boolean + attemptsLeft: number + revealedCount: number + totalQueueSongs: number + hasPlaylistSongs: boolean + onFlip: () => void + onFlipBack: () => void + onAddToPlaylist: (songId: string) => void + onPassSong: (songId: string) => void + onRearrangePlaylist: () => void + onPause: () => void +} + +export const RevealCard = ({ + isFlipping, + isCardFlipped, + lastRevealResult, + canFlipMore, + attemptsLeft, + revealedCount, + totalQueueSongs, + hasPlaylistSongs, + onFlip, + onFlipBack, + onAddToPlaylist, + onPassSong, + onRearrangePlaylist, + onPause +}: RevealCardProps) => { + + const handleCardClick = () => { + if (isFlipping) return; + + if (isCardFlipped) { + onFlipBack(); + } else { + if (canFlipMore) { + onFlip(); + } + } + } + + return ( +
+ {/* Main Card Container */} +
+
+ {/* Front of Card - Flip to Reveal */} +
+
+ {/* Eye Icon */} +
+ +
+ + {/* Main Text */} +

Flip to Reveal

+

+ {canFlipMore + ? "Click to reveal a song from your queue" + : "No more songs to reveal"} +

+ + + + {/* Flip Instruction */} + {canFlipMore && ( +

+ Click card to flip and reveal +

+ )} +
+
+ + {/* Back of Card - Result Display */} +
+
+ {lastRevealResult?.revealed && lastRevealResult.song ? ( + <> + {/* Song Found State */} +
+

Song Found!

+

+ {lastRevealResult.song.title} +

+

+ {lastRevealResult.song.artist} +

+
+ + {/* Play Button */} +
+ +
+ + {/* Action Buttons */} +
+ + + +
+ + {/* Flip Back Instruction */} +

Click card to flip back

+ + ) : ( + <> + {/* No Song Found State */} +
+ +
+

No Song

+

Better luck next time!

+ + {/* Restorative Action Buttons */} +
+ + + +
+ + {!hasPlaylistSongs && ( +

+ Add songs to your playlist first to rearrange +

+ )} + + {/* Flip Back Instruction */} +

Click card to flip back

+ + )} +
+
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/SidebarContainer.tsx b/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/SidebarContainer.tsx new file mode 100644 index 0000000..3d6621e --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/components/Sidebar/SidebarContainer.tsx @@ -0,0 +1,126 @@ +import { ArrowLeft } from 'lucide-react' +import { BattleInstance, Song, RevealResult } from '@/app/playlist-battle/[id]/types/playlist-battle' +import { RevealCard } from './RevealCard' +import { Trophy } from 'lucide-react' + +interface SidebarContainerProps { + battleInstance: BattleInstance + revealedQueueSongs: Song[] + queueSongs: Song[] + playlistSongs: Song[] + isFlipping: boolean + isCardFlipped: boolean + lastRevealResult: RevealResult | null + canFlipMore: boolean + currentSeedIndex: number + onFlip: () => void + onFlipBack: () => void + onAddToPlaylist: (songId: string) => void + onBack: () => void + energyUnits: number + canAddSong: boolean + canPassSong: boolean + onPassSong: (songId: string) => void + hasPlaylistSongs: boolean + onRearrangePlaylist: () => void + onPause: () => void + onSubmitToGallery: () => void + isSubmitting: boolean + canSubmit: boolean +} + +export const SidebarContainer = ({ + battleInstance, + revealedQueueSongs, + queueSongs, + playlistSongs, + isFlipping, + isCardFlipped, + lastRevealResult, + canFlipMore, + currentSeedIndex, + onFlip, + onFlipBack, + onAddToPlaylist, + onBack, + energyUnits, + canAddSong, + canPassSong, + onPassSong, + hasPlaylistSongs, + onRearrangePlaylist, + onPause, + onSubmitToGallery, + isSubmitting, + canSubmit +}: SidebarContainerProps) => { + + return ( +
+ {/* Minimal Header - reduced padding */} +
+
+ +
+

Song Queue

+

Flip the card

+
+
+
+ + {/* Reveal Card Section - Takes majority of space */} +
+ +
+ + {/* Submit Section - Fixed at bottom */} +
+
+ + +
{/* Reduced margin */} +

+ {!canSubmit ? ( + "Add songs to submit" + ) : ( + "You can submit anytime you are done!" + )} +

+
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/page.tsx b/entropy/RAR/app/app/playlist-battle/[id]/page.tsx new file mode 100644 index 0000000..e41a647 --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/page.tsx @@ -0,0 +1,267 @@ +'use client' + +import { useParams, useRouter } from 'next/navigation' +import { useState, useEffect } from 'react' +import { useBattleInstance } from '@/hooks/useBattleInstance' +import { useRevealLogic } from '@/hooks/useRevealLogic' +import { useAudioPlayer } from '@/hooks/useAudioPlayer' +import { SidebarContainer } from '@/app/playlist-battle/[id]/components/Sidebar/SidebarContainer' +import { PlaylistHeader } from '@/app/playlist-battle/[id]/components/MainContent/PlaylistHeader' +import { SongsList } from '@/app/playlist-battle/[id]/components/MainContent/SongList' +import { RearrangeModal } from '@/app/playlist-battle/[id]/RearrangeModal' +import { useBattleEnergy } from '@/hooks/useBattleEnergy' +import { useAccount } from 'wagmi' +import { useUser } from '@/contexts/UserContext' + +interface PlaylistBattlePageProps { + params: { + id: string + } +} + +export default function PlaylistBattlePage({ params }: PlaylistBattlePageProps) { + const router = useRouter() + const { address } = useAccount() + const { user } = useUser() + + + const [isRearrangeModalOpen, setIsRearrangeModalOpen] = useState(false) + + const { + battleInstance, + playlistSongs, + queueSongs, + isLoading, + loadBattleInstance, + addSongToPlaylist, + passSong, + rearrangePlaylist, + pause + } = useBattleInstance(params.id) + + const { + revealedQueueSongs, + currentSeedIndex, + isFlipping, + isCardFlipped, + lastRevealResult, + shouldRevealSong, + getCurrentSeedChar, + getRevealStats, + canFlipMore, + flipCard, + flipCardBack, + removeSongFromRevealed, + resetRevealState + } = useRevealLogic(battleInstance?.random_seed, queueSongs) + + const { isPlaying, currentSong, playSong, likeSong } = useAudioPlayer() + const { energyUnits, consumeEnergy, canAddSong, canPassSong, isLoading: energyLoading } = useBattleEnergy(battleInstance) + const [isSubmitting, setIsSubmitting] = useState(false) + + const handleAddToPlaylist = async (songId: string) => { + if (!canAddSong) { + alert('Not enough energy to add song! Need 5 energy units.') + return + } + + const success = await addSongToPlaylist(songId) + if (success) { + + removeSongFromRevealed(songId) + console.log('Added song to playlist and consumed 5 energy') + } else { + alert('Failed to add song. Please try again.') + } + } + + const handlePassSong = async (songId: string) => { + if (!canPassSong) { + alert('Not enough energy to pass song! Need 3 energy units.') + return + } + + const success = await passSong(songId) + if (success) { + + removeSongFromRevealed(songId) + console.log('Passed song and consumed 3 energy') + } else { + alert('Failed to pass song. Please try again.') + } + } + + const handleOpenRearrangeModal = () => { + if (playlistSongs.length === 0) { + alert('Add songs to playlist first to rearrange') + return + } + setIsRearrangeModalOpen(true) + } + + const handleSaveRearrange = async (reorderedSongIds: string[]) => { + const success = await rearrangePlaylist(reorderedSongIds) + if (success) { + + setIsRearrangeModalOpen(false) + flipCardBack() + console.log('Playlist rearranged and gained 2 energy') + } else { + alert('Failed to rearrange playlist. Please try again.') + } + } + + const handlePause = async () => { + const success = await pause() + if (success) { + + flipCardBack() + console.log('Paused and gained 5 energy') + } else { + alert('Failed to pause. Please try again.') + } + } + + const handleLikeSong = (songId: string) => { + likeSong(songId, loadBattleInstance) + } + + const handlePlayAll = () => { + if (playlistSongs.length > 0) { + playSong(playlistSongs[0]) + } + } + + const handleSubmitToGallery = async () => { + if (!battleInstance || !address) return + + if (playlistSongs.length === 0) { + alert('Add at least one song to your playlist before submitting!') + return + } + + setIsSubmitting(true) + try { + const response = await fetch(`/api/playlist-battle/${battleInstance.id}/submit`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + userAddress: address, + playlistName: `My ${battleInstance.playlist_prompt.name}`, + playlistDescription: `Created in a playlist battle by ${user?.username}` + }) + }) + + const data = await response.json() + + if (data.success) { + if (data.isResubmission) { + alert('This playlist was already submitted to the gallery!') + router.push('/playlist-battle/gallery') + } else { + alert('Playlist submitted to gallery!') + router.push('/playlist-battle/gallery') + } + } else { + alert('Failed to submit: ' + data.error) + } + } catch (error) { + console.error('Error submitting playlist:', error) + alert('Error submitting playlist') + } finally { + setIsSubmitting(false) + } + } + + const canSubmit = playlistSongs.length > 0 + + if (!battleInstance) { + return ( +
+
+

Battle Not Found

+

The playlist battle you're looking for doesn't exist.

+ +
+
+ ) + } + + return ( + <> +
+ {/* Main Content - Fixed width and properly organized */} +
+ {/* Main content area - properly contained */} +
+ {/* Fixed Header Section */} +
+
+ +
+
+ + {/* Scrollable Songs List Section */} +
+
+
+ {/* Songs List - Only this section scrolls */} +
+ +
+
+
+
+
+ + {/* Fixed Sidebar */} + 0} + onFlip={flipCard} + onFlipBack={flipCardBack} + onAddToPlaylist={handleAddToPlaylist} + onPassSong={handlePassSong} + onRearrangePlaylist={handleOpenRearrangeModal} + onPause={handlePause} + onBack={() => router.push('/')} + onSubmitToGallery={handleSubmitToGallery} + isSubmitting={isSubmitting} + canSubmit={playlistSongs.length > 0} + /> +
+ + setIsRearrangeModalOpen(false)} + onSave={handleSaveRearrange} + /> +
+ + ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/[id]/types/playlist-battle.ts b/entropy/RAR/app/app/playlist-battle/[id]/types/playlist-battle.ts new file mode 100644 index 0000000..a34cb15 --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/[id]/types/playlist-battle.ts @@ -0,0 +1,54 @@ +export interface Song { + id: string + title: string + artist: string + album?: string + duration: number + file_path: string + likes: number + play_count: number +} + +export interface PlaylistPrompt { + name: string + description: string + color_gradient: string +} + +export interface BattleInstance { + id: string + user_id: string + playlist_prompt: PlaylistPrompt + random_seed: string + coin_flip_result: boolean + initial_seed_count: number + library_songs: string[] + playlist_songs: string[] + queue_songs: string[] + created_at: string +} + +export interface RevealResult { + revealed: boolean + song?: Song +} + +export interface RevealStats { + numbers: number + letters: number + total: number +} + +export interface BattleInstance { + id: string + user_id: string + playlist_prompt: PlaylistPrompt + random_seed: string + coin_flip_result: boolean + initial_seed_count: number + library_songs: string[] + playlist_songs: string[] + queue_songs: string[] + energy_units: number + created_at: string +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/gallery/[id]/Loading.tsx b/entropy/RAR/app/app/playlist-battle/gallery/[id]/Loading.tsx new file mode 100644 index 0000000..50a392d --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/gallery/[id]/Loading.tsx @@ -0,0 +1,32 @@ +export default function Loading() { + return ( +
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+ {[1, 2, 3, 4, 5].map(i => ( +
+ ))} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/gallery/[id]/page.tsx b/entropy/RAR/app/app/playlist-battle/gallery/[id]/page.tsx new file mode 100644 index 0000000..2c20724 --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/gallery/[id]/page.tsx @@ -0,0 +1,349 @@ +'use client' + +import { useParams, useRouter } from 'next/navigation' +import { useEffect, useState, useCallback } from 'react' +import { Play, Heart, Share, ArrowLeft, Users, Clock, Battery } from 'lucide-react' +import { songService } from '@/services/songService' +import { supabase } from '@/lib/supabase' +import { VoteButtons } from '@/components/playlist/VoteButton' +import { GalleryPlaylist } from '@/types/gallery' + +export default function GalleryPlaylistPage() { + const params = useParams() + const router = useRouter() + const playlistId = params.id as string + + const [playlist, setPlaylist] = useState(null) + const [songs, setSongs] = useState([]) + const [isLoading, setIsLoading] = useState(true) + const [isPlaying, setIsPlaying] = useState(false) + const [currentSong, setCurrentSong] = useState(null) + const [error, setError] = useState(null) + + const loadPlaylistData = useCallback(async () => { + try { + setIsLoading(true) + setError(null) + + // Fetch playlist data + const response = await fetch(`/api/playlist-battle/gallery/${playlistId}`) + const data = await response.json() + + if (data.success) { + setPlaylist(data.playlist) + + // Load all songs to map IDs to song objects + const allSongs = await songService.getSongs() + const songMap = new Map(allSongs.map(song => [song.id, song])) + + // Ensure playlist_songs exists and is an array + const playlistSongs = (data.playlist.playlist_songs || []) + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + setSongs(playlistSongs) + + // Increment play count when someone views the playlist + try { + await supabase.rpc('increment_gallery_play_count', { + playlist_id: playlistId + }) + } catch (error) { + console.error('Error incrementing play count:', error) + } + } else { + console.error('Failed to load playlist:', data.error) + setError('Failed to load playlist') + } + } catch (error) { + console.error('Error loading playlist:', error) + setError('Error loading playlist') + } finally { + setIsLoading(false) + } + }, [playlistId]) + + useEffect(() => { + loadPlaylistData() + }, [loadPlaylistData]) + + const handleLike = async () => { + if (!playlist) return + + try { + await supabase.rpc('increment_gallery_likes', { + playlist_id: playlistId + }) + // Refresh playlist data to show updated likes + loadPlaylistData() + } catch (error) { + console.error('Error liking playlist:', error) + } + } + + const playSong = async (song: any) => { + try { + const audioUrl = songService.getSongUrl(song.file_path) + const audio = new Audio(audioUrl) + + audio.onplay = () => { + setIsPlaying(true) + setCurrentSong(song) + } + + audio.onpause = () => { + setIsPlaying(false) + } + + audio.onended = () => { + setIsPlaying(false) + setCurrentSong(null) + } + + await audio.play() + await songService.incrementPlayCount(song.id) + } catch (err) { + console.error('Error playing song:', err) + alert('Error playing song. Please try again.') + } + } + + const playEntirePlaylist = () => { + if (songs.length === 0) return + playSong(songs[0]) + } + + const formatDuration = (seconds: number) => { + if (!seconds) return '0:00' + const mins = Math.floor(seconds / 60) + const secs = seconds % 60 + return `${mins}:${secs.toString().padStart(2, '0')}` + } + + const formatTimeAgo = (dateString: string) => { + const date = new Date(dateString) + const now = new Date() + const diffInHours = Math.floor((now.getTime() - date.getTime()) / (1000 * 60 * 60)) + + if (diffInHours < 1) return 'Just now' + if (diffInHours < 24) return `${diffInHours}h ago` + + const diffInDays = Math.floor(diffInHours / 24) + if (diffInDays < 7) return `${diffInDays}d ago` + + const diffInWeeks = Math.floor(diffInDays / 7) + return `${diffInWeeks}w ago` + } + + if (isLoading) { + return ( +
+
+
⟳
+

Loading playlist...

+
+
+ ) + } + + if (!playlist || error) { + return ( +
+
+

+ {error ? 'Error Loading Playlist' : 'Playlist Not Found'} +

+ {error &&

{error}

} + +
+
+ ) + } + + const getGradientClass = (colorGradient: string) => { + if (colorGradient && colorGradient.includes('from-')) { + return colorGradient + } + return 'from-purple-900 to-black' + } + + return ( +
+ {/* Main Content */} +
+ {/* Playlist Header */} +
+
+
+
šŸŽµ
+
{songs.length} songs
+
+
+
+

GALLERY PLAYLIST

+

{playlist.playlist_name}

+

{playlist.playlist_description}

+
+ Battle: {playlist.playlist_prompt.name} + • + {songs.length} songs + • + {playlist.likes} likes + • + {playlist.play_count} plays +
+ + {/* Add voting section */} +
+
+ { + // Update local state if needed + setPlaylist(prev => prev ? { ...prev, vote_count: newCount } : null) + }} + /> +
+ + {/* Display reputation level if available */} + {playlist.user.reputation_level > 0 && ( +
+
+ Level {playlist.user.reputation_level} +
+ )} +
+
+
+ + {/* Playlist Content */} +
+ {/* Playlist Controls */} +
+ + + +
+ + {/* Songs List */} +
+ {songs.length === 0 ? ( +
+
šŸŽµ
+

No songs in this playlist

+

This playlist was submitted without any songs

+
+ ) : ( + <> +
+
#
+
TITLE
+
ARTIST
+
DURATION
+
+ + {songs.map((song, index) => ( +
playSong(song)} + > +
+ {index + 1} + +
+
+
+ +
+
+

{song.title}

+

{song.album || 'Single'}

+
+
+
+

{song.artist}

+
+
+ +

{formatDuration(song.duration)}

+
+
+ ))} + + )} +
+
+
+ + {/* Player Bar (optional) */} + {currentSong && ( +
+
+
+
+ +
+
+

{currentSong.title}

+

{currentSong.artist}

+
+
+ +
+
+ +
+
+ 0:00 +
+
+
+ + {formatDuration(currentSong.duration)} + +
+
+ +
+
+
+ )} +
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist-battle/gallery/page.tsx b/entropy/RAR/app/app/playlist-battle/gallery/page.tsx new file mode 100644 index 0000000..956da4f --- /dev/null +++ b/entropy/RAR/app/app/playlist-battle/gallery/page.tsx @@ -0,0 +1,242 @@ +'use client' + +import { useEffect, useState } from 'react' +import { useUser } from '@/contexts/UserContext' +import { useAccount } from 'wagmi' +import { Play, Heart, Users, Music, Clock, Filter, Eye, ListMusic } from 'lucide-react' +import { songService } from '@/services/songService' +import { useRouter } from 'next/navigation' +import { GalleryPlaylist } from '@/types/gallery' + +export default function PlaylistBattleGallery() { + const [galleryData, setGalleryData] = useState>({}) + const [allSongs, setAllSongs] = useState([]) + const [isLoading, setIsLoading] = useState(true) + const [filter, setFilter] = useState<'all' | 'my'>('all') + const { user } = useUser() + const { address } = useAccount() + const router = useRouter() + + useEffect(() => { + const loadGalleryPlaylists = async () => { + try { + setIsLoading(true) + + let url = '/api/playlist-battle/gallery' + if (filter === 'my' && address) { + url += `?userAddress=${address}` + } + + const response = await fetch(url) + const data = await response.json() + + if (data.success) { + setGalleryData(data.galleryPlaylists) + } + } catch (error) { + console.error('Error loading gallery playlists:', error) + } finally { + setIsLoading(false) + } + } + + loadGalleryPlaylists() + loadAllSongs() + }, [filter, address]) + + const loadAllSongs = async () => { + try { + const songs = await songService.getSongs() + setAllSongs(songs) + } catch (error) { + console.error('Error loading songs:', error) + } + } + + const getSongMap = () => { + return new Map(allSongs.map(song => [song.id, song])) + } + + const formatTimeAgo = (dateString: string) => { + const date = new Date(dateString) + const now = new Date() + const diffInHours = Math.floor((now.getTime() - date.getTime()) / (1000 * 60 * 60)) + + if (diffInHours < 1) return 'Just now' + if (diffInHours < 24) return `${diffInHours}h ago` + + const diffInDays = Math.floor(diffInHours / 24) + if (diffInDays < 7) return `${diffInDays}d ago` + + const diffInWeeks = Math.floor(diffInDays / 7) + return `${diffInWeeks}w ago` + } + + // Get gradient from playlist prompt or use default based on index + const getCategoryGradient = (prompt: any, promptIndex: number) => { + if (prompt?.color_gradient && prompt.color_gradient.includes('from-')) { + return prompt.color_gradient; + } + + // Fallback gradients matching homepage daily mix style + const fallbackGradients = [ + 'from-purple-500 to-blue-500', + 'from-green-500 to-emerald-500', + 'from-orange-500 to-red-500', + 'from-blue-500 to-cyan-500', + 'from-pink-500 to-rose-500', + 'from-yellow-500 to-amber-500' + ]; + + return fallbackGradients[promptIndex % fallbackGradients.length]; + } + + const promptCount = Object.keys(galleryData).length + const totalPlaylists = Object.values(galleryData).reduce((total: number, group: any) => + total + (group.playlists?.length || 0), 0 + ) + + if (isLoading) { + return ( +
+
+
+ {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(i => ( +
+
+
+
+
+ ))} +
+
+
+ ) + } + + return ( +
+ {/* Main Content */} +
+ {/* Compact Header */} +
+
+
+

+ Playlist Gallery +

+

+ {totalPlaylists} community playlists +

+
+ +
+
+ + +
+
+
+
+ +
+ {promptCount === 0 ? ( +
+ +

+ {filter === 'my' ? 'No Playlists Yet' : 'No Playlists in Gallery'} +

+

+ {filter === 'my' + ? 'Complete a playlist battle to submit your first creation!' + : 'Be the first to submit a playlist to the gallery!'} +

+
+ ) : ( +
+ {Object.entries(galleryData).map(([promptId, group]: [string, any], promptIndex) => { + const categoryGradient = getCategoryGradient(group.prompt, promptIndex); + + return ( +
+ {/* Compact Section Header */} +
+
+
+
+

+ {group.prompt.name} +

+

{group.playlists.length} playlists

+
+
+
+ + {/* Playlist Grid - Using homepage daily mix styling */} +
+ {group.playlists.map((playlist: GalleryPlaylist, index: number) => { + const songMap = getSongMap() + const playlistSongs = playlist.playlist_songs + .map(songId => songMap.get(songId)) + .filter(Boolean) + + return ( +
router.push(`/playlist-battle/gallery/${playlist.id}`)} + > + {/* Card Image/Color Area - Using category gradient */} +
+ +
+ + {/* Card Content */} +
+

+ {playlist.playlist_name} +

+

+ by {playlist.user.username} +

+ + {/* Additional Info */} +
+ {playlistSongs.length} songs + {formatTimeAgo(playlist.submitted_at)} +
+
+
+ ) + })} +
+
+ ) + })} +
+ )} +
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist/[id]/PlaylistPageClient.tsx b/entropy/RAR/app/app/playlist/[id]/PlaylistPageClient.tsx new file mode 100644 index 0000000..b964712 --- /dev/null +++ b/entropy/RAR/app/app/playlist/[id]/PlaylistPageClient.tsx @@ -0,0 +1,124 @@ +'use client' + +import { Card } from "@/components/ui/card" +import { Wallet } from "@/components/wagmi/components/wallet" +import Link from "next/link" +import { Play, Shuffle, Heart, MoreHorizontal, ArrowLeft } from "lucide-react" +import { songService } from '@/services/songService' +import { useAudioPlayer } from '@/contexts/AudioPlayerContext' + +interface PlaylistClientProps { + playlist: any // Replace with proper type +} + +export default function PlaylistClient({ playlist }: PlaylistClientProps) { + + const { playSong, setPlaylist } = useAudioPlayer() + + const playEntirePlaylist = () => { + if (!playlist || playlist.songs.length === 0) return + + const firstSong = playlist.songs[0] + const audioUrl = songService.getSongUrl(firstSong.file_path) + const audio = new Audio(audioUrl) + audio.play().catch(console.error) + } + + const handlePlaySong = (song: any) => { + setPlaylist(playlist.songs) // Set playlist context + playSong(song) + } + + + if (!playlist) { + return ( +
+
+

Playlist Not Found

+ + ← Back to Home + +
+
+ ) + } + + return ( +
+ {/* Main Content */} +
+ {/* Playlist Header */} +
+
+
+

PLAYLIST

+

{playlist.name}

+

{playlist.description}

+
+ RAR + • + {playlist.songs.length} songs +
+
+
+ + {/* Playlist Content */} +
+ {/* Playlist Controls */} +
+ + + +
+ + {/* Songs List */} +
+
+
#
+
TITLE
+
ARTIST
+
DURATION
+
+ + {playlist.songs.map((song: any, index: number) => ( +
handlePlaySong(song)} + > +
+ {index + 1} + +
+
+
+
+

{song.title}

+
+
+
+

{song.artist}

+
+
+ +

3:45

+
+
+ ))} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist/[id]/loading.tsx b/entropy/RAR/app/app/playlist/[id]/loading.tsx new file mode 100644 index 0000000..60b4d93 --- /dev/null +++ b/entropy/RAR/app/app/playlist/[id]/loading.tsx @@ -0,0 +1,20 @@ +export default function Loading() { + return ( +
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist/[id]/page.tsx b/entropy/RAR/app/app/playlist/[id]/page.tsx new file mode 100644 index 0000000..aef5079 --- /dev/null +++ b/entropy/RAR/app/app/playlist/[id]/page.tsx @@ -0,0 +1,14 @@ +import PlaylistClient from './PlaylistPageClient' +import { getPlaylistData } from './playlist-data' + +interface PlaylistPageProps { + params: { + id: string + } +} + +export default async function PlaylistPage({ params }: PlaylistPageProps) { + const playlist = await getPlaylistData(params.id) + + return +} \ No newline at end of file diff --git a/entropy/RAR/app/app/playlist/[id]/playlist-data.ts b/entropy/RAR/app/app/playlist/[id]/playlist-data.ts new file mode 100644 index 0000000..9de2efd --- /dev/null +++ b/entropy/RAR/app/app/playlist/[id]/playlist-data.ts @@ -0,0 +1,42 @@ +import { supabase } from '@/lib/supabase' +import { songService } from '@/services/songService' + +export async function getPlaylistData(playlistId: string) { + try { + const today = new Date().toISOString().split('T')[0] + + const { data: dailyPlaylist, error } = await supabase + .from('daily_playlists') + .select(` + *, + playlist_definition:playlist_definitions(*) + `) + .eq('id', playlistId) + .eq('day', today) + .single() + + if (error || !dailyPlaylist) { + console.error('Error fetching playlist:', error) + return null + } + + const allSongs = await songService.getSongs() + const songMap = new Map(allSongs.map(song => [song.id, song])) + + const songs = dailyPlaylist.song_ids + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + return { + id: dailyPlaylist.id, + name: dailyPlaylist.playlist_definition.name, + description: dailyPlaylist.playlist_definition.description, + color: dailyPlaylist.playlist_definition.color_gradient, + songs: songs, + songCount: songs.length + } + } catch (error) { + console.error('Error in getPlaylistData:', error) + return null + } +} \ No newline at end of file diff --git a/entropy/RAR/app/bun.lockb b/entropy/RAR/app/bun.lockb new file mode 100755 index 0000000..3fa9745 Binary files /dev/null and b/entropy/RAR/app/bun.lockb differ diff --git a/entropy/RAR/app/components.json b/entropy/RAR/app/components.json new file mode 100644 index 0000000..15f2b02 --- /dev/null +++ b/entropy/RAR/app/components.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "default", + "rsc": true, + "tsx": true, + "tailwind": { + "config": "tailwind.config.ts", + "css": "app/globals.css", + "baseColor": "slate", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils" + } +} \ No newline at end of file diff --git a/entropy/RAR/app/components/layout/PlayerBar.tsx b/entropy/RAR/app/components/layout/PlayerBar.tsx new file mode 100644 index 0000000..0f29a8a --- /dev/null +++ b/entropy/RAR/app/components/layout/PlayerBar.tsx @@ -0,0 +1,204 @@ +'use client' + +import { Play, Pause, Heart, Shuffle, SkipBack, SkipForward, Repeat, Volume2, VolumeX } from "lucide-react" +import { useAudioPlayer } from '@/contexts/AudioPlayerContext' +import { useState, useEffect } from 'react' + +export function PlayerBar() { + const { + currentSong, + isPlaying, + currentTime, + duration, + volume, + playSong, + pauseSong, + resumeSong, + nextSong, + previousSong, + seekTo, + setVolume, + likeSong, + } = useAudioPlayer() + + const [isMuted, setIsMuted] = useState(false) + const [previousVolume, setPreviousVolume] = useState(volume) + + const formatTime = (seconds: number) => { + if (!seconds || isNaN(seconds)) return '0:00' + const mins = Math.floor(seconds / 60) + const secs = Math.floor(seconds % 60) + return `${mins}:${secs.toString().padStart(2, '0')}` + } + + const handlePlayPause = () => { + if (isPlaying) { + pauseSong() + } else if (currentSong) { + resumeSong() + } + } + + const handleSeek = (e: React.ChangeEvent) => { + const time = parseFloat(e.target.value) + seekTo(time) + } + + const handleVolumeChange = (e: React.ChangeEvent) => { + const vol = parseFloat(e.target.value) + setVolume(vol) + if (vol > 0) { + setIsMuted(false) + } + } + + const toggleMute = () => { + if (isMuted) { + setVolume(previousVolume) + setIsMuted(false) + } else { + setPreviousVolume(volume) + setVolume(0) + setIsMuted(true) + } + } + + const handleLike = async () => { + if (currentSong) { + await likeSong(currentSong.id) + } + } + + // Don't render if no song is loaded + if (!currentSong) { + return null + } + + const progressPercentage = duration > 0 ? (currentTime / duration) * 100 : 0 + + return ( +
+
+ {/* Current Song Info */} +
+
+ +
+
+

{currentSong.title}

+

{currentSong.artist}

+
+ +
+ + {/* Player Controls */} +
+
+ + + + + +
+ + {/* Progress Bar */} +
+ + {formatTime(currentTime)} + +
+ +
+ + {formatTime(duration)} + +
+
+ + {/* Volume Control */} +
+ +
+ +
+
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/components/layout/Sidebar.tsx b/entropy/RAR/app/components/layout/Sidebar.tsx new file mode 100644 index 0000000..3a77872 --- /dev/null +++ b/entropy/RAR/app/components/layout/Sidebar.tsx @@ -0,0 +1,50 @@ +'use client' + +import Link from "next/link" +import { Library, Upload } from "lucide-react" +import { useState } from "react" + +interface SidebarProps { + onUploadClick: () => void +} + +export function Sidebar({ onUploadClick }: SidebarProps) { + return ( +
+
+

RAR

+

Random Music Algorithm

+
+ + +
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/components/layout/TopBar.tsx b/entropy/RAR/app/components/layout/TopBar.tsx new file mode 100644 index 0000000..f88850a --- /dev/null +++ b/entropy/RAR/app/components/layout/TopBar.tsx @@ -0,0 +1,25 @@ +'use client' + +import { SkipBack, SkipForward } from "lucide-react" +import { Wallet } from "@/components/wagmi/components/wallet" + +interface TopBarProps { + children?: React.ReactNode +} + +export function TopBar({ children }: TopBarProps) { + return ( +
+
+ {children || ( +
+ + +
+ )} +
+ + +
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/components/media/recently-uploaded.tsx b/entropy/RAR/app/components/media/recently-uploaded.tsx new file mode 100644 index 0000000..17da0b5 --- /dev/null +++ b/entropy/RAR/app/components/media/recently-uploaded.tsx @@ -0,0 +1,191 @@ +'use client' + +import { useEffect, useState } from 'react' +import { Play, Heart, MoreHorizontal } from 'lucide-react' +import { songService } from '@/services/songService' +import { Song } from '@/types/song' +import { useAudioPlayer } from '@/contexts/AudioPlayerContext' + +interface RecentlyUploadedProps { + refreshTrigger?: number +} + +export function RecentlyUploaded({ refreshTrigger = 0 }: RecentlyUploadedProps) { + const [songs, setSongs] = useState([]) + const [isLoading, setIsLoading] = useState(true) + const [error, setError] = useState(null) + const { playSong, setPlaylist, likeSong } = useAudioPlayer() + + const fetchRecentSongs = async () => { + try { + setIsLoading(true) + setError(null) + const recentSongs = await songService.getSongs() + const sortedSongs = recentSongs + .sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime()) + .slice(0, 4) + setSongs(sortedSongs) + } catch (err) { + console.error('Error fetching recent songs:', err) + setError('Failed to load recent songs') + } finally { + setIsLoading(false) + } + } + + useEffect(() => { + fetchRecentSongs() + }, [refreshTrigger]) + + const formatDuration = (seconds: number) => { + if (!seconds) return '0:00' + const mins = Math.floor(seconds / 60) + const secs = seconds % 60 + return `${mins}:${secs.toString().padStart(2, '0')}` + } + + const formatFileSize = (bytes: number) => { + if (!bytes) return '0 MB' + return `${(bytes / 1024 / 1024).toFixed(1)} MB` + } + + const formatTimeAgo = (dateString: string) => { + const date = new Date(dateString) + const now = new Date() + const diffInHours = Math.floor((now.getTime() - date.getTime()) / (1000 * 60 * 60)) + + if (diffInHours < 1) { + return 'Just now' + } else if (diffInHours < 24) { + return `${diffInHours} hour${diffInHours > 1 ? 's' : ''} ago` + } else { + const diffInDays = Math.floor(diffInHours / 24) + return `${diffInDays} day${diffInDays > 1 ? 's' : ''} ago` + } + } + + useEffect(() => { + if (songs.length > 0) { + setPlaylist(songs) + } + }, [songs, setPlaylist]) + + const handlePlaySong = async (song: Song) => { + await playSong(song) + } + + const handleLikeSong = async (songId: string) => { + await likeSong(songId, fetchRecentSongs) + } + + if (isLoading) { + return ( +
+

Recently Uploaded

+
+ {[1, 2, 3, 4].map((i) => ( +
+
+
+
+
+
+
+
+
+
+
+
+
+ ))} +
+
+ ) + } + + if (error) { + return ( +
+

Recently Uploaded

+
+

{error}

+ +
+
+ ) + } + + if (songs.length === 0) { + return ( +
+

Recently Uploaded

+
+

No songs uploaded yet

+

Be the first to share your music!

+
+
+ ) + } + + return ( +
+
+

Recently Uploaded

+ +
+
+ {songs.map((song) => ( +
handlePlaySong(song)} + > +
+ +
+
+

{song.title}

+

{song.artist}

+
+
+

{song.album || 'Single'}

+
+
+

{formatTimeAgo(song.created_at)}

+
+
+

{formatFileSize(song.file_size)}

+
+
e.stopPropagation()} + > + + +
+
+ ))} +
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/components/media/upload-song.tsx b/entropy/RAR/app/components/media/upload-song.tsx new file mode 100644 index 0000000..e927ee9 --- /dev/null +++ b/entropy/RAR/app/components/media/upload-song.tsx @@ -0,0 +1,237 @@ +'use client' + +import { useState } from 'react' +import { Button } from '@/components/ui/button' +import { Card } from '@/components/ui/card' +import { Upload, X } from 'lucide-react' +import { songService } from '@/services/songService' +import { randomSeedService } from '@/services/randomSeedService' +import { useUser } from '@/contexts/UserContext' + +interface UploadSongProps { + onUploadSuccess?: () => void +} + +export function UploadSong({ onUploadSuccess }: UploadSongProps) { + const [isUploading, setIsUploading] = useState(false) + const [showForm, setShowForm] = useState(false) + const [formData, setFormData] = useState({ + title: '', + artist: '', + album: '', + }) + const [selectedFile, setSelectedFile] = useState(null) + + const { user } = useUser() + + const handleFileSelect = (event: React.ChangeEvent) => { + const file = event.target.files?.[0] + if (file) { + + const allowedTypes = ['audio/mpeg', 'audio/wav', 'audio/flac', 'audio/aac', 'audio/ogg'] + if (!allowedTypes.includes(file.type)) { + alert('Please select a valid audio file (MP3, WAV, FLAC, AAC, OGG)') + return + } + + // Validate file size (50MB max) + if (file.size > 50 * 1024 * 1024) { + alert('File size must be less than 50MB') + return + } + + setSelectedFile(file) + setShowForm(true) + + // Pre-fill title from filename + const fileName = file.name.replace(/\.[^/.]+$/, "") // Remove extension + setFormData(prev => ({ + ...prev, + title: prev.title || fileName, + artist: prev.artist || 'Unknown Artist' + })) + } + } + + const handleSubmit = async (event: React.FormEvent) => { + event.preventDefault() + + if (!selectedFile || !formData.title || !formData.artist) { + alert('Please fill in all required fields and select a file') + return + } + + setIsUploading(true) + try { + await songService.uploadSong({ + ...formData, + file: selectedFile + }, user?.id) + + // Reset form + setFormData({ title: '', artist: '', album: '' }) + setSelectedFile(null) + setShowForm(false) + + alert('Song uploaded successfully!') + onUploadSuccess?.() + } catch (error) { + console.error('Upload failed:', error) + alert('Upload failed. Please try again.') + } finally { + setIsUploading(false) + } +} + const handleUploadSuccess = async () => { + try { + // Check if we have playlists for today + const hasPlaylists = await randomSeedService.hasPlaylistsForToday() + + if (!hasPlaylists) { + console.log('First upload today - generating playlists...') + + // Step 1: Generate seed (if needed) + const seedResult = await fetch('/api/generate-daily-seed') + const seedData = await seedResult.json() + + if (seedData.success) { + console.log('Seed generated, now generating playlists...') + + // Step 2: Generate playlists with the seed + const playlistsResult = await fetch('/api/generate-playlists') + const playlistsData = await playlistsResult.json() + + if (playlistsData.success) { + console.log('šŸŽµ Daily playlists generated successfully!') + } else { + console.error('Failed to generate playlists:', playlistsData.error) + } + } else { + console.error('Failed to generate seed:', seedData.error) + } + } + + + onUploadSuccess?.() + + } catch (error) { + console.error('Error in upload success handler:', error) + } finally { + // Reset form + setFormData({ title: '', artist: '', album: '' }) + setSelectedFile(null) + setShowForm(false) + } +} + + if (!showForm) { + return ( + +
+ +

Upload Your Music

+

Share your songs with the community

+ + +
+
+ ) + } + + return ( + +
+

Upload Song

+ +
+ +
+
+ + setFormData(prev => ({ ...prev, title: e.target.value }))} + className="w-full px-3 py-2 bg-gray-700 border border-gray-600 rounded-md text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-green-500" + placeholder="Enter song title" + /> +
+ +
+ + setFormData(prev => ({ ...prev, artist: e.target.value }))} + className="w-full px-3 py-2 bg-gray-700 border border-gray-600 rounded-md text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-green-500" + placeholder="Enter artist name" + /> +
+ +
+ + setFormData(prev => ({ ...prev, album: e.target.value }))} + className="w-full px-3 py-2 bg-gray-700 border border-gray-600 rounded-md text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-green-500" + placeholder="Enter album name (optional)" + /> +
+ +
+ +
+ {selectedFile?.name} ({(selectedFile?.size || 0) / 1024 / 1024 | 0}MB) +
+
+ +
+ + +
+
+
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/components/playlist/VoteButton.tsx b/entropy/RAR/app/components/playlist/VoteButton.tsx new file mode 100644 index 0000000..10abcc1 --- /dev/null +++ b/entropy/RAR/app/components/playlist/VoteButton.tsx @@ -0,0 +1,107 @@ +'use client' + +import { useState, useEffect } from 'react' +import { ThumbsUp, ThumbsDown } from 'lucide-react' +import { usePlaylistVote } from '@/hooks/usePlaylistVote' + +interface VoteButtonsProps { + playlistId: string + currentVoteCount: number + playlistOwner: string + onVoteUpdate?: (newCount: number) => void +} + +export const VoteButtons = ({ + playlistId, + currentVoteCount, + playlistOwner, + onVoteUpdate +}: VoteButtonsProps) => { + const [voteCount, setVoteCount] = useState(currentVoteCount) + const [userVote, setUserVote] = useState<'upvote' | 'downvote' | null>(null) + const { voteOnPlaylist, checkUserVote, isLoading, error } = usePlaylistVote() + + useEffect(() => { + setVoteCount(currentVoteCount) + }, [currentVoteCount]) + + useEffect(() => { + const checkVote = async () => { + const voteData = await checkUserVote(playlistId) + if (voteData?.hasVoted) { + setUserVote(voteData.vote.vote_type) + } + } + + checkVote() + }, [playlistId, checkUserVote]) + + const handleVote = async (voteType: 'upvote' | 'downvote') => { + if (userVote === voteType) { + return + } + + const result = await voteOnPlaylist(playlistId, voteType) + + if (result) { + setUserVote(voteType) + const newCount = result.newVoteCount + setVoteCount(newCount) + onVoteUpdate?.(newCount) + } + } + + const getButtonClass = (type: 'upvote' | 'downvote') => { + const baseClass = "p-2 rounded-full transition-all duration-200 hover:scale-110 " + + if (userVote === type) { + return baseClass + (type === 'upvote' + ? "bg-green-500 text-white" + : "bg-red-500 text-white") + } + + return baseClass + "bg-gray-700 text-gray-400 hover:bg-gray-600" + } + + return ( +
+ {error && ( +
{error}
+ )} + +
+ + + 0 ? 'text-green-500' : + voteCount < 0 ? 'text-red-500' : + 'text-gray-400' + }`}> + {voteCount} + + + +
+ + {userVote && ( +
+ You {userVote === 'upvote' ? 'upvoted' : 'downvoted'} this playlist +
+ )} +
+ ) +} \ No newline at end of file diff --git a/entropy/RAR/app/components/ui/button.tsx b/entropy/RAR/app/components/ui/button.tsx new file mode 100644 index 0000000..0ba4277 --- /dev/null +++ b/entropy/RAR/app/components/ui/button.tsx @@ -0,0 +1,56 @@ +import * as React from "react" +import { Slot } from "@radix-ui/react-slot" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const buttonVariants = cva( + "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", + { + variants: { + variant: { + default: "bg-primary text-primary-foreground hover:bg-primary/90", + destructive: + "bg-destructive text-destructive-foreground hover:bg-destructive/90", + outline: + "border border-input bg-background hover:bg-accent hover:text-accent-foreground", + secondary: + "bg-secondary text-secondary-foreground hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline", + }, + size: { + default: "h-10 px-4 py-2", + sm: "h-9 rounded-md px-3", + lg: "h-11 rounded-md px-8", + icon: "h-10 w-10", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + } +) + +export interface ButtonProps + extends React.ButtonHTMLAttributes, + VariantProps { + asChild?: boolean +} + +const Button = React.forwardRef( + ({ className, variant, size, asChild = false, ...props }, ref) => { + const Comp = asChild ? Slot : "button" + return ( + + ) + } +) +Button.displayName = "Button" + +export { Button, buttonVariants } diff --git a/entropy/RAR/app/components/ui/card.tsx b/entropy/RAR/app/components/ui/card.tsx new file mode 100644 index 0000000..afa13ec --- /dev/null +++ b/entropy/RAR/app/components/ui/card.tsx @@ -0,0 +1,79 @@ +import * as React from "react" + +import { cn } from "@/lib/utils" + +const Card = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +Card.displayName = "Card" + +const CardHeader = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +CardHeader.displayName = "CardHeader" + +const CardTitle = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +

+)) +CardTitle.displayName = "CardTitle" + +const CardDescription = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +

+)) +CardDescription.displayName = "CardDescription" + +const CardContent = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +

+)) +CardContent.displayName = "CardContent" + +const CardFooter = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +CardFooter.displayName = "CardFooter" + +export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } diff --git a/entropy/RAR/app/components/ui/dialog.tsx b/entropy/RAR/app/components/ui/dialog.tsx new file mode 100644 index 0000000..01ff19c --- /dev/null +++ b/entropy/RAR/app/components/ui/dialog.tsx @@ -0,0 +1,122 @@ +"use client" + +import * as React from "react" +import * as DialogPrimitive from "@radix-ui/react-dialog" +import { X } from "lucide-react" + +import { cn } from "@/lib/utils" + +const Dialog = DialogPrimitive.Root + +const DialogTrigger = DialogPrimitive.Trigger + +const DialogPortal = DialogPrimitive.Portal + +const DialogClose = DialogPrimitive.Close + +const DialogOverlay = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +DialogOverlay.displayName = DialogPrimitive.Overlay.displayName + +const DialogContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + + + {children} + + + Close + + + +)) +DialogContent.displayName = DialogPrimitive.Content.displayName + +const DialogHeader = ({ + className, + ...props +}: React.HTMLAttributes) => ( +
+) +DialogHeader.displayName = "DialogHeader" + +const DialogFooter = ({ + className, + ...props +}: React.HTMLAttributes) => ( +
+) +DialogFooter.displayName = "DialogFooter" + +const DialogTitle = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +DialogTitle.displayName = DialogPrimitive.Title.displayName + +const DialogDescription = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +DialogDescription.displayName = DialogPrimitive.Description.displayName + +export { + Dialog, + DialogPortal, + DialogOverlay, + DialogClose, + DialogTrigger, + DialogContent, + DialogHeader, + DialogFooter, + DialogTitle, + DialogDescription, +} diff --git a/entropy/RAR/app/components/ui/dropdown-menu.tsx b/entropy/RAR/app/components/ui/dropdown-menu.tsx new file mode 100644 index 0000000..f69a0d6 --- /dev/null +++ b/entropy/RAR/app/components/ui/dropdown-menu.tsx @@ -0,0 +1,200 @@ +"use client" + +import * as React from "react" +import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu" +import { Check, ChevronRight, Circle } from "lucide-react" + +import { cn } from "@/lib/utils" + +const DropdownMenu = DropdownMenuPrimitive.Root + +const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger + +const DropdownMenuGroup = DropdownMenuPrimitive.Group + +const DropdownMenuPortal = DropdownMenuPrimitive.Portal + +const DropdownMenuSub = DropdownMenuPrimitive.Sub + +const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup + +const DropdownMenuSubTrigger = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & { + inset?: boolean + } +>(({ className, inset, children, ...props }, ref) => ( + + {children} + + +)) +DropdownMenuSubTrigger.displayName = + DropdownMenuPrimitive.SubTrigger.displayName + +const DropdownMenuSubContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +DropdownMenuSubContent.displayName = + DropdownMenuPrimitive.SubContent.displayName + +const DropdownMenuContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, sideOffset = 4, ...props }, ref) => ( + + + +)) +DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName + +const DropdownMenuItem = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & { + inset?: boolean + } +>(({ className, inset, ...props }, ref) => ( + +)) +DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName + +const DropdownMenuCheckboxItem = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, checked, ...props }, ref) => ( + + + + + + + {children} + +)) +DropdownMenuCheckboxItem.displayName = + DropdownMenuPrimitive.CheckboxItem.displayName + +const DropdownMenuRadioItem = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + + + + + + {children} + +)) +DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName + +const DropdownMenuLabel = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & { + inset?: boolean + } +>(({ className, inset, ...props }, ref) => ( + +)) +DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName + +const DropdownMenuSeparator = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName + +const DropdownMenuShortcut = ({ + className, + ...props +}: React.HTMLAttributes) => { + return ( + + ) +} +DropdownMenuShortcut.displayName = "DropdownMenuShortcut" + +export { + DropdownMenu, + DropdownMenuTrigger, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuCheckboxItem, + DropdownMenuRadioItem, + DropdownMenuLabel, + DropdownMenuSeparator, + DropdownMenuShortcut, + DropdownMenuGroup, + DropdownMenuPortal, + DropdownMenuSub, + DropdownMenuSubContent, + DropdownMenuSubTrigger, + DropdownMenuRadioGroup, +} diff --git a/entropy/RAR/app/components/ui/select.tsx b/entropy/RAR/app/components/ui/select.tsx new file mode 100644 index 0000000..cbe5a36 --- /dev/null +++ b/entropy/RAR/app/components/ui/select.tsx @@ -0,0 +1,160 @@ +"use client" + +import * as React from "react" +import * as SelectPrimitive from "@radix-ui/react-select" +import { Check, ChevronDown, ChevronUp } from "lucide-react" + +import { cn } from "@/lib/utils" + +const Select = SelectPrimitive.Root + +const SelectGroup = SelectPrimitive.Group + +const SelectValue = SelectPrimitive.Value + +const SelectTrigger = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + span]:line-clamp-1", + className + )} + {...props} + > + {children} + + + + +)) +SelectTrigger.displayName = SelectPrimitive.Trigger.displayName + +const SelectScrollUpButton = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + +)) +SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName + +const SelectScrollDownButton = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + +)) +SelectScrollDownButton.displayName = + SelectPrimitive.ScrollDownButton.displayName + +const SelectContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, position = "popper", ...props }, ref) => ( + + + + + {children} + + + + +)) +SelectContent.displayName = SelectPrimitive.Content.displayName + +const SelectLabel = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +SelectLabel.displayName = SelectPrimitive.Label.displayName + +const SelectItem = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + + + + + + + {children} + +)) +SelectItem.displayName = SelectPrimitive.Item.displayName + +const SelectSeparator = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +SelectSeparator.displayName = SelectPrimitive.Separator.displayName + +export { + Select, + SelectGroup, + SelectValue, + SelectTrigger, + SelectContent, + SelectLabel, + SelectItem, + SelectSeparator, + SelectScrollUpButton, + SelectScrollDownButton, +} diff --git a/entropy/RAR/app/components/ui/tabs.tsx b/entropy/RAR/app/components/ui/tabs.tsx new file mode 100644 index 0000000..26eb109 --- /dev/null +++ b/entropy/RAR/app/components/ui/tabs.tsx @@ -0,0 +1,55 @@ +"use client" + +import * as React from "react" +import * as TabsPrimitive from "@radix-ui/react-tabs" + +import { cn } from "@/lib/utils" + +const Tabs = TabsPrimitive.Root + +const TabsList = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +TabsList.displayName = TabsPrimitive.List.displayName + +const TabsTrigger = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +TabsTrigger.displayName = TabsPrimitive.Trigger.displayName + +const TabsContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +TabsContent.displayName = TabsPrimitive.Content.displayName + +export { Tabs, TabsList, TabsTrigger, TabsContent } diff --git a/entropy/RAR/app/components/wagmi/components/connect-wallet-dialog.tsx b/entropy/RAR/app/components/wagmi/components/connect-wallet-dialog.tsx new file mode 100644 index 0000000..0435285 --- /dev/null +++ b/entropy/RAR/app/components/wagmi/components/connect-wallet-dialog.tsx @@ -0,0 +1,22 @@ +import { Button } from "@/components/ui/button" +import { + Dialog, + DialogContent, + DialogHeader, + DialogTrigger, +} from "@/components/ui/dialog" +import { WalletOptions } from "./wallet-options" + +export function ConnectWalletDialog() { + return ( + + + + + + Connect a Wallet + + + + ) +} diff --git a/entropy/RAR/app/components/wagmi/components/wallet-option.tsx b/entropy/RAR/app/components/wagmi/components/wallet-option.tsx new file mode 100644 index 0000000..c753cdf --- /dev/null +++ b/entropy/RAR/app/components/wagmi/components/wallet-option.tsx @@ -0,0 +1,26 @@ +"use client" + +import { Button } from "@/components/ui/button" +import { useEffect, useState } from "react" +import { Connector } from "wagmi" +interface WalletOptionParams { + connector: Connector + onClick: () => void +} + +export const WalletOption = ({ connector, onClick }: WalletOptionParams) => { + const [ready, setReady] = useState(false) + + useEffect(() => { + ;(async () => { + const provider = await connector.getProvider() + setReady(!!provider) + })() + }, [connector]) + + return ( + + ) +} diff --git a/entropy/RAR/app/components/wagmi/components/wallet-options.tsx b/entropy/RAR/app/components/wagmi/components/wallet-options.tsx new file mode 100644 index 0000000..55b57cd --- /dev/null +++ b/entropy/RAR/app/components/wagmi/components/wallet-options.tsx @@ -0,0 +1,22 @@ +"use client" + +import { useConnect } from "wagmi" +import { WalletOption } from "./wallet-option" + +// Gets connectors available and defined in wagmi.config.ts currently using multiInjectedProviderDiscovery for discovery. +// Add wallet connect to the config for mobile +export const WalletOptions = () => { + const { connectors, connect } = useConnect() + + return ( +
+ {connectors.map((connector) => ( + connect({ connector })} + /> + ))} +
+ ) +} diff --git a/entropy/RAR/app/components/wagmi/components/wallet.tsx b/entropy/RAR/app/components/wagmi/components/wallet.tsx new file mode 100644 index 0000000..bf1161b --- /dev/null +++ b/entropy/RAR/app/components/wagmi/components/wallet.tsx @@ -0,0 +1,52 @@ +"use client" + +import { Button } from "@/components/ui/button" +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu" +import { useAccount, useDisconnect } from "wagmi" +import { shortenAddress } from "../utils/format-hex" +import { ConnectWalletDialog } from "./connect-wallet-dialog" +import { useUser } from '@/contexts/UserContext' + +export const Wallet = () => { + const { isConnected, address } = useAccount() + const { disconnect } = useDisconnect() + const { user, isLoading } = useUser() + + if (isConnected && address) { + const displayName = user?.username || shortenAddress(address) + + return ( +
+ + + + + e.preventDefault()} + className="mr-6 rounded-lg p-0" + > +
+

{user?.username}

+

{shortenAddress(address)}

+
+ disconnect()} + > + Disconnect Wallet + +
+
+
+ ) + } else { + return + } +} \ No newline at end of file diff --git a/entropy/RAR/app/components/wagmi/types/hex-string.tsx b/entropy/RAR/app/components/wagmi/types/hex-string.tsx new file mode 100644 index 0000000..e658391 --- /dev/null +++ b/entropy/RAR/app/components/wagmi/types/hex-string.tsx @@ -0,0 +1 @@ +export type HexString = `0x${string}` diff --git a/entropy/RAR/app/components/wagmi/utils/format-hex.tsx b/entropy/RAR/app/components/wagmi/utils/format-hex.tsx new file mode 100644 index 0000000..be97246 --- /dev/null +++ b/entropy/RAR/app/components/wagmi/utils/format-hex.tsx @@ -0,0 +1,12 @@ +import { HexString } from "../types/hex-string" + +export const shortenAddress = (hex: HexString): string => { + if (hex.length < 10) { + return hex + } + + const start = hex.slice(0, 5) + const end = hex.slice(-3) + + return `${start}...${end}` +} diff --git a/entropy/RAR/app/config.ts b/entropy/RAR/app/config.ts new file mode 100644 index 0000000..ad6b9f4 --- /dev/null +++ b/entropy/RAR/app/config.ts @@ -0,0 +1,11 @@ +import { createConfig, http } from "wagmi"; +import { arbitrumSepolia } from "wagmi/chains"; + +export const WagmiConfig = createConfig({ + chains: [arbitrumSepolia], + ssr: true, + transports: { + [arbitrumSepolia.id]: http(), + }, + multiInjectedProviderDiscovery: true, +}); diff --git a/entropy/RAR/app/contexts/AudioPlayerContext.tsx b/entropy/RAR/app/contexts/AudioPlayerContext.tsx new file mode 100644 index 0000000..04337aa --- /dev/null +++ b/entropy/RAR/app/contexts/AudioPlayerContext.tsx @@ -0,0 +1,210 @@ +'use client' + +import { createContext, useContext, useState, useRef, useEffect, ReactNode } from 'react' +import { Song } from '@/types/song' +import { songService } from '@/services/songService' + +interface AudioPlayerContextType { + currentSong: Song | null + isPlaying: boolean + currentTime: number + duration: number + volume: number + playSong: (song: Song) => Promise + pauseSong: () => void + resumeSong: () => void + nextSong: () => void + previousSong: () => void + seekTo: (time: number) => void + setVolume: (volume: number) => void + likeSong: (songId: string, onSuccess?: () => void) => Promise + playlist: Song[] + setPlaylist: (songs: Song[]) => void +} + +const AudioPlayerContext = createContext(undefined) + +export function AudioPlayerProvider({ children }: { children: ReactNode }) { + const [currentSong, setCurrentSong] = useState(null) + const [isPlaying, setIsPlaying] = useState(false) + const [currentTime, setCurrentTime] = useState(0) + const [duration, setDuration] = useState(0) + const [volume, setVolumeState] = useState(0.7) + const [playlist, setPlaylist] = useState([]) + + const audioRef = useRef(null) + const currentSongIndexRef = useRef(0) + + // Initialize audio element + useEffect(() => { + audioRef.current = new Audio() + audioRef.current.volume = volume + + const audio = audioRef.current + + // Event listeners + const handlePlay = () => setIsPlaying(true) + const handlePause = () => setIsPlaying(false) + const handleEnded = () => { + setIsPlaying(false) + setCurrentTime(0) + // Auto-play next song if available + if (playlist.length > 0) { + nextSong() + } + } + const handleTimeUpdate = () => { + setCurrentTime(audio.currentTime) + } + const handleLoadedMetadata = () => { + setDuration(audio.duration) + } + const handleError = (e: ErrorEvent) => { + console.error('Audio error:', e) + setIsPlaying(false) + } + + audio.addEventListener('play', handlePlay) + audio.addEventListener('pause', handlePause) + audio.addEventListener('ended', handleEnded) + audio.addEventListener('timeupdate', handleTimeUpdate) + audio.addEventListener('loadedmetadata', handleLoadedMetadata) + audio.addEventListener('error', handleError as any) + + return () => { + audio.removeEventListener('play', handlePlay) + audio.removeEventListener('pause', handlePause) + audio.removeEventListener('ended', handleEnded) + audio.removeEventListener('timeupdate', handleTimeUpdate) + audio.removeEventListener('loadedmetadata', handleLoadedMetadata) + audio.removeEventListener('error', handleError as any) + audio.pause() + audio.src = '' + } + }, [playlist]) + + const playSong = async (song: Song) => { + try { + if (!audioRef.current) return + + // Increment play count + await songService.incrementPlayCount(song.id) + + // Get audio URL + const audioUrl = songService.getSongUrl(song.file_path) + + // Update audio source + audioRef.current.src = audioUrl + audioRef.current.load() + + // Update current song + setCurrentSong(song) + setCurrentTime(0) + + // Find song index in playlist + const songIndex = playlist.findIndex(s => s.id === song.id) + if (songIndex !== -1) { + currentSongIndexRef.current = songIndex + } + + // Play audio + await audioRef.current.play() + } catch (err) { + console.error('Error playing song:', err) + } + } + + const pauseSong = () => { + if (audioRef.current && isPlaying) { + audioRef.current.pause() + } + } + + const resumeSong = () => { + if (audioRef.current && !isPlaying && currentSong) { + audioRef.current.play().catch(console.error) + } + } + + const nextSong = () => { + if (playlist.length === 0) return + + const nextIndex = (currentSongIndexRef.current + 1) % playlist.length + currentSongIndexRef.current = nextIndex + playSong(playlist[nextIndex]) + } + + const previousSong = () => { + if (playlist.length === 0) return + + // If more than 3 seconds into song, restart it + if (currentTime > 3) { + seekTo(0) + return + } + + const prevIndex = currentSongIndexRef.current - 1 < 0 + ? playlist.length - 1 + : currentSongIndexRef.current - 1 + currentSongIndexRef.current = prevIndex + playSong(playlist[prevIndex]) + } + + const seekTo = (time: number) => { + if (audioRef.current) { + audioRef.current.currentTime = time + setCurrentTime(time) + } + } + + const setVolume = (vol: number) => { + const clampedVolume = Math.max(0, Math.min(1, vol)) + setVolumeState(clampedVolume) + if (audioRef.current) { + audioRef.current.volume = clampedVolume + } + } + + const likeSong = async (songId: string, onSuccess?: () => void) => { + try { + await songService.likeSong(songId) + if (onSuccess) { + onSuccess() + } + } catch (err) { + console.error('Error liking song:', err) + } + } + + return ( + + {children} + + ) +} + +export const useAudioPlayer = () => { + const context = useContext(AudioPlayerContext) + if (context === undefined) { + throw new Error('useAudioPlayer must be used within an AudioPlayerProvider') + } + return context +} \ No newline at end of file diff --git a/entropy/RAR/app/contexts/UserContext.tsx b/entropy/RAR/app/contexts/UserContext.tsx new file mode 100644 index 0000000..4ca8937 --- /dev/null +++ b/entropy/RAR/app/contexts/UserContext.tsx @@ -0,0 +1,58 @@ +'use client' + +import { createContext, useContext, useEffect, useState } from 'react' +import { useAccount } from 'wagmi' +import { User } from '@/types/user' +import { userService } from '@/services/userService' + +interface UserContextType { + user: User | null + isLoading: boolean + refreshUser: () => void +} + +const UserContext = createContext({ + user: null, + isLoading: false, + refreshUser: () => {} +}) + +export function UserProvider({ children }: { children: React.ReactNode }) { + const [user, setUser] = useState(null) + const [isLoading, setIsLoading] = useState(false) + const { address, isConnected } = useAccount() + + const loadUser = async () => { + if (!address || !isConnected) { + setUser(null) + return + } + + setIsLoading(true) + try { + const userData = await userService.getOrCreateUser(address) + setUser(userData) + } catch (error) { + console.error('Error loading user:', error) + setUser(null) + } finally { + setIsLoading(false) + } + } + + useEffect(() => { + loadUser() + }, [address, isConnected]) + + const refreshUser = () => { + loadUser() + } + + return ( + + {children} + + ) +} + +export const useUser = () => useContext(UserContext) \ No newline at end of file diff --git a/entropy/RAR/app/contracts/CoinFlip.json b/entropy/RAR/app/contracts/CoinFlip.json new file mode 100644 index 0000000..edb58c3 --- /dev/null +++ b/entropy/RAR/app/contracts/CoinFlip.json @@ -0,0 +1,235 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "CoinFlip", + "sourceName": "contracts/CoinFlip.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_entropy", + "type": "address" + }, + { + "internalType": "address", + "name": "_entropyProvider", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "InsufficientFee", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "RandomRequest", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isHeads", + "type": "bool" + } + ], + "name": "RandomResult", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getRequestFee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "getUserResult", + "outputs": [ + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "isHeads", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "exists", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "hasUserResult", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "requestRandom", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "name": "requestToUser", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "userLatestResult", + "outputs": [ + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "isHeads", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "exists", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "bytecode": "0x60803461008d57601f61077f38819003918201601f19168301916001600160401b0383118484101761009257808492604094855283398101031261008d57610052602061004b836100a8565b92016100a8565b600080546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556040516106c290816100bd8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008d5756fe608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c9081630d37b537146105655750806337e61d6f146102315780633bba000b1461052857806352a5f1f8146102e75780639f392c2b146102a7578063a3333e59146102315763da9f755003610013578160031936011261022d576001600160a01b03825416928151936341025b3d60e11b855260209485818481855afa90811561022357906fffffffffffffffffffffffffffffffff9186916101f6575b5016918234106101cf579085918451809481937f7b43155d0000000000000000000000000000000000000000000000000000000083525af19081156101c3579082918491610175575b5067ffffffffffffffff169283815260028552203373ffffffffffffffffffffffffffffffffffffffff198254161790557f50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d18180518481523386820152a151908152f35b809250858092503d83116101bc575b61018e818361062c565b810103126101b8575167ffffffffffffffff811681036101b857819067ffffffffffffffff610111565b8280fd5b503d610184565b505051903d90823e3d90fd5b83517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b6102169150873d891161021c575b61020e818361062c565b810190610664565b386100c8565b503d610204565b84513d87823e3d90fd5b5080fd5b503461022d57602036600319011261022d5780916001600160a01b036102556105fa565b168152600360205220906102a382549160ff6001850154169360ff60036002830154920154169151948594859260609295949195608085019685521515602085015260408401521515910152565b0390f35b503461022d57602036600319011261022d576001600160a01b038160209367ffffffffffffffff6102d6610615565b168152600285522054169051908152f35b503461022d57606036600319011261022d57610301610615565b6001600160a01b039160243583811603610524576044358385541680156104e15733036104785767ffffffffffffffff80931693848652602090600282528387205416948515610436578351600184161595608082019081118282101761042357916103f086949260609896947f6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda939a98528481526003888c6103d48785018b81528a808701934285528f880195600187528152868b522095518655511515600186019060ff801983541691151516179055565b51600284015551151591019060ff801983541691151516179055565b88526002815282882073ffffffffffffffffffffffffffffffffffffffff1981541690558251948552840152820152a180f35b60248960418c634e487b7160e01b835252fd5b6064888386519162461bcd60e51b8352820152600f60248201527f496e76616c6964207265717565737400000000000000000000000000000000006044820152fd5b608486602084519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606487602085519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b503461022d57602036600319011261022d5760ff6003826020946001600160a01b036105526105fa565b1681528286522001541690519015158152f35b929390503461052457836003193601126105245782602091816001600160a01b038754166341025b3d60e11b82525afa9182156105f057602093926105bf575b506fffffffffffffffffffffffffffffffff905191168152f35b6fffffffffffffffffffffffffffffffff9192506105e990843d861161021c5761020e818361062c565b91906105a5565b81513d85823e3d90fd5b600435906001600160a01b038216820361061057565b600080fd5b6004359067ffffffffffffffff8216820361061057565b90601f8019910116810190811067ffffffffffffffff82111761064e57604052565b634e487b7160e01b600052604160045260246000fd5b9081602091031261061057516fffffffffffffffffffffffffffffffff81168103610610579056fea264697066735822122048e072da4fa8f2a219aa7973eff209bfd0c1c381c67926fd30361497ef53717064736f6c63430008180033", + "deployedBytecode": "0x608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c9081630d37b537146105655750806337e61d6f146102315780633bba000b1461052857806352a5f1f8146102e75780639f392c2b146102a7578063a3333e59146102315763da9f755003610013578160031936011261022d576001600160a01b03825416928151936341025b3d60e11b855260209485818481855afa90811561022357906fffffffffffffffffffffffffffffffff9186916101f6575b5016918234106101cf579085918451809481937f7b43155d0000000000000000000000000000000000000000000000000000000083525af19081156101c3579082918491610175575b5067ffffffffffffffff169283815260028552203373ffffffffffffffffffffffffffffffffffffffff198254161790557f50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d18180518481523386820152a151908152f35b809250858092503d83116101bc575b61018e818361062c565b810103126101b8575167ffffffffffffffff811681036101b857819067ffffffffffffffff610111565b8280fd5b503d610184565b505051903d90823e3d90fd5b83517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b6102169150873d891161021c575b61020e818361062c565b810190610664565b386100c8565b503d610204565b84513d87823e3d90fd5b5080fd5b503461022d57602036600319011261022d5780916001600160a01b036102556105fa565b168152600360205220906102a382549160ff6001850154169360ff60036002830154920154169151948594859260609295949195608085019685521515602085015260408401521515910152565b0390f35b503461022d57602036600319011261022d576001600160a01b038160209367ffffffffffffffff6102d6610615565b168152600285522054169051908152f35b503461022d57606036600319011261022d57610301610615565b6001600160a01b039160243583811603610524576044358385541680156104e15733036104785767ffffffffffffffff80931693848652602090600282528387205416948515610436578351600184161595608082019081118282101761042357916103f086949260609896947f6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda939a98528481526003888c6103d48785018b81528a808701934285528f880195600187528152868b522095518655511515600186019060ff801983541691151516179055565b51600284015551151591019060ff801983541691151516179055565b88526002815282882073ffffffffffffffffffffffffffffffffffffffff1981541690558251948552840152820152a180f35b60248960418c634e487b7160e01b835252fd5b6064888386519162461bcd60e51b8352820152600f60248201527f496e76616c6964207265717565737400000000000000000000000000000000006044820152fd5b608486602084519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606487602085519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b503461022d57602036600319011261022d5760ff6003826020946001600160a01b036105526105fa565b1681528286522001541690519015158152f35b929390503461052457836003193601126105245782602091816001600160a01b038754166341025b3d60e11b82525afa9182156105f057602093926105bf575b506fffffffffffffffffffffffffffffffff905191168152f35b6fffffffffffffffffffffffffffffffff9192506105e990843d861161021c5761020e818361062c565b91906105a5565b81513d85823e3d90fd5b600435906001600160a01b038216820361061057565b600080fd5b6004359067ffffffffffffffff8216820361061057565b90601f8019910116810190811067ffffffffffffffff82111761064e57604052565b634e487b7160e01b600052604160045260246000fd5b9081602091031261061057516fffffffffffffffffffffffffffffffff81168103610610579056fea264697066735822122048e072da4fa8f2a219aa7973eff209bfd0c1c381c67926fd30361497ef53717064736f6c63430008180033", + "linkReferences": {}, + "deployedLinkReferences": {} +} \ No newline at end of file diff --git a/entropy/RAR/app/contracts/PlaylistReputationNFT.json b/entropy/RAR/app/contracts/PlaylistReputationNFT.json new file mode 100644 index 0000000..e56e611 --- /dev/null +++ b/entropy/RAR/app/contracts/PlaylistReputationNFT.json @@ -0,0 +1,917 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "PlaylistReputationNFT", + "sourceName": "contracts/PlaylistReputationNFT.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_entropy", + "type": "address" + }, + { + "internalType": "address", + "name": "_provider", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "ApprovalCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "ApprovalQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "BalanceQueryForZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintERC2309QuantityExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "MintToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintZeroQuantity", + "type": "error" + }, + { + "inputs": [], + "name": "NotCompatibleWithSpotMints", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "OwnableInvalidOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "OwnableUnauthorizedAccount", + "type": "error" + }, + { + "inputs": [], + "name": "OwnerQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "OwnershipNotInitializedForExtraData", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialMintExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialUpToTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "SpotMintTokenIdTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "TokenAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "TransferCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "TransferFromIncorrectOwner", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToNonERC721ReceiverImplementer", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "URIQueryForNonexistentToken", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "fromTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "toTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "ConsecutiveTransfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "DecayTriggered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "playlistId", + "type": "string" + } + ], + "name": "PlaylistMinted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newReputation", + "type": "uint256" + } + ], + "name": "ReputationDecayed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newReputation", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "voter", + "type": "address" + } + ], + "name": "ReputationGrown", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "inputs": [], + "name": "DECAY_CHANCE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GROWTH_PER_VOTE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MAX_REPUTATION", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getPlaylistInfo", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + }, + { + "internalType": "uint256", + "name": "reputation", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "createdAt", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "internalType": "struct PlaylistReputationNFT.PlaylistInfo", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "hasVoted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + } + ], + "name": "mintPlaylist", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "name": "pendingDecayRequests", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "playlists", + "outputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + }, + { + "internalType": "uint256", + "name": "reputation", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "createdAt", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "tokensOfOwner", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "result", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "triggerDecay", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "voteForPlaylist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "bytecode": "0x6080604052346200021e57620026d960408138039182620000208162000259565b9384928339810103126200021e5762000039816200027f565b6200004860208093016200027f565b6200005262000294565b926a0506c61796c6973745265760ac1b8185015262000070620002a5565b640504c5245560dc1b82820152845190916001600160401b0382116200021857620000a882620000a2600254620002b6565b620002f3565b80601f83116001146200018357509080620000e292620000eb95969760009262000177575b50508160011b916000199060031b1c19161790565b600255620003a9565b6000805533156200015e576200012c6200014e926200010a3362000497565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516121f89081620004e18239f35b604051631e4fbdf760e01b815260006004820152602490fd5b015190503880620000cd565b6002600052601f198316969091907f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace926000905b898210620001ff57505090839291600194620000eb97989910620001e5575b505050811b01600255620003a9565b015160001960f88460031b161c19169055388080620001d6565b80600185968294968601518155019501930190620001b7565b62000223565b600080fd5b634e487b7160e01b600052604160045260246000fd5b60408051919082016001600160401b038111838210176200021857604052565b6040519190601f01601f191682016001600160401b038111838210176200021857604052565b51906001600160a01b03821682036200021e57565b6200029e62000239565b90600b8252565b620002af62000239565b9060058252565b90600182811c92168015620002e8575b6020831014620002d257565b634e487b7160e01b600052602260045260246000fd5b91607f1691620002c6565b601f811162000300575050565b60009060026000526020600020906020601f850160051c8301941062000343575b601f0160051c01915b8281106200033757505050565b8181556001016200032a565b909250829062000321565b601f81116200035b575050565b60009060036000526020600020906020601f850160051c830194106200039e575b601f0160051c01915b8281106200039257505050565b81815560010162000385565b90925082906200037c565b80519091906001600160401b0381116200021857620003d581620003cf600354620002b6565b6200034e565b602080601f83116001146200040f575081906200040a9394600092620001775750508160011b916000199060031b1c19161790565b600355565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b8782106200047e57505083600195961062000464575b505050811b01600355565b015160001960f88460031b161c1916905538808062000459565b8060018596829496860151815501950193019062000443565b600980546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a356fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d357806323b872dd146101ce57806341ac50b3146101c957806342545825146101c457806342842e0e146101bf5780634535f1c1146101ba57806352a5f1f8146101b55780636352211e146101b057806370a08231146101ab578063715018a6146101a657806377ee63f1146101a15780638462151c1461019c57806385de8b3c146101975780638da5cb5b1461019257806395d89b411461018d578063a22cb46514610188578063a7384a4c14610183578063a9182f3f1461017e578063b88d4fde14610179578063baccd1d214610174578063c87b56dd1461016f578063d213c0f21461016a578063e985e9c514610165578063ecc6362f146101605763f2fde38b1461015b57600080fd5b61154b565b6114c2565b611383565b611367565b6112e6565b6112a7565b61124c565b6110c8565b610ea9565b610ddd565b610d35565b610d0e565b610aeb565b610a0c565b6109b4565b61094b565b610920565b6108f1565b6107f8565b6107ca565b6107a7565b61075a565b610614565b610600565b6105a8565b6104c3565b61042a565b610341565b61021b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361021657565b600080fd5b346102165760203660031901126102165760207fffffffff0000000000000000000000000000000000000000000000000000000060043561025b816101ec565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156102c3575b8115610299575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861028e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610287565b919082519283825260005b848110610319575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016102f8565b90602061033e9281815201906102ed565b90565b346102165760008060031936011261042757604051908060025490610365826113e5565b808552916020916001918281169081156103fa57506001146103a2575b61039e86610392818803826111c8565b6040519182918261032d565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8385106103e7575050505081016020016103928261039e38610382565b80548686018401529382019381016103ca565b905086955061039e9693506020925061039294915060ff191682840152151560051b820101929338610382565b80fd5b346102165760203660031901126102165760043561044781611d50565b1561046d57600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361021657565b602435906001600160a01b038216820361021657565b6040366003190112610216576104d7610497565b6024356001600160a01b0391826104ed83611e4c565b1680330361054c575b6000938385526006602052604085209216918273ffffffffffffffffffffffffffffffffffffffff198254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff610578336040600020906001600160a01b0316600052602052604060002090565b54166104f6577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346102165760003660031901126102165760206000546001549003604051908152f35b6060906003190112610216576001600160a01b0390600435828116810361021657916024359081168103610216579060443590565b61061261060c366105cb565b916115f7565b005b346102165760203660031901126102165760043561063961063482611d50565b6117a4565b33600052600e60205261067361066e61066a61066384604060002090600052602052604060002090565b5460ff1690565b1590565b6117ef565b61069c610697600461068f84600052600c602052604060002090565b015460ff1690565b61183a565b7fa15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab2061074c60026106d684600052600c602052604060002090565b0160646106e3825461189b565b11610751576106f2815461189b565b81555b61073561072885610719336001600160a01b0316600052600e602052604060002090565b90600052602052604060002090565b805460ff19166001179055565b546040805191825233602083015290918291820190565b0390a2005b606481556106f5565b34610216576040366003190112610216576001600160a01b0361077b610497565b16600052600e6020526040600020602435600052602052602060ff604060002054166040519015158152f35b6106126107b3366105cb565b90604051926107c1846111ac565b60008452611cf4565b34610216576000366003190112610216576020604051601e8152f35b67ffffffffffffffff81160361021657565b3461021657606036600319011261021657600435610815816107e6565b61081d6104ad565b506001600160a01b03600a541680156108ad573303610843576106129060443590611ed6565b608460405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b346102165760203660031901126102165760206001600160a01b03610917600435611e4c565b16604051908152f35b3461021657602036600319011261021657602061094361093e610497565b6118ae565b604051908152f35b346102165760008060031936011261042757610965611ff8565b806001600160a01b0360095473ffffffffffffffffffffffffffffffffffffffff198116600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021657600036600319011261021657602060405160058152f35b602090602060408183019282815285518094520193019160005b8281106109f8575050505090565b8351855293810193928101926001016109ea565b3461021657602036600319011261021657610a25610497565b600080610a31836118ae565b91610a3b83611902565b93604091610a4c60405196876111c8565b848652601f19610a5b86611902565b01366020880137610a6a61191a565b506001600160a01b0391821692845b868603610a8e576040518061039e8a826109d0565b610a978161203c565b80830151610ae257516001600160a01b0316848116610ad9575b506001908585851614610ac5575b01610a79565b80610ad3838901988b611950565b52610abf565b92506001610ab1565b50600190610abf565b6020806003193601126102165760043590610b0861063483611d50565b610b24610697600461068f85600052600c602052604060002090565b610b466002610b3d84600052600c602052604060002090565b0154151561197a565b610b67610b5b600a546001600160a01b031690565b6001600160a01b031690565b90610b7a600b546001600160a01b031690565b6040517fb88c91480000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015290928282602481845afa908115610cdc576fffffffffffffffffffffffffffffffff610c3a928594600091610ce1575b501694610bee863410156119f9565b6040519586809481937f19cb825f0000000000000000000000000000000000000000000000000000000083526004830160206000919392936001600160a01b0360408201951681520152565b03925af18015610cdc577f6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e0739261074c92600092610caf575b505083610c938267ffffffffffffffff16600052600d602052604060002090565b5560405167ffffffffffffffff90911681529081906020820190565b610cce9250803d10610cd5575b610cc681836111c8565b810190611a44565b3880610c72565b503d610cbc565b6119ed565b610d019150853d8711610d07575b610cf981836111c8565b8101906119c5565b38610bdf565b503d610cef565b346102165760003660031901126102165760206001600160a01b0360095416604051908152f35b346102165760008060031936011261042757604051908060035490610d59826113e5565b808552916020916001918281169081156103fa5750600114610d855761039e86610392818803826111c8565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510610dca575050505081016020016103928261039e38610382565b8054868601840152938201938101610dad565b3461021657604036600319011261021657610df6610497565b6024358015159182820361021657610e4b6001600160a01b0392336000526007602052610e3a836040600020906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b9181601f840112156102165782359167ffffffffffffffff8311610216576020838186019501011161021657565b3461021657606036600319011261021657610ec2610497565b67ffffffffffffffff9060243582811161021657610ee4903690600401610e7b565b909260443590811161021657610efe903690600401610e7b565b600094916001600160a01b03865495610f2a81600160e11b906001600160a01b034260a01b9116171790565b610f3e886000526004602052604060002090565b55610f5c816001600160a01b03166000526005602052604060002090565b6801000000000000000181540190551695861561106f57600186810197879180805b61102a575b505050508594927fc3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2949261039e98611017935561100b610fc16111ea565b610fcc368888611215565b8152610fd9368585611215565b6020820152603260408201524260608201526001608082015261100689600052600c602052604060002090565b611b85565b60405194859485611ccd565b0390a26040519081529081906020820190565b1561105e575b83818484877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4610f7e565b809201918983036110305780610f83565b611d93565b6020815260a060806110aa611094855184602087015260c08601906102ed565b6020860151858203601f190160408701526102ed565b93604081015160608501526060810151828501520151151591015290565b346102165760203660031901126102165761039e6004356040906000608083516110f18161118b565b60608152606060208201528285820152826060820152015261111561063482611d50565b600052600c602052806000209060ff60048251936111328561118b565b61113b8161141f565b85526111496001820161141f565b602086015260028101548486015260038101546060860152015416151560808301525191829182611074565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff8211176111a757604052565b611175565b6020810190811067ffffffffffffffff8211176111a757604052565b90601f8019910116810190811067ffffffffffffffff8211176111a757604052565b604051906111f78261118b565b565b67ffffffffffffffff81116111a757601f01601f191660200190565b929192611221826111f9565b9161122f60405193846111c8565b829481845281830111610216578281602093846000960137010152565b608036600319011261021657611260610497565b6112686104ad565b6064359167ffffffffffffffff831161021657366023840112156102165761129d610612933690602481600401359101611215565b9160443591611cf4565b346102165760203660031901126102165767ffffffffffffffff6004356112cd816107e6565b16600052600d6020526020604060002054604051908152f35b3461021657602036600319011261021657611302600435611d50565b1561133d576000604051611315816111ac565b5261039e604051611325816111ac565b600081526040519182916020835260208301906102ed565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461021657600036600319011261021657602060405160648152f35b3461021657604036600319011261021657602060ff6113d96113a3610497565b6001600160a01b036113b36104ad565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b90600182811c92168015611415575b60208310146113ff57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113f4565b90604051918260008254611432816113e5565b908184526020946001916001811690816000146114a05750600114611461575b5050506111f7925003836111c8565b600090815285812095935091905b8183106114885750506111f79350820101388080611452565b8554888401850152948501948794509183019161146f565b925050506111f794925060ff191682840152151560051b820101388080611452565b3461021657602036600319011261021657600435600052600c60205261152760406000206114ef8161141f565b906114fc6001820161141f565b60028201549161153560ff60046003840154930154169260405196879660a0885260a08801906102ed565b9086820360208801526102ed565b9260408501526060840152151560808301520390f35b3461021657602036600319011261021657611564610497565b61156c611ff8565b6001600160a01b038091169081156115c6576009548273ffffffffffffffffffffffffffffffffffffffff19821617600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b91909161160382611e4c565b926001600160a01b0380921693848382160361179f57600084815260066020526040902080546116426001600160a01b03881633908114908314171590565b611756575b61174c575b5061166a856001600160a01b03166000526005602052604060002090565b805460001901905561168f826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b176116bf856000526004602052604060002090565b55600160e11b811615611702575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4156116fd57565b611e11565b6001840161171a816000526004602052604060002090565b5415611727575b506116cd565b600054811461172157611744906000526004602052604060002090565b553880611721565b600090553861164c565b61179561066a6106633361177d8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b1561164757611de7565b611dbd565b156117ab57565b606460405162461bcd60e51b815260206004820152601760248201527f506c61796c69737420646f6573206e6f742065786973740000000000000000006044820152fd5b156117f657565b606460405162461bcd60e51b815260206004820152601f60248201527f416c726561647920766f74656420666f72207468697320706c61796c697374006044820152fd5b1561184157565b606460405162461bcd60e51b815260206004820152601460248201527f506c61796c69737420697320696e6163746976650000000000000000000000006044820152fd5b634e487b7160e01b600052601160045260246000fd5b90600582018092116118a957565b611885565b6001600160a01b031680156118d857600052600560205267ffffffffffffffff6040600020541690565b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b67ffffffffffffffff81116111a75760051b60200190565b604051906080820182811067ffffffffffffffff8211176111a75760405260006060838281528260208201528260408201520152565b80518210156119645760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561198157565b606460405162461bcd60e51b815260206004820152601d60248201527f52657075746174696f6e20616c7265616479206174206d696e696d756d0000006044820152fd5b9081602091031261021657516fffffffffffffffffffffffffffffffff811681036102165790565b6040513d6000823e3d90fd5b15611a0057565b606460405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768206665657300000000000000000000000000000000006044820152fd5b90816020910312610216575161033e816107e6565b90601f8111611a6757505050565b6000916000526020600020906020601f850160051c83019410611aa5575b601f0160051c01915b828110611a9a57505050565b818155600101611a8e565b9092508290611a85565b919091825167ffffffffffffffff81116111a757611ad781611ad184546113e5565b84611a59565b602080601f8311600114611b1a57508190611b0b939495600092611b0f575b50508160011b916000199060031b1c19161790565b9055565b015190503880611af6565b90601f19831695611b3085600052602060002090565b926000905b888210611b6d57505083600195969710611b54575b505050811b019055565b015160001960f88460031b161c19169055388080611b4a565b80600185968294968601518155019501930190611b35565b919091825192835167ffffffffffffffff81116111a757611bb081611baa85546113e5565b85611a59565b602080601f8311600114611c305750600492611bee83611c1d946080946111f7999a600092611b0f5750508160011b916000199060031b1c19161790565b85555b611c02602082015160018701611aaf565b60408101516002860155606081015160038601550151151590565b91019060ff801983541691151516179055565b90601f19831696611c4686600052602060002090565b926000905b898210611c945750508360809360049693600193611c1d976111f79b9c10611c7b575b505050811b018555611bf1565b015160001960f88460031b161c19169055388080611c6e565b80600185968294968601518155019501930190611c4b565b908060209392818452848401376000828201840152601f01601f1916010190565b9290611ce69061033e9593604086526040860191611cac565b926020818503910152611cac565b929190611d028282866115f7565b803b611d0f575b50505050565b611d18936120d9565b15611d265738808080611d09565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210611d62575050565b92505b8083526004602052604083205480611d87575080156118a95760001901611d65565b600160e01b1615925050565b7f2e0763000000000000000000000000000000000000000000000000000000000060005260046000fd5b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b611e60816000526004602052604060002090565b54908115611e775750600160e01b8116611e3b5790565b9050600090600054811015611e3b575b60001901600081815260046020526040902054908115611ec25750600160e01b811615611ebd57600482636f96cda160e11b8152fd5b905090565b9050611e87565b919082039182116118a957565b9067ffffffffffffffff8216600052600d602052604060002054918215611fb45782611f3a92601e6064611f16600097600052600c602052604060002090565b920610611f3d575b505067ffffffffffffffff16600052600d602052604060002090565b55565b611f968160027f7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b39301908154600a81048091118914611fa057611f8291508254611ec9565b81555b546040519081529081906020820190565b0390a23880611f1e565b50878255600401805460ff19169055611f85565b606460405162461bcd60e51b815260206004820152601160248201527f52657175657374206e6f7420666f756e640000000000000000000000000000006044820152fd5b6001600160a01b0360095416330361200c57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b61204461191a565b50600052600460205260406000205461205b61191a565b906001600160a01b038116825267ffffffffffffffff8160a01c166020830152600160e01b81161515604083015260e81c606082015290565b90816020910312610216575161033e816101ec565b3d156120d4573d906120ba826111f9565b916120c860405193846111c8565b82523d6000602084013e565b606090565b9260209161213c9360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906102ed565b0393165af160009181612191575b5061216b576121576120a9565b80511561216657805190602001fd5b611d26565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6121b491925060203d6020116121bb575b6121ac81836111c8565b810190612094565b903861214a565b503d6121a256fea2646970667358221220649ab3cc62c09364c79c73543aa7b741fe67ac724ca30a13292c9240418700c164736f6c63430008180033", + "deployedBytecode": "0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d357806323b872dd146101ce57806341ac50b3146101c957806342545825146101c457806342842e0e146101bf5780634535f1c1146101ba57806352a5f1f8146101b55780636352211e146101b057806370a08231146101ab578063715018a6146101a657806377ee63f1146101a15780638462151c1461019c57806385de8b3c146101975780638da5cb5b1461019257806395d89b411461018d578063a22cb46514610188578063a7384a4c14610183578063a9182f3f1461017e578063b88d4fde14610179578063baccd1d214610174578063c87b56dd1461016f578063d213c0f21461016a578063e985e9c514610165578063ecc6362f146101605763f2fde38b1461015b57600080fd5b61154b565b6114c2565b611383565b611367565b6112e6565b6112a7565b61124c565b6110c8565b610ea9565b610ddd565b610d35565b610d0e565b610aeb565b610a0c565b6109b4565b61094b565b610920565b6108f1565b6107f8565b6107ca565b6107a7565b61075a565b610614565b610600565b6105a8565b6104c3565b61042a565b610341565b61021b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361021657565b600080fd5b346102165760203660031901126102165760207fffffffff0000000000000000000000000000000000000000000000000000000060043561025b816101ec565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156102c3575b8115610299575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861028e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610287565b919082519283825260005b848110610319575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016102f8565b90602061033e9281815201906102ed565b90565b346102165760008060031936011261042757604051908060025490610365826113e5565b808552916020916001918281169081156103fa57506001146103a2575b61039e86610392818803826111c8565b6040519182918261032d565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8385106103e7575050505081016020016103928261039e38610382565b80548686018401529382019381016103ca565b905086955061039e9693506020925061039294915060ff191682840152151560051b820101929338610382565b80fd5b346102165760203660031901126102165760043561044781611d50565b1561046d57600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361021657565b602435906001600160a01b038216820361021657565b6040366003190112610216576104d7610497565b6024356001600160a01b0391826104ed83611e4c565b1680330361054c575b6000938385526006602052604085209216918273ffffffffffffffffffffffffffffffffffffffff198254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff610578336040600020906001600160a01b0316600052602052604060002090565b54166104f6577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346102165760003660031901126102165760206000546001549003604051908152f35b6060906003190112610216576001600160a01b0390600435828116810361021657916024359081168103610216579060443590565b61061261060c366105cb565b916115f7565b005b346102165760203660031901126102165760043561063961063482611d50565b6117a4565b33600052600e60205261067361066e61066a61066384604060002090600052602052604060002090565b5460ff1690565b1590565b6117ef565b61069c610697600461068f84600052600c602052604060002090565b015460ff1690565b61183a565b7fa15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab2061074c60026106d684600052600c602052604060002090565b0160646106e3825461189b565b11610751576106f2815461189b565b81555b61073561072885610719336001600160a01b0316600052600e602052604060002090565b90600052602052604060002090565b805460ff19166001179055565b546040805191825233602083015290918291820190565b0390a2005b606481556106f5565b34610216576040366003190112610216576001600160a01b0361077b610497565b16600052600e6020526040600020602435600052602052602060ff604060002054166040519015158152f35b6106126107b3366105cb565b90604051926107c1846111ac565b60008452611cf4565b34610216576000366003190112610216576020604051601e8152f35b67ffffffffffffffff81160361021657565b3461021657606036600319011261021657600435610815816107e6565b61081d6104ad565b506001600160a01b03600a541680156108ad573303610843576106129060443590611ed6565b608460405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b346102165760203660031901126102165760206001600160a01b03610917600435611e4c565b16604051908152f35b3461021657602036600319011261021657602061094361093e610497565b6118ae565b604051908152f35b346102165760008060031936011261042757610965611ff8565b806001600160a01b0360095473ffffffffffffffffffffffffffffffffffffffff198116600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021657600036600319011261021657602060405160058152f35b602090602060408183019282815285518094520193019160005b8281106109f8575050505090565b8351855293810193928101926001016109ea565b3461021657602036600319011261021657610a25610497565b600080610a31836118ae565b91610a3b83611902565b93604091610a4c60405196876111c8565b848652601f19610a5b86611902565b01366020880137610a6a61191a565b506001600160a01b0391821692845b868603610a8e576040518061039e8a826109d0565b610a978161203c565b80830151610ae257516001600160a01b0316848116610ad9575b506001908585851614610ac5575b01610a79565b80610ad3838901988b611950565b52610abf565b92506001610ab1565b50600190610abf565b6020806003193601126102165760043590610b0861063483611d50565b610b24610697600461068f85600052600c602052604060002090565b610b466002610b3d84600052600c602052604060002090565b0154151561197a565b610b67610b5b600a546001600160a01b031690565b6001600160a01b031690565b90610b7a600b546001600160a01b031690565b6040517fb88c91480000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015290928282602481845afa908115610cdc576fffffffffffffffffffffffffffffffff610c3a928594600091610ce1575b501694610bee863410156119f9565b6040519586809481937f19cb825f0000000000000000000000000000000000000000000000000000000083526004830160206000919392936001600160a01b0360408201951681520152565b03925af18015610cdc577f6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e0739261074c92600092610caf575b505083610c938267ffffffffffffffff16600052600d602052604060002090565b5560405167ffffffffffffffff90911681529081906020820190565b610cce9250803d10610cd5575b610cc681836111c8565b810190611a44565b3880610c72565b503d610cbc565b6119ed565b610d019150853d8711610d07575b610cf981836111c8565b8101906119c5565b38610bdf565b503d610cef565b346102165760003660031901126102165760206001600160a01b0360095416604051908152f35b346102165760008060031936011261042757604051908060035490610d59826113e5565b808552916020916001918281169081156103fa5750600114610d855761039e86610392818803826111c8565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510610dca575050505081016020016103928261039e38610382565b8054868601840152938201938101610dad565b3461021657604036600319011261021657610df6610497565b6024358015159182820361021657610e4b6001600160a01b0392336000526007602052610e3a836040600020906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b9181601f840112156102165782359167ffffffffffffffff8311610216576020838186019501011161021657565b3461021657606036600319011261021657610ec2610497565b67ffffffffffffffff9060243582811161021657610ee4903690600401610e7b565b909260443590811161021657610efe903690600401610e7b565b600094916001600160a01b03865495610f2a81600160e11b906001600160a01b034260a01b9116171790565b610f3e886000526004602052604060002090565b55610f5c816001600160a01b03166000526005602052604060002090565b6801000000000000000181540190551695861561106f57600186810197879180805b61102a575b505050508594927fc3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2949261039e98611017935561100b610fc16111ea565b610fcc368888611215565b8152610fd9368585611215565b6020820152603260408201524260608201526001608082015261100689600052600c602052604060002090565b611b85565b60405194859485611ccd565b0390a26040519081529081906020820190565b1561105e575b83818484877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4610f7e565b809201918983036110305780610f83565b611d93565b6020815260a060806110aa611094855184602087015260c08601906102ed565b6020860151858203601f190160408701526102ed565b93604081015160608501526060810151828501520151151591015290565b346102165760203660031901126102165761039e6004356040906000608083516110f18161118b565b60608152606060208201528285820152826060820152015261111561063482611d50565b600052600c602052806000209060ff60048251936111328561118b565b61113b8161141f565b85526111496001820161141f565b602086015260028101548486015260038101546060860152015416151560808301525191829182611074565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff8211176111a757604052565b611175565b6020810190811067ffffffffffffffff8211176111a757604052565b90601f8019910116810190811067ffffffffffffffff8211176111a757604052565b604051906111f78261118b565b565b67ffffffffffffffff81116111a757601f01601f191660200190565b929192611221826111f9565b9161122f60405193846111c8565b829481845281830111610216578281602093846000960137010152565b608036600319011261021657611260610497565b6112686104ad565b6064359167ffffffffffffffff831161021657366023840112156102165761129d610612933690602481600401359101611215565b9160443591611cf4565b346102165760203660031901126102165767ffffffffffffffff6004356112cd816107e6565b16600052600d6020526020604060002054604051908152f35b3461021657602036600319011261021657611302600435611d50565b1561133d576000604051611315816111ac565b5261039e604051611325816111ac565b600081526040519182916020835260208301906102ed565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461021657600036600319011261021657602060405160648152f35b3461021657604036600319011261021657602060ff6113d96113a3610497565b6001600160a01b036113b36104ad565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b90600182811c92168015611415575b60208310146113ff57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113f4565b90604051918260008254611432816113e5565b908184526020946001916001811690816000146114a05750600114611461575b5050506111f7925003836111c8565b600090815285812095935091905b8183106114885750506111f79350820101388080611452565b8554888401850152948501948794509183019161146f565b925050506111f794925060ff191682840152151560051b820101388080611452565b3461021657602036600319011261021657600435600052600c60205261152760406000206114ef8161141f565b906114fc6001820161141f565b60028201549161153560ff60046003840154930154169260405196879660a0885260a08801906102ed565b9086820360208801526102ed565b9260408501526060840152151560808301520390f35b3461021657602036600319011261021657611564610497565b61156c611ff8565b6001600160a01b038091169081156115c6576009548273ffffffffffffffffffffffffffffffffffffffff19821617600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b91909161160382611e4c565b926001600160a01b0380921693848382160361179f57600084815260066020526040902080546116426001600160a01b03881633908114908314171590565b611756575b61174c575b5061166a856001600160a01b03166000526005602052604060002090565b805460001901905561168f826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b176116bf856000526004602052604060002090565b55600160e11b811615611702575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4156116fd57565b611e11565b6001840161171a816000526004602052604060002090565b5415611727575b506116cd565b600054811461172157611744906000526004602052604060002090565b553880611721565b600090553861164c565b61179561066a6106633361177d8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b1561164757611de7565b611dbd565b156117ab57565b606460405162461bcd60e51b815260206004820152601760248201527f506c61796c69737420646f6573206e6f742065786973740000000000000000006044820152fd5b156117f657565b606460405162461bcd60e51b815260206004820152601f60248201527f416c726561647920766f74656420666f72207468697320706c61796c697374006044820152fd5b1561184157565b606460405162461bcd60e51b815260206004820152601460248201527f506c61796c69737420697320696e6163746976650000000000000000000000006044820152fd5b634e487b7160e01b600052601160045260246000fd5b90600582018092116118a957565b611885565b6001600160a01b031680156118d857600052600560205267ffffffffffffffff6040600020541690565b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b67ffffffffffffffff81116111a75760051b60200190565b604051906080820182811067ffffffffffffffff8211176111a75760405260006060838281528260208201528260408201520152565b80518210156119645760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561198157565b606460405162461bcd60e51b815260206004820152601d60248201527f52657075746174696f6e20616c7265616479206174206d696e696d756d0000006044820152fd5b9081602091031261021657516fffffffffffffffffffffffffffffffff811681036102165790565b6040513d6000823e3d90fd5b15611a0057565b606460405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768206665657300000000000000000000000000000000006044820152fd5b90816020910312610216575161033e816107e6565b90601f8111611a6757505050565b6000916000526020600020906020601f850160051c83019410611aa5575b601f0160051c01915b828110611a9a57505050565b818155600101611a8e565b9092508290611a85565b919091825167ffffffffffffffff81116111a757611ad781611ad184546113e5565b84611a59565b602080601f8311600114611b1a57508190611b0b939495600092611b0f575b50508160011b916000199060031b1c19161790565b9055565b015190503880611af6565b90601f19831695611b3085600052602060002090565b926000905b888210611b6d57505083600195969710611b54575b505050811b019055565b015160001960f88460031b161c19169055388080611b4a565b80600185968294968601518155019501930190611b35565b919091825192835167ffffffffffffffff81116111a757611bb081611baa85546113e5565b85611a59565b602080601f8311600114611c305750600492611bee83611c1d946080946111f7999a600092611b0f5750508160011b916000199060031b1c19161790565b85555b611c02602082015160018701611aaf565b60408101516002860155606081015160038601550151151590565b91019060ff801983541691151516179055565b90601f19831696611c4686600052602060002090565b926000905b898210611c945750508360809360049693600193611c1d976111f79b9c10611c7b575b505050811b018555611bf1565b015160001960f88460031b161c19169055388080611c6e565b80600185968294968601518155019501930190611c4b565b908060209392818452848401376000828201840152601f01601f1916010190565b9290611ce69061033e9593604086526040860191611cac565b926020818503910152611cac565b929190611d028282866115f7565b803b611d0f575b50505050565b611d18936120d9565b15611d265738808080611d09565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210611d62575050565b92505b8083526004602052604083205480611d87575080156118a95760001901611d65565b600160e01b1615925050565b7f2e0763000000000000000000000000000000000000000000000000000000000060005260046000fd5b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b611e60816000526004602052604060002090565b54908115611e775750600160e01b8116611e3b5790565b9050600090600054811015611e3b575b60001901600081815260046020526040902054908115611ec25750600160e01b811615611ebd57600482636f96cda160e11b8152fd5b905090565b9050611e87565b919082039182116118a957565b9067ffffffffffffffff8216600052600d602052604060002054918215611fb45782611f3a92601e6064611f16600097600052600c602052604060002090565b920610611f3d575b505067ffffffffffffffff16600052600d602052604060002090565b55565b611f968160027f7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b39301908154600a81048091118914611fa057611f8291508254611ec9565b81555b546040519081529081906020820190565b0390a23880611f1e565b50878255600401805460ff19169055611f85565b606460405162461bcd60e51b815260206004820152601160248201527f52657175657374206e6f7420666f756e640000000000000000000000000000006044820152fd5b6001600160a01b0360095416330361200c57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b61204461191a565b50600052600460205260406000205461205b61191a565b906001600160a01b038116825267ffffffffffffffff8160a01c166020830152600160e01b81161515604083015260e81c606082015290565b90816020910312610216575161033e816101ec565b3d156120d4573d906120ba826111f9565b916120c860405193846111c8565b82523d6000602084013e565b606090565b9260209161213c9360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906102ed565b0393165af160009181612191575b5061216b576121576120a9565b80511561216657805190602001fd5b611d26565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6121b491925060203d6020116121bb575b6121ac81836111c8565b810190612094565b903861214a565b503d6121a256fea2646970667358221220649ab3cc62c09364c79c73543aa7b741fe67ac724ca30a13292c9240418700c164736f6c63430008180033", + "linkReferences": {}, + "deployedLinkReferences": {} +} \ No newline at end of file diff --git a/entropy/RAR/app/contracts/RandomSeed.json b/entropy/RAR/app/contracts/RandomSeed.json new file mode 100644 index 0000000..a3ef8c9 --- /dev/null +++ b/entropy/RAR/app/contracts/RandomSeed.json @@ -0,0 +1,91 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "RandomSeed", + "sourceName": "contracts/RandomSeed.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "entropyAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "seed", + "type": "bytes32" + } + ], + "name": "RandomSeedGenerated", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "currentSeed", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "entropy", + "outputs": [ + { + "internalType": "contract IEntropyV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "requestRandomSeed", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ], + "bytecode": "0x60803461007457601f61049e38819003918201601f19168301916001600160401b038311848410176100795780849260209460405283398101031261007457516001600160a01b0381169081900361007457600080546001600160a01b03191691909117905560405161040e90816100908239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060408181526004908136101561001657600080fd5b600092833560e01c90816347ce07cc146103575750806352a5f1f81461021e57806383220626146101ff5763e1da26c61461005057600080fd5b826003193601126101fb5773ffffffffffffffffffffffffffffffffffffffff835416908051917f8204b67a00000000000000000000000000000000000000000000000000000000835260209283818681855afa80156101f1578690610197575b6fffffffffffffffffffffffffffffffff91501693843410610155579083918351809681937f7b43155d0000000000000000000000000000000000000000000000000000000083525af190811561014c575061010b578280f35b81813d8311610145575b61011f8183610387565b81010312610141575167ffffffffffffffff81160361013e5738808280f35b80fd5b5080fd5b503d610115565b513d85823e3d90fd5b6064908484519162461bcd60e51b8352820152601060248201527f496e73756666696369656e7420666565000000000000000000000000000000006044820152fd5b508381813d83116101ea575b6101ad8183610387565b810103126101e657516fffffffffffffffffffffffffffffffff811681036101e6576fffffffffffffffffffffffffffffffff906100b1565b8580fd5b503d6101a3565b83513d88823e3d90fd5b8280fd5b8382346101415781600319360112610141576020906001549051908152f35b50346101fb5760603660031901126101fb57813567ffffffffffffffff8116036101fb5773ffffffffffffffffffffffffffffffffffffffff9160243583811603610353576044359284541680156103105733036102a85750816020917fc600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad563909360015551908152a180f35b6020608492519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b506020606492519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b84903461014157816003193601126101415773ffffffffffffffffffffffffffffffffffffffff60209254168152f35b90601f8019910116810190811067ffffffffffffffff8211176103a957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122040148961cbcee2b836102c073a7110e4e3b136bd516b7c37267477a91d1b03b064736f6c63430008180033", + "deployedBytecode": "0x608060408181526004908136101561001657600080fd5b600092833560e01c90816347ce07cc146103575750806352a5f1f81461021e57806383220626146101ff5763e1da26c61461005057600080fd5b826003193601126101fb5773ffffffffffffffffffffffffffffffffffffffff835416908051917f8204b67a00000000000000000000000000000000000000000000000000000000835260209283818681855afa80156101f1578690610197575b6fffffffffffffffffffffffffffffffff91501693843410610155579083918351809681937f7b43155d0000000000000000000000000000000000000000000000000000000083525af190811561014c575061010b578280f35b81813d8311610145575b61011f8183610387565b81010312610141575167ffffffffffffffff81160361013e5738808280f35b80fd5b5080fd5b503d610115565b513d85823e3d90fd5b6064908484519162461bcd60e51b8352820152601060248201527f496e73756666696369656e7420666565000000000000000000000000000000006044820152fd5b508381813d83116101ea575b6101ad8183610387565b810103126101e657516fffffffffffffffffffffffffffffffff811681036101e6576fffffffffffffffffffffffffffffffff906100b1565b8580fd5b503d6101a3565b83513d88823e3d90fd5b8280fd5b8382346101415781600319360112610141576020906001549051908152f35b50346101fb5760603660031901126101fb57813567ffffffffffffffff8116036101fb5773ffffffffffffffffffffffffffffffffffffffff9160243583811603610353576044359284541680156103105733036102a85750816020917fc600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad563909360015551908152a180f35b6020608492519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b506020606492519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b84903461014157816003193601126101415773ffffffffffffffffffffffffffffffffffffffff60209254168152f35b90601f8019910116810190811067ffffffffffffffff8211176103a957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122040148961cbcee2b836102c073a7110e4e3b136bd516b7c37267477a91d1b03b064736f6c63430008180033", + "linkReferences": {}, + "deployedLinkReferences": {} +} \ No newline at end of file diff --git a/entropy/RAR/app/contracts/addresses.ts b/entropy/RAR/app/contracts/addresses.ts new file mode 100644 index 0000000..87bce06 --- /dev/null +++ b/entropy/RAR/app/contracts/addresses.ts @@ -0,0 +1,3 @@ +export const RandomSeedAddress = "0xA13C674F8A8715E157BA42237A6b1Dff24EE274F" +export const CoinFlipAddress = "0x762353AdF1342ba85f6dDEac0446E2DA43ab84bf" +export const PlaylistReputationNFT = "0x0532d0A87B6013a8A086C37D39BC1EB013abC2f4" \ No newline at end of file diff --git a/entropy/RAR/app/contracts/generated.ts b/entropy/RAR/app/contracts/generated.ts new file mode 100644 index 0000000..b3a4cfa --- /dev/null +++ b/entropy/RAR/app/contracts/generated.ts @@ -0,0 +1,878 @@ +import { + createUseReadContract, + createUseWriteContract, + createUseSimulateContract, + createUseWatchContractEvent, +} from 'wagmi/codegen' + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// NFTGrowth +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +export const nftGrowthAbi = [ + { + type: 'constructor', + inputs: [ + { name: '_entropy', internalType: 'address', type: 'address' }, + { name: '_provider', internalType: 'address', type: 'address' }, + ], + stateMutability: 'nonpayable', + }, + { type: 'error', inputs: [], name: 'ApprovalCallerNotOwnerNorApproved' }, + { type: 'error', inputs: [], name: 'ApprovalQueryForNonexistentToken' }, + { type: 'error', inputs: [], name: 'BalanceQueryForZeroAddress' }, + { type: 'error', inputs: [], name: 'MintERC2309QuantityExceedsLimit' }, + { type: 'error', inputs: [], name: 'MintToZeroAddress' }, + { type: 'error', inputs: [], name: 'MintZeroQuantity' }, + { type: 'error', inputs: [], name: 'NotCompatibleWithSpotMints' }, + { + type: 'error', + inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], + name: 'OwnableInvalidOwner', + }, + { + type: 'error', + inputs: [{ name: 'account', internalType: 'address', type: 'address' }], + name: 'OwnableUnauthorizedAccount', + }, + { type: 'error', inputs: [], name: 'OwnerQueryForNonexistentToken' }, + { type: 'error', inputs: [], name: 'OwnershipNotInitializedForExtraData' }, + { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, + { type: 'error', inputs: [], name: 'SequentialMintExceedsLimit' }, + { type: 'error', inputs: [], name: 'SequentialUpToTooSmall' }, + { type: 'error', inputs: [], name: 'SpotMintTokenIdTooSmall' }, + { type: 'error', inputs: [], name: 'TokenAlreadyExists' }, + { type: 'error', inputs: [], name: 'TransferCallerNotOwnerNorApproved' }, + { type: 'error', inputs: [], name: 'TransferFromIncorrectOwner' }, + { type: 'error', inputs: [], name: 'TransferToNonERC721ReceiverImplementer' }, + { type: 'error', inputs: [], name: 'TransferToZeroAddress' }, + { type: 'error', inputs: [], name: 'URIQueryForNonexistentToken' }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'owner', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'approved', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'tokenId', + internalType: 'uint256', + type: 'uint256', + indexed: true, + }, + ], + name: 'Approval', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'owner', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'operator', + internalType: 'address', + type: 'address', + indexed: true, + }, + { name: 'approved', internalType: 'bool', type: 'bool', indexed: false }, + ], + name: 'ApprovalForAll', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'fromTokenId', + internalType: 'uint256', + type: 'uint256', + indexed: true, + }, + { + name: 'toTokenId', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + { name: 'from', internalType: 'address', type: 'address', indexed: true }, + { name: 'to', internalType: 'address', type: 'address', indexed: true }, + ], + name: 'ConsecutiveTransfer', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'sender', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'tokenId', + internalType: 'uint256', + type: 'uint256', + indexed: true, + }, + { + name: 'sequenceNumber', + internalType: 'uint64', + type: 'uint64', + indexed: false, + }, + { + name: 'nftInfo', + internalType: 'struct NFTInfo', + type: 'tuple', + components: [ + { name: 'level', internalType: 'uint256', type: 'uint256' }, + { name: 'status', internalType: 'enum NFTStatus', type: 'uint8' }, + ], + indexed: false, + }, + { + name: 'result', + internalType: 'enum Result', + type: 'uint8', + indexed: false, + }, + ], + name: 'NFTResult', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'sender', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'tokenId', + internalType: 'uint256', + type: 'uint256', + indexed: true, + }, + { + name: 'sequenceNumber', + internalType: 'uint64', + type: 'uint64', + indexed: false, + }, + ], + name: 'NftGrowthRequested', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'previousOwner', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'newOwner', + internalType: 'address', + type: 'address', + indexed: true, + }, + ], + name: 'OwnershipTransferred', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'from', internalType: 'address', type: 'address', indexed: true }, + { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { + name: 'tokenId', + internalType: 'uint256', + type: 'uint256', + indexed: true, + }, + ], + name: 'Transfer', + }, + { + type: 'function', + inputs: [ + { name: 'sequence', internalType: 'uint64', type: 'uint64' }, + { name: 'provider', internalType: 'address', type: 'address' }, + { name: 'randomNumber', internalType: 'bytes32', type: 'bytes32' }, + ], + name: '_entropyCallback', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: 'to', internalType: 'address', type: 'address' }, + { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + ], + name: 'approve', + outputs: [], + stateMutability: 'payable', + }, + { + type: 'function', + inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], + name: 'balanceOf', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], + name: 'getApproved', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'getGrowFee', + outputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: 'userRandomNumber', internalType: 'bytes32', type: 'bytes32' }, + ], + name: 'grow', + outputs: [], + stateMutability: 'payable', + }, + { + type: 'function', + inputs: [ + { name: 'owner', internalType: 'address', type: 'address' }, + { name: 'operator', internalType: 'address', type: 'address' }, + ], + name: 'isApprovedForAll', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'mint', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'name', + outputs: [{ name: '', internalType: 'string', type: 'string' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'nftInfo', + outputs: [ + { name: 'level', internalType: 'uint256', type: 'uint256' }, + { name: 'status', internalType: 'enum NFTStatus', type: 'uint8' }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'nftLock', + outputs: [ + { name: 'timestamp', internalType: 'uint256', type: 'uint256' }, + { name: 'status', internalType: 'enum LockStatus', type: 'uint8' }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'owner', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], + name: 'ownerOf', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], + name: 'ownerUnlockFlower', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '', internalType: 'uint64', type: 'uint64' }], + name: 'pendingRandomRequests', + outputs: [ + { name: 'sender', internalType: 'address', type: 'address' }, + { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: 'timestamp', internalType: 'uint256', type: 'uint256' }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'renounceOwnership', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: 'from', internalType: 'address', type: 'address' }, + { name: 'to', internalType: 'address', type: 'address' }, + { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + ], + name: 'safeTransferFrom', + outputs: [], + stateMutability: 'payable', + }, + { + type: 'function', + inputs: [ + { name: 'from', internalType: 'address', type: 'address' }, + { name: 'to', internalType: 'address', type: 'address' }, + { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + { name: '_data', internalType: 'bytes', type: 'bytes' }, + ], + name: 'safeTransferFrom', + outputs: [], + stateMutability: 'payable', + }, + { + type: 'function', + inputs: [ + { name: 'operator', internalType: 'address', type: 'address' }, + { name: 'approved', internalType: 'bool', type: 'bool' }, + ], + name: 'setApprovalForAll', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], + name: 'supportsInterface', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'symbol', + outputs: [{ name: '', internalType: 'string', type: 'string' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], + name: 'tokenURI', + outputs: [{ name: '', internalType: 'string', type: 'string' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], + name: 'tokensOfOwner', + outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'totalSupply', + outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: 'from', internalType: 'address', type: 'address' }, + { name: 'to', internalType: 'address', type: 'address' }, + { name: 'tokenId', internalType: 'uint256', type: 'uint256' }, + ], + name: 'transferFrom', + outputs: [], + stateMutability: 'payable', + }, + { + type: 'function', + inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], + name: 'transferOwnership', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }], + name: 'unlockFlower', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: 'to', internalType: 'address', type: 'address' }], + name: 'withdraw', + outputs: [], + stateMutability: 'nonpayable', + }, +] as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// React +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ + */ +export const useReadNftGrowth = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"balanceOf"` + */ +export const useReadNftGrowthBalanceOf = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'balanceOf', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"getApproved"` + */ +export const useReadNftGrowthGetApproved = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'getApproved', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"getGrowFee"` + */ +export const useReadNftGrowthGetGrowFee = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'getGrowFee', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"isApprovedForAll"` + */ +export const useReadNftGrowthIsApprovedForAll = + /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'isApprovedForAll', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"name"` + */ +export const useReadNftGrowthName = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'name', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"nftInfo"` + */ +export const useReadNftGrowthNftInfo = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'nftInfo', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"nftLock"` + */ +export const useReadNftGrowthNftLock = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'nftLock', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"owner"` + */ +export const useReadNftGrowthOwner = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'owner', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"ownerOf"` + */ +export const useReadNftGrowthOwnerOf = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'ownerOf', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"pendingRandomRequests"` + */ +export const useReadNftGrowthPendingRandomRequests = + /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'pendingRandomRequests', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"supportsInterface"` + */ +export const useReadNftGrowthSupportsInterface = + /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'supportsInterface', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"symbol"` + */ +export const useReadNftGrowthSymbol = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'symbol', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"tokenURI"` + */ +export const useReadNftGrowthTokenUri = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'tokenURI', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"tokensOfOwner"` + */ +export const useReadNftGrowthTokensOfOwner = + /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'tokensOfOwner', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"totalSupply"` + */ +export const useReadNftGrowthTotalSupply = /*#__PURE__*/ createUseReadContract({ + abi: nftGrowthAbi, + functionName: 'totalSupply', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ + */ +export const useWriteNftGrowth = /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"_entropyCallback"` + */ +export const useWriteNftGrowthEntropyCallback = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: '_entropyCallback', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"approve"` + */ +export const useWriteNftGrowthApprove = /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'approve', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"grow"` + */ +export const useWriteNftGrowthGrow = /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'grow', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"mint"` + */ +export const useWriteNftGrowthMint = /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'mint', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"ownerUnlockFlower"` + */ +export const useWriteNftGrowthOwnerUnlockFlower = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'ownerUnlockFlower', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"renounceOwnership"` + */ +export const useWriteNftGrowthRenounceOwnership = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'renounceOwnership', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"safeTransferFrom"` + */ +export const useWriteNftGrowthSafeTransferFrom = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'safeTransferFrom', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"setApprovalForAll"` + */ +export const useWriteNftGrowthSetApprovalForAll = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'setApprovalForAll', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"transferFrom"` + */ +export const useWriteNftGrowthTransferFrom = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'transferFrom', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"transferOwnership"` + */ +export const useWriteNftGrowthTransferOwnership = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'transferOwnership', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"unlockFlower"` + */ +export const useWriteNftGrowthUnlockFlower = + /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'unlockFlower', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"withdraw"` + */ +export const useWriteNftGrowthWithdraw = /*#__PURE__*/ createUseWriteContract({ + abi: nftGrowthAbi, + functionName: 'withdraw', +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ + */ +export const useSimulateNftGrowth = /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"_entropyCallback"` + */ +export const useSimulateNftGrowthEntropyCallback = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: '_entropyCallback', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"approve"` + */ +export const useSimulateNftGrowthApprove = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'approve', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"grow"` + */ +export const useSimulateNftGrowthGrow = /*#__PURE__*/ createUseSimulateContract( + { abi: nftGrowthAbi, functionName: 'grow' }, +) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"mint"` + */ +export const useSimulateNftGrowthMint = /*#__PURE__*/ createUseSimulateContract( + { abi: nftGrowthAbi, functionName: 'mint' }, +) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"ownerUnlockFlower"` + */ +export const useSimulateNftGrowthOwnerUnlockFlower = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'ownerUnlockFlower', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"renounceOwnership"` + */ +export const useSimulateNftGrowthRenounceOwnership = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'renounceOwnership', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"safeTransferFrom"` + */ +export const useSimulateNftGrowthSafeTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'safeTransferFrom', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"setApprovalForAll"` + */ +export const useSimulateNftGrowthSetApprovalForAll = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'setApprovalForAll', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"transferFrom"` + */ +export const useSimulateNftGrowthTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'transferFrom', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"transferOwnership"` + */ +export const useSimulateNftGrowthTransferOwnership = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'transferOwnership', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"unlockFlower"` + */ +export const useSimulateNftGrowthUnlockFlower = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'unlockFlower', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link nftGrowthAbi}__ and `functionName` set to `"withdraw"` + */ +export const useSimulateNftGrowthWithdraw = + /*#__PURE__*/ createUseSimulateContract({ + abi: nftGrowthAbi, + functionName: 'withdraw', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ + */ +export const useWatchNftGrowthEvent = /*#__PURE__*/ createUseWatchContractEvent( + { abi: nftGrowthAbi }, +) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ and `eventName` set to `"Approval"` + */ +export const useWatchNftGrowthApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: nftGrowthAbi, + eventName: 'Approval', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ and `eventName` set to `"ApprovalForAll"` + */ +export const useWatchNftGrowthApprovalForAllEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: nftGrowthAbi, + eventName: 'ApprovalForAll', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ and `eventName` set to `"ConsecutiveTransfer"` + */ +export const useWatchNftGrowthConsecutiveTransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: nftGrowthAbi, + eventName: 'ConsecutiveTransfer', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ and `eventName` set to `"NFTResult"` + */ +export const useWatchNftGrowthNftResultEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: nftGrowthAbi, + eventName: 'NFTResult', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ and `eventName` set to `"NftGrowthRequested"` + */ +export const useWatchNftGrowthNftGrowthRequestedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: nftGrowthAbi, + eventName: 'NftGrowthRequested', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ and `eventName` set to `"OwnershipTransferred"` + */ +export const useWatchNftGrowthOwnershipTransferredEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: nftGrowthAbi, + eventName: 'OwnershipTransferred', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link nftGrowthAbi}__ and `eventName` set to `"Transfer"` + */ +export const useWatchNftGrowthTransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: nftGrowthAbi, + eventName: 'Transfer', + }) diff --git a/entropy/RAR/app/hooks/useAudioPlayer.ts b/entropy/RAR/app/hooks/useAudioPlayer.ts new file mode 100644 index 0000000..031eb55 --- /dev/null +++ b/entropy/RAR/app/hooks/useAudioPlayer.ts @@ -0,0 +1,54 @@ +import { useState } from 'react' +import { Song } from '@/app/playlist-battle/[id]/types/playlist-battle' +import { songService } from '@/services/songService' + +export const useAudioPlayer = () => { + const [isPlaying, setIsPlaying] = useState(false) + const [currentSong, setCurrentSong] = useState(null) + + const playSong = async (song: Song) => { + try { + await songService.incrementPlayCount(song.id) + + const audioUrl = songService.getSongUrl(song.file_path) + const audio = new Audio(audioUrl) + + audio.onplay = () => { + setIsPlaying(true) + setCurrentSong(song) + } + + audio.onpause = () => { + setIsPlaying(false) + } + + audio.onended = () => { + setIsPlaying(false) + setCurrentSong(null) + } + + await audio.play() + } catch (err) { + console.error('Error playing song:', err) + alert('Error playing song. Please try again.') + } + } + + const likeSong = async (songId: string, onSuccess?: () => void) => { + try { + await songService.likeSong(songId) + if (onSuccess) { + onSuccess() + } + } catch (err) { + console.error('Error liking song:', err) + } + } + + return { + isPlaying, + currentSong, + playSong, + likeSong + } +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/useBattleEnergy.ts b/entropy/RAR/app/hooks/useBattleEnergy.ts new file mode 100644 index 0000000..4dac7c5 --- /dev/null +++ b/entropy/RAR/app/hooks/useBattleEnergy.ts @@ -0,0 +1,63 @@ +import { useState, useEffect } from 'react' +import { BattleInstance } from '@/app/playlist-battle/[id]/types/playlist-battle' + +export const useBattleEnergy = (battleInstance: BattleInstance | null) => { + const [energyUnits, setEnergyUnits] = useState(100) + const [isLoading, setIsLoading] = useState(false) + + // Initialize energy from battle instance + useEffect(() => { + if (battleInstance?.energy_units !== undefined) { + setEnergyUnits(battleInstance.energy_units) + } + }, [battleInstance]) + + // This function is now only used for manual energy updates if needed + const consumeEnergy = async (amount: number = 5): Promise => { + if (!battleInstance?.id) return false + + if (energyUnits < amount) { + console.log('āŒ Not enough energy!') + return false + } + + setIsLoading(true) + try { + const response = await fetch(`/api/playlist-battle/${battleInstance.id}/energy`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + action: 'consume', + amount: amount + }) + }) + + const data = await response.json() + + if (data.success) { + setEnergyUnits(data.energy_units) + console.log(`⚔ Consumed ${amount} energy units. Remaining: ${data.energy_units}`) + return true + } else { + console.error('Failed to update energy:', data.error) + return false + } + } catch (error) { + console.error('Error consuming energy:', error) + return false + } finally { + setIsLoading(false) + } + } + + const canAfford = (amount: number) => energyUnits >= amount + + return { + energyUnits, + setEnergyUnits, + consumeEnergy, + canAddSong: canAfford(5), + canPassSong: canAfford(3), + isLoading + } +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/useBattleInstance.ts b/entropy/RAR/app/hooks/useBattleInstance.ts new file mode 100644 index 0000000..f2c174c --- /dev/null +++ b/entropy/RAR/app/hooks/useBattleInstance.ts @@ -0,0 +1,145 @@ +import { useState, useEffect } from 'react' +import { BattleInstance, Song } from '@/app/playlist-battle/[id]/types/playlist-battle' + +export const useBattleInstance = (battleId: string) => { + const [battleInstance, setBattleInstance] = useState(null) + const [playlistSongs, setPlaylistSongs] = useState([]) + const [queueSongs, setQueueSongs] = useState([]) + const [isLoading, setIsLoading] = useState(true) + + const loadBattleInstance = async () => { + try { + setIsLoading(true) + + const response = await fetch(`/api/playlist-battle/${battleId}`) + const data = await response.json() + + if (data.success) { + setBattleInstance(data.battleInstance) + setPlaylistSongs(data.playlistSongs || []) + setQueueSongs(data.queueSongs || []) + } else { + console.error('Failed to load battle instance:', data.error) + } + } catch (error) { + console.error('Error loading battle instance:', error) + } finally { + setIsLoading(false) + } + } + + const addSongToPlaylist = async (songId: string) => { + try { + const response = await fetch(`/api/playlist-battle/${battleId}/add-song`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ songId }) + }) + + const data = await response.json() + if (data.success) { + setBattleInstance(data.updatedBattle) + setPlaylistSongs(data.playlistSongs || []) + setQueueSongs(data.queueSongs || []) + console.log('Added song to playlist and consumed 5 energy') + return true + } else { + console.error('Failed to add song:', data.error) + return false + } + } catch (error) { + console.error('Error adding song to playlist:', error) + return false + } +} + + const passSong = async (songId: string) => { + try { + const response = await fetch(`/api/playlist-battle/${battleId}/pass-song`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ songId }) + }) + + const data = await response.json() + if (data.success) { + setBattleInstance(data.updatedBattle) + setQueueSongs(data.queueSongs || []) + console.log('Passed song and removed from queue') + return true + } else { + console.error('Failed to pass song:', data.error) + return false + } + } catch (error) { + console.error('Error passing song:', error) + return false + } + } + + // UPDATED: Now accepts optional songOrder parameter + const rearrangePlaylist = async (songOrder?: string[]): Promise => { + try { + const response = await fetch(`/api/playlist-battle/${battleId}/rearrange`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ songOrder }) + }) + + const data = await response.json() + if (data.success) { + setBattleInstance(data.updatedBattle) + // Update playlist songs with the new order + if (data.updatedBattle.playlist_songs) { + await loadBattleInstance() + } + console.log('Playlist rearranged and gained 2 energy') + return true + } else { + console.error('Failed to rearrange playlist:', data.error) + return false + } + } catch (error) { + console.error('Error rearranging playlist:', error) + return false + } + } + + const pause = async (): Promise => { + try { + const response = await fetch(`/api/playlist-battle/${battleId}/pause`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + }) + + const data = await response.json() + if (data.success) { + setBattleInstance(data.updatedBattle) + console.log('Paused and gained 5 energy') + return true + } else { + console.error('Failed to pause:', data.error) + return false + } + } catch (error) { + console.error('Error during pause:', error) + return false + } + } + + useEffect(() => { + loadBattleInstance() + }, [battleId]) + + return { + battleInstance, + playlistSongs, + queueSongs, + isLoading, + loadBattleInstance, + addSongToPlaylist, + passSong, + rearrangePlaylist, + pause + } +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/useCoinFlip.ts b/entropy/RAR/app/hooks/useCoinFlip.ts new file mode 100644 index 0000000..4904a6d --- /dev/null +++ b/entropy/RAR/app/hooks/useCoinFlip.ts @@ -0,0 +1,85 @@ +import { useReadContract, useWriteContract, useWaitForTransactionReceipt } from 'wagmi' +import { CoinFlipAddress } from '@/contracts/addresses' +import COIN_FLIP_ABI from '@/contracts/CoinFlip.json' + +export const useCoinFlipRequestRandom = () => { + const { writeContract, data: hash, isPending } = useWriteContract() + + const requestRandom = async () => { + try { + // Get the fee first + const fee = await getRequestFee() + + return writeContract({ + address: CoinFlipAddress, + abi: COIN_FLIP_ABI.abi, + functionName: 'requestRandom', + value: fee + }) + } catch (error) { + console.error('Error requesting random:', error) + throw error + } + } + + return { + requestRandom, + hash, + isPending + } +} + +export const useCoinFlipGetUserResult = (userAddress?: string) => { + const { data, error, isLoading } = useReadContract({ + address: CoinFlipAddress, + abi: COIN_FLIP_ABI.abi, + functionName: 'getUserResult', + args: userAddress ? [userAddress] : undefined, + query: { + enabled: !!userAddress + } + }) + + return { + data: data as [string, boolean, number, boolean] | undefined, + error, + isLoading + } +} + +export const useCoinFlipHasUserResult = (userAddress?: string) => { + const { data, error, isLoading } = useReadContract({ + address: CoinFlipAddress, + abi: COIN_FLIP_ABI.abi, + functionName: 'hasUserResult', + args: userAddress ? [userAddress] : undefined, + query: { + enabled: !!userAddress + } + }) + + return { + hasResult: data as boolean | undefined, + error, + isLoading + } +} + +export const useCoinFlipGetRequestFee = () => { + const { data, error, isLoading } = useReadContract({ + address: CoinFlipAddress, + abi: COIN_FLIP_ABI.abi, + functionName: 'getRequestFee' + }) + + return { + fee: data as bigint | undefined, + error, + isLoading + } +} + +// Helper function to get fee +async function getRequestFee(): Promise { + return BigInt('1000000000000000') +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/useCoinFlipClient.ts b/entropy/RAR/app/hooks/useCoinFlipClient.ts new file mode 100644 index 0000000..c78e8eb --- /dev/null +++ b/entropy/RAR/app/hooks/useCoinFlipClient.ts @@ -0,0 +1,195 @@ +'use client' + +import { useAccount, useWriteContract, useReadContract } from 'wagmi' +import { useState, useCallback } from 'react' +import { CoinFlipAddress } from '@/contracts/addresses' +import COIN_FLIP_ABI from '@/contracts/CoinFlip.json' +import { parseEther } from 'viem' + +export const useCoinFlipClient = () => { + const { address } = useAccount() + const [isLoading, setIsLoading] = useState(false) + const [error, setError] = useState(null) + + const { writeContractAsync } = useWriteContract() + + // Read the fee from the contract + const { data: feeData } = useReadContract({ + address: CoinFlipAddress, + abi: COIN_FLIP_ABI.abi, + functionName: 'getRequestFee', + }) + + const requestRandom = useCallback(async (): Promise<{ sequenceNumber: string; txHash: string } | null> => { + if (!address) { + setError('No wallet connected') + return null + } + + setIsLoading(true) + setError(null) + + try { + console.log('Requesting random number from CoinFlip contract...') + console.log('Contract:', CoinFlipAddress) + console.log('User:', address) + + // Ensure fee is a bigint (writeContractAsync expects bigint for value) + const fee: bigint = typeof feeData === 'bigint' + ? feeData + : (typeof feeData === 'string' + ? BigInt(feeData) + : parseEther('0.0005')) // Default fallback + + console.log('Required fee:', fee.toString(), 'wei') + + // Call requestRandom on the CoinFlip contract + const hash = await writeContractAsync({ + address: CoinFlipAddress, + abi: COIN_FLIP_ABI.abi, + functionName: 'requestRandom', + value: fee, + }) + + console.log('Transaction sent:', hash) + + return { + sequenceNumber: '0', + txHash: hash + } + + } catch (err: any) { + console.error('Error requesting random:', err) + setError(err.message) + return null + } finally { + setIsLoading(false) + } + }, [address, writeContractAsync, feeData]) + + const getUserResult = useCallback(async (): Promise<{ + randomNumber: string + isHeads: boolean + timestamp: number + exists: boolean +} | null> => { + if (!address) { + setError('No wallet connected') + return null + } + + try { + console.log('Checking user result for:', address) + + const response = await fetch(`/api/coin-flip/result/${address}`) + const data = await response.json() + + if (!data.success) { + throw new Error(data.error) + } + + console.log('User result format:') + console.log('Random number:', data.result.randomNumber) + console.log('Type:', typeof data.result.randomNumber) + console.log('Is hex:', data.result.randomNumber.startsWith('0x')) + + return data.result + + } catch (err: any) { + console.error('Error getting user result:', err) + setError(err.message) + return null + } +}, [address]) + + const hasUserResult = useCallback(async (): Promise => { + if (!address) { + setError('No wallet connected') + return false + } + + try { + const response = await fetch(`/api/coin-flip/has-result/${address}`) + const data = await response.json() + + if (!data.success) { + throw new Error(data.error) + } + + return data.hasResult + } catch (err: any) { + console.error('Error checking user result:', err) + setError(err.message) + return false + } + }, [address]) + + const waitForResult = useCallback(async (timeoutMs = 60000): Promise<{ + randomNumber: string + isHeads: boolean + timestamp: number + exists: boolean + } | null> => { + if (!address) { + setError('No wallet connected') + return null + } + + setIsLoading(true) + setError(null) + + try { + console.log('Waiting for random result...') + const startTime = Date.now() + + return new Promise(async (resolve, reject) => { + const checkInterval = setInterval(async () => { + try { + + if (Date.now() - startTime > timeoutMs) { + clearInterval(checkInterval) + reject(new Error('Timeout waiting for random result')) + return + } + + // Check if result exists + const hasResult = await hasUserResult() + + if (hasResult) { + clearInterval(checkInterval) + const result = await getUserResult() + if (result) { + console.log('Result received:', result) + resolve(result) + } else { + reject(new Error('Failed to get result')) + } + } else { + console.log('Still waiting... checking again in 2s') + } + } catch (error) { + clearInterval(checkInterval) + reject(error) + } + }, 2000) + }) + + } catch (err: any) { + console.error('Error waiting for result:', err) + setError(err.message) + return null + } finally { + setIsLoading(false) + } + }, [address, hasUserResult, getUserResult]) + + return { + requestRandom, + getUserResult, + hasUserResult, + waitForResult, + isLoading, + error, + clearError: () => setError(null) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/usePlaylistBattle.ts b/entropy/RAR/app/hooks/usePlaylistBattle.ts new file mode 100644 index 0000000..9f15d31 --- /dev/null +++ b/entropy/RAR/app/hooks/usePlaylistBattle.ts @@ -0,0 +1,105 @@ +'use client' + +import { useState } from 'react' +import { useAccount } from 'wagmi' +import { useRouter } from 'next/navigation' +import { useCoinFlipClient } from './useCoinFlipClient' + +export const usePlaylistBattle = () => { + const [isLoading, setIsLoading] = useState(false) + const [error, setError] = useState(null) + const { address } = useAccount() + const router = useRouter() + const { requestRandom, waitForResult } = useCoinFlipClient() + + const initializeBattle = async (playlistPromptId: string) => { + if (!address) { + setError('No wallet connected') + return null + } + + setIsLoading(true) + setError(null) + + try { + console.log('Starting battle initialization...') + console.log('Prompt ID:', playlistPromptId) + console.log('User Address:', address) + + // Step 1: Request random number from CoinFlip contract (user pays fee) + console.log('Step 1: Requesting random number from CoinFlip contract...') + const randomRequest = await requestRandom() + + if (!randomRequest) { + throw new Error('Failed to request random number from blockchain') + } + + console.log('Random request successful:', randomRequest) + + // Step 2: Wait for the random result (with timeout) + console.log('Step 2: Waiting for random result from Pyth Entropy...') + const randomResult = await waitForResult(60000) // 60 second timeout + + if (!randomResult || !randomResult.exists) { + throw new Error('Timeout waiting for random number from blockchain') + } + + console.log('Random result received:', { + isHeads: randomResult.isHeads, + timestamp: randomResult.timestamp + }) + + // Step 3: Call API to create battle instance with the random result + console.log('Step 3: Creating battle instance in database...') + const response = await fetch('/api/playlist-battle/initialize', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + playlistPromptId, + userAddress: address, + randomNumber: randomResult.randomNumber, + coinFlipResult: randomResult.isHeads, + timestamp: randomResult.timestamp + }) + }) + + const data = await response.json() + + if (!data.success) { + console.error('API Error:', data) + throw new Error(data.error || 'Failed to initialize battle') + } + + console.log('Battle instance created successfully:', data.battleInstance.id) + return data.battleInstance + + } catch (err: any) { + console.error('Battle initialization failed:', err) + setError(err.message) + return null + } finally { + setIsLoading(false) + } + } + + const startBattle = async (playlistPromptId: string) => { + console.log('Starting battle with prompt:', playlistPromptId) + const battleInstance = await initializeBattle(playlistPromptId) + + if (battleInstance && battleInstance.id) { + console.log('Redirecting to battle page:', battleInstance.id) + router.push(`/playlist-battle/${battleInstance.id}`) + } else { + console.error('Failed to create battle instance') + setError('Failed to create battle instance') + } + } + + return { + initializeBattle, + startBattle, + isLoading, + error, + clearError: () => setError(null) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/usePlaylistVote.ts b/entropy/RAR/app/hooks/usePlaylistVote.ts new file mode 100644 index 0000000..71e1cef --- /dev/null +++ b/entropy/RAR/app/hooks/usePlaylistVote.ts @@ -0,0 +1,69 @@ +import { useState } from 'react' +import { useAccount } from 'wagmi' + +export const usePlaylistVote = () => { + const [isLoading, setIsLoading] = useState(false) + const [error, setError] = useState(null) + const { address } = useAccount() + + const voteOnPlaylist = async (playlistId: string, voteType: 'upvote' | 'downvote') => { + if (!address) { + setError('Please connect your wallet to vote') + return false + } + + setIsLoading(true) + setError(null) + + try { + const response = await fetch(`/api/playlist-battle/gallery/${playlistId}/vote`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + userAddress: address, + voteType + }) + }) + + const data = await response.json() + + if (!data.success) { + throw new Error(data.error || 'Failed to vote') + } + + return data + } catch (err: any) { + setError(err.message) + return false + } finally { + setIsLoading(false) + } + } + + const checkUserVote = async (playlistId: string) => { + if (!address) return null + + try { + const response = await fetch(`/api/playlist-battle/gallery/${playlistId}/vote?userAddress=${address}`) + const data = await response.json() + + if (data.error) { + console.error('Error checking vote:', data.error) + return null + } + + return data + } catch (err) { + console.error('Error checking vote:', err) + return null + } + } + + return { + voteOnPlaylist, + checkUserVote, + isLoading, + error, + clearError: () => setError(null) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/useRevealLogic.ts b/entropy/RAR/app/hooks/useRevealLogic.ts new file mode 100644 index 0000000..eb3f116 --- /dev/null +++ b/entropy/RAR/app/hooks/useRevealLogic.ts @@ -0,0 +1,116 @@ +import { useState, useCallback } from 'react' +import { Song, RevealResult, RevealStats } from '@/app/playlist-battle/[id]/types/playlist-battle' + +export const useRevealLogic = (randomSeed: string | undefined, queueSongs: Song[]) => { + const [revealedQueueSongs, setRevealedQueueSongs] = useState([]) + const [currentSeedIndex, setCurrentSeedIndex] = useState(0) + const [isFlipping, setIsFlipping] = useState(false) + const [isCardFlipped, setIsCardFlipped] = useState(false) + const [lastRevealResult, setLastRevealResult] = useState(null) + + const shouldRevealSong = useCallback((): boolean => { + if (!randomSeed) return false + + const seedWithoutPrefix = randomSeed.slice(2) + if (currentSeedIndex >= seedWithoutPrefix.length) return false + + const currentChar = seedWithoutPrefix[currentSeedIndex] + return /[0-9]/.test(currentChar) + }, [randomSeed, currentSeedIndex]) + + const getCurrentSeedChar = useCallback((): string => { + if (!randomSeed) return '' + const seedWithoutPrefix = randomSeed.slice(2) + return currentSeedIndex < seedWithoutPrefix.length ? seedWithoutPrefix[currentSeedIndex] : 'END' + }, [randomSeed, currentSeedIndex]) + + const getRevealStats = useCallback((): RevealStats => { + if (!randomSeed) return { numbers: 0, letters: 0, total: 0 } + + const seedWithoutPrefix = randomSeed.slice(2) + const numbers = seedWithoutPrefix.split('').filter(char => /[0-9]/.test(char)).length + const letters = seedWithoutPrefix.split('').filter(char => /[a-f]/.test(char)).length + + return { numbers, letters, total: seedWithoutPrefix.length } + }, [randomSeed]) + + const canFlipMore = randomSeed + ? currentSeedIndex < randomSeed.slice(2).length && revealedQueueSongs.length < queueSongs.length + : false + + const flipCard = useCallback(async () => { + if (!randomSeed || currentSeedIndex >= randomSeed.slice(2).length) { + console.log('Seed exhausted') + return + } + + if (revealedQueueSongs.length >= queueSongs.length) { + console.log('All songs revealed') + return + } + + setIsFlipping(true) + setIsCardFlipped(true) + + await new Promise(resolve => setTimeout(resolve, 300)) + + const willReveal = shouldRevealSong() + let result: RevealResult = { revealed: false } + + if (willReveal) { + const nextSongIndex = revealedQueueSongs.length + if (nextSongIndex < queueSongs.length) { + const nextSong = queueSongs[nextSongIndex] + setRevealedQueueSongs(prev => [...prev, nextSong]) + result = { revealed: true, song: nextSong } + console.log(`šŸŽµ Revealed song: ${nextSong.title}`) + } + } else { + console.log(`No reveal at index ${currentSeedIndex}`) + } + + setLastRevealResult(result) + setCurrentSeedIndex(prev => prev + 1) + + // Stop flipping animation but keep card flipped + setTimeout(() => { + setIsFlipping(false) + }, 100) + }, [randomSeed, currentSeedIndex, revealedQueueSongs, queueSongs, shouldRevealSong]) + + // Add function to flip card back to front + const flipCardBack = useCallback(() => { + setIsCardFlipped(false) + }, []) + + const removeSongFromRevealed = useCallback((songId: string) => { + setRevealedQueueSongs(prev => prev.filter(song => song.id !== songId)) + // Clear the last result and flip card back when song is removed + setLastRevealResult(null) + setIsCardFlipped(false) + }, []) + + const resetRevealState = useCallback(() => { + setRevealedQueueSongs([]) + setCurrentSeedIndex(0) + setLastRevealResult(null) + setIsFlipping(false) + setIsCardFlipped(false) + }, []) + +return { + revealedQueueSongs, + currentSeedIndex, + isFlipping, + isCardFlipped, + lastRevealResult, + shouldRevealSong, + getCurrentSeedChar, + getRevealStats, + canFlipMore, + flipCard, + flipCardBack, + removeSongFromRevealed, + resetRevealState + } +} \ No newline at end of file diff --git a/entropy/RAR/app/hooks/useWeb3Auth.ts b/entropy/RAR/app/hooks/useWeb3Auth.ts new file mode 100644 index 0000000..5f7fa23 --- /dev/null +++ b/entropy/RAR/app/hooks/useWeb3Auth.ts @@ -0,0 +1,65 @@ +'use client' + +import { useState, useCallback } from 'react' +import { useAccount, useSignMessage } from 'wagmi' +import { supabase } from '@/lib/supabase' + +export const useWeb3Auth = () => { + const [isLoading, setIsLoading] = useState(false) + const [error, setError] = useState(null) + const { address, isConnected } = useAccount() + const { signMessageAsync } = useSignMessage() + + const signIn = useCallback(async (): Promise => { + if (!address || !isConnected) { + setError('Wallet not connected') + return false + } + + setIsLoading(true) + setError(null) + + try { + + const message = `Sign in to RAR at ${new Date().toISOString()}` + + // Sign the message with the wallet + const signature = await signMessageAsync({ message }) + + // Authenticate with Supabase + const { data, error } = await supabase.auth.signInWithWeb3({ + chain: 'ethereum', + message: message, + signature: signature, + }) + + if (error) { + throw new Error(`Authentication failed: ${error.message}`) + } + + console.log('Authentication successful:', data) + return true + } catch (err: any) { + setError(err.message) + return false + } finally { + setIsLoading(false) + } + }, [address, isConnected, signMessageAsync]) + + const signOut = useCallback(async (): Promise => { + const { error } = await supabase.auth.signOut() + if (error) { + console.error('Sign out error:', error) + } + }, []) + + return { + signIn, + signOut, + isLoading, + error, + clearError: () => setError(null), + isAuthenticated: !!address && isConnected + } +} \ No newline at end of file diff --git a/entropy/RAR/app/lib/decayListener.ts b/entropy/RAR/app/lib/decayListener.ts new file mode 100644 index 0000000..0bd75d9 --- /dev/null +++ b/entropy/RAR/app/lib/decayListener.ts @@ -0,0 +1,59 @@ +import { ethers } from 'ethers' +import { supabase } from './supabase' +import { PlaylistReputationNFT } from '@/contracts/addresses' +import PLAYLIST_REPUTATION_NFT_ABI from '@/contracts/PlaylistReputationNFT.json' + +const RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc" + +export function startDecayListener() { + console.log('Starting decay event listener...') + + const provider = new ethers.JsonRpcProvider(RPC_URL) + const contract = new ethers.Contract(PlaylistReputationNFT, PLAYLIST_REPUTATION_NFT_ABI.abi, provider) + + contract.on('ReputationDecayed', async (tokenId, newReputation, event) => { + console.log('Decay event detected!', { + tokenId: tokenId.toString(), + newReputation: newReputation.toString(), + txHash: event.transactionHash + }) + + try { + // Get the token info to find the playlist and owner + const tokenInfo = await contract.getPlaylistInfo(tokenId) + const owner = await contract.ownerOf(tokenId) + + console.log('Processing decay for:', { + owner, + playlistId: tokenInfo.playlistId, + newReputation: newReputation.toString() + }) + + // Find the user in our database + const { data: user } = await supabase + .from('users') + .select('id') + .eq('wallet_address', owner.toLowerCase()) + .single() + + if (user) { + const reputation = Number(newReputation) + const reputationLevel = Math.floor(reputation / 10) + + await supabase + .from('users') + .update({ reputation_level: reputationLevel }) + .eq('id', user.id) + + console.log('Updated user reputation after decay:', { + userId: user.id, + newLevel: reputationLevel + }) + } + } catch (error) { + console.error('Error processing decay event:', error) + } + }) + + console.log('Decay listener started') +} diff --git a/entropy/RAR/app/lib/supabase.ts b/entropy/RAR/app/lib/supabase.ts new file mode 100644 index 0000000..8f8d2ca --- /dev/null +++ b/entropy/RAR/app/lib/supabase.ts @@ -0,0 +1,6 @@ +import { createClient } from '@supabase/supabase-js' + +const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL! +const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY! + +export const supabase = createClient(supabaseUrl, supabaseAnonKey) \ No newline at end of file diff --git a/entropy/RAR/app/lib/utils.ts b/entropy/RAR/app/lib/utils.ts new file mode 100644 index 0000000..d084cca --- /dev/null +++ b/entropy/RAR/app/lib/utils.ts @@ -0,0 +1,6 @@ +import { type ClassValue, clsx } from "clsx" +import { twMerge } from "tailwind-merge" + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)) +} diff --git a/entropy/RAR/app/middleware.ts b/entropy/RAR/app/middleware.ts new file mode 100644 index 0000000..e97f051 --- /dev/null +++ b/entropy/RAR/app/middleware.ts @@ -0,0 +1,20 @@ +import { NextResponse } from 'next/server' +import type { NextRequest } from 'next/server' + +export function middleware(request: NextRequest) { + const response = NextResponse.next() + + response.headers.set('Access-Control-Allow-Origin', '*') + response.headers.set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS') + response.headers.set('Access-Control-Allow-Headers', 'Content-Type, Authorization') + + if (request.method === 'OPTIONS') { + return new Response(null, { status: 200, headers: response.headers }) + } + + return response +} + +export const config = { + matcher: '/api/:path*', +} \ No newline at end of file diff --git a/entropy/RAR/app/next.config.mjs b/entropy/RAR/app/next.config.mjs new file mode 100644 index 0000000..4678774 --- /dev/null +++ b/entropy/RAR/app/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/entropy/RAR/app/package-lock.json b/entropy/RAR/app/package-lock.json new file mode 100644 index 0000000..166d3d3 --- /dev/null +++ b/entropy/RAR/app/package-lock.json @@ -0,0 +1,4831 @@ +{ + "name": "pyth", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "pyth", + "version": "0.1.0", + "dependencies": { + "next": "14.2.3", + "react": "^18", + "react-dom": "^18" + }, + "devDependencies": { + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "14.2.3", + "postcss": "^8", + "tailwindcss": "^3.4.1", + "typescript": "^5" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@babel/runtime": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.5.tgz", + "integrity": "sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "dev": true + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@next/env": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.3.tgz", + "integrity": "sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==" + }, + "node_modules/@next/eslint-plugin-next": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.2.3.tgz", + "integrity": "sha512-L3oDricIIjgj1AVnRdRor21gI7mShlSwU/1ZGHmqM3LzHhXXhdkrfeNY5zif25Bi5Dd7fiJHsbhoZCHfXYvlAw==", + "dev": true, + "dependencies": { + "glob": "10.3.10" + } + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.3.tgz", + "integrity": "sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz", + "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz", + "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz", + "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz", + "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz", + "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz", + "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz", + "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz", + "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.3.tgz", + "integrity": "sha512-qC/xYId4NMebE6w/V33Fh9gWxLgURiNYgVNObbJl2LZv0GUUItCcCqC5axQSwRaAgaxl2mELq1rMzlswaQ0Zxg==", + "dev": true + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==" + }, + "node_modules/@swc/helpers": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.5.tgz", + "integrity": "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==", + "dependencies": { + "@swc/counter": "^0.1.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.12", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", + "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", + "dev": true + }, + "node_modules/@types/react": { + "version": "18.3.2", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.2.tgz", + "integrity": "sha512-Btgg89dAnqD4vV7R3hlwOxgqobUQKgx3MmrQRi0yYbs/P0ym8XozIAlkqVilPqHQwXs4e9Tf63rrCgl58BcO4w==", + "dev": true, + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz", + "integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==", + "dev": true, + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.2.0.tgz", + "integrity": "sha512-5FKsVcHTk6TafQKQbuIVkXq58Fnbkd2wDL4LB7AURN7RUOu1utVP+G8+6u3ZhEroW3DF6hyo3ZEXxgKgp4KeCg==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "7.2.0", + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/typescript-estree": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.2.0.tgz", + "integrity": "sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.2.0.tgz", + "integrity": "sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.2.0.tgz", + "integrity": "sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.2.0.tgz", + "integrity": "sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.2.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", + "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", + "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.4", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz", + "integrity": "sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.toreversed": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/array.prototype.toreversed/-/array.prototype.toreversed-1.1.2.tgz", + "integrity": "sha512-wwDCoT4Ck4Cz7sLtgUmzR5UV3YF5mFHUlbChCzZBQZ+0m2cl/DH3tKgvphv1nKgFsJ48oCSg6p91q2Vm0I/ZMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.3.tgz", + "integrity": "sha512-/DdH4TiTmOKzyQbp/eadcCVexiCb36xJg7HshYOYJnNZFDj33GEv0P7GxsynpShhq4OLYJzbGcBDkLsDt7MnNg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.3", + "es-errors": "^1.1.0", + "es-shim-unscopables": "^1.0.2" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", + "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.3", + "es-errors": "^1.2.1", + "get-intrinsic": "^1.2.3", + "is-array-buffer": "^3.0.4", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", + "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", + "dev": true + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", + "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", + "dev": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001620", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001620.tgz", + "integrity": "sha512-WJvYsOjd1/BYUY6SNGUosK9DUidBPDTnOARHp3fSmFO1ekdxaY6nKRttEVrfMmYi80ctS0kz1wiWmm14fVc3ew==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "dev": true + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true + }, + "node_modules/data-view-buffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", + "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", + "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", + "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/enhanced-resolve": { + "version": "5.16.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.16.1.tgz", + "integrity": "sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/es-abstract": { + "version": "1.23.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", + "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "arraybuffer.prototype.slice": "^1.0.3", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "data-view-buffer": "^1.0.1", + "data-view-byte-length": "^1.0.1", + "data-view-byte-offset": "^1.0.0", + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-set-tostringtag": "^2.0.3", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.4", + "get-symbol-description": "^1.0.2", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.0.3", + "has-symbols": "^1.0.3", + "hasown": "^2.0.2", + "internal-slot": "^1.0.7", + "is-array-buffer": "^3.0.4", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.1", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.3", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.13", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.5", + "regexp.prototype.flags": "^1.5.2", + "safe-array-concat": "^1.1.2", + "safe-regex-test": "^1.0.3", + "string.prototype.trim": "^1.2.9", + "string.prototype.trimend": "^1.0.8", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.2", + "typed-array-byte-length": "^1.0.1", + "typed-array-byte-offset": "^1.0.2", + "typed-array-length": "^1.0.6", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.15" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.19.tgz", + "integrity": "sha512-zoMwbCcH5hwUkKJkT8kDIBZSz9I6mVG//+lDCinLCGov4+r7NIy0ld8o03M0cJxl2spVf6ESYVS6/gpIfq1FFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.0.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.7", + "iterator.prototype": "^1.1.2", + "safe-array-concat": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", + "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.4", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-next": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.2.3.tgz", + "integrity": "sha512-ZkNztm3Q7hjqvB1rRlOX8P9E/cXRL9ajRcs8jufEtwMfTVYRqnmtnaSu57QqHyBlovMuiB8LEzfLBkh5RYV6Fg==", + "dev": true, + "dependencies": { + "@next/eslint-plugin-next": "14.2.3", + "@rushstack/eslint-patch": "^1.3.3", + "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-import-resolver-typescript": "^3.5.2", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705" + }, + "peerDependencies": { + "eslint": "^7.23.0 || ^8.0.0", + "typescript": ">=3.3.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz", + "integrity": "sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4", + "enhanced-resolve": "^5.12.0", + "eslint-module-utils": "^2.7.4", + "fast-glob": "^3.3.1", + "get-tsconfig": "^4.5.0", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz", + "integrity": "sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.8.0.tgz", + "integrity": "sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.23.2", + "aria-query": "^5.3.0", + "array-includes": "^3.1.7", + "array.prototype.flatmap": "^1.3.2", + "ast-types-flow": "^0.0.8", + "axe-core": "=4.7.0", + "axobject-query": "^3.2.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "es-iterator-helpers": "^1.0.15", + "hasown": "^2.0.0", + "jsx-ast-utils": "^3.3.5", + "language-tags": "^1.0.9", + "minimatch": "^3.1.2", + "object.entries": "^1.1.7", + "object.fromentries": "^2.0.7" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.34.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.34.1.tgz", + "integrity": "sha512-N97CxlouPT1AHt8Jn0mhhN2RrADlUAsk1/atcT2KyA/l9Q/E6ll7OIGwNumFmWfZ9skV3XXccYS19h80rHtgkw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlast": "^1.2.4", + "array.prototype.flatmap": "^1.3.2", + "array.prototype.toreversed": "^1.1.2", + "array.prototype.tosorted": "^1.1.3", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.0.17", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.7", + "object.fromentries": "^2.0.7", + "object.hasown": "^1.1.3", + "object.values": "^1.1.7", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.10" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz", + "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", + "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-tsconfig": { + "version": "4.7.5", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.5.tgz", + "integrity": "sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", + "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", + "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-async-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", + "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", + "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", + "dev": true, + "dependencies": { + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", + "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", + "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", + "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", + "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/iterator.prototype": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", + "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.1", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "reflect.getprototypeof": "^1.0.4", + "set-function-name": "^2.0.1" + } + }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jiti": { + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", + "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", + "dev": true, + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.23", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", + "dev": true + }, + "node_modules/language-tags": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", + "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", + "dev": true, + "dependencies": { + "language-subtag-registry": "^0.3.20" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", + "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.6.tgz", + "integrity": "sha512-Y4Ypn3oujJYxJcMacVgcs92wofTHxp9FzfDpQON4msDefoC0lb3ETvQLOdLcbhSwU1bz8HrL/1sygfBIHudrkQ==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz", + "integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/next": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.3.tgz", + "integrity": "sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==", + "dependencies": { + "@next/env": "14.2.3", + "@swc/helpers": "0.5.5", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "graceful-fs": "^4.2.11", + "postcss": "8.4.31", + "styled-jsx": "5.1.1" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": ">=18.17.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "14.2.3", + "@next/swc-darwin-x64": "14.2.3", + "@next/swc-linux-arm64-gnu": "14.2.3", + "@next/swc-linux-arm64-musl": "14.2.3", + "@next/swc-linux-x64-gnu": "14.2.3", + "@next/swc-linux-x64-musl": "14.2.3", + "@next/swc-win32-arm64-msvc": "14.2.3", + "@next/swc-win32-ia32-msvc": "14.2.3", + "@next/swc-win32-x64-msvc": "14.2.3" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.41.2", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@playwright/test": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, + "node_modules/next/node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz", + "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.hasown": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.4.tgz", + "integrity": "sha512-FZ9LZt9/RHzGySlBARE3VF+gE26TxR38SdmqOqliuTnl9wrKulaQs+4dee1V+Io8VfxqzAfHu6YuRgUy8OHoTg==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.0.tgz", + "integrity": "sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + }, + "node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/postcss": { + "version": "8.4.38", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", + "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dev": true, + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/lilconfig": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.1.tgz", + "integrity": "sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/postcss-nested": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", + "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.11" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.16", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz", + "integrity": "sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz", + "integrity": "sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.1", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "globalthis": "^1.0.3", + "which-builtin-type": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "dev": true + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", + "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.6", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "set-function-name": "^2.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", + "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", + "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "is-regex": "^1.1.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.11.tgz", + "integrity": "sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.7", + "regexp.prototype.flags": "^1.5.2", + "set-function-name": "^2.0.2", + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", + "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", + "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/styled-jsx": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", + "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/sucrase": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", + "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "^10.3.10", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.3.tgz", + "integrity": "sha512-U7sxQk/n397Bmx4JHbJx/iSOOv5G+II3f1kpLpY2QeUv5DcPdcTsYLlusZfq1NthHS1c1cZoyFmmkex1rzke0A==", + "dev": true, + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.0", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.0", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "dev": true, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", + "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", + "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", + "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", + "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", + "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", + "dev": true, + "dependencies": { + "function.prototype.name": "^1.1.5", + "has-tostringtag": "^1.0.0", + "is-async-function": "^2.0.0", + "is-date-object": "^1.0.5", + "is-finalizationregistry": "^1.0.2", + "is-generator-function": "^1.0.10", + "is-regex": "^1.1.4", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", + "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yaml": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.2.tgz", + "integrity": "sha512-B3VqDZ+JAg1nZpaEmWtTXUlBneoGx6CPM9b0TENK6aoSu5t73dItudwdgmi6tHlIZZId4dZ9skcAQ2UbcyAeVA==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/entropy/RAR/app/package.json b/entropy/RAR/app/package.json new file mode 100644 index 0000000..6c47d7f --- /dev/null +++ b/entropy/RAR/app/package.json @@ -0,0 +1,51 @@ +{ + "name": "rar", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "^2.0.6", + "@radix-ui/react-select": "^2.0.0", + "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-tabs": "^1.0.4", + "@supabase/auth-helpers-nextjs": "^0.7.2", + "@supabase/auth-helpers-react": "^0.4.0", + "@supabase/auth-ui-react": "^0.4.2", + "@supabase/auth-ui-shared": "^0.1.6", + "@supabase/supabase-js": "^2.75.1", + "@tanstack/react-query": "^5.37.1", + "class-variance-authority": "^0.7.0", + "clsx": "^2.1.1", + "ethers": "^6.15.0", + "lucide-react": "^0.378.0", + "next": "14.2.3", + "prettier-plugin-organize-imports": "^3.2.4", + "prettier-plugin-tailwindcss": "^0.5.14", + "react": "^18", + "react-dom": "^18", + "react-hot-toast": "^2.4.1", + "react-icons": "^4.10.1", + "tailwind-merge": "^2.3.0", + "tailwindcss-animate": "^1.0.7", + "viem": "2.x", + "wagmi": "^2.9.3", + "web3": "^4.8.0" + }, + "devDependencies": { + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "@wagmi/cli": "^2.1.8", + "eslint": "^8", + "eslint-config-next": "14.2.3", + "postcss": "^8", + "tailwindcss": "^3.4.1", + "typescript": "^5" + } +} diff --git a/entropy/RAR/app/postcss.config.mjs b/entropy/RAR/app/postcss.config.mjs new file mode 100644 index 0000000..1a69fd2 --- /dev/null +++ b/entropy/RAR/app/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/entropy/RAR/app/providers/app-provider.tsx b/entropy/RAR/app/providers/app-provider.tsx new file mode 100644 index 0000000..f1fc129 --- /dev/null +++ b/entropy/RAR/app/providers/app-provider.tsx @@ -0,0 +1,30 @@ +"use client" + +import { WagmiConfig } from "@/config" +import { QueryClient, QueryClientProvider } from "@tanstack/react-query" +import { ReactNode } from "react" +import { WagmiProvider } from "wagmi" +import { UserProvider } from '@/contexts/UserContext' +import { AudioPlayerProvider } from '@/contexts/AudioPlayerContext' + +const queryClient = new QueryClient() + +interface AppProviderProps { + children: ReactNode +} + +const AppProvider = ({ children }: AppProviderProps) => { + return ( + + + + + {children} + + + + + ) +} + +export default AppProvider \ No newline at end of file diff --git a/entropy/RAR/app/public/next.svg b/entropy/RAR/app/public/next.svg new file mode 100644 index 0000000..5174b28 --- /dev/null +++ b/entropy/RAR/app/public/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/entropy/RAR/app/public/vercel.svg b/entropy/RAR/app/public/vercel.svg new file mode 100644 index 0000000..d2f8422 --- /dev/null +++ b/entropy/RAR/app/public/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/entropy/RAR/app/services/coinFlipService.ts b/entropy/RAR/app/services/coinFlipService.ts new file mode 100644 index 0000000..4eba517 --- /dev/null +++ b/entropy/RAR/app/services/coinFlipService.ts @@ -0,0 +1,164 @@ +import { CoinFlipAddress } from '@/contracts/addresses' +import COIN_FLIP_ABI from '@/contracts/CoinFlip.json' +import { ethers } from 'ethers' + +// Create a provider (you might want to use your existing provider setup) +const getProvider = () => { + const RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc" + return new ethers.JsonRpcProvider(RPC_URL) +} + +// Create a wallet instance for write operations (if needed) +const getWallet = () => { + const PRIVATE_KEY = process.env.WALLET_PRIVATE_KEY + if (!PRIVATE_KEY) { + throw new Error('WALLET_PRIVATE_KEY environment variable is not set') + } + const provider = getProvider() + return new ethers.Wallet(PRIVATE_KEY, provider) +} + +export const coinFlipService = { + + async requestRandom(userAddress: string): Promise<{ sequenceNumber: string; txHash: string }> { + try { + console.log('Requesting random number from CoinFlip contract...') + + const wallet = getWallet() + const contract = new ethers.Contract(CoinFlipAddress, COIN_FLIP_ABI.abi, wallet) + + // Get the required fee + const fee = await contract.getRequestFee() + console.log('Required fee:', ethers.formatEther(fee), 'ETH') + + // Request random number + const tx = await contract.requestRandom({ value: fee }) + console.log('Transaction sent:', tx.hash) + + const receipt = await tx.wait() + console.log('Transaction confirmed in block:', receipt.blockNumber) + + // Extract sequence number from events + const event = receipt.logs.find((log: any) => + log.address.toLowerCase() === CoinFlipAddress.toLowerCase() + ) + + let sequenceNumber = '0' + if (event) { + const iface = new ethers.Interface(COIN_FLIP_ABI.abi) + const parsedLog = iface.parseLog(event) + if (parsedLog && parsedLog.name === 'RandomRequest') { + sequenceNumber = parsedLog.args.sequenceNumber.toString() + } + } + + return { + sequenceNumber, + txHash: tx.hash + } + + } catch (error: any) { + console.error('Error requesting random number:', error) + throw new Error(`Failed to request random number: ${error.message}`) + } + }, + + // Check if user has a result + async hasUserResult(userAddress: string): Promise { + try { + console.log('Checking if user has result:', userAddress) + + const provider = getProvider() + const contract = new ethers.Contract(CoinFlipAddress, COIN_FLIP_ABI.abi, provider) + + const hasResult = await contract.hasUserResult(userAddress) + console.log('User has result:', hasResult) + + return hasResult + + } catch (error: any) { + console.error('Error checking user result:', error) + throw new Error(`Failed to check user result: ${error.message}`) + } + }, + + // Get user's random result + async getUserResult(userAddress: string): Promise<{ + randomNumber: string + isHeads: boolean + timestamp: number + exists: boolean + }> { + try { + console.log('Getting user result for:', userAddress) + + const provider = getProvider() + const contract = new ethers.Contract(CoinFlipAddress, COIN_FLIP_ABI.abi, provider) + + const result = await contract.getUserResult(userAddress) + console.log('Raw result:', result) + + const [randomNumber, isHeads, timestamp, exists] = result + + return { + randomNumber, + isHeads, + timestamp: Number(timestamp), + exists + } + + } catch (error: any) { + console.error('Error getting user result:', error) + throw new Error(`Failed to get user result: ${error.message}`) + } + }, + + // Alternative implementation using event listening for real-time updates + async waitForUserResult(userAddress: string, timeoutMs = 60000): Promise<{ + randomNumber: string + isHeads: boolean + timestamp: number + exists: boolean + }> { + return new Promise(async (resolve, reject) => { + const startTime = Date.now() + + const checkInterval = setInterval(async () => { + try { + // Check if timeout reached + if (Date.now() - startTime > timeoutMs) { + clearInterval(checkInterval) + reject(new Error('Timeout waiting for random result')) + return + } + + // Check if result exists + const hasResult = await this.hasUserResult(userAddress) + if (hasResult) { + clearInterval(checkInterval) + const result = await this.getUserResult(userAddress) + resolve(result) + } + } catch (error) { + clearInterval(checkInterval) + reject(error) + } + }, 2000) // Check every 2 seconds + }) + }, + + // Get the current request fee + async getRequestFee(): Promise { + try { + const provider = getProvider() + const contract = new ethers.Contract(CoinFlipAddress, COIN_FLIP_ABI.abi, provider) + + const fee = await contract.getRequestFee() + return ethers.formatEther(fee) + + } catch (error: any) { + console.error('Error getting request fee:', error) + throw new Error(`Failed to get request fee: ${error.message}`) + } + } +} \ No newline at end of file diff --git a/entropy/RAR/app/services/playlistBattleService.ts b/entropy/RAR/app/services/playlistBattleService.ts new file mode 100644 index 0000000..c4e12d6 --- /dev/null +++ b/entropy/RAR/app/services/playlistBattleService.ts @@ -0,0 +1,259 @@ +import { supabase } from '@/lib/supabase' +import { coinFlipService } from './coinFlipService' +import { songService } from './songService' + +export const playlistBattleService = { + + async initializeBattle( + userId: string, + playlistPromptId: string, + userAddress: string + ): Promise { + try { + console.log('šŸŽ® Initializing playlist battle for user:', userId) + + // Step 1: Get random number from CoinFlip + const { sequenceNumber, txHash } = await coinFlipService.requestRandom(userAddress) + console.log('Random number requested, sequence:', sequenceNumber) + + // Step 2: Wait for result + const randomResult = await coinFlipService.waitForUserResult(userAddress, 60000) + console.log('Random result received:', randomResult) + + const initialSeedCount = randomResult.isHeads ? 0 : 2 + console.log(`Coin flip result: ${randomResult.isHeads ? 'Heads' : 'Tails'} -> ${initialSeedCount} initial seeds`) + + // Step 3: Generate library of 10 songs (similar to daily playlists) + const allSongs = await songService.getSongs() + console.log(`Found ${allSongs.length} total songs`) + + const librarySongs = this.generateLibrary(allSongs, randomResult.randomNumber, 10) + console.log('Generated library:', librarySongs.map(s => s.title)) + + // Step 4: Split songs between playlist and queue + const { playlistSongs, queueSongs } = this.distributeSongs(librarySongs, initialSeedCount) + console.log(`Distribution - Playlist: ${playlistSongs.length}, Queue: ${queueSongs.length}`) + + // Step 5: Create battle instance in database (similar to daily_playlists) + const { data: battleInstance, error } = await supabase + .from('playlist_battle_instances') + .insert({ + user_id: userId, + playlist_prompt_id: playlistPromptId, + random_seed: randomResult.randomNumber, + coin_flip_result: randomResult.isHeads, + initial_seed_count: initialSeedCount, + library_songs: librarySongs.map(song => song.id), + playlist_songs: playlistSongs.map(song => song.id), + queue_songs: queueSongs.map(song => song.id), + energy_units: 100 + }) + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + if (error) { + console.error('Database error:', error) + throw error + } + + console.log('Battle instance created:', battleInstance.id) + return battleInstance + + } catch (error) { + console.error('Error initializing playlist battle:', error) + throw error + } + }, + + // Get user's active battle instances (similar to getTodaysPlaylists) + async getUserBattles(userId: string): Promise { + const { data, error } = await supabase + .from('playlist_battle_instances') + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .eq('user_id', userId) + .order('created_at', { ascending: false }) + + if (error) throw error + return data || [] + }, + + // Get specific battle instance with full details (similar to getPlaylistData) + async getBattleInstance(battleInstanceId: string): Promise { + const { data, error } = await supabase + .from('playlist_battle_instances') + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .eq('id', battleInstanceId) + .single() + + if (error) throw error + return data + }, + + // Get battle songs with full details (similar to your daily playlists pattern) + async getBattleSongs(battleInstanceId: string): Promise<{ + playlistSongs: any[] + queueSongs: any[] + librarySongs: any[] + }> { + const battleInstance = await this.getBattleInstance(battleInstanceId) + + // Get all songs to map IDs to full song objects (similar to songService.getSongs()) + const allSongs = await songService.getSongs() + const songMap = new Map(allSongs.map(song => [song.id, song])) + + const playlistSongs = battleInstance.playlist_songs + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + const queueSongs = battleInstance.queue_songs + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + const librarySongs = battleInstance.library_songs + .map((songId: string) => songMap.get(songId)) + .filter(Boolean) + + return { + playlistSongs, + queueSongs, + librarySongs + } + }, + + // Add song from queue to playlist + async addSongToPlaylist(battleInstanceId: string, songId: string): Promise { + const { data: battle, error: fetchError } = await supabase + .from('playlist_battle_instances') + .select('playlist_songs, queue_songs, energy_units') + .eq('id', battleInstanceId) + .single() + + if (fetchError) throw fetchError + + // Check if song exists in queue + if (!battle.queue_songs.includes(songId)) { + throw new Error('Song not found in queue') + } + + // Check energy + if (battle.energy_units < 5) { + throw new Error('Not enough energy to add song') + } + + // Remove from queue and add to playlist, and update energy + const updatedQueue = battle.queue_songs.filter((id: string) => id !== songId) + const updatedPlaylist = [...battle.playlist_songs, songId] + const newEnergy = battle.energy_units - 5 + + const { data: updatedBattle, error: updateError } = await supabase + .from('playlist_battle_instances') + .update({ + playlist_songs: updatedPlaylist, + queue_songs: updatedQueue, + energy_units: newEnergy, + updated_at: new Date().toISOString() + }) + .eq('id', battleInstanceId) + .select(` + *, + playlist_prompt:playlist_battle_prompts(*) + `) + .single() + + if (updateError) throw updateError + return updatedBattle +}, + + // Get available playlist battle prompts (similar to playlist_definitions) + async getPlaylistBattlePrompts(): Promise { + const { data, error } = await supabase + .from('playlist_battle_prompts') + .select('*') + .eq('is_active', true) + .order('created_at', { ascending: true }) + + if (error) { + console.error('Error fetching playlist battle prompts:', error) + return this.getFallbackPrompts() + } + + return data || this.getFallbackPrompts() + }, + + // Fallback prompts (in case table is empty) + getFallbackPrompts() { + return [ + { + id: 'workout-energy-mix', + name: 'Workout Energy Mix', + description: 'High-energy tracks to fuel your session', + color_gradient: 'from-purple-600 to-blue-600' + }, + { + id: 'chill-vibes-only', + name: 'Chill Vibes Only', + description: 'Relaxing beats for your downtime', + color_gradient: 'from-green-600 to-emerald-600' + }, + { + id: 'party-starters', + name: 'Party Starters', + description: 'Get the celebration going', + color_gradient: 'from-orange-600 to-red-600' + }, + { + id: 'focus-flow', + name: 'Focus Flow', + description: 'Deep concentration soundtrack', + color_gradient: 'from-blue-600 to-cyan-600' + } + ] + }, + + // The following methods remain the same as before: + generateLibrary(allSongs: any[], seed: string, count: number): any[] { + if (allSongs.length <= count) return allSongs + const shuffled = this.seededShuffle([...allSongs], seed) + return shuffled.slice(0, count) + }, + + distributeSongs(librarySongs: any[], initialSeedCount: number): { + playlistSongs: any[] + queueSongs: any[] + } { + const playlistSongs = librarySongs.slice(0, initialSeedCount) + const queueSongs = librarySongs.slice(initialSeedCount) + return { playlistSongs, queueSongs } + }, + + seededShuffle(array: any[], seed: string): any[] { + const shuffled = [...array] + const random = this.createSeededRandom(seed) + for (let i = shuffled.length - 1; i > 0; i--) { + const j = Math.floor(random() * (i + 1)); + [shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]] + } + return shuffled + }, + + createSeededRandom(seed: string): () => number { + let state = this.bytes32ToNumber(seed) + return () => { + state = (state * 1664525 + 1013904223) % 4294967296 + return state / 4294967296 + } + }, + + bytes32ToNumber(bytes32: string): number { + return parseInt(bytes32.slice(2, 10), 16) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/services/playlistGenerationService.ts b/entropy/RAR/app/services/playlistGenerationService.ts new file mode 100644 index 0000000..726187d --- /dev/null +++ b/entropy/RAR/app/services/playlistGenerationService.ts @@ -0,0 +1,93 @@ +import { supabase } from '@/lib/supabase' + +class PlaylistGenerationService { + private hasGeneratedThisSession = false + private generationPromise: Promise | null = null + + async ensurePlaylistsGenerated(): Promise { + // Quick session check + if (this.hasGeneratedThisSession) { + return true + } + + if (this.generationPromise) { + return this.generationPromise + } + + this.generationPromise = this.generatePlaylistsIfNeeded() + const result = await this.generationPromise + + if (result) { + this.hasGeneratedThisSession = true + } + + return result + } + + private async generatePlaylistsIfNeeded(): Promise { + try { + const today = new Date().toISOString().split('T')[0] + + // FIRST: Check if playlists already exist + const { data: existingPlaylists } = await supabase + .from('daily_playlists') + .select('id') + .eq('day', today) + .limit(1) + + // If playlists exist, STOP HERE - no API calls needed + if (existingPlaylists && existingPlaylists.length > 0) { + console.log('šŸŽµ Playlists already exist for today - skipping generation') + return true + } + + console.log('šŸ”„ No playlists found, starting generation...') + + // SECOND: Check if seed exists before generating + const { data: existingSeed } = await supabase + .from('daily_seeds') + .select('seed_hash') + .order('created_at', { ascending: false }) + .limit(1) + + // Only call seed API if no seed exists + if (!existingSeed || existingSeed.length === 0) { + console.log('🌱 No seed found, generating seed...') + const seedResponse = await fetch('/api/generate-daily-seed') + const seedData = await seedResponse.json() + + if (!seedData.success) { + console.error('āŒ Failed to generate seed:', seedData.error) + return false + } + console.log('āœ… Seed generated successfully') + } else { + console.log('🌱 Using existing seed') + } + + // THIRD: Generate playlists (this will use the existing or new seed) + console.log('šŸŽµ Generating playlists...') + const playlistsResponse = await fetch('/api/generate-playlists') + const playlistsData = await playlistsResponse.json() + + if (playlistsData.success) { + console.log('āœ… Playlists generated successfully') + return true + } else { + console.error('āŒ Failed to generate playlists:', playlistsData.error) + return false + } + + } catch (error) { + console.error('āŒ Error in playlist generation:', error) + return false + } + } + + resetSession() { + this.hasGeneratedThisSession = false + this.generationPromise = null + } +} + +export const playlistGenerationService = new PlaylistGenerationService() diff --git a/entropy/RAR/app/services/randomSeedService.ts b/entropy/RAR/app/services/randomSeedService.ts new file mode 100644 index 0000000..2eaaa63 --- /dev/null +++ b/entropy/RAR/app/services/randomSeedService.ts @@ -0,0 +1,78 @@ +import { songService } from './songService' +import { supabase } from '@/lib/supabase' +import { Song } from '@/types/song' + +export const randomSeedService = { + + async hasPlaylistsForToday(): Promise { + const today = new Date().toISOString().split('T')[0] + + const { data } = await supabase + .from('daily_playlists') + .select('id') + .eq('day', today) + .limit(1) + + return !!data && data.length > 0 + }, + + async getTodaysPlaylists(): Promise { + const today = new Date().toISOString().split('T')[0] + + const { data: dailyPlaylists, error } = await supabase + .from('daily_playlists') + .select(` + *, + playlist_definition:playlist_definitions(*) + `) + .eq('day', today) + + if (error) { + console.error('Error fetching playlists:', error) + return this.getFallbackPlaylists() + } + + if (!dailyPlaylists || dailyPlaylists.length === 0) { + return this.getFallbackPlaylists() + } + + // Get all songs to populate the playlist data + const allSongs = await songService.getSongs() + const songMap = new Map(allSongs.map(song => [song.id, song])) + + // Populate playlists with song data + return dailyPlaylists.map(dailyPlaylist => ({ + id: dailyPlaylist.id, // This is the important ID for routing + name: dailyPlaylist.playlist_definition.name, + description: dailyPlaylist.playlist_definition.description, + color: dailyPlaylist.playlist_definition.color_gradient, + songs: dailyPlaylist.song_ids + .map((songId: string) => songMap.get(songId)) + .filter(Boolean), + songCount: dailyPlaylist.song_ids.length + })) +}, + + // Fallback playlists (when no auto-generated ones exist) + getFallbackPlaylists() { + const fallbacks = [ + { name: "Daily Mix 1", description: "Your personalized mix", color: "bg-gradient-to-br from-purple-900 to-blue-500" }, + { name: "Daily Mix 2", description: "Fresh tracks for you", color: "bg-gradient-to-br from-green-900 to-emerald-500" }, + { name: "Daily Mix 3", description: "Curated just for today", color: "bg-gradient-to-br from-orange-900 to-red-500" }, + { name: "Daily Mix 4", description: "Your daily rotation", color: "bg-gradient-to-br from-blue-900 to-cyan-500" }, + { name: "Daily Mix 5", description: "Today's special mix", color: "bg-gradient-to-br from-pink-900 to-rose-500" }, + { name: "Discover Weekly", description: "New music discoveries", color: "bg-gradient-to-br from-yellow-900 to-amber-500" }, + { name: "Release Radar", description: "Latest releases for you", color: "bg-gradient-to-br from-indigo-900 to-purple-500" }, + { name: "Trending", description: "What's hot right now", color: "bg-gradient-to-br from-red-900 to-orange-500" }, + { name: "Daylist", description: "Music for your day", color: "bg-gradient-to-br from-teal-900 to-green-500" }, + { name: "Rewind", description: "Throwback favorites", color: "bg-gradient-to-br from-gray-900 to-blue-400" } + ] + + return fallbacks.map((fb, index) => ({ + ...fb, + id: index + 1, + songs: [], + songCount: 0 + })) + } +} \ No newline at end of file diff --git a/entropy/RAR/app/services/songService.ts b/entropy/RAR/app/services/songService.ts new file mode 100644 index 0000000..04804c4 --- /dev/null +++ b/entropy/RAR/app/services/songService.ts @@ -0,0 +1,125 @@ +import { supabase } from '@/lib/supabase' +import { Song, UploadSongData } from '@/types/song' +import { useUser } from '@/contexts/UserContext' + +export const songService = { + + async uploadSong(songData: UploadSongData, userId?: string) { + try { + const { title, artist, album, file } = songData + + // Generate unique file path + const fileExt = file.name.split('.').pop() + const fileName = `${Math.random().toString(36).substring(2)}_${Date.now()}.${fileExt}` + const filePath = `songs/${fileName}` + + + // Upload file to Supabase Storage + const { data: uploadData, error: uploadError } = await supabase.storage + .from('songs') + .upload(filePath, file) + + if (uploadError) { + throw new Error(`Upload failed: ${uploadError.message}`) + } + + // Get public URL for the uploaded file + const { data: { publicUrl } } = supabase.storage + .from('songs') + .getPublicUrl(filePath) + + // Create song record in database with user association + const songDataToInsert: any = { + title, + artist, + album, + file_path: filePath, + file_size: file.size, + mime_type: file.type, + duration: 0, + } + + // Add user_id if available + if (userId) { + songDataToInsert.user_id = userId + } + + const { data: song, error: dbError } = await supabase + .from('songs') + .insert(songDataToInsert) + .select() + .single() + + if (dbError) { + // Clean up uploaded file if database insert fails + await supabase.storage.from('songs').remove([filePath]) + throw new Error(`Database error: ${dbError.message}`) + } + + return { + song, + publicUrl + } + } catch (error) { + console.error('Error uploading song:', error) + throw error + } + }, + + // Get all songs + async getSongs(): Promise { + const { data, error } = await supabase + .from('songs') + .select('*') + .order('created_at', { ascending: false }) + + if (error) { + throw new Error(`Failed to fetch songs: ${error.message}`) + } + + return data || [] + }, + + // Get song by ID + async getSongById(id: string): Promise { + const { data, error } = await supabase + .from('songs') + .select('*') + .eq('id', id) + .single() + + if (error) { + console.error('Error fetching song:', error) + return null + } + + return data + }, + + // Get public URL for song file + getSongUrl(filePath: string): string { + const { data: { publicUrl } } = supabase.storage + .from('songs') + .getPublicUrl(filePath) + + return publicUrl + }, + + // Increment play count + async incrementPlayCount(songId: string): Promise { + const { error } = await supabase.rpc('increment_play_count', { song_id: songId }) + + if (error) { + console.error('Error incrementing play count:', error) + } + }, + + // Like a song + async likeSong(songId: string): Promise { + const { error } = await supabase.rpc('increment_likes', { song_id: songId }) + + if (error) { + console.error('Error liking song:', error) + } + } +} \ No newline at end of file diff --git a/entropy/RAR/app/services/userService.ts b/entropy/RAR/app/services/userService.ts new file mode 100644 index 0000000..5a732a0 --- /dev/null +++ b/entropy/RAR/app/services/userService.ts @@ -0,0 +1,127 @@ +import { supabase } from '@/lib/supabase' +import { User, CreateUserData } from '@/types/user' + +export const userService = { + + generateRandomUsername(): string { + const nouns = ['Dreamer', 'Visionary', 'Harmony', 'Sonata', 'Nocturne', 'Melody', 'Echo', 'Aura', 'Mirage', 'Oasis', 'Nebula', 'Constellation', 'Infinity', 'Eternity', 'Solace', 'Reverie', 'Lullaby', 'Cascade', 'Zephyr', 'Horizon']; + const numbers = Math.floor(1000 + Math.random() * 9000) // 4-digit random number + + const noun = nouns[Math.floor(Math.random() * nouns.length)] + + return `${noun}${numbers}` + }, + + // Check if username is available + async isUsernameAvailable(username: string): Promise { + const { data, error } = await supabase + .from('users') + .select('username') + .eq('username', username) + .single() + + if (error && error.code === 'PGRST116') { + // No rows returned, username is available + return true + } + + return !data + }, + + // Generate a unique username + async generateUniqueUsername(): Promise { + let username: string + let attempts = 0 + const maxAttempts = 10 + + do { + username = this.generateRandomUsername() + const isAvailable = await this.isUsernameAvailable(username) + + if (isAvailable) { + return username + } + + attempts++ + } while (attempts < maxAttempts) + + // Fallback: use timestamp if all attempts fail + return `User${Date.now()}` + }, + + // Get user by wallet address + async getUserByWalletAddress(walletAddress: string): Promise { + const { data, error } = await supabase + .from('users') + .select('*') + .eq('wallet_address', walletAddress.toLowerCase()) + .single() + + if (error) { + console.error('Error fetching user:', error) + return null + } + + return data + }, + + // Create new user + async createUser(walletAddress: string): Promise { + try { + const username = await this.generateUniqueUsername() + + const { data, error } = await supabase + .from('users') + .insert({ + wallet_address: walletAddress.toLowerCase(), + username + }) + .select() + .single() + + if (error) { + console.error('Error creating user:', error) + return null + } + + console.log('Created new user:', data) + return data + } catch (error) { + console.error('Error in createUser:', error) + return null + } + }, + + // Get or create user + async getOrCreateUser(walletAddress: string): Promise { + // First, try to get existing user + const existingUser = await this.getUserByWalletAddress(walletAddress) + + if (existingUser) { + return existingUser + } + + // If no user exists, create a new one + return await this.createUser(walletAddress) + }, + + // Update username (for future use when users want to change their username) + async updateUsername(walletAddress: string, newUsername: string): Promise { + const { data, error } = await supabase + .from('users') + .update({ + username: newUsername, + updated_at: new Date().toISOString() + }) + .eq('wallet_address', walletAddress.toLowerCase()) + .select() + .single() + + if (error) { + console.error('Error updating username:', error) + return null + } + + return data + } +} \ No newline at end of file diff --git a/entropy/RAR/app/supabase/config.toml b/entropy/RAR/app/supabase/config.toml new file mode 100644 index 0000000..ef506a9 --- /dev/null +++ b/entropy/RAR/app/supabase/config.toml @@ -0,0 +1,2 @@ +[auth.web3.ethereum] +enabled = true \ No newline at end of file diff --git a/entropy/RAR/app/tailwind.config.ts b/entropy/RAR/app/tailwind.config.ts new file mode 100644 index 0000000..84287e8 --- /dev/null +++ b/entropy/RAR/app/tailwind.config.ts @@ -0,0 +1,80 @@ +import type { Config } from "tailwindcss" + +const config = { + darkMode: ["class"], + content: [ + './pages/**/*.{ts,tsx}', + './components/**/*.{ts,tsx}', + './app/**/*.{ts,tsx}', + './src/**/*.{ts,tsx}', + ], + prefix: "", + theme: { + container: { + center: true, + padding: "2rem", + screens: { + "2xl": "1400px", + }, + }, + extend: { + colors: { + border: "hsl(var(--border))", + input: "hsl(var(--input))", + ring: "hsl(var(--ring))", + background: "hsl(var(--background))", + foreground: "hsl(var(--foreground))", + primary: { + DEFAULT: "hsl(var(--primary))", + foreground: "hsl(var(--primary-foreground))", + }, + secondary: { + DEFAULT: "hsl(var(--secondary))", + foreground: "hsl(var(--secondary-foreground))", + }, + destructive: { + DEFAULT: "hsl(var(--destructive))", + foreground: "hsl(var(--destructive-foreground))", + }, + muted: { + DEFAULT: "hsl(var(--muted))", + foreground: "hsl(var(--muted-foreground))", + }, + accent: { + DEFAULT: "hsl(var(--accent))", + foreground: "hsl(var(--accent-foreground))", + }, + popover: { + DEFAULT: "hsl(var(--popover))", + foreground: "hsl(var(--popover-foreground))", + }, + card: { + DEFAULT: "hsl(var(--card))", + foreground: "hsl(var(--card-foreground))", + }, + }, + borderRadius: { + lg: "var(--radius)", + md: "calc(var(--radius) - 2px)", + sm: "calc(var(--radius) - 4px)", + }, + keyframes: { + "accordion-down": { + from: { height: "0" }, + to: { height: "var(--radix-accordion-content-height)" }, + }, + "accordion-up": { + from: { height: "var(--radix-accordion-content-height)" }, + to: { height: "0" }, + }, + }, + animation: { + "accordion-down": "accordion-down 0.2s ease-out", + "accordion-up": "accordion-up 0.2s ease-out", + }, + }, + }, + plugins: [require("tailwindcss-animate")], +} satisfies Config + +export default config \ No newline at end of file diff --git a/entropy/RAR/app/tsconfig.json b/entropy/RAR/app/tsconfig.json new file mode 100644 index 0000000..e7ff90f --- /dev/null +++ b/entropy/RAR/app/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/entropy/RAR/app/types/coin.ts b/entropy/RAR/app/types/coin.ts new file mode 100644 index 0000000..11e1b54 --- /dev/null +++ b/entropy/RAR/app/types/coin.ts @@ -0,0 +1,6 @@ +export interface CoinFlipResult { + randomNumber: string + isHeads: boolean + timestamp: number + exists: boolean +} \ No newline at end of file diff --git a/entropy/RAR/app/types/gallery.ts b/entropy/RAR/app/types/gallery.ts new file mode 100644 index 0000000..a0395e6 --- /dev/null +++ b/entropy/RAR/app/types/gallery.ts @@ -0,0 +1,30 @@ +export interface GalleryPlaylist { + id: string + playlist_name: string + playlist_description: string + playlist_songs: string[] + energy_remaining: number + likes: number + play_count: number + vote_count: number + submitted_at: string + user: { + username: string + wallet_address: string + reputation_level: number + } + playlist_prompt: { + id: string + name: string + description: string + color_gradient: string + } +} + +export interface PlaylistVote { + id: string + user_id: string + gallery_playlist_id: string + vote_type: 'upvote' | 'downvote' + created_at: string +} diff --git a/entropy/RAR/app/types/song.ts b/entropy/RAR/app/types/song.ts new file mode 100644 index 0000000..abf4303 --- /dev/null +++ b/entropy/RAR/app/types/song.ts @@ -0,0 +1,21 @@ +export interface Song { + id: string + title: string + artist: string + album?: string + duration: number + file_path: string + file_size: number + mime_type: string + uploader_ip?: string + created_at: string + play_count: number + likes: number +} + +export interface UploadSongData { + title: string + artist: string + album?: string + file: File +} \ No newline at end of file diff --git a/entropy/RAR/app/types/user.ts b/entropy/RAR/app/types/user.ts new file mode 100644 index 0000000..c139f17 --- /dev/null +++ b/entropy/RAR/app/types/user.ts @@ -0,0 +1,12 @@ +export interface User { + id: string + wallet_address: string + username: string + created_at: string + updated_at: string +} + +export interface CreateUserData { + wallet_address: string + username: string +} \ No newline at end of file diff --git a/entropy/RAR/app/wagmi.config.ts b/entropy/RAR/app/wagmi.config.ts new file mode 100644 index 0000000..e634c00 --- /dev/null +++ b/entropy/RAR/app/wagmi.config.ts @@ -0,0 +1,10 @@ +// import * as NFTGrowth from "@/contracts/NFTGrowth.json" +// import { defineConfig } from "@wagmi/cli" +// import { react } from "@wagmi/cli/plugins" +// import { Abi } from "viem" + +// export default defineConfig({ +// out: "contracts/generated.ts", +// contracts: [{ name: "NFTGrowth", abi: NFTGrowth.abi as Abi }], +// plugins: [react()], +// }) diff --git a/entropy/RAR/contract/.gitignore b/entropy/RAR/contract/.gitignore new file mode 100644 index 0000000..e8c12ff --- /dev/null +++ b/entropy/RAR/contract/.gitignore @@ -0,0 +1,17 @@ +node_modules +.env + +# Hardhat files +/cache +/artifacts + +# TypeChain files +/typechain +/typechain-types + +# solidity-coverage files +/coverage +/coverage.json + +# Hardhat Ignition default folder for deployments against a local node +ignition/deployments/chain-31337 diff --git a/entropy/RAR/contract/.vscode/settings.json b/entropy/RAR/contract/.vscode/settings.json new file mode 100644 index 0000000..8e94afc --- /dev/null +++ b/entropy/RAR/contract/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "solidity.compileUsingRemoteVersion": "v0.8.26+commit.8a97fa7a" +} diff --git a/entropy/RAR/contract/README.md b/entropy/RAR/contract/README.md new file mode 100644 index 0000000..bb19d3d --- /dev/null +++ b/entropy/RAR/contract/README.md @@ -0,0 +1,81 @@ +# NFT Growth Contract + +This repository contains the smart contracts for the NFT Growth project, utilizing Solidity ^0.8.24. The contracts enable the creation, management, and interaction with NFTs while integrating with the Pyth network for entropy (randomness) services. + +## Contracts Overview + +- **NFT.sol**: Implements an ERC721A token with functionalities for ownership and basic NFT management. +- **NFTGrowth.sol**: Extends `NFT.sol` to add functionality for NFT growth, which uses entropy from the Pyth network to influence NFT states. + +## Features + +- Minting new NFTs with initial properties. +- Growing NFTs by influencing their state with external entropy. +- Locking and Unlocking NFT Mechanics: This functionality is crucial for managing the state of an NFT between random number requests and callbacks. The lock prevents new growth requests on an NFT until the current process is complete, thus avoiding callback spam. Once a callback has been completed and processed, the NFT can be unlocked, allowing further interactions. This ensures that each growth step is completed before a new one begins, maintaining the integrity and sequential logic of NFT state changes. +- Withdrawal of contract balance by the owner. + +## Dependencies + +- OpenZeppelin Contracts (Access Control, Security) +- ERC721A Contracts (Efficient batch minting) +- Pyth Network Entropy SDK (Randomness) + +## Getting Started + +### Prerequisites + +- Node.js and npm/yarn installed. +- Bunx and Hardhat setup for smart contract compilation and deployment. + +### Installation + +Clone the repository and install the dependencies: + +```sh +bun install +``` + +### Deploying to Blast Network + +To deploy the contracts to the Blast Sepolia network, use the following commands: + +1. **Deploy and verify the Contract**: + ```sh + bunx hardhat ignition deploy ignition/modules/App.ts --network blast-sepolia --verify + ``` + +### Interacting with the Contracts + +After deployment, you can interact with the contracts through the Next.js project built for this demo + +## Contract Functions + +### NFT Contract + +- `tokensOfOwner(address owner)`: Returns a list of token IDs owned by a given address. +- `withdraw(address to)`: Withdraws the balance to a specified address. + +### NFTGrowth Contract + +- `mint()`: Allows a user to mint a new NFT. +- `grow(uint256 tokenId, bytes32 userRandomNumber)`: Initiates the growth process of an NFT. +- `unlock(uint256 tokenId)`: Unlocks the NFT after a lock period. +- `ownerUnlock(uint256 tokenId)`: Allows the owner to unlock an NFT regardless of lock status. +- `getGrowFee()`: Returns the fee required for making a grow request. + +### Internal Functions + +- `requireLock(uint256 tokenId)`: Ensures that the NFT is locked and the lock period has expired before allowing certain actions. +- `requireOwnership(uint256 tokenId)`: Checks if the caller is the owner of the NFT. +- `entropyCallback(uint64 sequenceNumber, address provider, bytes32 randomNumber)`: Callback function used by the entropy system to deliver results. + +## Events + +- `NFTResult`: Emitted after the growth process with the result of the randomness. +- `NftGrowthRequested`: Indicates that an NFT growth request has been made. + +## Acknowledgments + +This example of using Pyth Entropy was created by [lualabs.xyz](https://lualabs.xyz). + +We hope this starter example inspires you to continue innovating and building creative solutions with NFTs. diff --git a/entropy/RAR/contract/bun.lockb b/entropy/RAR/contract/bun.lockb new file mode 100755 index 0000000..b6d2d66 Binary files /dev/null and b/entropy/RAR/contract/bun.lockb differ diff --git a/entropy/RAR/contract/contracts/CoinFlip.sol b/entropy/RAR/contract/contracts/CoinFlip.sol new file mode 100644 index 0000000..91a0fbb --- /dev/null +++ b/entropy/RAR/contract/contracts/CoinFlip.sol @@ -0,0 +1,123 @@ +// SPDX-License-Identifier: Apache 2 +pragma solidity ^0.8.0; + +import "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol"; +import "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol"; + +contract CoinFlip is IEntropyConsumer { + event RandomRequest(uint64 sequenceNumber, address user); + event RandomResult(address user, bytes32 randomNumber, bool isHeads); + + IEntropyV2 private entropy; + address private entropyProvider; + + struct UserResult { + bytes32 randomNumber; + bool isHeads; + uint256 timestamp; + bool exists; + } + + mapping(uint64 => address) public requestToUser; + mapping(address => UserResult) public userLatestResult; + + error InsufficientFee(); + + constructor(address _entropy, address _entropyProvider) { + entropy = IEntropyV2(_entropy); + entropyProvider = _entropyProvider; + } + + /** + * @dev Request a random number for the calling user + * @return sequenceNumber The unique identifier for this request + */ + function requestRandom() external payable returns (uint64) { + uint256 fee = entropy.getFeeV2(); + if (msg.value < fee) { + revert InsufficientFee(); + } + + uint64 sequenceNumber = entropy.requestV2{value: fee}(); + + requestToUser[sequenceNumber] = msg.sender; + + emit RandomRequest(sequenceNumber, msg.sender); + return sequenceNumber; + } + + /** + * @dev Callback function called by Entropy contract with the random result + * @param sequenceNumber Unique identifier for the request + * @param randomNumber The 32-byte cryptographically secure random hash + */ + function entropyCallback( + uint64 sequenceNumber, + address, + bytes32 randomNumber + ) internal override { + address user = requestToUser[sequenceNumber]; + require(user != address(0), "Invalid request"); + + + bool isHeads = uint256(randomNumber) % 2 == 0; + + + userLatestResult[user] = UserResult({ + randomNumber: randomNumber, + isHeads: isHeads, + timestamp: block.timestamp, + exists: true + }); + + + delete requestToUser[sequenceNumber]; + + emit RandomResult(user, randomNumber, isHeads); + } + + /** + * @dev Get the latest result for a user + * @param user The address to query + * @return randomNumber The 32-byte random hash + * @return isHeads The heads/tails result (true = heads, false = tails) + * @return timestamp When the result was generated + * @return exists Whether the user has any result + */ + function getUserResult(address user) + external + view + returns (bytes32 randomNumber, bool isHeads, uint256 timestamp, bool exists) + { + UserResult storage result = userLatestResult[user]; + return (result.randomNumber, result.isHeads, result.timestamp, result.exists); + } + + /** + * @dev Check if a user has a random result + * @param user The address to query + * @return exists Whether the user has a result + */ + function hasUserResult(address user) external view returns (bool) { + return userLatestResult[user].exists; + } + + /** + * @dev Get the required fee for a random number request + * @return fee The required fee in wei + */ + function getRequestFee() public view returns (uint256) { + return entropy.getFeeV2(); + } + + /** + * @dev Required by IEntropyConsumer interface + * @return address of the entropy contract + */ + function getEntropy() internal view override returns (address) { + return address(entropy); + } + + // Allow the contract to receive funds + receive() external payable {} +} \ No newline at end of file diff --git a/entropy/RAR/contract/contracts/PlaylistReputationNFT.sol b/entropy/RAR/contract/contracts/PlaylistReputationNFT.sol new file mode 100644 index 0000000..ccb3a04 --- /dev/null +++ b/entropy/RAR/contract/contracts/PlaylistReputationNFT.sol @@ -0,0 +1,144 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import "erc721a/contracts/ERC721A.sol"; +import "@openzeppelin/contracts/access/Ownable.sol"; +import {IEntropyConsumer} from "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol"; +import {IEntropy} from "@pythnetwork/entropy-sdk-solidity/IEntropy.sol"; + +contract PlaylistReputationNFT is ERC721A, Ownable, IEntropyConsumer { + struct PlaylistInfo { + string name; + string playlistId; + uint256 reputation; + uint256 createdAt; + bool isActive; + } + + IEntropy entropy; + address entropyProvider; + + mapping(uint256 => PlaylistInfo) public playlists; + mapping(uint64 => uint256) public pendingDecayRequests; + mapping(address => mapping(uint256 => bool)) public hasVoted; + + + uint256 public constant MAX_REPUTATION = 100; + uint256 public constant GROWTH_PER_VOTE = 5; + uint256 public constant DECAY_CHANCE = 30; + + event PlaylistMinted(uint256 indexed tokenId, string name, string playlistId); + event ReputationGrown(uint256 indexed tokenId, uint256 newReputation, address voter); + event DecayTriggered(uint256 indexed tokenId, uint64 sequenceNumber); + event ReputationDecayed(uint256 indexed tokenId, uint256 newReputation); + + constructor(address _entropy, address _provider) ERC721A("PlaylistRep", "PLREP") Ownable(msg.sender) { + entropy = IEntropy(_entropy); + entropyProvider = _provider; + } + + function mintPlaylist(address to, string calldata name, string calldata playlistId) external returns (uint256) { + uint256 tokenId = _nextTokenId(); + _mint(to, 1); + + playlists[tokenId] = PlaylistInfo({ + name: name, + playlistId: playlistId, + reputation: 50, // Start at 50% reputation + createdAt: block.timestamp, + isActive: true + }); + + emit PlaylistMinted(tokenId, name, playlistId); + return tokenId; + } + + function voteForPlaylist(uint256 tokenId) external { + require(_exists(tokenId), "Playlist does not exist"); + require(!hasVoted[msg.sender][tokenId], "Already voted for this playlist"); + require(playlists[tokenId].isActive, "Playlist is inactive"); + + PlaylistInfo storage playlist = playlists[tokenId]; + + // Grow reputation deterministically + if (playlist.reputation + GROWTH_PER_VOTE <= MAX_REPUTATION) { + playlist.reputation += GROWTH_PER_VOTE; + } else { + playlist.reputation = MAX_REPUTATION; + } + + hasVoted[msg.sender][tokenId] = true; + emit ReputationGrown(tokenId, playlist.reputation, msg.sender); + } + + function triggerDecay(uint256 tokenId) external payable { + require(_exists(tokenId), "Playlist does not exist"); + require(playlists[tokenId].isActive, "Playlist is inactive"); + require(playlists[tokenId].reputation > 0, "Reputation already at minimum"); + + uint128 requestFee = entropy.getFee(entropyProvider); + require(msg.value >= requestFee, "Not enough fees"); + + uint64 sequenceNumber = entropy.requestWithCallback{value: requestFee}( + entropyProvider, + bytes32(0) // No user random number needed + ); + + pendingDecayRequests[sequenceNumber] = tokenId; + emit DecayTriggered(tokenId, sequenceNumber); + } + + function entropyCallback(uint64 sequenceNumber, address provider, bytes32 randomNumber) internal override { + uint256 tokenId = pendingDecayRequests[sequenceNumber]; + require(tokenId != 0, "Request not found"); + + PlaylistInfo storage playlist = playlists[tokenId]; + + // 30% chance of decay + uint256 randomValue = uint256(randomNumber) % 100; + if (randomValue < DECAY_CHANCE) { + // Decay by 10% of current reputation + uint256 decayAmount = playlist.reputation / 10; + if (playlist.reputation > decayAmount) { + playlist.reputation -= decayAmount; + } else { + playlist.reputation = 0; + playlist.isActive = false; + } + emit ReputationDecayed(tokenId, playlist.reputation); + } + + delete pendingDecayRequests[sequenceNumber]; + } + + function getEntropy() internal view override returns (address) { + return address(entropy); + } + + function getPlaylistInfo(uint256 tokenId) external view returns (PlaylistInfo memory) { + require(_exists(tokenId), "Playlist does not exist"); + return playlists[tokenId]; + } + + function tokensOfOwner(address owner) public view returns (uint256[] memory) { + unchecked { + uint256 tokenIdsIdx; + address currOwnershipAddr; + uint256 tokenIdsLength = balanceOf(owner); + uint256[] memory tokenIds = new uint256[](tokenIdsLength); + TokenOwnership memory ownership; + for ( + uint256 i = _startTokenId(); + tokenIdsIdx != tokenIdsLength; + ++i + ) { + ownership = _ownershipAt(i); + if (ownership.burned) continue; + if (ownership.addr != address(0)) + currOwnershipAddr = ownership.addr; + if (currOwnershipAddr == owner) tokenIds[tokenIdsIdx++] = i; + } + return tokenIds; + } + } +} \ No newline at end of file diff --git a/entropy/RAR/contract/contracts/RandomSeed.sol b/entropy/RAR/contract/contracts/RandomSeed.sol new file mode 100644 index 0000000..53a1547 --- /dev/null +++ b/entropy/RAR/contract/contracts/RandomSeed.sol @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import { IEntropyConsumer } from "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol"; +import { IEntropyV2 } from "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol"; + +contract RandomSeed is IEntropyConsumer { + IEntropyV2 public entropy; + bytes32 public currentSeed; + + event RandomSeedGenerated(bytes32 seed); + + constructor(address entropyAddress) { + entropy = IEntropyV2(entropyAddress); + } + + function requestRandomSeed() external payable { + uint256 fee = entropy.getFeeV2(); + require(msg.value >= fee, "Insufficient fee"); + uint64 sequenceNumber = entropy.requestV2{ value: fee }(); + } + + function entropyCallback(uint64, address, bytes32 randomNumber) internal override { + currentSeed = randomNumber; + emit RandomSeedGenerated(randomNumber); + } + + function getEntropy() internal view override returns (address) { + return address(entropy); + } +} \ No newline at end of file diff --git a/entropy/RAR/contract/hardhat.config.ts b/entropy/RAR/contract/hardhat.config.ts new file mode 100644 index 0000000..12edee8 --- /dev/null +++ b/entropy/RAR/contract/hardhat.config.ts @@ -0,0 +1,47 @@ +import "@nomicfoundation/hardhat-toolbox-viem"; +import "solidity-coverage"; +import { config as dotenvConfig } from "dotenv"; + +dotenvConfig(); + +const config = { + solidity: { + version: "0.8.24", + settings: { + optimizer: { + runs: 1000, + enabled: true, + }, + viaIR: true, + }, + }, + gasReporter: { + enabled: false, + currency: "USD", + }, + networks: { + + "arbitrum-sepolia": { + url: "https://sepolia-rollup.arbitrum.io/rpc", // Fixed RPC URL + accounts: process.env.WALLET_KEY ? [process.env.WALLET_KEY] : [], + } + }, + etherscan: { + apiKey: { + "arbitrum-sepolia": process.env.ARBISCAN_API_KEY || "", + }, + customChains: [ + { + network: "arbitrum-sepolia", + chainId: 421614, + urls: { + apiURL: "https://api-sepolia.arbiscan.io/api", + browserURL: "https://sepolia.arbiscan.io", + }, + } + ], + }, + defaultNetwork: "hardhat", +}; + +export default config; \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#CoinFlip.dbg.json b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#CoinFlip.dbg.json new file mode 100644 index 0000000..667d77e --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#CoinFlip.dbg.json @@ -0,0 +1,4 @@ +{ + "_format": "hh-sol-dbg-1", + "buildInfo": "../build-info/65dc168e6bb3c2962cb14ad0ea369d2c.json" +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#CoinFlip.json b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#CoinFlip.json new file mode 100644 index 0000000..edb58c3 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#CoinFlip.json @@ -0,0 +1,235 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "CoinFlip", + "sourceName": "contracts/CoinFlip.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_entropy", + "type": "address" + }, + { + "internalType": "address", + "name": "_entropyProvider", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "InsufficientFee", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "RandomRequest", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isHeads", + "type": "bool" + } + ], + "name": "RandomResult", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getRequestFee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "getUserResult", + "outputs": [ + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "isHeads", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "exists", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "hasUserResult", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "requestRandom", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "name": "requestToUser", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "userLatestResult", + "outputs": [ + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "isHeads", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "exists", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "bytecode": "0x60803461008d57601f61077f38819003918201601f19168301916001600160401b0383118484101761009257808492604094855283398101031261008d57610052602061004b836100a8565b92016100a8565b600080546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556040516106c290816100bd8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008d5756fe608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c9081630d37b537146105655750806337e61d6f146102315780633bba000b1461052857806352a5f1f8146102e75780639f392c2b146102a7578063a3333e59146102315763da9f755003610013578160031936011261022d576001600160a01b03825416928151936341025b3d60e11b855260209485818481855afa90811561022357906fffffffffffffffffffffffffffffffff9186916101f6575b5016918234106101cf579085918451809481937f7b43155d0000000000000000000000000000000000000000000000000000000083525af19081156101c3579082918491610175575b5067ffffffffffffffff169283815260028552203373ffffffffffffffffffffffffffffffffffffffff198254161790557f50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d18180518481523386820152a151908152f35b809250858092503d83116101bc575b61018e818361062c565b810103126101b8575167ffffffffffffffff811681036101b857819067ffffffffffffffff610111565b8280fd5b503d610184565b505051903d90823e3d90fd5b83517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b6102169150873d891161021c575b61020e818361062c565b810190610664565b386100c8565b503d610204565b84513d87823e3d90fd5b5080fd5b503461022d57602036600319011261022d5780916001600160a01b036102556105fa565b168152600360205220906102a382549160ff6001850154169360ff60036002830154920154169151948594859260609295949195608085019685521515602085015260408401521515910152565b0390f35b503461022d57602036600319011261022d576001600160a01b038160209367ffffffffffffffff6102d6610615565b168152600285522054169051908152f35b503461022d57606036600319011261022d57610301610615565b6001600160a01b039160243583811603610524576044358385541680156104e15733036104785767ffffffffffffffff80931693848652602090600282528387205416948515610436578351600184161595608082019081118282101761042357916103f086949260609896947f6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda939a98528481526003888c6103d48785018b81528a808701934285528f880195600187528152868b522095518655511515600186019060ff801983541691151516179055565b51600284015551151591019060ff801983541691151516179055565b88526002815282882073ffffffffffffffffffffffffffffffffffffffff1981541690558251948552840152820152a180f35b60248960418c634e487b7160e01b835252fd5b6064888386519162461bcd60e51b8352820152600f60248201527f496e76616c6964207265717565737400000000000000000000000000000000006044820152fd5b608486602084519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606487602085519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b503461022d57602036600319011261022d5760ff6003826020946001600160a01b036105526105fa565b1681528286522001541690519015158152f35b929390503461052457836003193601126105245782602091816001600160a01b038754166341025b3d60e11b82525afa9182156105f057602093926105bf575b506fffffffffffffffffffffffffffffffff905191168152f35b6fffffffffffffffffffffffffffffffff9192506105e990843d861161021c5761020e818361062c565b91906105a5565b81513d85823e3d90fd5b600435906001600160a01b038216820361061057565b600080fd5b6004359067ffffffffffffffff8216820361061057565b90601f8019910116810190811067ffffffffffffffff82111761064e57604052565b634e487b7160e01b600052604160045260246000fd5b9081602091031261061057516fffffffffffffffffffffffffffffffff81168103610610579056fea264697066735822122048e072da4fa8f2a219aa7973eff209bfd0c1c381c67926fd30361497ef53717064736f6c63430008180033", + "deployedBytecode": "0x608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c9081630d37b537146105655750806337e61d6f146102315780633bba000b1461052857806352a5f1f8146102e75780639f392c2b146102a7578063a3333e59146102315763da9f755003610013578160031936011261022d576001600160a01b03825416928151936341025b3d60e11b855260209485818481855afa90811561022357906fffffffffffffffffffffffffffffffff9186916101f6575b5016918234106101cf579085918451809481937f7b43155d0000000000000000000000000000000000000000000000000000000083525af19081156101c3579082918491610175575b5067ffffffffffffffff169283815260028552203373ffffffffffffffffffffffffffffffffffffffff198254161790557f50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d18180518481523386820152a151908152f35b809250858092503d83116101bc575b61018e818361062c565b810103126101b8575167ffffffffffffffff811681036101b857819067ffffffffffffffff610111565b8280fd5b503d610184565b505051903d90823e3d90fd5b83517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b6102169150873d891161021c575b61020e818361062c565b810190610664565b386100c8565b503d610204565b84513d87823e3d90fd5b5080fd5b503461022d57602036600319011261022d5780916001600160a01b036102556105fa565b168152600360205220906102a382549160ff6001850154169360ff60036002830154920154169151948594859260609295949195608085019685521515602085015260408401521515910152565b0390f35b503461022d57602036600319011261022d576001600160a01b038160209367ffffffffffffffff6102d6610615565b168152600285522054169051908152f35b503461022d57606036600319011261022d57610301610615565b6001600160a01b039160243583811603610524576044358385541680156104e15733036104785767ffffffffffffffff80931693848652602090600282528387205416948515610436578351600184161595608082019081118282101761042357916103f086949260609896947f6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda939a98528481526003888c6103d48785018b81528a808701934285528f880195600187528152868b522095518655511515600186019060ff801983541691151516179055565b51600284015551151591019060ff801983541691151516179055565b88526002815282882073ffffffffffffffffffffffffffffffffffffffff1981541690558251948552840152820152a180f35b60248960418c634e487b7160e01b835252fd5b6064888386519162461bcd60e51b8352820152600f60248201527f496e76616c6964207265717565737400000000000000000000000000000000006044820152fd5b608486602084519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606487602085519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b503461022d57602036600319011261022d5760ff6003826020946001600160a01b036105526105fa565b1681528286522001541690519015158152f35b929390503461052457836003193601126105245782602091816001600160a01b038754166341025b3d60e11b82525afa9182156105f057602093926105bf575b506fffffffffffffffffffffffffffffffff905191168152f35b6fffffffffffffffffffffffffffffffff9192506105e990843d861161021c5761020e818361062c565b91906105a5565b81513d85823e3d90fd5b600435906001600160a01b038216820361061057565b600080fd5b6004359067ffffffffffffffff8216820361061057565b90601f8019910116810190811067ffffffffffffffff82111761064e57604052565b634e487b7160e01b600052604160045260246000fd5b9081602091031261061057516fffffffffffffffffffffffffffffffff81168103610610579056fea264697066735822122048e072da4fa8f2a219aa7973eff209bfd0c1c381c67926fd30361497ef53717064736f6c63430008180033", + "linkReferences": {}, + "deployedLinkReferences": {} +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#PlaylistReputationNFT.dbg.json b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#PlaylistReputationNFT.dbg.json new file mode 100644 index 0000000..34932c6 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#PlaylistReputationNFT.dbg.json @@ -0,0 +1,4 @@ +{ + "_format": "hh-sol-dbg-1", + "buildInfo": "../build-info/868fca786570c3fb857b13cfdc500aab.json" +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#PlaylistReputationNFT.json b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#PlaylistReputationNFT.json new file mode 100644 index 0000000..e56e611 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#PlaylistReputationNFT.json @@ -0,0 +1,917 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "PlaylistReputationNFT", + "sourceName": "contracts/PlaylistReputationNFT.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_entropy", + "type": "address" + }, + { + "internalType": "address", + "name": "_provider", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "ApprovalCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "ApprovalQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "BalanceQueryForZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintERC2309QuantityExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "MintToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintZeroQuantity", + "type": "error" + }, + { + "inputs": [], + "name": "NotCompatibleWithSpotMints", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "OwnableInvalidOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "OwnableUnauthorizedAccount", + "type": "error" + }, + { + "inputs": [], + "name": "OwnerQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "OwnershipNotInitializedForExtraData", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialMintExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialUpToTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "SpotMintTokenIdTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "TokenAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "TransferCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "TransferFromIncorrectOwner", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToNonERC721ReceiverImplementer", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "URIQueryForNonexistentToken", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "fromTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "toTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "ConsecutiveTransfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "DecayTriggered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "playlistId", + "type": "string" + } + ], + "name": "PlaylistMinted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newReputation", + "type": "uint256" + } + ], + "name": "ReputationDecayed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newReputation", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "voter", + "type": "address" + } + ], + "name": "ReputationGrown", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "inputs": [], + "name": "DECAY_CHANCE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GROWTH_PER_VOTE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MAX_REPUTATION", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getPlaylistInfo", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + }, + { + "internalType": "uint256", + "name": "reputation", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "createdAt", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "internalType": "struct PlaylistReputationNFT.PlaylistInfo", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "hasVoted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + } + ], + "name": "mintPlaylist", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "name": "pendingDecayRequests", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "playlists", + "outputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + }, + { + "internalType": "uint256", + "name": "reputation", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "createdAt", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "tokensOfOwner", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "result", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "triggerDecay", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "voteForPlaylist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "bytecode": "0x6080604052346200021e57620026d960408138039182620000208162000259565b9384928339810103126200021e5762000039816200027f565b6200004860208093016200027f565b6200005262000294565b926a0506c61796c6973745265760ac1b8185015262000070620002a5565b640504c5245560dc1b82820152845190916001600160401b0382116200021857620000a882620000a2600254620002b6565b620002f3565b80601f83116001146200018357509080620000e292620000eb95969760009262000177575b50508160011b916000199060031b1c19161790565b600255620003a9565b6000805533156200015e576200012c6200014e926200010a3362000497565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516121f89081620004e18239f35b604051631e4fbdf760e01b815260006004820152602490fd5b015190503880620000cd565b6002600052601f198316969091907f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace926000905b898210620001ff57505090839291600194620000eb97989910620001e5575b505050811b01600255620003a9565b015160001960f88460031b161c19169055388080620001d6565b80600185968294968601518155019501930190620001b7565b62000223565b600080fd5b634e487b7160e01b600052604160045260246000fd5b60408051919082016001600160401b038111838210176200021857604052565b6040519190601f01601f191682016001600160401b038111838210176200021857604052565b51906001600160a01b03821682036200021e57565b6200029e62000239565b90600b8252565b620002af62000239565b9060058252565b90600182811c92168015620002e8575b6020831014620002d257565b634e487b7160e01b600052602260045260246000fd5b91607f1691620002c6565b601f811162000300575050565b60009060026000526020600020906020601f850160051c8301941062000343575b601f0160051c01915b8281106200033757505050565b8181556001016200032a565b909250829062000321565b601f81116200035b575050565b60009060036000526020600020906020601f850160051c830194106200039e575b601f0160051c01915b8281106200039257505050565b81815560010162000385565b90925082906200037c565b80519091906001600160401b0381116200021857620003d581620003cf600354620002b6565b6200034e565b602080601f83116001146200040f575081906200040a9394600092620001775750508160011b916000199060031b1c19161790565b600355565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b8782106200047e57505083600195961062000464575b505050811b01600355565b015160001960f88460031b161c1916905538808062000459565b8060018596829496860151815501950193019062000443565b600980546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a356fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d357806323b872dd146101ce57806341ac50b3146101c957806342545825146101c457806342842e0e146101bf5780634535f1c1146101ba57806352a5f1f8146101b55780636352211e146101b057806370a08231146101ab578063715018a6146101a657806377ee63f1146101a15780638462151c1461019c57806385de8b3c146101975780638da5cb5b1461019257806395d89b411461018d578063a22cb46514610188578063a7384a4c14610183578063a9182f3f1461017e578063b88d4fde14610179578063baccd1d214610174578063c87b56dd1461016f578063d213c0f21461016a578063e985e9c514610165578063ecc6362f146101605763f2fde38b1461015b57600080fd5b61154b565b6114c2565b611383565b611367565b6112e6565b6112a7565b61124c565b6110c8565b610ea9565b610ddd565b610d35565b610d0e565b610aeb565b610a0c565b6109b4565b61094b565b610920565b6108f1565b6107f8565b6107ca565b6107a7565b61075a565b610614565b610600565b6105a8565b6104c3565b61042a565b610341565b61021b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361021657565b600080fd5b346102165760203660031901126102165760207fffffffff0000000000000000000000000000000000000000000000000000000060043561025b816101ec565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156102c3575b8115610299575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861028e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610287565b919082519283825260005b848110610319575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016102f8565b90602061033e9281815201906102ed565b90565b346102165760008060031936011261042757604051908060025490610365826113e5565b808552916020916001918281169081156103fa57506001146103a2575b61039e86610392818803826111c8565b6040519182918261032d565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8385106103e7575050505081016020016103928261039e38610382565b80548686018401529382019381016103ca565b905086955061039e9693506020925061039294915060ff191682840152151560051b820101929338610382565b80fd5b346102165760203660031901126102165760043561044781611d50565b1561046d57600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361021657565b602435906001600160a01b038216820361021657565b6040366003190112610216576104d7610497565b6024356001600160a01b0391826104ed83611e4c565b1680330361054c575b6000938385526006602052604085209216918273ffffffffffffffffffffffffffffffffffffffff198254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff610578336040600020906001600160a01b0316600052602052604060002090565b54166104f6577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346102165760003660031901126102165760206000546001549003604051908152f35b6060906003190112610216576001600160a01b0390600435828116810361021657916024359081168103610216579060443590565b61061261060c366105cb565b916115f7565b005b346102165760203660031901126102165760043561063961063482611d50565b6117a4565b33600052600e60205261067361066e61066a61066384604060002090600052602052604060002090565b5460ff1690565b1590565b6117ef565b61069c610697600461068f84600052600c602052604060002090565b015460ff1690565b61183a565b7fa15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab2061074c60026106d684600052600c602052604060002090565b0160646106e3825461189b565b11610751576106f2815461189b565b81555b61073561072885610719336001600160a01b0316600052600e602052604060002090565b90600052602052604060002090565b805460ff19166001179055565b546040805191825233602083015290918291820190565b0390a2005b606481556106f5565b34610216576040366003190112610216576001600160a01b0361077b610497565b16600052600e6020526040600020602435600052602052602060ff604060002054166040519015158152f35b6106126107b3366105cb565b90604051926107c1846111ac565b60008452611cf4565b34610216576000366003190112610216576020604051601e8152f35b67ffffffffffffffff81160361021657565b3461021657606036600319011261021657600435610815816107e6565b61081d6104ad565b506001600160a01b03600a541680156108ad573303610843576106129060443590611ed6565b608460405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b346102165760203660031901126102165760206001600160a01b03610917600435611e4c565b16604051908152f35b3461021657602036600319011261021657602061094361093e610497565b6118ae565b604051908152f35b346102165760008060031936011261042757610965611ff8565b806001600160a01b0360095473ffffffffffffffffffffffffffffffffffffffff198116600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021657600036600319011261021657602060405160058152f35b602090602060408183019282815285518094520193019160005b8281106109f8575050505090565b8351855293810193928101926001016109ea565b3461021657602036600319011261021657610a25610497565b600080610a31836118ae565b91610a3b83611902565b93604091610a4c60405196876111c8565b848652601f19610a5b86611902565b01366020880137610a6a61191a565b506001600160a01b0391821692845b868603610a8e576040518061039e8a826109d0565b610a978161203c565b80830151610ae257516001600160a01b0316848116610ad9575b506001908585851614610ac5575b01610a79565b80610ad3838901988b611950565b52610abf565b92506001610ab1565b50600190610abf565b6020806003193601126102165760043590610b0861063483611d50565b610b24610697600461068f85600052600c602052604060002090565b610b466002610b3d84600052600c602052604060002090565b0154151561197a565b610b67610b5b600a546001600160a01b031690565b6001600160a01b031690565b90610b7a600b546001600160a01b031690565b6040517fb88c91480000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015290928282602481845afa908115610cdc576fffffffffffffffffffffffffffffffff610c3a928594600091610ce1575b501694610bee863410156119f9565b6040519586809481937f19cb825f0000000000000000000000000000000000000000000000000000000083526004830160206000919392936001600160a01b0360408201951681520152565b03925af18015610cdc577f6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e0739261074c92600092610caf575b505083610c938267ffffffffffffffff16600052600d602052604060002090565b5560405167ffffffffffffffff90911681529081906020820190565b610cce9250803d10610cd5575b610cc681836111c8565b810190611a44565b3880610c72565b503d610cbc565b6119ed565b610d019150853d8711610d07575b610cf981836111c8565b8101906119c5565b38610bdf565b503d610cef565b346102165760003660031901126102165760206001600160a01b0360095416604051908152f35b346102165760008060031936011261042757604051908060035490610d59826113e5565b808552916020916001918281169081156103fa5750600114610d855761039e86610392818803826111c8565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510610dca575050505081016020016103928261039e38610382565b8054868601840152938201938101610dad565b3461021657604036600319011261021657610df6610497565b6024358015159182820361021657610e4b6001600160a01b0392336000526007602052610e3a836040600020906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b9181601f840112156102165782359167ffffffffffffffff8311610216576020838186019501011161021657565b3461021657606036600319011261021657610ec2610497565b67ffffffffffffffff9060243582811161021657610ee4903690600401610e7b565b909260443590811161021657610efe903690600401610e7b565b600094916001600160a01b03865495610f2a81600160e11b906001600160a01b034260a01b9116171790565b610f3e886000526004602052604060002090565b55610f5c816001600160a01b03166000526005602052604060002090565b6801000000000000000181540190551695861561106f57600186810197879180805b61102a575b505050508594927fc3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2949261039e98611017935561100b610fc16111ea565b610fcc368888611215565b8152610fd9368585611215565b6020820152603260408201524260608201526001608082015261100689600052600c602052604060002090565b611b85565b60405194859485611ccd565b0390a26040519081529081906020820190565b1561105e575b83818484877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4610f7e565b809201918983036110305780610f83565b611d93565b6020815260a060806110aa611094855184602087015260c08601906102ed565b6020860151858203601f190160408701526102ed565b93604081015160608501526060810151828501520151151591015290565b346102165760203660031901126102165761039e6004356040906000608083516110f18161118b565b60608152606060208201528285820152826060820152015261111561063482611d50565b600052600c602052806000209060ff60048251936111328561118b565b61113b8161141f565b85526111496001820161141f565b602086015260028101548486015260038101546060860152015416151560808301525191829182611074565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff8211176111a757604052565b611175565b6020810190811067ffffffffffffffff8211176111a757604052565b90601f8019910116810190811067ffffffffffffffff8211176111a757604052565b604051906111f78261118b565b565b67ffffffffffffffff81116111a757601f01601f191660200190565b929192611221826111f9565b9161122f60405193846111c8565b829481845281830111610216578281602093846000960137010152565b608036600319011261021657611260610497565b6112686104ad565b6064359167ffffffffffffffff831161021657366023840112156102165761129d610612933690602481600401359101611215565b9160443591611cf4565b346102165760203660031901126102165767ffffffffffffffff6004356112cd816107e6565b16600052600d6020526020604060002054604051908152f35b3461021657602036600319011261021657611302600435611d50565b1561133d576000604051611315816111ac565b5261039e604051611325816111ac565b600081526040519182916020835260208301906102ed565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461021657600036600319011261021657602060405160648152f35b3461021657604036600319011261021657602060ff6113d96113a3610497565b6001600160a01b036113b36104ad565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b90600182811c92168015611415575b60208310146113ff57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113f4565b90604051918260008254611432816113e5565b908184526020946001916001811690816000146114a05750600114611461575b5050506111f7925003836111c8565b600090815285812095935091905b8183106114885750506111f79350820101388080611452565b8554888401850152948501948794509183019161146f565b925050506111f794925060ff191682840152151560051b820101388080611452565b3461021657602036600319011261021657600435600052600c60205261152760406000206114ef8161141f565b906114fc6001820161141f565b60028201549161153560ff60046003840154930154169260405196879660a0885260a08801906102ed565b9086820360208801526102ed565b9260408501526060840152151560808301520390f35b3461021657602036600319011261021657611564610497565b61156c611ff8565b6001600160a01b038091169081156115c6576009548273ffffffffffffffffffffffffffffffffffffffff19821617600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b91909161160382611e4c565b926001600160a01b0380921693848382160361179f57600084815260066020526040902080546116426001600160a01b03881633908114908314171590565b611756575b61174c575b5061166a856001600160a01b03166000526005602052604060002090565b805460001901905561168f826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b176116bf856000526004602052604060002090565b55600160e11b811615611702575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4156116fd57565b611e11565b6001840161171a816000526004602052604060002090565b5415611727575b506116cd565b600054811461172157611744906000526004602052604060002090565b553880611721565b600090553861164c565b61179561066a6106633361177d8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b1561164757611de7565b611dbd565b156117ab57565b606460405162461bcd60e51b815260206004820152601760248201527f506c61796c69737420646f6573206e6f742065786973740000000000000000006044820152fd5b156117f657565b606460405162461bcd60e51b815260206004820152601f60248201527f416c726561647920766f74656420666f72207468697320706c61796c697374006044820152fd5b1561184157565b606460405162461bcd60e51b815260206004820152601460248201527f506c61796c69737420697320696e6163746976650000000000000000000000006044820152fd5b634e487b7160e01b600052601160045260246000fd5b90600582018092116118a957565b611885565b6001600160a01b031680156118d857600052600560205267ffffffffffffffff6040600020541690565b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b67ffffffffffffffff81116111a75760051b60200190565b604051906080820182811067ffffffffffffffff8211176111a75760405260006060838281528260208201528260408201520152565b80518210156119645760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561198157565b606460405162461bcd60e51b815260206004820152601d60248201527f52657075746174696f6e20616c7265616479206174206d696e696d756d0000006044820152fd5b9081602091031261021657516fffffffffffffffffffffffffffffffff811681036102165790565b6040513d6000823e3d90fd5b15611a0057565b606460405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768206665657300000000000000000000000000000000006044820152fd5b90816020910312610216575161033e816107e6565b90601f8111611a6757505050565b6000916000526020600020906020601f850160051c83019410611aa5575b601f0160051c01915b828110611a9a57505050565b818155600101611a8e565b9092508290611a85565b919091825167ffffffffffffffff81116111a757611ad781611ad184546113e5565b84611a59565b602080601f8311600114611b1a57508190611b0b939495600092611b0f575b50508160011b916000199060031b1c19161790565b9055565b015190503880611af6565b90601f19831695611b3085600052602060002090565b926000905b888210611b6d57505083600195969710611b54575b505050811b019055565b015160001960f88460031b161c19169055388080611b4a565b80600185968294968601518155019501930190611b35565b919091825192835167ffffffffffffffff81116111a757611bb081611baa85546113e5565b85611a59565b602080601f8311600114611c305750600492611bee83611c1d946080946111f7999a600092611b0f5750508160011b916000199060031b1c19161790565b85555b611c02602082015160018701611aaf565b60408101516002860155606081015160038601550151151590565b91019060ff801983541691151516179055565b90601f19831696611c4686600052602060002090565b926000905b898210611c945750508360809360049693600193611c1d976111f79b9c10611c7b575b505050811b018555611bf1565b015160001960f88460031b161c19169055388080611c6e565b80600185968294968601518155019501930190611c4b565b908060209392818452848401376000828201840152601f01601f1916010190565b9290611ce69061033e9593604086526040860191611cac565b926020818503910152611cac565b929190611d028282866115f7565b803b611d0f575b50505050565b611d18936120d9565b15611d265738808080611d09565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210611d62575050565b92505b8083526004602052604083205480611d87575080156118a95760001901611d65565b600160e01b1615925050565b7f2e0763000000000000000000000000000000000000000000000000000000000060005260046000fd5b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b611e60816000526004602052604060002090565b54908115611e775750600160e01b8116611e3b5790565b9050600090600054811015611e3b575b60001901600081815260046020526040902054908115611ec25750600160e01b811615611ebd57600482636f96cda160e11b8152fd5b905090565b9050611e87565b919082039182116118a957565b9067ffffffffffffffff8216600052600d602052604060002054918215611fb45782611f3a92601e6064611f16600097600052600c602052604060002090565b920610611f3d575b505067ffffffffffffffff16600052600d602052604060002090565b55565b611f968160027f7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b39301908154600a81048091118914611fa057611f8291508254611ec9565b81555b546040519081529081906020820190565b0390a23880611f1e565b50878255600401805460ff19169055611f85565b606460405162461bcd60e51b815260206004820152601160248201527f52657175657374206e6f7420666f756e640000000000000000000000000000006044820152fd5b6001600160a01b0360095416330361200c57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b61204461191a565b50600052600460205260406000205461205b61191a565b906001600160a01b038116825267ffffffffffffffff8160a01c166020830152600160e01b81161515604083015260e81c606082015290565b90816020910312610216575161033e816101ec565b3d156120d4573d906120ba826111f9565b916120c860405193846111c8565b82523d6000602084013e565b606090565b9260209161213c9360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906102ed565b0393165af160009181612191575b5061216b576121576120a9565b80511561216657805190602001fd5b611d26565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6121b491925060203d6020116121bb575b6121ac81836111c8565b810190612094565b903861214a565b503d6121a256fea2646970667358221220649ab3cc62c09364c79c73543aa7b741fe67ac724ca30a13292c9240418700c164736f6c63430008180033", + "deployedBytecode": "0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d357806323b872dd146101ce57806341ac50b3146101c957806342545825146101c457806342842e0e146101bf5780634535f1c1146101ba57806352a5f1f8146101b55780636352211e146101b057806370a08231146101ab578063715018a6146101a657806377ee63f1146101a15780638462151c1461019c57806385de8b3c146101975780638da5cb5b1461019257806395d89b411461018d578063a22cb46514610188578063a7384a4c14610183578063a9182f3f1461017e578063b88d4fde14610179578063baccd1d214610174578063c87b56dd1461016f578063d213c0f21461016a578063e985e9c514610165578063ecc6362f146101605763f2fde38b1461015b57600080fd5b61154b565b6114c2565b611383565b611367565b6112e6565b6112a7565b61124c565b6110c8565b610ea9565b610ddd565b610d35565b610d0e565b610aeb565b610a0c565b6109b4565b61094b565b610920565b6108f1565b6107f8565b6107ca565b6107a7565b61075a565b610614565b610600565b6105a8565b6104c3565b61042a565b610341565b61021b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361021657565b600080fd5b346102165760203660031901126102165760207fffffffff0000000000000000000000000000000000000000000000000000000060043561025b816101ec565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156102c3575b8115610299575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861028e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610287565b919082519283825260005b848110610319575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016102f8565b90602061033e9281815201906102ed565b90565b346102165760008060031936011261042757604051908060025490610365826113e5565b808552916020916001918281169081156103fa57506001146103a2575b61039e86610392818803826111c8565b6040519182918261032d565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8385106103e7575050505081016020016103928261039e38610382565b80548686018401529382019381016103ca565b905086955061039e9693506020925061039294915060ff191682840152151560051b820101929338610382565b80fd5b346102165760203660031901126102165760043561044781611d50565b1561046d57600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361021657565b602435906001600160a01b038216820361021657565b6040366003190112610216576104d7610497565b6024356001600160a01b0391826104ed83611e4c565b1680330361054c575b6000938385526006602052604085209216918273ffffffffffffffffffffffffffffffffffffffff198254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff610578336040600020906001600160a01b0316600052602052604060002090565b54166104f6577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346102165760003660031901126102165760206000546001549003604051908152f35b6060906003190112610216576001600160a01b0390600435828116810361021657916024359081168103610216579060443590565b61061261060c366105cb565b916115f7565b005b346102165760203660031901126102165760043561063961063482611d50565b6117a4565b33600052600e60205261067361066e61066a61066384604060002090600052602052604060002090565b5460ff1690565b1590565b6117ef565b61069c610697600461068f84600052600c602052604060002090565b015460ff1690565b61183a565b7fa15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab2061074c60026106d684600052600c602052604060002090565b0160646106e3825461189b565b11610751576106f2815461189b565b81555b61073561072885610719336001600160a01b0316600052600e602052604060002090565b90600052602052604060002090565b805460ff19166001179055565b546040805191825233602083015290918291820190565b0390a2005b606481556106f5565b34610216576040366003190112610216576001600160a01b0361077b610497565b16600052600e6020526040600020602435600052602052602060ff604060002054166040519015158152f35b6106126107b3366105cb565b90604051926107c1846111ac565b60008452611cf4565b34610216576000366003190112610216576020604051601e8152f35b67ffffffffffffffff81160361021657565b3461021657606036600319011261021657600435610815816107e6565b61081d6104ad565b506001600160a01b03600a541680156108ad573303610843576106129060443590611ed6565b608460405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b346102165760203660031901126102165760206001600160a01b03610917600435611e4c565b16604051908152f35b3461021657602036600319011261021657602061094361093e610497565b6118ae565b604051908152f35b346102165760008060031936011261042757610965611ff8565b806001600160a01b0360095473ffffffffffffffffffffffffffffffffffffffff198116600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021657600036600319011261021657602060405160058152f35b602090602060408183019282815285518094520193019160005b8281106109f8575050505090565b8351855293810193928101926001016109ea565b3461021657602036600319011261021657610a25610497565b600080610a31836118ae565b91610a3b83611902565b93604091610a4c60405196876111c8565b848652601f19610a5b86611902565b01366020880137610a6a61191a565b506001600160a01b0391821692845b868603610a8e576040518061039e8a826109d0565b610a978161203c565b80830151610ae257516001600160a01b0316848116610ad9575b506001908585851614610ac5575b01610a79565b80610ad3838901988b611950565b52610abf565b92506001610ab1565b50600190610abf565b6020806003193601126102165760043590610b0861063483611d50565b610b24610697600461068f85600052600c602052604060002090565b610b466002610b3d84600052600c602052604060002090565b0154151561197a565b610b67610b5b600a546001600160a01b031690565b6001600160a01b031690565b90610b7a600b546001600160a01b031690565b6040517fb88c91480000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015290928282602481845afa908115610cdc576fffffffffffffffffffffffffffffffff610c3a928594600091610ce1575b501694610bee863410156119f9565b6040519586809481937f19cb825f0000000000000000000000000000000000000000000000000000000083526004830160206000919392936001600160a01b0360408201951681520152565b03925af18015610cdc577f6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e0739261074c92600092610caf575b505083610c938267ffffffffffffffff16600052600d602052604060002090565b5560405167ffffffffffffffff90911681529081906020820190565b610cce9250803d10610cd5575b610cc681836111c8565b810190611a44565b3880610c72565b503d610cbc565b6119ed565b610d019150853d8711610d07575b610cf981836111c8565b8101906119c5565b38610bdf565b503d610cef565b346102165760003660031901126102165760206001600160a01b0360095416604051908152f35b346102165760008060031936011261042757604051908060035490610d59826113e5565b808552916020916001918281169081156103fa5750600114610d855761039e86610392818803826111c8565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510610dca575050505081016020016103928261039e38610382565b8054868601840152938201938101610dad565b3461021657604036600319011261021657610df6610497565b6024358015159182820361021657610e4b6001600160a01b0392336000526007602052610e3a836040600020906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b9181601f840112156102165782359167ffffffffffffffff8311610216576020838186019501011161021657565b3461021657606036600319011261021657610ec2610497565b67ffffffffffffffff9060243582811161021657610ee4903690600401610e7b565b909260443590811161021657610efe903690600401610e7b565b600094916001600160a01b03865495610f2a81600160e11b906001600160a01b034260a01b9116171790565b610f3e886000526004602052604060002090565b55610f5c816001600160a01b03166000526005602052604060002090565b6801000000000000000181540190551695861561106f57600186810197879180805b61102a575b505050508594927fc3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2949261039e98611017935561100b610fc16111ea565b610fcc368888611215565b8152610fd9368585611215565b6020820152603260408201524260608201526001608082015261100689600052600c602052604060002090565b611b85565b60405194859485611ccd565b0390a26040519081529081906020820190565b1561105e575b83818484877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4610f7e565b809201918983036110305780610f83565b611d93565b6020815260a060806110aa611094855184602087015260c08601906102ed565b6020860151858203601f190160408701526102ed565b93604081015160608501526060810151828501520151151591015290565b346102165760203660031901126102165761039e6004356040906000608083516110f18161118b565b60608152606060208201528285820152826060820152015261111561063482611d50565b600052600c602052806000209060ff60048251936111328561118b565b61113b8161141f565b85526111496001820161141f565b602086015260028101548486015260038101546060860152015416151560808301525191829182611074565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff8211176111a757604052565b611175565b6020810190811067ffffffffffffffff8211176111a757604052565b90601f8019910116810190811067ffffffffffffffff8211176111a757604052565b604051906111f78261118b565b565b67ffffffffffffffff81116111a757601f01601f191660200190565b929192611221826111f9565b9161122f60405193846111c8565b829481845281830111610216578281602093846000960137010152565b608036600319011261021657611260610497565b6112686104ad565b6064359167ffffffffffffffff831161021657366023840112156102165761129d610612933690602481600401359101611215565b9160443591611cf4565b346102165760203660031901126102165767ffffffffffffffff6004356112cd816107e6565b16600052600d6020526020604060002054604051908152f35b3461021657602036600319011261021657611302600435611d50565b1561133d576000604051611315816111ac565b5261039e604051611325816111ac565b600081526040519182916020835260208301906102ed565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461021657600036600319011261021657602060405160648152f35b3461021657604036600319011261021657602060ff6113d96113a3610497565b6001600160a01b036113b36104ad565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b90600182811c92168015611415575b60208310146113ff57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113f4565b90604051918260008254611432816113e5565b908184526020946001916001811690816000146114a05750600114611461575b5050506111f7925003836111c8565b600090815285812095935091905b8183106114885750506111f79350820101388080611452565b8554888401850152948501948794509183019161146f565b925050506111f794925060ff191682840152151560051b820101388080611452565b3461021657602036600319011261021657600435600052600c60205261152760406000206114ef8161141f565b906114fc6001820161141f565b60028201549161153560ff60046003840154930154169260405196879660a0885260a08801906102ed565b9086820360208801526102ed565b9260408501526060840152151560808301520390f35b3461021657602036600319011261021657611564610497565b61156c611ff8565b6001600160a01b038091169081156115c6576009548273ffffffffffffffffffffffffffffffffffffffff19821617600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b91909161160382611e4c565b926001600160a01b0380921693848382160361179f57600084815260066020526040902080546116426001600160a01b03881633908114908314171590565b611756575b61174c575b5061166a856001600160a01b03166000526005602052604060002090565b805460001901905561168f826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b176116bf856000526004602052604060002090565b55600160e11b811615611702575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4156116fd57565b611e11565b6001840161171a816000526004602052604060002090565b5415611727575b506116cd565b600054811461172157611744906000526004602052604060002090565b553880611721565b600090553861164c565b61179561066a6106633361177d8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b1561164757611de7565b611dbd565b156117ab57565b606460405162461bcd60e51b815260206004820152601760248201527f506c61796c69737420646f6573206e6f742065786973740000000000000000006044820152fd5b156117f657565b606460405162461bcd60e51b815260206004820152601f60248201527f416c726561647920766f74656420666f72207468697320706c61796c697374006044820152fd5b1561184157565b606460405162461bcd60e51b815260206004820152601460248201527f506c61796c69737420697320696e6163746976650000000000000000000000006044820152fd5b634e487b7160e01b600052601160045260246000fd5b90600582018092116118a957565b611885565b6001600160a01b031680156118d857600052600560205267ffffffffffffffff6040600020541690565b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b67ffffffffffffffff81116111a75760051b60200190565b604051906080820182811067ffffffffffffffff8211176111a75760405260006060838281528260208201528260408201520152565b80518210156119645760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561198157565b606460405162461bcd60e51b815260206004820152601d60248201527f52657075746174696f6e20616c7265616479206174206d696e696d756d0000006044820152fd5b9081602091031261021657516fffffffffffffffffffffffffffffffff811681036102165790565b6040513d6000823e3d90fd5b15611a0057565b606460405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768206665657300000000000000000000000000000000006044820152fd5b90816020910312610216575161033e816107e6565b90601f8111611a6757505050565b6000916000526020600020906020601f850160051c83019410611aa5575b601f0160051c01915b828110611a9a57505050565b818155600101611a8e565b9092508290611a85565b919091825167ffffffffffffffff81116111a757611ad781611ad184546113e5565b84611a59565b602080601f8311600114611b1a57508190611b0b939495600092611b0f575b50508160011b916000199060031b1c19161790565b9055565b015190503880611af6565b90601f19831695611b3085600052602060002090565b926000905b888210611b6d57505083600195969710611b54575b505050811b019055565b015160001960f88460031b161c19169055388080611b4a565b80600185968294968601518155019501930190611b35565b919091825192835167ffffffffffffffff81116111a757611bb081611baa85546113e5565b85611a59565b602080601f8311600114611c305750600492611bee83611c1d946080946111f7999a600092611b0f5750508160011b916000199060031b1c19161790565b85555b611c02602082015160018701611aaf565b60408101516002860155606081015160038601550151151590565b91019060ff801983541691151516179055565b90601f19831696611c4686600052602060002090565b926000905b898210611c945750508360809360049693600193611c1d976111f79b9c10611c7b575b505050811b018555611bf1565b015160001960f88460031b161c19169055388080611c6e565b80600185968294968601518155019501930190611c4b565b908060209392818452848401376000828201840152601f01601f1916010190565b9290611ce69061033e9593604086526040860191611cac565b926020818503910152611cac565b929190611d028282866115f7565b803b611d0f575b50505050565b611d18936120d9565b15611d265738808080611d09565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210611d62575050565b92505b8083526004602052604083205480611d87575080156118a95760001901611d65565b600160e01b1615925050565b7f2e0763000000000000000000000000000000000000000000000000000000000060005260046000fd5b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b611e60816000526004602052604060002090565b54908115611e775750600160e01b8116611e3b5790565b9050600090600054811015611e3b575b60001901600081815260046020526040902054908115611ec25750600160e01b811615611ebd57600482636f96cda160e11b8152fd5b905090565b9050611e87565b919082039182116118a957565b9067ffffffffffffffff8216600052600d602052604060002054918215611fb45782611f3a92601e6064611f16600097600052600c602052604060002090565b920610611f3d575b505067ffffffffffffffff16600052600d602052604060002090565b55565b611f968160027f7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b39301908154600a81048091118914611fa057611f8291508254611ec9565b81555b546040519081529081906020820190565b0390a23880611f1e565b50878255600401805460ff19169055611f85565b606460405162461bcd60e51b815260206004820152601160248201527f52657175657374206e6f7420666f756e640000000000000000000000000000006044820152fd5b6001600160a01b0360095416330361200c57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b61204461191a565b50600052600460205260406000205461205b61191a565b906001600160a01b038116825267ffffffffffffffff8160a01c166020830152600160e01b81161515604083015260e81c606082015290565b90816020910312610216575161033e816101ec565b3d156120d4573d906120ba826111f9565b916120c860405193846111c8565b82523d6000602084013e565b606090565b9260209161213c9360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906102ed565b0393165af160009181612191575b5061216b576121576120a9565b80511561216657805190602001fd5b611d26565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6121b491925060203d6020116121bb575b6121ac81836111c8565b810190612094565b903861214a565b503d6121a256fea2646970667358221220649ab3cc62c09364c79c73543aa7b741fe67ac724ca30a13292c9240418700c164736f6c63430008180033", + "linkReferences": {}, + "deployedLinkReferences": {} +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#RandomSeed.dbg.json b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#RandomSeed.dbg.json new file mode 100644 index 0000000..52593d0 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#RandomSeed.dbg.json @@ -0,0 +1,4 @@ +{ + "_format": "hh-sol-dbg-1", + "buildInfo": "../build-info/3218aa2b7fa9e4dd3c28d79f8b3dcc06.json" +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#RandomSeed.json b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#RandomSeed.json new file mode 100644 index 0000000..a3ef8c9 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/artifacts/AppModule#RandomSeed.json @@ -0,0 +1,91 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "RandomSeed", + "sourceName": "contracts/RandomSeed.sol", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "entropyAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "seed", + "type": "bytes32" + } + ], + "name": "RandomSeedGenerated", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "currentSeed", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "entropy", + "outputs": [ + { + "internalType": "contract IEntropyV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "requestRandomSeed", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ], + "bytecode": "0x60803461007457601f61049e38819003918201601f19168301916001600160401b038311848410176100795780849260209460405283398101031261007457516001600160a01b0381169081900361007457600080546001600160a01b03191691909117905560405161040e90816100908239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060408181526004908136101561001657600080fd5b600092833560e01c90816347ce07cc146103575750806352a5f1f81461021e57806383220626146101ff5763e1da26c61461005057600080fd5b826003193601126101fb5773ffffffffffffffffffffffffffffffffffffffff835416908051917f8204b67a00000000000000000000000000000000000000000000000000000000835260209283818681855afa80156101f1578690610197575b6fffffffffffffffffffffffffffffffff91501693843410610155579083918351809681937f7b43155d0000000000000000000000000000000000000000000000000000000083525af190811561014c575061010b578280f35b81813d8311610145575b61011f8183610387565b81010312610141575167ffffffffffffffff81160361013e5738808280f35b80fd5b5080fd5b503d610115565b513d85823e3d90fd5b6064908484519162461bcd60e51b8352820152601060248201527f496e73756666696369656e7420666565000000000000000000000000000000006044820152fd5b508381813d83116101ea575b6101ad8183610387565b810103126101e657516fffffffffffffffffffffffffffffffff811681036101e6576fffffffffffffffffffffffffffffffff906100b1565b8580fd5b503d6101a3565b83513d88823e3d90fd5b8280fd5b8382346101415781600319360112610141576020906001549051908152f35b50346101fb5760603660031901126101fb57813567ffffffffffffffff8116036101fb5773ffffffffffffffffffffffffffffffffffffffff9160243583811603610353576044359284541680156103105733036102a85750816020917fc600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad563909360015551908152a180f35b6020608492519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b506020606492519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b84903461014157816003193601126101415773ffffffffffffffffffffffffffffffffffffffff60209254168152f35b90601f8019910116810190811067ffffffffffffffff8211176103a957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122040148961cbcee2b836102c073a7110e4e3b136bd516b7c37267477a91d1b03b064736f6c63430008180033", + "deployedBytecode": "0x608060408181526004908136101561001657600080fd5b600092833560e01c90816347ce07cc146103575750806352a5f1f81461021e57806383220626146101ff5763e1da26c61461005057600080fd5b826003193601126101fb5773ffffffffffffffffffffffffffffffffffffffff835416908051917f8204b67a00000000000000000000000000000000000000000000000000000000835260209283818681855afa80156101f1578690610197575b6fffffffffffffffffffffffffffffffff91501693843410610155579083918351809681937f7b43155d0000000000000000000000000000000000000000000000000000000083525af190811561014c575061010b578280f35b81813d8311610145575b61011f8183610387565b81010312610141575167ffffffffffffffff81160361013e5738808280f35b80fd5b5080fd5b503d610115565b513d85823e3d90fd5b6064908484519162461bcd60e51b8352820152601060248201527f496e73756666696369656e7420666565000000000000000000000000000000006044820152fd5b508381813d83116101ea575b6101ad8183610387565b810103126101e657516fffffffffffffffffffffffffffffffff811681036101e6576fffffffffffffffffffffffffffffffff906100b1565b8580fd5b503d6101a3565b83513d88823e3d90fd5b8280fd5b8382346101415781600319360112610141576020906001549051908152f35b50346101fb5760603660031901126101fb57813567ffffffffffffffff8116036101fb5773ffffffffffffffffffffffffffffffffffffffff9160243583811603610353576044359284541680156103105733036102a85750816020917fc600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad563909360015551908152a180f35b6020608492519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b506020606492519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b84903461014157816003193601126101415773ffffffffffffffffffffffffffffffffffffffff60209254168152f35b90601f8019910116810190811067ffffffffffffffff8211176103a957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122040148961cbcee2b836102c073a7110e4e3b136bd516b7c37267477a91d1b03b064736f6c63430008180033", + "linkReferences": {}, + "deployedLinkReferences": {} +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/3218aa2b7fa9e4dd3c28d79f8b3dcc06.json b/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/3218aa2b7fa9e4dd3c28d79f8b3dcc06.json new file mode 100644 index 0000000..c659fc7 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/3218aa2b7fa9e4dd3c28d79f8b3dcc06.json @@ -0,0 +1,9073 @@ +{ + "id": "3218aa2b7fa9e4dd3c28d79f8b3dcc06", + "_format": "hh-sol-build-info-1", + "solcVersion": "0.8.24", + "solcLongVersion": "0.8.24+commit.e11b9ed9", + "input": { + "language": "Solidity", + "sources": { + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\nimport \"./EntropyStructs.sol\";\n\n// Deprecated -- these events are still emitted, but the lack of indexing\n// makes them hard to use.\ninterface EntropyEvents {\n event Registered(EntropyStructs.ProviderInfo provider);\n\n event Requested(EntropyStructs.Request request);\n event RequestedWithCallback(\n address indexed provider,\n address indexed requestor,\n uint64 indexed sequenceNumber,\n bytes32 userRandomNumber,\n EntropyStructs.Request request\n );\n\n event Revealed(\n EntropyStructs.Request request,\n bytes32 userRevelation,\n bytes32 providerRevelation,\n bytes32 blockHash,\n bytes32 randomNumber\n );\n event RevealedWithCallback(\n EntropyStructs.Request request,\n bytes32 userRandomNumber,\n bytes32 providerRevelation,\n bytes32 randomNumber\n );\n\n event CallbackFailed(\n address indexed provider,\n address indexed requestor,\n uint64 indexed sequenceNumber,\n bytes32 userRandomNumber,\n bytes32 providerRevelation,\n bytes32 randomNumber,\n bytes errorCode\n );\n\n event ProviderFeeUpdated(address provider, uint128 oldFee, uint128 newFee);\n\n event ProviderDefaultGasLimitUpdated(\n address indexed provider,\n uint32 oldDefaultGasLimit,\n uint32 newDefaultGasLimit\n );\n\n event ProviderUriUpdated(address provider, bytes oldUri, bytes newUri);\n\n event ProviderFeeManagerUpdated(\n address provider,\n address oldFeeManager,\n address newFeeManager\n );\n event ProviderMaxNumHashesAdvanced(\n address provider,\n uint32 oldMaxNumHashes,\n uint32 newMaxNumHashes\n );\n\n event Withdrawal(\n address provider,\n address recipient,\n uint128 withdrawnAmount\n );\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\nimport \"./EntropyStructs.sol\";\n\n/**\n * @title EntropyEventsV2\n * @notice Interface defining events for the Entropy V2 system, which handles random number generation\n * and provider management on Ethereum.\n * @dev This interface is used to emit events that track the lifecycle of random number requests,\n * provider registrations, and system configurations.\n */\ninterface EntropyEventsV2 {\n /**\n * @notice Emitted when a new provider registers with the Entropy system\n * @param provider The address of the registered provider\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Registered(address indexed provider, bytes extraArgs);\n\n /**\n * @notice Emitted when a user requests a random number from a provider\n * @param provider The address of the provider handling the request\n * @param caller The address of the user requesting the random number\n * @param sequenceNumber A unique identifier for this request\n * @param userContribution The user's contribution to the random number\n * @param gasLimit The gas limit for the callback.\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Requested(\n address indexed provider,\n address indexed caller,\n uint64 indexed sequenceNumber,\n bytes32 userContribution,\n uint32 gasLimit,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider reveals the generated random number\n * @param provider The address of the provider that generated the random number\n * @param caller The address of the user who requested the random number (and who receives a callback)\n * @param sequenceNumber The unique identifier of the request\n * @param randomNumber The generated random number\n * @param userContribution The user's contribution to the random number\n * @param providerContribution The provider's contribution to the random number\n * @param callbackFailed Whether the callback to the caller failed\n * @param callbackReturnValue Return value from the callback. If the callback failed, this field contains\n * the error code and any additional returned data. Note that \"\" often indicates an out-of-gas error.\n * If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\n * @param callbackGasUsed How much gas the callback used.\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Revealed(\n address indexed provider,\n address indexed caller,\n uint64 indexed sequenceNumber,\n bytes32 randomNumber,\n bytes32 userContribution,\n bytes32 providerContribution,\n bool callbackFailed,\n bytes callbackReturnValue,\n uint32 callbackGasUsed,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their fee\n * @param provider The address of the provider updating their fee\n * @param oldFee The previous fee amount\n * @param newFee The new fee amount\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderFeeUpdated(\n address indexed provider,\n uint128 oldFee,\n uint128 newFee,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their default gas limit\n * @param provider The address of the provider updating their gas limit\n * @param oldDefaultGasLimit The previous default gas limit\n * @param newDefaultGasLimit The new default gas limit\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderDefaultGasLimitUpdated(\n address indexed provider,\n uint32 oldDefaultGasLimit,\n uint32 newDefaultGasLimit,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their URI\n * @param provider The address of the provider updating their URI\n * @param oldUri The previous URI\n * @param newUri The new URI\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderUriUpdated(\n address indexed provider,\n bytes oldUri,\n bytes newUri,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their fee manager address\n * @param provider The address of the provider updating their fee manager\n * @param oldFeeManager The previous fee manager address\n * @param newFeeManager The new fee manager address\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderFeeManagerUpdated(\n address indexed provider,\n address oldFeeManager,\n address newFeeManager,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their maximum number of hashes that can be advanced\n * @param provider The address of the provider updating their max hashes\n * @param oldMaxNumHashes The previous maximum number of hashes\n * @param newMaxNumHashes The new maximum number of hashes\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderMaxNumHashesAdvanced(\n address indexed provider,\n uint32 oldMaxNumHashes,\n uint32 newMaxNumHashes,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider withdraws their accumulated fees\n * @param provider The address of the provider withdrawing fees\n * @param recipient The address receiving the withdrawn fees\n * @param withdrawnAmount The amount of fees withdrawn\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Withdrawal(\n address indexed provider,\n address indexed recipient,\n uint128 withdrawnAmount,\n bytes extraArgs\n );\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "content": "// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.0;\n\n// This contract holds old versions of the Entropy structs that are no longer used for contract storage.\n// However, they are still used in EntropyEvents to maintain the public interface of prior versions of\n// the Entropy contract.\n//\n// See EntropyStructsV2 for the struct definitions currently in use.\ncontract EntropyStructs {\n struct ProviderInfo {\n uint128 feeInWei;\n uint128 accruedFeesInWei;\n // The commitment that the provider posted to the blockchain, and the sequence number\n // where they committed to this. This value is not advanced after the provider commits,\n // and instead is stored to help providers track where they are in the hash chain.\n bytes32 originalCommitment;\n uint64 originalCommitmentSequenceNumber;\n // Metadata for the current commitment. Providers may optionally use this field to help\n // manage rotations (i.e., to pick the sequence number from the correct hash chain).\n bytes commitmentMetadata;\n // Optional URI where clients can retrieve revelations for the provider.\n // Client SDKs can use this field to automatically determine how to retrieve random values for each provider.\n // TODO: specify the API that must be implemented at this URI\n bytes uri;\n // The first sequence number that is *not* included in the current commitment (i.e., an exclusive end index).\n // The contract maintains the invariant that sequenceNumber <= endSequenceNumber.\n // If sequenceNumber == endSequenceNumber, the provider must rotate their commitment to add additional random values.\n uint64 endSequenceNumber;\n // The sequence number that will be assigned to the next inbound user request.\n uint64 sequenceNumber;\n // The current commitment represents an index/value in the provider's hash chain.\n // These values are used to verify requests for future sequence numbers. Note that\n // currentCommitmentSequenceNumber < sequenceNumber.\n //\n // The currentCommitment advances forward through the provider's hash chain as values\n // are revealed on-chain.\n bytes32 currentCommitment;\n uint64 currentCommitmentSequenceNumber;\n // An address that is authorized to set / withdraw fees on behalf of this provider.\n address feeManager;\n // Maximum number of hashes to record in a request. This should be set according to the maximum gas limit\n // the provider supports for callbacks.\n uint32 maxNumHashes;\n }\n\n struct Request {\n // Storage slot 1 //\n address provider;\n uint64 sequenceNumber;\n // The number of hashes required to verify the provider revelation.\n uint32 numHashes;\n // Storage slot 2 //\n // The commitment is keccak256(userCommitment, providerCommitment). Storing the hash instead of both saves 20k gas by\n // eliminating 1 store.\n bytes32 commitment;\n // Storage slot 3 //\n // The number of the block where this request was created.\n // Note that we're using a uint64 such that we have an additional space for an address and other fields in\n // this storage slot. Although block.number returns a uint256, 64 bits should be plenty to index all of the\n // blocks ever generated.\n uint64 blockNumber;\n // The address that requested this random number.\n address requester;\n // If true, incorporate the blockhash of blockNumber into the generated random value.\n bool useBlockhash;\n // True if this is a request that expects a callback.\n bool isRequestWithCallback;\n }\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "content": "// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.0;\n\ncontract EntropyStructsV2 {\n struct ProviderInfo {\n uint128 feeInWei;\n uint128 accruedFeesInWei;\n // The commitment that the provider posted to the blockchain, and the sequence number\n // where they committed to this. This value is not advanced after the provider commits,\n // and instead is stored to help providers track where they are in the hash chain.\n bytes32 originalCommitment;\n uint64 originalCommitmentSequenceNumber;\n // Metadata for the current commitment. Providers may optionally use this field to help\n // manage rotations (i.e., to pick the sequence number from the correct hash chain).\n bytes commitmentMetadata;\n // Optional URI where clients can retrieve revelations for the provider.\n // Client SDKs can use this field to automatically determine how to retrieve random values for each provider.\n // TODO: specify the API that must be implemented at this URI\n bytes uri;\n // The first sequence number that is *not* included in the current commitment (i.e., an exclusive end index).\n // The contract maintains the invariant that sequenceNumber <= endSequenceNumber.\n // If sequenceNumber == endSequenceNumber, the provider must rotate their commitment to add additional random values.\n uint64 endSequenceNumber;\n // The sequence number that will be assigned to the next inbound user request.\n uint64 sequenceNumber;\n // The current commitment represents an index/value in the provider's hash chain.\n // These values are used to verify requests for future sequence numbers. Note that\n // currentCommitmentSequenceNumber < sequenceNumber.\n //\n // The currentCommitment advances forward through the provider's hash chain as values\n // are revealed on-chain.\n bytes32 currentCommitment;\n uint64 currentCommitmentSequenceNumber;\n // An address that is authorized to set / withdraw fees on behalf of this provider.\n address feeManager;\n // Maximum number of hashes to record in a request. This should be set according to the maximum gas limit\n // the provider supports for callbacks.\n uint32 maxNumHashes;\n // Default gas limit to use for callbacks.\n uint32 defaultGasLimit;\n }\n\n struct Request {\n // Storage slot 1 //\n address provider;\n uint64 sequenceNumber;\n // The number of hashes required to verify the provider revelation.\n uint32 numHashes;\n // Storage slot 2 //\n // The commitment is keccak256(userCommitment, providerCommitment). Storing the hash instead of both saves 20k gas by\n // eliminating 1 store.\n bytes32 commitment;\n // Storage slot 3 //\n // The number of the block where this request was created.\n // Note that we're using a uint64 such that we have an additional space for an address and other fields in\n // this storage slot. Although block.number returns a uint256, 64 bits should be plenty to index all of the\n // blocks ever generated.\n uint64 blockNumber;\n // The address that requested this random number.\n address requester;\n // If true, incorporate the blockhash of blockNumber into the generated random value.\n bool useBlockhash;\n // Status flag for requests with callbacks. See EntropyConstants for the possible values of this flag.\n uint8 callbackStatus;\n // The gasLimit in units of 10k gas. (i.e., 2 = 20k gas). We're using units of 10k in order to fit this\n // field into the remaining 2 bytes of this storage slot. The dynamic range here is 10k - 655M, which should\n // cover all real-world use cases.\n uint16 gasLimit10k;\n }\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nabstract contract IEntropyConsumer {\n // This method is called by Entropy to provide the random number to the consumer.\n // It asserts that the msg.sender is the Entropy contract. It is not meant to be\n // override by the consumer.\n function _entropyCallback(\n uint64 sequence,\n address provider,\n bytes32 randomNumber\n ) external {\n address entropy = getEntropy();\n require(entropy != address(0), \"Entropy address not set\");\n require(msg.sender == entropy, \"Only Entropy can call this function\");\n\n entropyCallback(sequence, provider, randomNumber);\n }\n\n // getEntropy returns Entropy contract address. The method is being used to check that the\n // callback is indeed from Entropy contract. The consumer is expected to implement this method.\n // Entropy address can be found here - https://docs.pyth.network/entropy/contract-addresses\n function getEntropy() internal view virtual returns (address);\n\n // This method is expected to be implemented by the consumer to handle the random number.\n // It will be called by _entropyCallback after _entropyCallback ensures that the call is\n // indeed from Entropy contract.\n function entropyCallback(\n uint64 sequence,\n address provider,\n bytes32 randomNumber\n ) internal virtual;\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nimport \"./EntropyEvents.sol\";\nimport \"./EntropyEventsV2.sol\";\nimport \"./EntropyStructsV2.sol\";\n\ninterface IEntropyV2 is EntropyEventsV2 {\n /// @notice Request a random number using the default provider with default gas limit\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value.\n /// Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2()\n external\n payable\n returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number using the default provider with specified gas limit\n /// @param gasLimit The gas limit for the callback function.\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value.\n /// Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2(\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number from a specific provider with specified gas limit\n /// @param provider The address of the provider to request from\n /// @param gasLimit The gas limit for the callback function\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n /// Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2(\n address provider,\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number from a specific provider with a user-provided random number and gas limit\n /// @param provider The address of the provider to request from\n /// @param userRandomNumber A random number provided by the user for additional entropy\n /// @param gasLimit The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n /// Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n function requestV2(\n address provider,\n bytes32 userRandomNumber,\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Get information about a specific entropy provider\n /// @param provider The address of the provider to query\n /// @return info The provider information including configuration, fees, and operational status\n /// @dev This method returns detailed information about a provider's configuration and capabilities.\n /// The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits.\n function getProviderInfoV2(\n address provider\n ) external view returns (EntropyStructsV2.ProviderInfo memory info);\n\n /// @notice Get the address of the default entropy provider\n /// @return provider The address of the default provider\n /// @dev This method returns the address of the provider that will be used when no specific provider is specified\n /// in the requestV2 calls. The default provider can be used to get the base fee and gas limit information.\n function getDefaultProvider() external view returns (address provider);\n\n /// @notice Get information about a specific request\n /// @param provider The address of the provider that handled the request\n /// @param sequenceNumber The unique identifier of the request\n /// @return req The request information including status, random number, and other metadata\n /// @dev This method allows querying the state of a previously made request. The returned Request struct\n /// contains information about whether the request was fulfilled, the generated random number (if available),\n /// and other metadata about the request.\n function getRequestV2(\n address provider,\n uint64 sequenceNumber\n ) external view returns (EntropyStructsV2.Request memory req);\n\n /// @notice Get the fee charged by the default provider for the default gas limit\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the base fee required to make a request using the default provider with\n /// the default gas limit. This fee should be passed as msg.value when calling requestV2().\n /// The fee can change over time, so this method should be called before each request.\n function getFeeV2() external view returns (uint128 feeAmount);\n\n /// @notice Get the fee charged by the default provider for a specific gas limit\n /// @param gasLimit The gas limit for the callback function\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the fee required to make a request using the default provider with\n /// the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit).\n /// The fee can change over time, so this method should be called before each request.\n function getFeeV2(\n uint32 gasLimit\n ) external view returns (uint128 feeAmount);\n\n /// @notice Get the fee charged by a specific provider for a request with a given gas limit\n /// @param provider The address of the provider to query\n /// @param gasLimit The gas limit for the callback function\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the fee required to make a request using the specified provider with\n /// the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit)\n /// or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method\n /// should be called before each request.\n function getFeeV2(\n address provider,\n uint32 gasLimit\n ) external view returns (uint128 feeAmount);\n}\n" + }, + "contracts/RandomSeed.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport { IEntropyConsumer } from \"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\";\nimport { IEntropyV2 } from \"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\";\n\ncontract RandomSeed is IEntropyConsumer {\n IEntropyV2 public entropy;\n bytes32 public currentSeed;\n \n event RandomSeedGenerated(bytes32 seed);\n \n constructor(address entropyAddress) {\n entropy = IEntropyV2(entropyAddress);\n }\n \n function requestRandomSeed() external payable {\n uint256 fee = entropy.getFeeV2();\n require(msg.value >= fee, \"Insufficient fee\");\n uint64 sequenceNumber = entropy.requestV2{ value: fee }();\n }\n \n function entropyCallback(uint64, address, bytes32 randomNumber) internal override {\n currentSeed = randomNumber;\n emit RandomSeedGenerated(randomNumber);\n }\n \n function getEntropy() internal view override returns (address) {\n return address(entropy);\n }\n}" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 1000 + }, + "viaIR": true, + "evmVersion": "paris", + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ], + "": [ + "ast" + ] + } + } + } + }, + "output": { + "errors": [ + { + "component": "general", + "errorCode": "2072", + "formattedMessage": "Warning: Unused local variable.\n --> contracts/RandomSeed.sol:20:9:\n |\n20 | uint64 sequenceNumber = entropy.requestV2{ value: fee }();\n | ^^^^^^^^^^^^^^^^^^^^^\n\n", + "message": "Unused local variable.", + "severity": "warning", + "sourceLocation": { + "end": 666, + "file": "contracts/RandomSeed.sol", + "start": 645 + }, + "type": "Warning" + } + ], + "sources": { + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol", + "exportedSymbols": { + "EntropyEvents": [ + 114 + ], + "EntropyStructs": [ + 275 + ] + }, + "id": 115, + "license": "Apache-2.0", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 1, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "39:23:0" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "file": "./EntropyStructs.sol", + "id": 2, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 115, + "sourceUnit": 276, + "src": "64:30:0", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyEvents", + "contractDependencies": [], + "contractKind": "interface", + "fullyImplemented": true, + "id": 114, + "linearizedBaseContracts": [ + 114 + ], + "name": "EntropyEvents", + "nameLocation": "207:13:0", + "nodeType": "ContractDefinition", + "nodes": [ + { + "anonymous": false, + "eventSelector": "641f45ac488304746c653e2635855e73663a6e524de1194447d678a58f084012", + "id": 7, + "name": "Registered", + "nameLocation": "233:10:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 6, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 5, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "272:8:0", + "nodeType": "VariableDeclaration", + "scope": 7, + "src": "244:36:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$257_memory_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + }, + "typeName": { + "id": 4, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 3, + "name": "EntropyStructs.ProviderInfo", + "nameLocations": [ + "244:14:0", + "259:12:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 257, + "src": "244:27:0" + }, + "referencedDeclaration": 257, + "src": "244:27:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$257_storage_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + } + }, + "visibility": "internal" + } + ], + "src": "243:38:0" + }, + "src": "227:55:0" + }, + { + "anonymous": false, + "eventSelector": "20e2c2fc72b2cb9fbae9d7d8fd4bdf5bdcc4579043e1e9854e2baf045b6a31d3", + "id": 12, + "name": "Requested", + "nameLocation": "294:9:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 11, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 10, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "327:7:0", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "304:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 9, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 8, + "name": "EntropyStructs.Request", + "nameLocations": [ + "304:14:0", + "319:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "304:22:0" + }, + "referencedDeclaration": 274, + "src": "304:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + } + ], + "src": "303:32:0" + }, + "src": "288:48:0" + }, + { + "anonymous": false, + "eventSelector": "a4c85ab66677ced5caabbbba151714887944b9e0fee05f320e42a1b13a01fbc6", + "id": 25, + "name": "RequestedWithCallback", + "nameLocation": "347:21:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 24, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 14, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "394:8:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "378:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 13, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "378:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 16, + "indexed": true, + "mutability": "mutable", + "name": "requestor", + "nameLocation": "428:9:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "412:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 15, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "412:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 18, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "462:14:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "447:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 17, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "447:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 20, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "494:16:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "486:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 19, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "486:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 23, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "543:7:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "520:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 22, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 21, + "name": "EntropyStructs.Request", + "nameLocations": [ + "520:14:0", + "535:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "520:22:0" + }, + "referencedDeclaration": 274, + "src": "520:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + } + ], + "src": "368:188:0" + }, + "src": "341:216:0" + }, + { + "anonymous": false, + "eventSelector": "39c729f66b0c8aa543d92bc83fb7e0914c9701326b96365b593f28ba706976e4", + "id": 38, + "name": "Revealed", + "nameLocation": "569:8:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 37, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 28, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "610:7:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "587:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 27, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 26, + "name": "EntropyStructs.Request", + "nameLocations": [ + "587:14:0", + "602:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "587:22:0" + }, + "referencedDeclaration": 274, + "src": "587:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 30, + "indexed": false, + "mutability": "mutable", + "name": "userRevelation", + "nameLocation": "635:14:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "627:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 29, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "627:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 32, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "667:18:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "659:26:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 31, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "659:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 34, + "indexed": false, + "mutability": "mutable", + "name": "blockHash", + "nameLocation": "703:9:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "695:17:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 33, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "695:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 36, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "730:12:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "722:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 35, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "722:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "577:171:0" + }, + "src": "563:186:0" + }, + { + "anonymous": false, + "eventSelector": "40be225f151772416d8785647e5641a0b53507623d0ee3fb88802b7d6bdbf728", + "id": 49, + "name": "RevealedWithCallback", + "nameLocation": "760:20:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 48, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 41, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "813:7:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "790:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 40, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 39, + "name": "EntropyStructs.Request", + "nameLocations": [ + "790:14:0", + "805:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "790:22:0" + }, + "referencedDeclaration": 274, + "src": "790:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 43, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "838:16:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "830:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 42, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "830:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 45, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "872:18:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "864:26:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 44, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "864:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 47, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "908:12:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "900:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 46, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "900:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "780:146:0" + }, + "src": "754:173:0" + }, + { + "anonymous": false, + "eventSelector": "c73c4cbf6f2bace8893b1283ee0e044c059ef9b80765820f4cc22b5ace139b5b", + "id": 65, + "name": "CallbackFailed", + "nameLocation": "939:14:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 64, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 51, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "979:8:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "963:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 50, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "963:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 53, + "indexed": true, + "mutability": "mutable", + "name": "requestor", + "nameLocation": "1013:9:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "997:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 52, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "997:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 55, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1047:14:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1032:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 54, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1032:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 57, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "1079:16:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1071:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 56, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1071:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 59, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "1113:18:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1105:26:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 58, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1105:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 61, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "1149:12:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1141:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 60, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1141:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 63, + "indexed": false, + "mutability": "mutable", + "name": "errorCode", + "nameLocation": "1177:9:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1171:15:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 62, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1171:5:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "953:239:0" + }, + "src": "933:260:0" + }, + { + "anonymous": false, + "eventSelector": "40873158a9e1446599b5dee14bfd652e53a6f48605dab5aaac3b8a12a56c7fce", + "id": 73, + "name": "ProviderFeeUpdated", + "nameLocation": "1205:18:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 72, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 67, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1232:8:0", + "nodeType": "VariableDeclaration", + "scope": 73, + "src": "1224:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 66, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1224:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 69, + "indexed": false, + "mutability": "mutable", + "name": "oldFee", + "nameLocation": "1250:6:0", + "nodeType": "VariableDeclaration", + "scope": 73, + "src": "1242:14:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 68, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1242:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 71, + "indexed": false, + "mutability": "mutable", + "name": "newFee", + "nameLocation": "1266:6:0", + "nodeType": "VariableDeclaration", + "scope": 73, + "src": "1258:14:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 70, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1258:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1223:50:0" + }, + "src": "1199:75:0" + }, + { + "anonymous": false, + "eventSelector": "eb28196cc9984ca7d8c99b41fa943501351706fda54b50f983e60fdc08aa94a0", + "id": 81, + "name": "ProviderDefaultGasLimitUpdated", + "nameLocation": "1286:30:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 80, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 75, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1342:8:0", + "nodeType": "VariableDeclaration", + "scope": 81, + "src": "1326:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 74, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1326:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 77, + "indexed": false, + "mutability": "mutable", + "name": "oldDefaultGasLimit", + "nameLocation": "1367:18:0", + "nodeType": "VariableDeclaration", + "scope": 81, + "src": "1360:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 76, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1360:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 79, + "indexed": false, + "mutability": "mutable", + "name": "newDefaultGasLimit", + "nameLocation": "1402:18:0", + "nodeType": "VariableDeclaration", + "scope": 81, + "src": "1395:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 78, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1395:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "1316:110:0" + }, + "src": "1280:147:0" + }, + { + "anonymous": false, + "eventSelector": "1efad1d69168ff2e29c45661eed77d2de2b8c95f412cd22a65b15a38e24f7088", + "id": 89, + "name": "ProviderUriUpdated", + "nameLocation": "1439:18:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 88, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 83, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1466:8:0", + "nodeType": "VariableDeclaration", + "scope": 89, + "src": "1458:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 82, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1458:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 85, + "indexed": false, + "mutability": "mutable", + "name": "oldUri", + "nameLocation": "1482:6:0", + "nodeType": "VariableDeclaration", + "scope": 89, + "src": "1476:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 84, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1476:5:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 87, + "indexed": false, + "mutability": "mutable", + "name": "newUri", + "nameLocation": "1496:6:0", + "nodeType": "VariableDeclaration", + "scope": 89, + "src": "1490:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 86, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1490:5:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "1457:46:0" + }, + "src": "1433:71:0" + }, + { + "anonymous": false, + "eventSelector": "2c0fa560a1e6d11854f3f965d262e756c1b6d23d2bfe8f0e54b7807dd79b946b", + "id": 97, + "name": "ProviderFeeManagerUpdated", + "nameLocation": "1516:25:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 96, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 91, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1559:8:0", + "nodeType": "VariableDeclaration", + "scope": 97, + "src": "1551:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 90, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1551:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 93, + "indexed": false, + "mutability": "mutable", + "name": "oldFeeManager", + "nameLocation": "1585:13:0", + "nodeType": "VariableDeclaration", + "scope": 97, + "src": "1577:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 92, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1577:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 95, + "indexed": false, + "mutability": "mutable", + "name": "newFeeManager", + "nameLocation": "1616:13:0", + "nodeType": "VariableDeclaration", + "scope": 97, + "src": "1608:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 94, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1608:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1541:94:0" + }, + "src": "1510:126:0" + }, + { + "anonymous": false, + "eventSelector": "6a5a36f1400b17f2daef49faa26a5133cbcc952cffc0e7f426f3c84d6d207f60", + "id": 105, + "name": "ProviderMaxNumHashesAdvanced", + "nameLocation": "1647:28:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 104, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 99, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1693:8:0", + "nodeType": "VariableDeclaration", + "scope": 105, + "src": "1685:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 98, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1685:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 101, + "indexed": false, + "mutability": "mutable", + "name": "oldMaxNumHashes", + "nameLocation": "1718:15:0", + "nodeType": "VariableDeclaration", + "scope": 105, + "src": "1711:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 100, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1711:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 103, + "indexed": false, + "mutability": "mutable", + "name": "newMaxNumHashes", + "nameLocation": "1750:15:0", + "nodeType": "VariableDeclaration", + "scope": 105, + "src": "1743:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 102, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1743:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "1675:96:0" + }, + "src": "1641:131:0" + }, + { + "anonymous": false, + "eventSelector": "02128911bc7070fd6c100b116c2dd9a3bb6bf132d5259a65ca8d0c86ccd78f49", + "id": 113, + "name": "Withdrawal", + "nameLocation": "1784:10:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 112, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 107, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1812:8:0", + "nodeType": "VariableDeclaration", + "scope": 113, + "src": "1804:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 106, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1804:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 109, + "indexed": false, + "mutability": "mutable", + "name": "recipient", + "nameLocation": "1838:9:0", + "nodeType": "VariableDeclaration", + "scope": 113, + "src": "1830:17:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 108, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1830:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 111, + "indexed": false, + "mutability": "mutable", + "name": "withdrawnAmount", + "nameLocation": "1865:15:0", + "nodeType": "VariableDeclaration", + "scope": 113, + "src": "1857:23:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 110, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1857:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1794:92:0" + }, + "src": "1778:109:0" + } + ], + "scope": 115, + "src": "197:1692:0", + "usedErrors": [], + "usedEvents": [ + 7, + 12, + 25, + 38, + 49, + 65, + 73, + 81, + 89, + 97, + 105, + 113 + ] + } + ], + "src": "39:1851:0" + }, + "id": 0 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol", + "exportedSymbols": { + "EntropyEventsV2": [ + 230 + ], + "EntropyStructs": [ + 275 + ] + }, + "id": 231, + "license": "Apache-2.0", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 116, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "39:23:1" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "file": "./EntropyStructs.sol", + "id": 117, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 231, + "sourceUnit": 276, + "src": "64:30:1", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyEventsV2", + "contractDependencies": [], + "contractKind": "interface", + "documentation": { + "id": 118, + "nodeType": "StructuredDocumentation", + "src": "96:328:1", + "text": " @title EntropyEventsV2\n @notice Interface defining events for the Entropy V2 system, which handles random number generation\n and provider management on Ethereum.\n @dev This interface is used to emit events that track the lifecycle of random number requests,\n provider registrations, and system configurations." + }, + "fullyImplemented": true, + "id": 230, + "linearizedBaseContracts": [ + 230 + ], + "name": "EntropyEventsV2", + "nameLocation": "435:15:1", + "nodeType": "ContractDefinition", + "nodes": [ + { + "anonymous": false, + "documentation": { + "id": 119, + "nodeType": "StructuredDocumentation", + "src": "457:224:1", + "text": " @notice Emitted when a new provider registers with the Entropy system\n @param provider The address of the registered provider\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "b5ca2dfb0bd25603299b76fefa9fbe3abdc9f951bdfb7ffd208f93ab7f8e203c", + "id": 125, + "name": "Registered", + "nameLocation": "692:10:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 124, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 121, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "719:8:1", + "nodeType": "VariableDeclaration", + "scope": 125, + "src": "703:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 120, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "703:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 123, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "735:9:1", + "nodeType": "VariableDeclaration", + "scope": 125, + "src": "729:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 122, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "729:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "702:43:1" + }, + "src": "686:60:1" + }, + { + "anonymous": false, + "documentation": { + "id": 126, + "nodeType": "StructuredDocumentation", + "src": "752:504:1", + "text": " @notice Emitted when a user requests a random number from a provider\n @param provider The address of the provider handling the request\n @param caller The address of the user requesting the random number\n @param sequenceNumber A unique identifier for this request\n @param userContribution The user's contribution to the random number\n @param gasLimit The gas limit for the callback.\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "209bbfee3369097c31c36ce42994bdcac394866c881f603fb6296f240d6c37db", + "id": 140, + "name": "Requested", + "nameLocation": "1267:9:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 139, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 128, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1302:8:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1286:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 127, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1286:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 130, + "indexed": true, + "mutability": "mutable", + "name": "caller", + "nameLocation": "1336:6:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1320:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 129, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1320:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 132, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1367:14:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1352:29:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 131, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1352:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 134, + "indexed": false, + "mutability": "mutable", + "name": "userContribution", + "nameLocation": "1399:16:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1391:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 133, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1391:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 136, + "indexed": false, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "1432:8:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1425:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 135, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1425:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 138, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "1456:9:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1450:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 137, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1450:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "1276:195:1" + }, + "src": "1261:211:1" + }, + { + "anonymous": false, + "documentation": { + "id": 141, + "nodeType": "StructuredDocumentation", + "src": "1478:1101:1", + "text": " @notice Emitted when a provider reveals the generated random number\n @param provider The address of the provider that generated the random number\n @param caller The address of the user who requested the random number (and who receives a callback)\n @param sequenceNumber The unique identifier of the request\n @param randomNumber The generated random number\n @param userContribution The user's contribution to the random number\n @param providerContribution The provider's contribution to the random number\n @param callbackFailed Whether the callback to the caller failed\n @param callbackReturnValue Return value from the callback. If the callback failed, this field contains\n the error code and any additional returned data. Note that \"\" often indicates an out-of-gas error.\n If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\n @param callbackGasUsed How much gas the callback used.\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "2231996cc9de260d163cd345089fea7819252b40215c738556aa144a0a11ed47", + "id": 163, + "name": "Revealed", + "nameLocation": "2590:8:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 162, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 143, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2624:8:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2608:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 142, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2608:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 145, + "indexed": true, + "mutability": "mutable", + "name": "caller", + "nameLocation": "2658:6:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2642:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 144, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2642:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 147, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2689:14:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2674:29:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 146, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2674:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 149, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "2721:12:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2713:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 148, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2713:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 151, + "indexed": false, + "mutability": "mutable", + "name": "userContribution", + "nameLocation": "2751:16:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2743:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 150, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2743:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 153, + "indexed": false, + "mutability": "mutable", + "name": "providerContribution", + "nameLocation": "2785:20:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2777:28:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 152, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2777:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 155, + "indexed": false, + "mutability": "mutable", + "name": "callbackFailed", + "nameLocation": "2820:14:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2815:19:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 154, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2815:4:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 157, + "indexed": false, + "mutability": "mutable", + "name": "callbackReturnValue", + "nameLocation": "2850:19:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2844:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 156, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "2844:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 159, + "indexed": false, + "mutability": "mutable", + "name": "callbackGasUsed", + "nameLocation": "2886:15:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2879:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 158, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2879:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 161, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "2917:9:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2911:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 160, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "2911:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "2598:334:1" + }, + "src": "2584:349:1" + }, + { + "anonymous": false, + "documentation": { + "id": 164, + "nodeType": "StructuredDocumentation", + "src": "2939:297:1", + "text": " @notice Emitted when a provider updates their fee\n @param provider The address of the provider updating their fee\n @param oldFee The previous fee amount\n @param newFee The new fee amount\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "2b876e4a8eb641937e15aa02b7b90d376ce4661b51337661d76d330d23aed536", + "id": 174, + "name": "ProviderFeeUpdated", + "nameLocation": "3247:18:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 173, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 166, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3291:8:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3275:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 165, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3275:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 168, + "indexed": false, + "mutability": "mutable", + "name": "oldFee", + "nameLocation": "3317:6:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3309:14:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 167, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "3309:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 170, + "indexed": false, + "mutability": "mutable", + "name": "newFee", + "nameLocation": "3341:6:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3333:14:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 169, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "3333:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 172, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "3363:9:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3357:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 171, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "3357:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "3265:113:1" + }, + "src": "3241:138:1" + }, + { + "anonymous": false, + "documentation": { + "id": 175, + "nodeType": "StructuredDocumentation", + "src": "3385:355:1", + "text": " @notice Emitted when a provider updates their default gas limit\n @param provider The address of the provider updating their gas limit\n @param oldDefaultGasLimit The previous default gas limit\n @param newDefaultGasLimit The new default gas limit\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "92ec5e11b09fd199655525004a1861acf5dd00f3a672ea8c750ec8bbf7ef6190", + "id": 185, + "name": "ProviderDefaultGasLimitUpdated", + "nameLocation": "3751:30:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 184, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 177, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3807:8:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3791:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 176, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3791:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 179, + "indexed": false, + "mutability": "mutable", + "name": "oldDefaultGasLimit", + "nameLocation": "3832:18:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3825:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 178, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3825:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 181, + "indexed": false, + "mutability": "mutable", + "name": "newDefaultGasLimit", + "nameLocation": "3867:18:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3860:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 180, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3860:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 183, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "3901:9:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3895:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 182, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "3895:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "3781:135:1" + }, + "src": "3745:172:1" + }, + { + "anonymous": false, + "documentation": { + "id": 186, + "nodeType": "StructuredDocumentation", + "src": "3923:283:1", + "text": " @notice Emitted when a provider updates their URI\n @param provider The address of the provider updating their URI\n @param oldUri The previous URI\n @param newUri The new URI\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "61e70b9f3f2fcdff8071ea3b7dba108a38e7c1e59d0d9ddf60462a6c4cee85ea", + "id": 196, + "name": "ProviderUriUpdated", + "nameLocation": "4217:18:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 195, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 188, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "4261:8:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4245:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 187, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4245:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 190, + "indexed": false, + "mutability": "mutable", + "name": "oldUri", + "nameLocation": "4285:6:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4279:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 189, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4279:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 192, + "indexed": false, + "mutability": "mutable", + "name": "newUri", + "nameLocation": "4307:6:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4301:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 191, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4301:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 194, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "4329:9:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4323:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 193, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4323:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "4235:109:1" + }, + "src": "4211:134:1" + }, + { + "anonymous": false, + "documentation": { + "id": 197, + "nodeType": "StructuredDocumentation", + "src": "4351:353:1", + "text": " @notice Emitted when a provider updates their fee manager address\n @param provider The address of the provider updating their fee manager\n @param oldFeeManager The previous fee manager address\n @param newFeeManager The new fee manager address\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "bdb4fa4c43ffef3ac259c0c209d3cecacc9579c559ec0273193f24d416c64377", + "id": 207, + "name": "ProviderFeeManagerUpdated", + "nameLocation": "4715:25:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 206, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 199, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "4766:8:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4750:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 198, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4750:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 201, + "indexed": false, + "mutability": "mutable", + "name": "oldFeeManager", + "nameLocation": "4792:13:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4784:21:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 200, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4784:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 203, + "indexed": false, + "mutability": "mutable", + "name": "newFeeManager", + "nameLocation": "4823:13:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4815:21:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 202, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4815:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 205, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "4852:9:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4846:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 204, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4846:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "4740:127:1" + }, + "src": "4709:159:1" + }, + { + "anonymous": false, + "documentation": { + "id": 208, + "nodeType": "StructuredDocumentation", + "src": "4874:392:1", + "text": " @notice Emitted when a provider updates their maximum number of hashes that can be advanced\n @param provider The address of the provider updating their max hashes\n @param oldMaxNumHashes The previous maximum number of hashes\n @param newMaxNumHashes The new maximum number of hashes\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "506807cbd0dcbf141d2ec9b63b6891a27db1eb2d769dffe38cce227ff6a704f4", + "id": 218, + "name": "ProviderMaxNumHashesAdvanced", + "nameLocation": "5277:28:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 217, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 210, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5331:8:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5315:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 209, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5315:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 212, + "indexed": false, + "mutability": "mutable", + "name": "oldMaxNumHashes", + "nameLocation": "5356:15:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5349:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 211, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5349:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 214, + "indexed": false, + "mutability": "mutable", + "name": "newMaxNumHashes", + "nameLocation": "5388:15:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5381:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 213, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5381:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 216, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "5419:9:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5413:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 215, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "5413:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "5305:129:1" + }, + "src": "5271:164:1" + }, + { + "anonymous": false, + "documentation": { + "id": 219, + "nodeType": "StructuredDocumentation", + "src": "5441:349:1", + "text": " @notice Emitted when a provider withdraws their accumulated fees\n @param provider The address of the provider withdrawing fees\n @param recipient The address receiving the withdrawn fees\n @param withdrawnAmount The amount of fees withdrawn\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "1df589989558acb66e48be55ae76b555f1075333b1ced9e827a685ae2821967f", + "id": 229, + "name": "Withdrawal", + "nameLocation": "5801:10:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 228, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 221, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5837:8:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5821:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 220, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5821:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 223, + "indexed": true, + "mutability": "mutable", + "name": "recipient", + "nameLocation": "5871:9:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5855:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 222, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5855:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 225, + "indexed": false, + "mutability": "mutable", + "name": "withdrawnAmount", + "nameLocation": "5898:15:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5890:23:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 224, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "5890:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 227, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "5929:9:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5923:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 226, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "5923:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "5811:133:1" + }, + "src": "5795:150:1" + } + ], + "scope": 231, + "src": "425:5522:1", + "usedErrors": [], + "usedEvents": [ + 125, + 140, + 163, + 174, + 185, + 196, + 207, + 218, + 229 + ] + } + ], + "src": "39:5909:1" + }, + "id": 1 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "exportedSymbols": { + "EntropyStructs": [ + 275 + ] + }, + "id": 276, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 232, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "38:23:2" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyStructs", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 275, + "linearizedBaseContracts": [ + 275 + ], + "name": "EntropyStructs", + "nameLocation": "377:14:2", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "EntropyStructs.ProviderInfo", + "id": 257, + "members": [ + { + "constant": false, + "id": 234, + "mutability": "mutable", + "name": "feeInWei", + "nameLocation": "436:8:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "428:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 233, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "428:7:2", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 236, + "mutability": "mutable", + "name": "accruedFeesInWei", + "nameLocation": "462:16:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "454:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 235, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "454:7:2", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 238, + "mutability": "mutable", + "name": "originalCommitment", + "nameLocation": "777:18:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "769:26:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 237, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "769:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 240, + "mutability": "mutable", + "name": "originalCommitmentSequenceNumber", + "nameLocation": "812:32:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "805:39:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 239, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "805:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 242, + "mutability": "mutable", + "name": "commitmentMetadata", + "nameLocation": "1049:18:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1043:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 241, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1043:5:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 244, + "mutability": "mutable", + "name": "uri", + "nameLocation": "1352:3:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1346:9:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 243, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1346:5:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 246, + "mutability": "mutable", + "name": "endSequenceNumber", + "nameLocation": "1706:17:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1699:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 245, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1699:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 248, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1827:14:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1820:21:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 247, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1820:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 250, + "mutability": "mutable", + "name": "currentCommitment", + "nameLocation": "2240:17:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2232:25:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 249, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2232:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 252, + "mutability": "mutable", + "name": "currentCommitmentSequenceNumber", + "nameLocation": "2274:31:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2267:38:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 251, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2267:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 254, + "mutability": "mutable", + "name": "feeManager", + "nameLocation": "2415:10:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2407:18:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 253, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2407:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 256, + "mutability": "mutable", + "name": "maxNumHashes", + "nameLocation": "2604:12:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2597:19:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 255, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2597:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "name": "ProviderInfo", + "nameLocation": "405:12:2", + "nodeType": "StructDefinition", + "scope": 275, + "src": "398:2225:2", + "visibility": "public" + }, + { + "canonicalName": "EntropyStructs.Request", + "id": 274, + "members": [ + { + "constant": false, + "id": 259, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2691:8:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "2683:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 258, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2683:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 261, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2716:14:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "2709:21:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 260, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2709:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 263, + "mutability": "mutable", + "name": "numHashes", + "nameLocation": "2823:9:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "2816:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 262, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2816:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 265, + "mutability": "mutable", + "name": "commitment", + "nameLocation": "3037:10:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3029:18:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 264, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3029:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 267, + "mutability": "mutable", + "name": "blockNumber", + "nameLocation": "3425:11:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3418:18:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 266, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3418:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 269, + "mutability": "mutable", + "name": "requester", + "nameLocation": "3512:9:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3504:17:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 268, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3504:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 271, + "mutability": "mutable", + "name": "useBlockhash", + "nameLocation": "3630:12:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3625:17:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 270, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3625:4:2", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 273, + "mutability": "mutable", + "name": "isRequestWithCallback", + "nameLocation": "3719:21:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3714:26:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 272, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3714:4:2", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "name": "Request", + "nameLocation": "2636:7:2", + "nodeType": "StructDefinition", + "scope": 275, + "src": "2629:1118:2", + "visibility": "public" + } + ], + "scope": 276, + "src": "368:3381:2", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "38:3712:2" + }, + "id": 2 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol", + "exportedSymbols": { + "EntropyStructsV2": [ + 324 + ] + }, + "id": 325, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 277, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "38:23:3" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyStructsV2", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 324, + "linearizedBaseContracts": [ + 324 + ], + "name": "EntropyStructsV2", + "nameLocation": "72:16:3", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "EntropyStructsV2.ProviderInfo", + "id": 304, + "members": [ + { + "constant": false, + "id": 279, + "mutability": "mutable", + "name": "feeInWei", + "nameLocation": "133:8:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "125:16:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 278, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "125:7:3", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 281, + "mutability": "mutable", + "name": "accruedFeesInWei", + "nameLocation": "159:16:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "151:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 280, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "151:7:3", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 283, + "mutability": "mutable", + "name": "originalCommitment", + "nameLocation": "474:18:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "466:26:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 282, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "466:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 285, + "mutability": "mutable", + "name": "originalCommitmentSequenceNumber", + "nameLocation": "509:32:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "502:39:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 284, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "502:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 287, + "mutability": "mutable", + "name": "commitmentMetadata", + "nameLocation": "746:18:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "740:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 286, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "740:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 289, + "mutability": "mutable", + "name": "uri", + "nameLocation": "1049:3:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1043:9:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 288, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1043:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 291, + "mutability": "mutable", + "name": "endSequenceNumber", + "nameLocation": "1403:17:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1396:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 290, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1396:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 293, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1524:14:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1517:21:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 292, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1517:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 295, + "mutability": "mutable", + "name": "currentCommitment", + "nameLocation": "1937:17:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1929:25:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 294, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1929:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 297, + "mutability": "mutable", + "name": "currentCommitmentSequenceNumber", + "nameLocation": "1971:31:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1964:38:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 296, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1964:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 299, + "mutability": "mutable", + "name": "feeManager", + "nameLocation": "2112:10:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "2104:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 298, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2104:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 301, + "mutability": "mutable", + "name": "maxNumHashes", + "nameLocation": "2301:12:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "2294:19:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 300, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2294:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 303, + "mutability": "mutable", + "name": "defaultGasLimit", + "nameLocation": "2381:15:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "2374:22:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 302, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2374:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "name": "ProviderInfo", + "nameLocation": "102:12:3", + "nodeType": "StructDefinition", + "scope": 324, + "src": "95:2308:3", + "visibility": "public" + }, + { + "canonicalName": "EntropyStructsV2.Request", + "id": 323, + "members": [ + { + "constant": false, + "id": 306, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2471:8:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2463:16:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 305, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2463:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 308, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2496:14:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2489:21:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 307, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2489:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 310, + "mutability": "mutable", + "name": "numHashes", + "nameLocation": "2603:9:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2596:16:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 309, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2596:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 312, + "mutability": "mutable", + "name": "commitment", + "nameLocation": "2817:10:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2809:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 311, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2809:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 314, + "mutability": "mutable", + "name": "blockNumber", + "nameLocation": "3205:11:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3198:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 313, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3198:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 316, + "mutability": "mutable", + "name": "requester", + "nameLocation": "3292:9:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3284:17:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 315, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3284:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 318, + "mutability": "mutable", + "name": "useBlockhash", + "nameLocation": "3410:12:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3405:17:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 317, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3405:4:3", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 320, + "mutability": "mutable", + "name": "callbackStatus", + "nameLocation": "3549:14:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3543:20:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint8", + "typeString": "uint8" + }, + "typeName": { + "id": 319, + "name": "uint8", + "nodeType": "ElementaryTypeName", + "src": "3543:5:3", + "typeDescriptions": { + "typeIdentifier": "t_uint8", + "typeString": "uint8" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 322, + "mutability": "mutable", + "name": "gasLimit10k", + "nameLocation": "3852:11:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3845:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint16", + "typeString": "uint16" + }, + "typeName": { + "id": 321, + "name": "uint16", + "nodeType": "ElementaryTypeName", + "src": "3845:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint16", + "typeString": "uint16" + } + }, + "visibility": "internal" + } + ], + "name": "Request", + "nameLocation": "2416:7:3", + "nodeType": "StructDefinition", + "scope": 324, + "src": "2409:1461:3", + "visibility": "public" + } + ], + "scope": 325, + "src": "63:3809:3", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "38:3835:3" + }, + "id": 3 + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "exportedSymbols": { + "IEntropyConsumer": [ + 380 + ] + }, + "id": 381, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 326, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:4" + }, + { + "abstract": true, + "baseContracts": [], + "canonicalName": "IEntropyConsumer", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": false, + "id": 380, + "linearizedBaseContracts": [ + 380 + ], + "name": "IEntropyConsumer", + "nameLocation": "80:16:4", + "nodeType": "ContractDefinition", + "nodes": [ + { + "body": { + "id": 364, + "nodeType": "Block", + "src": "429:253:4", + "statements": [ + { + "assignments": [ + 336 + ], + "declarations": [ + { + "constant": false, + "id": 336, + "mutability": "mutable", + "name": "entropy", + "nameLocation": "447:7:4", + "nodeType": "VariableDeclaration", + "scope": 364, + "src": "439:15:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 335, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "439:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 339, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 337, + "name": "getEntropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 370, + "src": "457:10:4", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 338, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "457:12:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "439:30:4" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 346, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 341, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 336, + "src": "487:7:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 344, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "506:1:4", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 343, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "498:7:4", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 342, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "498:7:4", + "typeDescriptions": {} + } + }, + "id": 345, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "498:10:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "487:21:4", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "456e74726f70792061646472657373206e6f7420736574", + "id": 347, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "510:25:4", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_e60db0a8cee923f04b5f9f7534e23d928fbe66e1acd9ebce5b5a3e302ef79bcf", + "typeString": "literal_string \"Entropy address not set\"" + }, + "value": "Entropy address not set" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_e60db0a8cee923f04b5f9f7534e23d928fbe66e1acd9ebce5b5a3e302ef79bcf", + "typeString": "literal_string \"Entropy address not set\"" + } + ], + "id": 340, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "479:7:4", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 348, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "479:57:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 349, + "nodeType": "ExpressionStatement", + "src": "479:57:4" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 354, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 351, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "554:3:4", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 352, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "558:6:4", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "554:10:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "id": 353, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 336, + "src": "568:7:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "554:21:4", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e6374696f6e", + "id": 355, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "577:37:4", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_8df3c3995bb08ddbb6a3f2cc5ea8c98a01a8d327b39305391122a5bdbafbef21", + "typeString": "literal_string \"Only Entropy can call this function\"" + }, + "value": "Only Entropy can call this function" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_8df3c3995bb08ddbb6a3f2cc5ea8c98a01a8d327b39305391122a5bdbafbef21", + "typeString": "literal_string \"Only Entropy can call this function\"" + } + ], + "id": 350, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "546:7:4", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 356, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "546:69:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 357, + "nodeType": "ExpressionStatement", + "src": "546:69:4" + }, + { + "expression": { + "arguments": [ + { + "id": 359, + "name": "sequence", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 328, + "src": "642:8:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + { + "id": 360, + "name": "provider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 330, + "src": "652:8:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 361, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 332, + "src": "662:12:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "id": 358, + "name": "entropyCallback", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 379, + "src": "626:15:4", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_uint64_$_t_address_$_t_bytes32_$returns$__$", + "typeString": "function (uint64,address,bytes32)" + } + }, + "id": 362, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "626:49:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 363, + "nodeType": "ExpressionStatement", + "src": "626:49:4" + } + ] + }, + "functionSelector": "52a5f1f8", + "id": 365, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_entropyCallback", + "nameLocation": "316:16:4", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 333, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 328, + "mutability": "mutable", + "name": "sequence", + "nameLocation": "349:8:4", + "nodeType": "VariableDeclaration", + "scope": 365, + "src": "342:15:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 327, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "342:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 330, + "mutability": "mutable", + "name": "provider", + "nameLocation": "375:8:4", + "nodeType": "VariableDeclaration", + "scope": 365, + "src": "367:16:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 329, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "367:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 332, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "401:12:4", + "nodeType": "VariableDeclaration", + "scope": 365, + "src": "393:20:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 331, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "393:7:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "332:87:4" + }, + "returnParameters": { + "id": 334, + "nodeType": "ParameterList", + "parameters": [], + "src": "429:0:4" + }, + "scope": 380, + "src": "307:375:4", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "id": 370, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getEntropy", + "nameLocation": "988:10:4", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 366, + "nodeType": "ParameterList", + "parameters": [], + "src": "998:2:4" + }, + "returnParameters": { + "id": 369, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 368, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 370, + "src": "1032:7:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 367, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1032:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1031:9:4" + }, + "scope": 380, + "src": "979:62:4", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "id": 379, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "entropyCallback", + "nameLocation": "1280:15:4", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 377, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 372, + "mutability": "mutable", + "name": "sequence", + "nameLocation": "1312:8:4", + "nodeType": "VariableDeclaration", + "scope": 379, + "src": "1305:15:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 371, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1305:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 374, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1338:8:4", + "nodeType": "VariableDeclaration", + "scope": 379, + "src": "1330:16:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 373, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1330:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 376, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "1364:12:4", + "nodeType": "VariableDeclaration", + "scope": 379, + "src": "1356:20:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 375, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1356:7:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "1295:87:4" + }, + "returnParameters": { + "id": 378, + "nodeType": "ParameterList", + "parameters": [], + "src": "1399:0:4" + }, + "scope": 380, + "src": "1271:129:4", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + } + ], + "scope": 381, + "src": "62:1340:4", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "37:1366:4" + }, + "id": 4 + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "exportedSymbols": { + "EntropyEvents": [ + 114 + ], + "EntropyEventsV2": [ + 230 + ], + "EntropyStructs": [ + 275 + ], + "EntropyStructsV2": [ + 324 + ], + "IEntropyV2": [ + 474 + ] + }, + "id": 475, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 382, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:5" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol", + "file": "./EntropyEvents.sol", + "id": 383, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 475, + "sourceUnit": 115, + "src": "62:29:5", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol", + "file": "./EntropyEventsV2.sol", + "id": 384, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 475, + "sourceUnit": 231, + "src": "92:31:5", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol", + "file": "./EntropyStructsV2.sol", + "id": 385, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 475, + "sourceUnit": 325, + "src": "124:32:5", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 386, + "name": "EntropyEventsV2", + "nameLocations": [ + "182:15:5" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 230, + "src": "182:15:5" + }, + "id": 387, + "nodeType": "InheritanceSpecifier", + "src": "182:15:5" + } + ], + "canonicalName": "IEntropyV2", + "contractDependencies": [], + "contractKind": "interface", + "fullyImplemented": false, + "id": 474, + "linearizedBaseContracts": [ + 474, + 230 + ], + "name": "IEntropyV2", + "nameLocation": "168:10:5", + "nodeType": "ContractDefinition", + "nodes": [ + { + "documentation": { + "id": 388, + "nodeType": "StructuredDocumentation", + "src": "204:1586:5", + "text": "@notice Request a random number using the default provider with default gas limit\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value.\n Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "7b43155d", + "id": 393, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "1804:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 389, + "nodeType": "ParameterList", + "parameters": [], + "src": "1813:2:5" + }, + "returnParameters": { + "id": 392, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 391, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "1873:22:5", + "nodeType": "VariableDeclaration", + "scope": 393, + "src": "1866:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 390, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1866:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "1865:31:5" + }, + "scope": 474, + "src": "1795:102:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 394, + "nodeType": "StructuredDocumentation", + "src": "1903:1669:5", + "text": "@notice Request a random number using the default provider with specified gas limit\n @param gasLimit The gas limit for the callback function.\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value.\n Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "0bed189f", + "id": 401, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "3586:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 397, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 396, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "3612:8:5", + "nodeType": "VariableDeclaration", + "scope": 401, + "src": "3605:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 395, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3605:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "3595:31:5" + }, + "returnParameters": { + "id": 400, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 399, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "3660:22:5", + "nodeType": "VariableDeclaration", + "scope": 401, + "src": "3653:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 398, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3653:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "3652:31:5" + }, + "scope": 474, + "src": "3577:107:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 402, + "nodeType": "StructuredDocumentation", + "src": "3690:1760:5", + "text": "@notice Request a random number from a specific provider with specified gas limit\n @param provider The address of the provider to request from\n @param gasLimit The gas limit for the callback function\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "0e33da29", + "id": 411, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "5464:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 407, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 404, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5491:8:5", + "nodeType": "VariableDeclaration", + "scope": 411, + "src": "5483:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 403, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5483:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 406, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "5516:8:5", + "nodeType": "VariableDeclaration", + "scope": 411, + "src": "5509:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 405, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5509:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "5473:57:5" + }, + "returnParameters": { + "id": 410, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 409, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "5564:22:5", + "nodeType": "VariableDeclaration", + "scope": 411, + "src": "5557:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 408, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "5557:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "5556:31:5" + }, + "scope": 474, + "src": "5455:133:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 412, + "nodeType": "StructuredDocumentation", + "src": "5594:1409:5", + "text": "@notice Request a random number from a specific provider with a user-provided random number and gas limit\n @param provider The address of the provider to request from\n @param userRandomNumber A random number provided by the user for additional entropy\n @param gasLimit The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller." + }, + "functionSelector": "f77b45e1", + "id": 423, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "7017:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 419, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 414, + "mutability": "mutable", + "name": "provider", + "nameLocation": "7044:8:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7036:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 413, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7036:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 416, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "7070:16:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7062:24:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 415, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7062:7:5", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 418, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "7103:8:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7096:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 417, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "7096:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "7026:91:5" + }, + "returnParameters": { + "id": 422, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 421, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "7151:22:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7144:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 420, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "7144:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "7143:31:5" + }, + "scope": 474, + "src": "7008:167:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 424, + "nodeType": "StructuredDocumentation", + "src": "7181:442:5", + "text": "@notice Get information about a specific entropy provider\n @param provider The address of the provider to query\n @return info The provider information including configuration, fees, and operational status\n @dev This method returns detailed information about a provider's configuration and capabilities.\n The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits." + }, + "functionSelector": "2f9b787b", + "id": 432, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getProviderInfoV2", + "nameLocation": "7637:17:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 427, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 426, + "mutability": "mutable", + "name": "provider", + "nameLocation": "7672:8:5", + "nodeType": "VariableDeclaration", + "scope": 432, + "src": "7664:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 425, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7664:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "7654:32:5" + }, + "returnParameters": { + "id": 431, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 430, + "mutability": "mutable", + "name": "info", + "nameLocation": "7747:4:5", + "nodeType": "VariableDeclaration", + "scope": 432, + "src": "7710:41:5", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$304_memory_ptr", + "typeString": "struct EntropyStructsV2.ProviderInfo" + }, + "typeName": { + "id": 429, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 428, + "name": "EntropyStructsV2.ProviderInfo", + "nameLocations": [ + "7710:16:5", + "7727:12:5" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 304, + "src": "7710:29:5" + }, + "referencedDeclaration": 304, + "src": "7710:29:5", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$304_storage_ptr", + "typeString": "struct EntropyStructsV2.ProviderInfo" + } + }, + "visibility": "internal" + } + ], + "src": "7709:43:5" + }, + "scope": 474, + "src": "7628:125:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 433, + "nodeType": "StructuredDocumentation", + "src": "7759:350:5", + "text": "@notice Get the address of the default entropy provider\n @return provider The address of the default provider\n @dev This method returns the address of the provider that will be used when no specific provider is specified\n in the requestV2 calls. The default provider can be used to get the base fee and gas limit information." + }, + "functionSelector": "82ee990c", + "id": 438, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getDefaultProvider", + "nameLocation": "8123:18:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 434, + "nodeType": "ParameterList", + "parameters": [], + "src": "8141:2:5" + }, + "returnParameters": { + "id": 437, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 436, + "mutability": "mutable", + "name": "provider", + "nameLocation": "8175:8:5", + "nodeType": "VariableDeclaration", + "scope": 438, + "src": "8167:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 435, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8167:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "8166:18:5" + }, + "scope": 474, + "src": "8114:71:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 439, + "nodeType": "StructuredDocumentation", + "src": "8191:561:5", + "text": "@notice Get information about a specific request\n @param provider The address of the provider that handled the request\n @param sequenceNumber The unique identifier of the request\n @return req The request information including status, random number, and other metadata\n @dev This method allows querying the state of a previously made request. The returned Request struct\n contains information about whether the request was fulfilled, the generated random number (if available),\n and other metadata about the request." + }, + "functionSelector": "754a3600", + "id": 449, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getRequestV2", + "nameLocation": "8766:12:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 444, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 441, + "mutability": "mutable", + "name": "provider", + "nameLocation": "8796:8:5", + "nodeType": "VariableDeclaration", + "scope": 449, + "src": "8788:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 440, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8788:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 443, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "8821:14:5", + "nodeType": "VariableDeclaration", + "scope": 449, + "src": "8814:21:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 442, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "8814:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "8778:63:5" + }, + "returnParameters": { + "id": 448, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 447, + "mutability": "mutable", + "name": "req", + "nameLocation": "8897:3:5", + "nodeType": "VariableDeclaration", + "scope": 449, + "src": "8865:35:5", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$323_memory_ptr", + "typeString": "struct EntropyStructsV2.Request" + }, + "typeName": { + "id": 446, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 445, + "name": "EntropyStructsV2.Request", + "nameLocations": [ + "8865:16:5", + "8882:7:5" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 323, + "src": "8865:24:5" + }, + "referencedDeclaration": 323, + "src": "8865:24:5", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$323_storage_ptr", + "typeString": "struct EntropyStructsV2.Request" + } + }, + "visibility": "internal" + } + ], + "src": "8864:37:5" + }, + "scope": 474, + "src": "8757:145:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 450, + "nodeType": "StructuredDocumentation", + "src": "8908:421:5", + "text": "@notice Get the fee charged by the default provider for the default gas limit\n @return feeAmount The fee amount in wei\n @dev This method returns the base fee required to make a request using the default provider with\n the default gas limit. This fee should be passed as msg.value when calling requestV2().\n The fee can change over time, so this method should be called before each request." + }, + "functionSelector": "8204b67a", + "id": 455, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "9343:8:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 451, + "nodeType": "ParameterList", + "parameters": [], + "src": "9351:2:5" + }, + "returnParameters": { + "id": 454, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 453, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "9385:9:5", + "nodeType": "VariableDeclaration", + "scope": 455, + "src": "9377:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 452, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "9377:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "9376:19:5" + }, + "scope": 474, + "src": "9334:62:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 456, + "nodeType": "StructuredDocumentation", + "src": "9402:489:5", + "text": "@notice Get the fee charged by the default provider for a specific gas limit\n @param gasLimit The gas limit for the callback function\n @return feeAmount The fee amount in wei\n @dev This method returns the fee required to make a request using the default provider with\n the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit).\n The fee can change over time, so this method should be called before each request." + }, + "functionSelector": "ca1642e1", + "id": 463, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "9905:8:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 459, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 458, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "9930:8:5", + "nodeType": "VariableDeclaration", + "scope": 463, + "src": "9923:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 457, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "9923:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "9913:31:5" + }, + "returnParameters": { + "id": 462, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 461, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "9976:9:5", + "nodeType": "VariableDeclaration", + "scope": 463, + "src": "9968:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 460, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "9968:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "9967:19:5" + }, + "scope": 474, + "src": "9896:91:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 464, + "nodeType": "StructuredDocumentation", + "src": "9993:628:5", + "text": "@notice Get the fee charged by a specific provider for a request with a given gas limit\n @param provider The address of the provider to query\n @param gasLimit The gas limit for the callback function\n @return feeAmount The fee amount in wei\n @dev This method returns the fee required to make a request using the specified provider with\n the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit)\n or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method\n should be called before each request." + }, + "functionSelector": "7ab2ac36", + "id": 473, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "10635:8:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 469, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 466, + "mutability": "mutable", + "name": "provider", + "nameLocation": "10661:8:5", + "nodeType": "VariableDeclaration", + "scope": 473, + "src": "10653:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 465, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "10653:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 468, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "10686:8:5", + "nodeType": "VariableDeclaration", + "scope": 473, + "src": "10679:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 467, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "10679:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "10643:57:5" + }, + "returnParameters": { + "id": 472, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 471, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "10732:9:5", + "nodeType": "VariableDeclaration", + "scope": 473, + "src": "10724:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 470, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "10724:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "10723:19:5" + }, + "scope": 474, + "src": "10626:117:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + } + ], + "scope": 475, + "src": "158:10587:5", + "usedErrors": [], + "usedEvents": [ + 125, + 140, + 163, + 174, + 185, + 196, + 207, + 218, + 229 + ] + } + ], + "src": "37:10709:5" + }, + "id": 5 + }, + "contracts/RandomSeed.sol": { + "ast": { + "absolutePath": "contracts/RandomSeed.sol", + "exportedSymbols": { + "IEntropyConsumer": [ + 380 + ], + "IEntropyV2": [ + 474 + ], + "RandomSeed": [ + 561 + ] + }, + "id": 562, + "license": "MIT", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 476, + "literals": [ + "solidity", + "^", + "0.8", + ".24" + ], + "nodeType": "PragmaDirective", + "src": "32:24:6" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "file": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "id": 478, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 562, + "sourceUnit": 381, + "src": "58:90:6", + "symbolAliases": [ + { + "foreign": { + "id": 477, + "name": "IEntropyConsumer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 380, + "src": "67:16:6", + "typeDescriptions": {} + }, + "nameLocation": "-1:-1:-1" + } + ], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "file": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "id": 480, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 562, + "sourceUnit": 475, + "src": "149:78:6", + "symbolAliases": [ + { + "foreign": { + "id": 479, + "name": "IEntropyV2", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 474, + "src": "158:10:6", + "typeDescriptions": {} + }, + "nameLocation": "-1:-1:-1" + } + ], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 481, + "name": "IEntropyConsumer", + "nameLocations": [ + "252:16:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 380, + "src": "252:16:6" + }, + "id": 482, + "nodeType": "InheritanceSpecifier", + "src": "252:16:6" + } + ], + "canonicalName": "RandomSeed", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 561, + "linearizedBaseContracts": [ + 561, + 380 + ], + "name": "RandomSeed", + "nameLocation": "238:10:6", + "nodeType": "ContractDefinition", + "nodes": [ + { + "constant": false, + "functionSelector": "47ce07cc", + "id": 485, + "mutability": "mutable", + "name": "entropy", + "nameLocation": "293:7:6", + "nodeType": "VariableDeclaration", + "scope": 561, + "src": "275:25:6", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + }, + "typeName": { + "id": 484, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 483, + "name": "IEntropyV2", + "nameLocations": [ + "275:10:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 474, + "src": "275:10:6" + }, + "referencedDeclaration": 474, + "src": "275:10:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "83220626", + "id": 487, + "mutability": "mutable", + "name": "currentSeed", + "nameLocation": "321:11:6", + "nodeType": "VariableDeclaration", + "scope": 561, + "src": "306:26:6", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 486, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "306:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "public" + }, + { + "anonymous": false, + "eventSelector": "c600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad56390", + "id": 491, + "name": "RandomSeedGenerated", + "nameLocation": "349:19:6", + "nodeType": "EventDefinition", + "parameters": { + "id": 490, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 489, + "indexed": false, + "mutability": "mutable", + "name": "seed", + "nameLocation": "377:4:6", + "nodeType": "VariableDeclaration", + "scope": 491, + "src": "369:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 488, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "369:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "368:14:6" + }, + "src": "343:40:6" + }, + { + "body": { + "id": 502, + "nodeType": "Block", + "src": "429:53:6", + "statements": [ + { + "expression": { + "id": 500, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 496, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 485, + "src": "439:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 498, + "name": "entropyAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 493, + "src": "460:14:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 497, + "name": "IEntropyV2", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 474, + "src": "449:10:6", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IEntropyV2_$474_$", + "typeString": "type(contract IEntropyV2)" + } + }, + "id": 499, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "449:26:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "src": "439:36:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "id": 501, + "nodeType": "ExpressionStatement", + "src": "439:36:6" + } + ] + }, + "id": 503, + "implemented": true, + "kind": "constructor", + "modifiers": [], + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 494, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 493, + "mutability": "mutable", + "name": "entropyAddress", + "nameLocation": "413:14:6", + "nodeType": "VariableDeclaration", + "scope": 503, + "src": "405:22:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 492, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "405:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "404:24:6" + }, + "returnParameters": { + "id": 495, + "nodeType": "ParameterList", + "parameters": [], + "src": "429:0:6" + }, + "scope": 561, + "src": "393:89:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "public" + }, + { + "body": { + "id": 528, + "nodeType": "Block", + "src": "538:171:6", + "statements": [ + { + "assignments": [ + 507 + ], + "declarations": [ + { + "constant": false, + "id": 507, + "mutability": "mutable", + "name": "fee", + "nameLocation": "556:3:6", + "nodeType": "VariableDeclaration", + "scope": 528, + "src": "548:11:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 506, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "548:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 511, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "expression": { + "id": 508, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 485, + "src": "562:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "id": 509, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "570:8:6", + "memberName": "getFeeV2", + "nodeType": "MemberAccess", + "referencedDeclaration": 455, + "src": "562:16:6", + "typeDescriptions": { + "typeIdentifier": "t_function_external_view$__$returns$_t_uint128_$", + "typeString": "function () view external returns (uint128)" + } + }, + "id": 510, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "562:18:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "548:32:6" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 516, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 513, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "598:3:6", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 514, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "602:5:6", + "memberName": "value", + "nodeType": "MemberAccess", + "src": "598:9:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">=", + "rightExpression": { + "id": 515, + "name": "fee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 507, + "src": "611:3:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "598:16:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "496e73756666696369656e7420666565", + "id": 517, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "616:18:6", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_7d4281b3c746fd818dd98635f57c54464f30641c177dcb423a4f8d1eb24128af", + "typeString": "literal_string \"Insufficient fee\"" + }, + "value": "Insufficient fee" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_7d4281b3c746fd818dd98635f57c54464f30641c177dcb423a4f8d1eb24128af", + "typeString": "literal_string \"Insufficient fee\"" + } + ], + "id": 512, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "590:7:6", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 518, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "590:45:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 519, + "nodeType": "ExpressionStatement", + "src": "590:45:6" + }, + { + "assignments": [ + 521 + ], + "declarations": [ + { + "constant": false, + "id": 521, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "652:14:6", + "nodeType": "VariableDeclaration", + "scope": 528, + "src": "645:21:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 520, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "645:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "id": 527, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "expression": { + "argumentTypes": [], + "expression": { + "id": 522, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 485, + "src": "669:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "id": 523, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "677:9:6", + "memberName": "requestV2", + "nodeType": "MemberAccess", + "referencedDeclaration": 393, + "src": "669:17:6", + "typeDescriptions": { + "typeIdentifier": "t_function_external_payable$__$returns$_t_uint64_$", + "typeString": "function () payable external returns (uint64)" + } + }, + "id": 525, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "names": [ + "value" + ], + "nodeType": "FunctionCallOptions", + "options": [ + { + "id": 524, + "name": "fee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 507, + "src": "695:3:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "src": "669:31:6", + "typeDescriptions": { + "typeIdentifier": "t_function_external_payable$__$returns$_t_uint64_$value", + "typeString": "function () payable external returns (uint64)" + } + }, + "id": 526, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "669:33:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "645:57:6" + } + ] + }, + "functionSelector": "e1da26c6", + "id": 529, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "requestRandomSeed", + "nameLocation": "501:17:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 504, + "nodeType": "ParameterList", + "parameters": [], + "src": "518:2:6" + }, + "returnParameters": { + "id": 505, + "nodeType": "ParameterList", + "parameters": [], + "src": "538:0:6" + }, + "scope": 561, + "src": "492:217:6", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "baseFunctions": [ + 379 + ], + "body": { + "id": 547, + "nodeType": "Block", + "src": "801:91:6", + "statements": [ + { + "expression": { + "id": 541, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 539, + "name": "currentSeed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 487, + "src": "811:11:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 540, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 535, + "src": "825:12:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "src": "811:26:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "id": 542, + "nodeType": "ExpressionStatement", + "src": "811:26:6" + }, + { + "eventCall": { + "arguments": [ + { + "id": 544, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 535, + "src": "872:12:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "id": 543, + "name": "RandomSeedGenerated", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 491, + "src": "852:19:6", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$returns$__$", + "typeString": "function (bytes32)" + } + }, + "id": 545, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "852:33:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 546, + "nodeType": "EmitStatement", + "src": "847:38:6" + } + ] + }, + "id": 548, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "entropyCallback", + "nameLocation": "728:15:6", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 537, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "792:8:6" + }, + "parameters": { + "id": 536, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 531, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 548, + "src": "744:6:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 530, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "744:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 533, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 548, + "src": "752:7:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 532, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "752:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 535, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "769:12:6", + "nodeType": "VariableDeclaration", + "scope": 548, + "src": "761:20:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 534, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "761:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "743:39:6" + }, + "returnParameters": { + "id": 538, + "nodeType": "ParameterList", + "parameters": [], + "src": "801:0:6" + }, + "scope": 561, + "src": "719:173:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "internal" + }, + { + "baseFunctions": [ + 370 + ], + "body": { + "id": 559, + "nodeType": "Block", + "src": "965:40:6", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 556, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 485, + "src": "990:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + ], + "id": 555, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "982:7:6", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 554, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "982:7:6", + "typeDescriptions": {} + } + }, + "id": 557, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "982:16:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 553, + "id": 558, + "nodeType": "Return", + "src": "975:23:6" + } + ] + }, + "id": 560, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "getEntropy", + "nameLocation": "911:10:6", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 550, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "938:8:6" + }, + "parameters": { + "id": 549, + "nodeType": "ParameterList", + "parameters": [], + "src": "921:2:6" + }, + "returnParameters": { + "id": 553, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 552, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 560, + "src": "956:7:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 551, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "956:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "955:9:6" + }, + "scope": 561, + "src": "902:103:6", + "stateMutability": "view", + "virtual": false, + "visibility": "internal" + } + ], + "scope": 562, + "src": "229:778:6", + "usedErrors": [], + "usedEvents": [ + 491 + ] + } + ], + "src": "32:975:6" + }, + "id": 6 + } + }, + "contracts": { + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "EntropyEvents": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "errorCode", + "type": "bytes" + } + ], + "name": "CallbackFailed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.ProviderInfo", + "name": "provider", + "type": "tuple" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "RequestedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "RevealedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + } + ], + "name": "Withdrawal", + "type": "event" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"errorCode\",\"type\":\"bytes\"}],\"name\":\"CallbackFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.ProviderInfo\",\"name\":\"provider\",\"type\":\"tuple\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"RequestedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"RevealedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"}],\"name\":\"Withdrawal\",\"type\":\"event\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":\"EntropyEvents\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "EntropyEventsV2": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "callbackFailed", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "callbackReturnValue", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "callbackGasUsed", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Withdrawal", + "type": "event" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"callbackFailed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"callbackReturnValue\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"callbackGasUsed\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Withdrawal\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"This interface is used to emit events that track the lifecycle of random number requests, provider registrations, and system configurations.\",\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newDefaultGasLimit\":\"The new default gas limit\",\"oldDefaultGasLimit\":\"The previous default gas limit\",\"provider\":\"The address of the provider updating their gas limit\"}},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFeeManager\":\"The new fee manager address\",\"oldFeeManager\":\"The previous fee manager address\",\"provider\":\"The address of the provider updating their fee manager\"}},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFee\":\"The new fee amount\",\"oldFee\":\"The previous fee amount\",\"provider\":\"The address of the provider updating their fee\"}},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newMaxNumHashes\":\"The new maximum number of hashes\",\"oldMaxNumHashes\":\"The previous maximum number of hashes\",\"provider\":\"The address of the provider updating their max hashes\"}},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newUri\":\"The new URI\",\"oldUri\":\"The previous URI\",\"provider\":\"The address of the provider updating their URI\"}},\"Registered(address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the registered provider\"}},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"params\":{\"caller\":\"The address of the user requesting the random number\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"gasLimit\":\"The gas limit for the callback.\",\"provider\":\"The address of the provider handling the request\",\"sequenceNumber\":\"A unique identifier for this request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"params\":{\"callbackFailed\":\"Whether the callback to the caller failed\",\"callbackGasUsed\":\"How much gas the callback used.\",\"callbackReturnValue\":\"Return value from the callback. If the callback failed, this field contains the error code and any additional returned data. Note that \\\"\\\" often indicates an out-of-gas error. If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\",\"caller\":\"The address of the user who requested the random number (and who receives a callback)\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider that generated the random number\",\"providerContribution\":\"The provider's contribution to the random number\",\"randomNumber\":\"The generated random number\",\"sequenceNumber\":\"The unique identifier of the request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Withdrawal(address,address,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider withdrawing fees\",\"recipient\":\"The address receiving the withdrawn fees\",\"withdrawnAmount\":\"The amount of fees withdrawn\"}}},\"kind\":\"dev\",\"methods\":{},\"title\":\"EntropyEventsV2\",\"version\":1},\"userdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their default gas limit\"},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"notice\":\"Emitted when a provider updates their fee manager address\"},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"notice\":\"Emitted when a provider updates their fee\"},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their maximum number of hashes that can be advanced\"},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"notice\":\"Emitted when a provider updates their URI\"},\"Registered(address,bytes)\":{\"notice\":\"Emitted when a new provider registers with the Entropy system\"},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"notice\":\"Emitted when a user requests a random number from a provider\"},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"notice\":\"Emitted when a provider reveals the generated random number\"},\"Withdrawal(address,address,uint128,bytes)\":{\"notice\":\"Emitted when a provider withdraws their accumulated fees\"}},\"kind\":\"user\",\"methods\":{},\"notice\":\"Interface defining events for the Entropy V2 system, which handles random number generation and provider management on Ethereum.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":\"EntropyEventsV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "EntropyStructs": { + "abi": [], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "60808060405234601357603a908160198239f35b600080fdfe600080fdfea2646970667358221220601a77c211c71b4896e8485e621a1a208c32c4e6c6c4abcf73dca6531fa15bd064736f6c63430008180033", + "opcodes": "PUSH1 0x80 DUP1 PUSH1 0x40 MSTORE CALLVALUE PUSH1 0x13 JUMPI PUSH1 0x3A SWAP1 DUP2 PUSH1 0x19 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT INVALID PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH1 0x1A PUSH24 0xC211C71B4896E8485E621A1A208C32C4E6C6C4ABCF73DCA6 MSTORE8 0x1F LOG1 JUMPDEST 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "368:3381:2:-:0;;;;;;;;;;;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "600080fdfea2646970667358221220601a77c211c71b4896e8485e621a1a208c32c4e6c6c4abcf73dca6531fa15bd064736f6c63430008180033", + "opcodes": "PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH1 0x1A PUSH24 0xC211C71B4896E8485E621A1A208C32C4E6C6C4ABCF73DCA6 MSTORE8 0x1F LOG1 JUMPDEST 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "368:3381:2:-:0;;" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":\"EntropyStructs\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "EntropyStructsV2": { + "abi": [], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "60808060405234601357603a908160198239f35b600080fdfe600080fdfea264697066735822122079d95283c2c574f47633e2e052f262dc01d488dadfcd075d698ae2d717d14c9064736f6c63430008180033", + "opcodes": "PUSH1 0x80 DUP1 PUSH1 0x40 MSTORE CALLVALUE PUSH1 0x13 JUMPI PUSH1 0x3A SWAP1 DUP2 PUSH1 0x19 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT INVALID PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH26 0xD95283C2C574F47633E2E052F262DC01D488DADFCD075D698AE2 0xD7 OR 0xD1 0x4C SWAP1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "63:3809:3:-:0;;;;;;;;;;;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "600080fdfea264697066735822122079d95283c2c574f47633e2e052f262dc01d488dadfcd075d698ae2d717d14c9064736f6c63430008180033", + "opcodes": "PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH26 0xD95283C2C574F47633E2E052F262DC01D488DADFCD075D698AE2 0xD7 OR 0xD1 0x4C SWAP1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "63:3809:3:-:0;;" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":\"EntropyStructsV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "IEntropyConsumer": { + "abi": [ + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "_entropyCallback(uint64,address,bytes32)": "52a5f1f8" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"_entropyCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":\"IEntropyConsumer\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":{\"keccak256\":\"0xf3d3dee1e9cbdef70b6c1f4d79aa8b438413e4636c00e79e615da9dc4df9c379\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://0e473522447c8f92a43f4fa3e54d83a789e12cc44b2a86847bd238a7f8827952\",\"dweb:/ipfs/Qmdihx73a89EZYy2GpitTxK92SWDLyPWeWnJTZ4Acva958\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "IEntropyV2": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "callbackFailed", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "callbackReturnValue", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "callbackGasUsed", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Withdrawal", + "type": "event" + }, + { + "inputs": [], + "name": "getDefaultProvider", + "outputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "name": "getProviderInfoV2", + "outputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "defaultGasLimit", + "type": "uint32" + } + ], + "internalType": "struct EntropyStructsV2.ProviderInfo", + "name": "info", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "getRequestV2", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "callbackStatus", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "gasLimit10k", + "type": "uint16" + } + ], + "internalType": "struct EntropyStructsV2.Request", + "name": "req", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "getDefaultProvider()": "82ee990c", + "getFeeV2()": "8204b67a", + "getFeeV2(address,uint32)": "7ab2ac36", + "getFeeV2(uint32)": "ca1642e1", + "getProviderInfoV2(address)": "2f9b787b", + "getRequestV2(address,uint64)": "754a3600", + "requestV2()": "7b43155d", + "requestV2(address,bytes32,uint32)": "f77b45e1", + "requestV2(address,uint32)": "0e33da29", + "requestV2(uint32)": "0bed189f" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"callbackFailed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"callbackReturnValue\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"callbackGasUsed\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getDefaultProvider\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getProviderInfoV2\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"defaultGasLimit\",\"type\":\"uint32\"}],\"internalType\":\"struct EntropyStructsV2.ProviderInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"}],\"name\":\"getRequestV2\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"callbackStatus\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"gasLimit10k\",\"type\":\"uint16\"}],\"internalType\":\"struct EntropyStructsV2.Request\",\"name\":\"req\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newDefaultGasLimit\":\"The new default gas limit\",\"oldDefaultGasLimit\":\"The previous default gas limit\",\"provider\":\"The address of the provider updating their gas limit\"}},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFeeManager\":\"The new fee manager address\",\"oldFeeManager\":\"The previous fee manager address\",\"provider\":\"The address of the provider updating their fee manager\"}},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFee\":\"The new fee amount\",\"oldFee\":\"The previous fee amount\",\"provider\":\"The address of the provider updating their fee\"}},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newMaxNumHashes\":\"The new maximum number of hashes\",\"oldMaxNumHashes\":\"The previous maximum number of hashes\",\"provider\":\"The address of the provider updating their max hashes\"}},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newUri\":\"The new URI\",\"oldUri\":\"The previous URI\",\"provider\":\"The address of the provider updating their URI\"}},\"Registered(address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the registered provider\"}},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"params\":{\"caller\":\"The address of the user requesting the random number\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"gasLimit\":\"The gas limit for the callback.\",\"provider\":\"The address of the provider handling the request\",\"sequenceNumber\":\"A unique identifier for this request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"params\":{\"callbackFailed\":\"Whether the callback to the caller failed\",\"callbackGasUsed\":\"How much gas the callback used.\",\"callbackReturnValue\":\"Return value from the callback. If the callback failed, this field contains the error code and any additional returned data. Note that \\\"\\\" often indicates an out-of-gas error. If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\",\"caller\":\"The address of the user who requested the random number (and who receives a callback)\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider that generated the random number\",\"providerContribution\":\"The provider's contribution to the random number\",\"randomNumber\":\"The generated random number\",\"sequenceNumber\":\"The unique identifier of the request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Withdrawal(address,address,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider withdrawing fees\",\"recipient\":\"The address receiving the withdrawn fees\",\"withdrawnAmount\":\"The amount of fees withdrawn\"}}},\"kind\":\"dev\",\"methods\":{\"getDefaultProvider()\":{\"details\":\"This method returns the address of the provider that will be used when no specific provider is specified in the requestV2 calls. The default provider can be used to get the base fee and gas limit information.\",\"returns\":{\"provider\":\"The address of the default provider\"}},\"getFeeV2()\":{\"details\":\"This method returns the base fee required to make a request using the default provider with the default gas limit. This fee should be passed as msg.value when calling requestV2(). The fee can change over time, so this method should be called before each request.\",\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(address,uint32)\":{\"details\":\"This method returns the fee required to make a request using the specified provider with the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit) or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to query\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(uint32)\":{\"details\":\"This method returns the fee required to make a request using the default provider with the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getProviderInfoV2(address)\":{\"details\":\"This method returns detailed information about a provider's configuration and capabilities. The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits.\",\"params\":{\"provider\":\"The address of the provider to query\"},\"returns\":{\"info\":\"The provider information including configuration, fees, and operational status\"}},\"getRequestV2(address,uint64)\":{\"details\":\"This method allows querying the state of a previously made request. The returned Request struct contains information about whether the request was fulfilled, the generated random number (if available), and other metadata about the request.\",\"params\":{\"provider\":\"The address of the provider that handled the request\",\"sequenceNumber\":\"The unique identifier of the request\"},\"returns\":{\"req\":\"The request information including status, random number, and other metadata\"}},\"requestV2()\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,bytes32,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\",\"provider\":\"The address of the provider to request from\",\"userRandomNumber\":\"A random number provided by the user for additional entropy\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to request from\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function.\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}}},\"version\":1},\"userdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their default gas limit\"},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"notice\":\"Emitted when a provider updates their fee manager address\"},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"notice\":\"Emitted when a provider updates their fee\"},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their maximum number of hashes that can be advanced\"},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"notice\":\"Emitted when a provider updates their URI\"},\"Registered(address,bytes)\":{\"notice\":\"Emitted when a new provider registers with the Entropy system\"},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"notice\":\"Emitted when a user requests a random number from a provider\"},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"notice\":\"Emitted when a provider reveals the generated random number\"},\"Withdrawal(address,address,uint128,bytes)\":{\"notice\":\"Emitted when a provider withdraws their accumulated fees\"}},\"kind\":\"user\",\"methods\":{\"getDefaultProvider()\":{\"notice\":\"Get the address of the default entropy provider\"},\"getFeeV2()\":{\"notice\":\"Get the fee charged by the default provider for the default gas limit\"},\"getFeeV2(address,uint32)\":{\"notice\":\"Get the fee charged by a specific provider for a request with a given gas limit\"},\"getFeeV2(uint32)\":{\"notice\":\"Get the fee charged by the default provider for a specific gas limit\"},\"getProviderInfoV2(address)\":{\"notice\":\"Get information about a specific entropy provider\"},\"getRequestV2(address,uint64)\":{\"notice\":\"Get information about a specific request\"},\"requestV2()\":{\"notice\":\"Request a random number using the default provider with default gas limit\"},\"requestV2(address,bytes32,uint32)\":{\"notice\":\"Request a random number from a specific provider with a user-provided random number and gas limit\"},\"requestV2(address,uint32)\":{\"notice\":\"Request a random number from a specific provider with specified gas limit\"},\"requestV2(uint32)\":{\"notice\":\"Request a random number using the default provider with specified gas limit\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":\"IEntropyV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":{\"keccak256\":\"0x79d7755d04dcc4d689115a14197aab690ab179000e5fc95bc1a73aeaa40c4924\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://c56f5d6e3f4c055f53ba25639bd27ec63a8d02648d1ef0037e7e45d2f893b97c\",\"dweb:/ipfs/QmYZDzmGe4cb6UXRecnxmKqkASPvhVLBmd8y5ZMMZF21C7\"]}},\"version\":1}" + } + }, + "contracts/RandomSeed.sol": { + "RandomSeed": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "entropyAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "seed", + "type": "bytes32" + } + ], + "name": "RandomSeedGenerated", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "currentSeed", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "entropy", + "outputs": [ + { + "internalType": "contract IEntropyV2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "requestRandomSeed", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "60803461007457601f61049e38819003918201601f19168301916001600160401b038311848410176100795780849260209460405283398101031261007457516001600160a01b0381169081900361007457600080546001600160a01b03191691909117905560405161040e90816100908239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060408181526004908136101561001657600080fd5b600092833560e01c90816347ce07cc146103575750806352a5f1f81461021e57806383220626146101ff5763e1da26c61461005057600080fd5b826003193601126101fb5773ffffffffffffffffffffffffffffffffffffffff835416908051917f8204b67a00000000000000000000000000000000000000000000000000000000835260209283818681855afa80156101f1578690610197575b6fffffffffffffffffffffffffffffffff91501693843410610155579083918351809681937f7b43155d0000000000000000000000000000000000000000000000000000000083525af190811561014c575061010b578280f35b81813d8311610145575b61011f8183610387565b81010312610141575167ffffffffffffffff81160361013e5738808280f35b80fd5b5080fd5b503d610115565b513d85823e3d90fd5b6064908484519162461bcd60e51b8352820152601060248201527f496e73756666696369656e7420666565000000000000000000000000000000006044820152fd5b508381813d83116101ea575b6101ad8183610387565b810103126101e657516fffffffffffffffffffffffffffffffff811681036101e6576fffffffffffffffffffffffffffffffff906100b1565b8580fd5b503d6101a3565b83513d88823e3d90fd5b8280fd5b8382346101415781600319360112610141576020906001549051908152f35b50346101fb5760603660031901126101fb57813567ffffffffffffffff8116036101fb5773ffffffffffffffffffffffffffffffffffffffff9160243583811603610353576044359284541680156103105733036102a85750816020917fc600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad563909360015551908152a180f35b6020608492519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b506020606492519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b84903461014157816003193601126101415773ffffffffffffffffffffffffffffffffffffffff60209254168152f35b90601f8019910116810190811067ffffffffffffffff8211176103a957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122040148961cbcee2b836102c073a7110e4e3b136bd516b7c37267477a91d1b03b064736f6c63430008180033", + "opcodes": "PUSH1 0x80 CALLVALUE PUSH2 0x74 JUMPI PUSH1 0x1F PUSH2 0x49E CODESIZE DUP2 SWAP1 SUB SWAP2 DUP3 ADD PUSH1 0x1F NOT AND DUP4 ADD SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP4 GT DUP5 DUP5 LT OR PUSH2 0x79 JUMPI DUP1 DUP5 SWAP3 PUSH1 0x20 SWAP5 PUSH1 0x40 MSTORE DUP4 CODECOPY DUP2 ADD SUB SLT PUSH2 0x74 JUMPI MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND SWAP1 DUP2 SWAP1 SUB PUSH2 0x74 JUMPI PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH2 0x40E SWAP1 DUP2 PUSH2 0x90 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID PUSH1 0x80 PUSH1 0x40 DUP2 DUP2 MSTORE PUSH1 0x4 SWAP1 DUP2 CALLDATASIZE LT ISZERO PUSH2 0x16 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP3 DUP4 CALLDATALOAD PUSH1 0xE0 SHR SWAP1 DUP2 PUSH4 0x47CE07CC EQ PUSH2 0x357 JUMPI POP DUP1 PUSH4 0x52A5F1F8 EQ PUSH2 0x21E JUMPI DUP1 PUSH4 0x83220626 EQ PUSH2 0x1FF JUMPI PUSH4 0xE1DA26C6 EQ PUSH2 0x50 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x1FB JUMPI PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 SLOAD AND SWAP1 DUP1 MLOAD SWAP2 PUSH32 0x8204B67A00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE PUSH1 0x20 SWAP3 DUP4 DUP2 DUP7 DUP2 DUP6 GAS STATICCALL DUP1 ISZERO PUSH2 0x1F1 JUMPI DUP7 SWAP1 PUSH2 0x197 JUMPI JUMPDEST PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 POP AND SWAP4 DUP5 CALLVALUE LT PUSH2 0x155 JUMPI SWAP1 DUP4 SWAP2 DUP4 MLOAD DUP1 SWAP7 DUP2 SWAP4 PUSH32 0x7B43155D00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE GAS CALL SWAP1 DUP2 ISZERO PUSH2 0x14C JUMPI POP PUSH2 0x10B JUMPI DUP3 DUP1 RETURN JUMPDEST DUP2 DUP2 RETURNDATASIZE DUP4 GT PUSH2 0x145 JUMPI JUMPDEST PUSH2 0x11F DUP2 DUP4 PUSH2 0x387 JUMP JUMPDEST DUP2 ADD SUB SLT PUSH2 0x141 JUMPI MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND SUB PUSH2 0x13E JUMPI CODESIZE DUP1 DUP3 DUP1 RETURN JUMPDEST DUP1 REVERT JUMPDEST POP DUP1 REVERT JUMPDEST POP RETURNDATASIZE PUSH2 0x115 JUMP JUMPDEST MLOAD RETURNDATASIZE DUP6 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST PUSH1 0x64 SWAP1 DUP5 DUP5 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E73756666696369656E742066656500000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST POP DUP4 DUP2 DUP2 RETURNDATASIZE DUP4 GT PUSH2 0x1EA JUMPI JUMPDEST PUSH2 0x1AD DUP2 DUP4 PUSH2 0x387 JUMP JUMPDEST DUP2 ADD SUB SLT PUSH2 0x1E6 JUMPI MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x1E6 JUMPI PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 PUSH2 0xB1 JUMP JUMPDEST DUP6 DUP1 REVERT JUMPDEST POP RETURNDATASIZE PUSH2 0x1A3 JUMP JUMPDEST DUP4 MLOAD RETURNDATASIZE DUP9 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST DUP3 DUP1 REVERT JUMPDEST DUP4 DUP3 CALLVALUE PUSH2 0x141 JUMPI DUP2 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x141 JUMPI PUSH1 0x20 SWAP1 PUSH1 0x1 SLOAD SWAP1 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST POP CALLVALUE PUSH2 0x1FB JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x1FB JUMPI DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND SUB PUSH2 0x1FB JUMPI PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 PUSH1 0x24 CALLDATALOAD DUP4 DUP2 AND SUB PUSH2 0x353 JUMPI PUSH1 0x44 CALLDATALOAD SWAP3 DUP5 SLOAD AND DUP1 ISZERO PUSH2 0x310 JUMPI CALLER SUB PUSH2 0x2A8 JUMPI POP DUP2 PUSH1 0x20 SWAP2 PUSH32 0xC600F4F27B95655FF15FBDA8C260832F9B9F6523C218FFCFAA2AFDA37AD56390 SWAP4 PUSH1 0x1 SSTORE MLOAD SWAP1 DUP2 MSTORE LOG1 DUP1 RETURN JUMPDEST PUSH1 0x20 PUSH1 0x84 SWAP3 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920456E74726F70792063616E2063616C6C20746869732066756E6374 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x696F6E0000000000000000000000000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x64 SWAP3 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x456E74726F70792061646472657373206E6F7420736574000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST DUP4 DUP1 REVERT JUMPDEST DUP5 SWAP1 CALLVALUE PUSH2 0x141 JUMPI DUP2 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x141 JUMPI PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x20 SWAP3 SLOAD AND DUP2 MSTORE RETURN JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x3A9 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 BLOCKHASH EQ DUP10 PUSH2 0xCBCE 0xE2 0xB8 CALLDATASIZE LT 0x2C SMOD GASPRICE PUSH18 0x10E4E3B136BD516B7C37267477A91D1B03B0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "229:778:6:-:0;;;;;;;;;;;;;-1:-1:-1;;229:778:6;;;;-1:-1:-1;;;;;229:778:6;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;229:778:6;;;;;;;;-1:-1:-1;229:778:6;;-1:-1:-1;;;;;;229:778:6;;;;;;;;;;;;;;;;;-1:-1:-1;229:778:6;;;;;;-1:-1:-1;229:778:6;;;;;-1:-1:-1;229:778:6" + }, + "deployedBytecode": { + "functionDebugData": { + "finalize_allocation": { + "entryPoint": 903, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + } + }, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "608060408181526004908136101561001657600080fd5b600092833560e01c90816347ce07cc146103575750806352a5f1f81461021e57806383220626146101ff5763e1da26c61461005057600080fd5b826003193601126101fb5773ffffffffffffffffffffffffffffffffffffffff835416908051917f8204b67a00000000000000000000000000000000000000000000000000000000835260209283818681855afa80156101f1578690610197575b6fffffffffffffffffffffffffffffffff91501693843410610155579083918351809681937f7b43155d0000000000000000000000000000000000000000000000000000000083525af190811561014c575061010b578280f35b81813d8311610145575b61011f8183610387565b81010312610141575167ffffffffffffffff81160361013e5738808280f35b80fd5b5080fd5b503d610115565b513d85823e3d90fd5b6064908484519162461bcd60e51b8352820152601060248201527f496e73756666696369656e7420666565000000000000000000000000000000006044820152fd5b508381813d83116101ea575b6101ad8183610387565b810103126101e657516fffffffffffffffffffffffffffffffff811681036101e6576fffffffffffffffffffffffffffffffff906100b1565b8580fd5b503d6101a3565b83513d88823e3d90fd5b8280fd5b8382346101415781600319360112610141576020906001549051908152f35b50346101fb5760603660031901126101fb57813567ffffffffffffffff8116036101fb5773ffffffffffffffffffffffffffffffffffffffff9160243583811603610353576044359284541680156103105733036102a85750816020917fc600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad563909360015551908152a180f35b6020608492519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b506020606492519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b84903461014157816003193601126101415773ffffffffffffffffffffffffffffffffffffffff60209254168152f35b90601f8019910116810190811067ffffffffffffffff8211176103a957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122040148961cbcee2b836102c073a7110e4e3b136bd516b7c37267477a91d1b03b064736f6c63430008180033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 DUP2 DUP2 MSTORE PUSH1 0x4 SWAP1 DUP2 CALLDATASIZE LT ISZERO PUSH2 0x16 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP3 DUP4 CALLDATALOAD PUSH1 0xE0 SHR SWAP1 DUP2 PUSH4 0x47CE07CC EQ PUSH2 0x357 JUMPI POP DUP1 PUSH4 0x52A5F1F8 EQ PUSH2 0x21E JUMPI DUP1 PUSH4 0x83220626 EQ PUSH2 0x1FF JUMPI PUSH4 0xE1DA26C6 EQ PUSH2 0x50 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x1FB JUMPI PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP4 SLOAD AND SWAP1 DUP1 MLOAD SWAP2 PUSH32 0x8204B67A00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE PUSH1 0x20 SWAP3 DUP4 DUP2 DUP7 DUP2 DUP6 GAS STATICCALL DUP1 ISZERO PUSH2 0x1F1 JUMPI DUP7 SWAP1 PUSH2 0x197 JUMPI JUMPDEST PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 POP AND SWAP4 DUP5 CALLVALUE LT PUSH2 0x155 JUMPI SWAP1 DUP4 SWAP2 DUP4 MLOAD DUP1 SWAP7 DUP2 SWAP4 PUSH32 0x7B43155D00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE GAS CALL SWAP1 DUP2 ISZERO PUSH2 0x14C JUMPI POP PUSH2 0x10B JUMPI DUP3 DUP1 RETURN JUMPDEST DUP2 DUP2 RETURNDATASIZE DUP4 GT PUSH2 0x145 JUMPI JUMPDEST PUSH2 0x11F DUP2 DUP4 PUSH2 0x387 JUMP JUMPDEST DUP2 ADD SUB SLT PUSH2 0x141 JUMPI MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND SUB PUSH2 0x13E JUMPI CODESIZE DUP1 DUP3 DUP1 RETURN JUMPDEST DUP1 REVERT JUMPDEST POP DUP1 REVERT JUMPDEST POP RETURNDATASIZE PUSH2 0x115 JUMP JUMPDEST MLOAD RETURNDATASIZE DUP6 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST PUSH1 0x64 SWAP1 DUP5 DUP5 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E73756666696369656E742066656500000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST POP DUP4 DUP2 DUP2 RETURNDATASIZE DUP4 GT PUSH2 0x1EA JUMPI JUMPDEST PUSH2 0x1AD DUP2 DUP4 PUSH2 0x387 JUMP JUMPDEST DUP2 ADD SUB SLT PUSH2 0x1E6 JUMPI MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x1E6 JUMPI PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 PUSH2 0xB1 JUMP JUMPDEST DUP6 DUP1 REVERT JUMPDEST POP RETURNDATASIZE PUSH2 0x1A3 JUMP JUMPDEST DUP4 MLOAD RETURNDATASIZE DUP9 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST DUP3 DUP1 REVERT JUMPDEST DUP4 DUP3 CALLVALUE PUSH2 0x141 JUMPI DUP2 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x141 JUMPI PUSH1 0x20 SWAP1 PUSH1 0x1 SLOAD SWAP1 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST POP CALLVALUE PUSH2 0x1FB JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x1FB JUMPI DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND SUB PUSH2 0x1FB JUMPI PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 PUSH1 0x24 CALLDATALOAD DUP4 DUP2 AND SUB PUSH2 0x353 JUMPI PUSH1 0x44 CALLDATALOAD SWAP3 DUP5 SLOAD AND DUP1 ISZERO PUSH2 0x310 JUMPI CALLER SUB PUSH2 0x2A8 JUMPI POP DUP2 PUSH1 0x20 SWAP2 PUSH32 0xC600F4F27B95655FF15FBDA8C260832F9B9F6523C218FFCFAA2AFDA37AD56390 SWAP4 PUSH1 0x1 SSTORE MLOAD SWAP1 DUP2 MSTORE LOG1 DUP1 RETURN JUMPDEST PUSH1 0x20 PUSH1 0x84 SWAP3 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920456E74726F70792063616E2063616C6C20746869732066756E6374 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x696F6E0000000000000000000000000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x64 SWAP3 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x456E74726F70792061646472657373206E6F7420736574000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST DUP4 DUP1 REVERT JUMPDEST DUP5 SWAP1 CALLVALUE PUSH2 0x141 JUMPI DUP2 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x141 JUMPI PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH1 0x20 SWAP3 SLOAD AND DUP2 MSTORE RETURN JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x3A9 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 BLOCKHASH EQ DUP10 PUSH2 0xCBCE 0xE2 0xB8 CALLDATASIZE LT 0x2C SMOD GASPRICE PUSH18 0x10E4E3B136BD516B7C37267477A91D1B03B0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "229:778:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;562:18;229:778;562:18;;;;;;;;;;;;;;;;;;;229:778;;;;;598:9;;;:16;229:778;;;;;;;669:33;;;;229:778;669:33;;;;;;;;;;;;229:778;;;669:33;;;;;;;;;;;;;:::i;:::-;;;229:778;;;;;;;;;;;669:33;;229:778;;;;;;;;;;669:33;;;;;;229:778;;;;;;;;;;;;;;;-1:-1:-1;;;229:778:6;;;;;;;;;;;;;;;;562:18;;;;;;;;;;;;;;;:::i;:::-;;;229:778;;;;;;;;;;;;;562:18;;;229:778;;;;562:18;;;;;;229:778;;;;;;;;;;;;;;;;;;;;;;;;;;;;;306:26;229:778;;;;;;;;;;;;;;-1:-1:-1;;229:778:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;487:21:4;;229:778:6;;554:10:4;:21;229:778:6;;;;;;852:33;229:778;;;;;;;852:33;229:778;;;;;;;;-1:-1:-1;;;229:778:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;229:778:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;" + }, + "methodIdentifiers": { + "_entropyCallback(uint64,address,bytes32)": "52a5f1f8", + "currentSeed()": "83220626", + "entropy()": "47ce07cc", + "requestRandomSeed()": "e1da26c6" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"entropyAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"seed\",\"type\":\"bytes32\"}],\"name\":\"RandomSeedGenerated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"_entropyCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentSeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"entropy\",\"outputs\":[{\"internalType\":\"contract IEntropyV2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestRandomSeed\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/RandomSeed.sol\":\"RandomSeed\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":{\"keccak256\":\"0xf3d3dee1e9cbdef70b6c1f4d79aa8b438413e4636c00e79e615da9dc4df9c379\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://0e473522447c8f92a43f4fa3e54d83a789e12cc44b2a86847bd238a7f8827952\",\"dweb:/ipfs/Qmdihx73a89EZYy2GpitTxK92SWDLyPWeWnJTZ4Acva958\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":{\"keccak256\":\"0x79d7755d04dcc4d689115a14197aab690ab179000e5fc95bc1a73aeaa40c4924\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://c56f5d6e3f4c055f53ba25639bd27ec63a8d02648d1ef0037e7e45d2f893b97c\",\"dweb:/ipfs/QmYZDzmGe4cb6UXRecnxmKqkASPvhVLBmd8y5ZMMZF21C7\"]},\"contracts/RandomSeed.sol\":{\"keccak256\":\"0xb4450aa4aadc7f21edf3eaeb4f11e9a7a952a7f6bc9874278b41303066481ef1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://670f88fa06469d7fc9dee1de02a75b1a0df016c7007b4f78e064accea1e204bd\",\"dweb:/ipfs/QmS1MGXAKyQbZ9V8sv9n2ZSjAKvrUSqLz8UoTjQGr4esWW\"]}},\"version\":1}" + } + } + } + } +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/65dc168e6bb3c2962cb14ad0ea369d2c.json b/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/65dc168e6bb3c2962cb14ad0ea369d2c.json new file mode 100644 index 0000000..2b1cb33 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/65dc168e6bb3c2962cb14ad0ea369d2c.json @@ -0,0 +1,11219 @@ +{ + "id": "65dc168e6bb3c2962cb14ad0ea369d2c", + "_format": "hh-sol-build-info-1", + "solcVersion": "0.8.24", + "solcLongVersion": "0.8.24+commit.e11b9ed9", + "input": { + "language": "Solidity", + "sources": { + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\nimport \"./EntropyStructs.sol\";\n\n// Deprecated -- these events are still emitted, but the lack of indexing\n// makes them hard to use.\ninterface EntropyEvents {\n event Registered(EntropyStructs.ProviderInfo provider);\n\n event Requested(EntropyStructs.Request request);\n event RequestedWithCallback(\n address indexed provider,\n address indexed requestor,\n uint64 indexed sequenceNumber,\n bytes32 userRandomNumber,\n EntropyStructs.Request request\n );\n\n event Revealed(\n EntropyStructs.Request request,\n bytes32 userRevelation,\n bytes32 providerRevelation,\n bytes32 blockHash,\n bytes32 randomNumber\n );\n event RevealedWithCallback(\n EntropyStructs.Request request,\n bytes32 userRandomNumber,\n bytes32 providerRevelation,\n bytes32 randomNumber\n );\n\n event CallbackFailed(\n address indexed provider,\n address indexed requestor,\n uint64 indexed sequenceNumber,\n bytes32 userRandomNumber,\n bytes32 providerRevelation,\n bytes32 randomNumber,\n bytes errorCode\n );\n\n event ProviderFeeUpdated(address provider, uint128 oldFee, uint128 newFee);\n\n event ProviderDefaultGasLimitUpdated(\n address indexed provider,\n uint32 oldDefaultGasLimit,\n uint32 newDefaultGasLimit\n );\n\n event ProviderUriUpdated(address provider, bytes oldUri, bytes newUri);\n\n event ProviderFeeManagerUpdated(\n address provider,\n address oldFeeManager,\n address newFeeManager\n );\n event ProviderMaxNumHashesAdvanced(\n address provider,\n uint32 oldMaxNumHashes,\n uint32 newMaxNumHashes\n );\n\n event Withdrawal(\n address provider,\n address recipient,\n uint128 withdrawnAmount\n );\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\nimport \"./EntropyStructs.sol\";\n\n/**\n * @title EntropyEventsV2\n * @notice Interface defining events for the Entropy V2 system, which handles random number generation\n * and provider management on Ethereum.\n * @dev This interface is used to emit events that track the lifecycle of random number requests,\n * provider registrations, and system configurations.\n */\ninterface EntropyEventsV2 {\n /**\n * @notice Emitted when a new provider registers with the Entropy system\n * @param provider The address of the registered provider\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Registered(address indexed provider, bytes extraArgs);\n\n /**\n * @notice Emitted when a user requests a random number from a provider\n * @param provider The address of the provider handling the request\n * @param caller The address of the user requesting the random number\n * @param sequenceNumber A unique identifier for this request\n * @param userContribution The user's contribution to the random number\n * @param gasLimit The gas limit for the callback.\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Requested(\n address indexed provider,\n address indexed caller,\n uint64 indexed sequenceNumber,\n bytes32 userContribution,\n uint32 gasLimit,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider reveals the generated random number\n * @param provider The address of the provider that generated the random number\n * @param caller The address of the user who requested the random number (and who receives a callback)\n * @param sequenceNumber The unique identifier of the request\n * @param randomNumber The generated random number\n * @param userContribution The user's contribution to the random number\n * @param providerContribution The provider's contribution to the random number\n * @param callbackFailed Whether the callback to the caller failed\n * @param callbackReturnValue Return value from the callback. If the callback failed, this field contains\n * the error code and any additional returned data. Note that \"\" often indicates an out-of-gas error.\n * If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\n * @param callbackGasUsed How much gas the callback used.\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Revealed(\n address indexed provider,\n address indexed caller,\n uint64 indexed sequenceNumber,\n bytes32 randomNumber,\n bytes32 userContribution,\n bytes32 providerContribution,\n bool callbackFailed,\n bytes callbackReturnValue,\n uint32 callbackGasUsed,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their fee\n * @param provider The address of the provider updating their fee\n * @param oldFee The previous fee amount\n * @param newFee The new fee amount\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderFeeUpdated(\n address indexed provider,\n uint128 oldFee,\n uint128 newFee,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their default gas limit\n * @param provider The address of the provider updating their gas limit\n * @param oldDefaultGasLimit The previous default gas limit\n * @param newDefaultGasLimit The new default gas limit\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderDefaultGasLimitUpdated(\n address indexed provider,\n uint32 oldDefaultGasLimit,\n uint32 newDefaultGasLimit,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their URI\n * @param provider The address of the provider updating their URI\n * @param oldUri The previous URI\n * @param newUri The new URI\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderUriUpdated(\n address indexed provider,\n bytes oldUri,\n bytes newUri,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their fee manager address\n * @param provider The address of the provider updating their fee manager\n * @param oldFeeManager The previous fee manager address\n * @param newFeeManager The new fee manager address\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderFeeManagerUpdated(\n address indexed provider,\n address oldFeeManager,\n address newFeeManager,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their maximum number of hashes that can be advanced\n * @param provider The address of the provider updating their max hashes\n * @param oldMaxNumHashes The previous maximum number of hashes\n * @param newMaxNumHashes The new maximum number of hashes\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderMaxNumHashesAdvanced(\n address indexed provider,\n uint32 oldMaxNumHashes,\n uint32 newMaxNumHashes,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider withdraws their accumulated fees\n * @param provider The address of the provider withdrawing fees\n * @param recipient The address receiving the withdrawn fees\n * @param withdrawnAmount The amount of fees withdrawn\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Withdrawal(\n address indexed provider,\n address indexed recipient,\n uint128 withdrawnAmount,\n bytes extraArgs\n );\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "content": "// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.0;\n\n// This contract holds old versions of the Entropy structs that are no longer used for contract storage.\n// However, they are still used in EntropyEvents to maintain the public interface of prior versions of\n// the Entropy contract.\n//\n// See EntropyStructsV2 for the struct definitions currently in use.\ncontract EntropyStructs {\n struct ProviderInfo {\n uint128 feeInWei;\n uint128 accruedFeesInWei;\n // The commitment that the provider posted to the blockchain, and the sequence number\n // where they committed to this. This value is not advanced after the provider commits,\n // and instead is stored to help providers track where they are in the hash chain.\n bytes32 originalCommitment;\n uint64 originalCommitmentSequenceNumber;\n // Metadata for the current commitment. Providers may optionally use this field to help\n // manage rotations (i.e., to pick the sequence number from the correct hash chain).\n bytes commitmentMetadata;\n // Optional URI where clients can retrieve revelations for the provider.\n // Client SDKs can use this field to automatically determine how to retrieve random values for each provider.\n // TODO: specify the API that must be implemented at this URI\n bytes uri;\n // The first sequence number that is *not* included in the current commitment (i.e., an exclusive end index).\n // The contract maintains the invariant that sequenceNumber <= endSequenceNumber.\n // If sequenceNumber == endSequenceNumber, the provider must rotate their commitment to add additional random values.\n uint64 endSequenceNumber;\n // The sequence number that will be assigned to the next inbound user request.\n uint64 sequenceNumber;\n // The current commitment represents an index/value in the provider's hash chain.\n // These values are used to verify requests for future sequence numbers. Note that\n // currentCommitmentSequenceNumber < sequenceNumber.\n //\n // The currentCommitment advances forward through the provider's hash chain as values\n // are revealed on-chain.\n bytes32 currentCommitment;\n uint64 currentCommitmentSequenceNumber;\n // An address that is authorized to set / withdraw fees on behalf of this provider.\n address feeManager;\n // Maximum number of hashes to record in a request. This should be set according to the maximum gas limit\n // the provider supports for callbacks.\n uint32 maxNumHashes;\n }\n\n struct Request {\n // Storage slot 1 //\n address provider;\n uint64 sequenceNumber;\n // The number of hashes required to verify the provider revelation.\n uint32 numHashes;\n // Storage slot 2 //\n // The commitment is keccak256(userCommitment, providerCommitment). Storing the hash instead of both saves 20k gas by\n // eliminating 1 store.\n bytes32 commitment;\n // Storage slot 3 //\n // The number of the block where this request was created.\n // Note that we're using a uint64 such that we have an additional space for an address and other fields in\n // this storage slot. Although block.number returns a uint256, 64 bits should be plenty to index all of the\n // blocks ever generated.\n uint64 blockNumber;\n // The address that requested this random number.\n address requester;\n // If true, incorporate the blockhash of blockNumber into the generated random value.\n bool useBlockhash;\n // True if this is a request that expects a callback.\n bool isRequestWithCallback;\n }\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "content": "// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.0;\n\ncontract EntropyStructsV2 {\n struct ProviderInfo {\n uint128 feeInWei;\n uint128 accruedFeesInWei;\n // The commitment that the provider posted to the blockchain, and the sequence number\n // where they committed to this. This value is not advanced after the provider commits,\n // and instead is stored to help providers track where they are in the hash chain.\n bytes32 originalCommitment;\n uint64 originalCommitmentSequenceNumber;\n // Metadata for the current commitment. Providers may optionally use this field to help\n // manage rotations (i.e., to pick the sequence number from the correct hash chain).\n bytes commitmentMetadata;\n // Optional URI where clients can retrieve revelations for the provider.\n // Client SDKs can use this field to automatically determine how to retrieve random values for each provider.\n // TODO: specify the API that must be implemented at this URI\n bytes uri;\n // The first sequence number that is *not* included in the current commitment (i.e., an exclusive end index).\n // The contract maintains the invariant that sequenceNumber <= endSequenceNumber.\n // If sequenceNumber == endSequenceNumber, the provider must rotate their commitment to add additional random values.\n uint64 endSequenceNumber;\n // The sequence number that will be assigned to the next inbound user request.\n uint64 sequenceNumber;\n // The current commitment represents an index/value in the provider's hash chain.\n // These values are used to verify requests for future sequence numbers. Note that\n // currentCommitmentSequenceNumber < sequenceNumber.\n //\n // The currentCommitment advances forward through the provider's hash chain as values\n // are revealed on-chain.\n bytes32 currentCommitment;\n uint64 currentCommitmentSequenceNumber;\n // An address that is authorized to set / withdraw fees on behalf of this provider.\n address feeManager;\n // Maximum number of hashes to record in a request. This should be set according to the maximum gas limit\n // the provider supports for callbacks.\n uint32 maxNumHashes;\n // Default gas limit to use for callbacks.\n uint32 defaultGasLimit;\n }\n\n struct Request {\n // Storage slot 1 //\n address provider;\n uint64 sequenceNumber;\n // The number of hashes required to verify the provider revelation.\n uint32 numHashes;\n // Storage slot 2 //\n // The commitment is keccak256(userCommitment, providerCommitment). Storing the hash instead of both saves 20k gas by\n // eliminating 1 store.\n bytes32 commitment;\n // Storage slot 3 //\n // The number of the block where this request was created.\n // Note that we're using a uint64 such that we have an additional space for an address and other fields in\n // this storage slot. Although block.number returns a uint256, 64 bits should be plenty to index all of the\n // blocks ever generated.\n uint64 blockNumber;\n // The address that requested this random number.\n address requester;\n // If true, incorporate the blockhash of blockNumber into the generated random value.\n bool useBlockhash;\n // Status flag for requests with callbacks. See EntropyConstants for the possible values of this flag.\n uint8 callbackStatus;\n // The gasLimit in units of 10k gas. (i.e., 2 = 20k gas). We're using units of 10k in order to fit this\n // field into the remaining 2 bytes of this storage slot. The dynamic range here is 10k - 655M, which should\n // cover all real-world use cases.\n uint16 gasLimit10k;\n }\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nabstract contract IEntropyConsumer {\n // This method is called by Entropy to provide the random number to the consumer.\n // It asserts that the msg.sender is the Entropy contract. It is not meant to be\n // override by the consumer.\n function _entropyCallback(\n uint64 sequence,\n address provider,\n bytes32 randomNumber\n ) external {\n address entropy = getEntropy();\n require(entropy != address(0), \"Entropy address not set\");\n require(msg.sender == entropy, \"Only Entropy can call this function\");\n\n entropyCallback(sequence, provider, randomNumber);\n }\n\n // getEntropy returns Entropy contract address. The method is being used to check that the\n // callback is indeed from Entropy contract. The consumer is expected to implement this method.\n // Entropy address can be found here - https://docs.pyth.network/entropy/contract-addresses\n function getEntropy() internal view virtual returns (address);\n\n // This method is expected to be implemented by the consumer to handle the random number.\n // It will be called by _entropyCallback after _entropyCallback ensures that the call is\n // indeed from Entropy contract.\n function entropyCallback(\n uint64 sequence,\n address provider,\n bytes32 randomNumber\n ) internal virtual;\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nimport \"./EntropyEvents.sol\";\nimport \"./EntropyEventsV2.sol\";\nimport \"./EntropyStructsV2.sol\";\n\ninterface IEntropyV2 is EntropyEventsV2 {\n /// @notice Request a random number using the default provider with default gas limit\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value.\n /// Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2()\n external\n payable\n returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number using the default provider with specified gas limit\n /// @param gasLimit The gas limit for the callback function.\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value.\n /// Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2(\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number from a specific provider with specified gas limit\n /// @param provider The address of the provider to request from\n /// @param gasLimit The gas limit for the callback function\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n /// Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2(\n address provider,\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number from a specific provider with a user-provided random number and gas limit\n /// @param provider The address of the provider to request from\n /// @param userRandomNumber A random number provided by the user for additional entropy\n /// @param gasLimit The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n /// Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n function requestV2(\n address provider,\n bytes32 userRandomNumber,\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Get information about a specific entropy provider\n /// @param provider The address of the provider to query\n /// @return info The provider information including configuration, fees, and operational status\n /// @dev This method returns detailed information about a provider's configuration and capabilities.\n /// The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits.\n function getProviderInfoV2(\n address provider\n ) external view returns (EntropyStructsV2.ProviderInfo memory info);\n\n /// @notice Get the address of the default entropy provider\n /// @return provider The address of the default provider\n /// @dev This method returns the address of the provider that will be used when no specific provider is specified\n /// in the requestV2 calls. The default provider can be used to get the base fee and gas limit information.\n function getDefaultProvider() external view returns (address provider);\n\n /// @notice Get information about a specific request\n /// @param provider The address of the provider that handled the request\n /// @param sequenceNumber The unique identifier of the request\n /// @return req The request information including status, random number, and other metadata\n /// @dev This method allows querying the state of a previously made request. The returned Request struct\n /// contains information about whether the request was fulfilled, the generated random number (if available),\n /// and other metadata about the request.\n function getRequestV2(\n address provider,\n uint64 sequenceNumber\n ) external view returns (EntropyStructsV2.Request memory req);\n\n /// @notice Get the fee charged by the default provider for the default gas limit\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the base fee required to make a request using the default provider with\n /// the default gas limit. This fee should be passed as msg.value when calling requestV2().\n /// The fee can change over time, so this method should be called before each request.\n function getFeeV2() external view returns (uint128 feeAmount);\n\n /// @notice Get the fee charged by the default provider for a specific gas limit\n /// @param gasLimit The gas limit for the callback function\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the fee required to make a request using the default provider with\n /// the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit).\n /// The fee can change over time, so this method should be called before each request.\n function getFeeV2(\n uint32 gasLimit\n ) external view returns (uint128 feeAmount);\n\n /// @notice Get the fee charged by a specific provider for a request with a given gas limit\n /// @param provider The address of the provider to query\n /// @param gasLimit The gas limit for the callback function\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the fee required to make a request using the specified provider with\n /// the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit)\n /// or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method\n /// should be called before each request.\n function getFeeV2(\n address provider,\n uint32 gasLimit\n ) external view returns (uint128 feeAmount);\n}\n" + }, + "contracts/CoinFlip.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nimport \"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\";\nimport \"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\";\n\ncontract CoinFlip is IEntropyConsumer {\n // Events\n event RandomRequest(uint64 sequenceNumber, address user);\n event RandomResult(address user, bytes32 randomNumber, bool isHeads);\n \n // Contract state\n IEntropyV2 private entropy;\n address private entropyProvider;\n \n // Storage for latest results - one entry per user\n struct UserResult {\n bytes32 randomNumber;\n bool isHeads;\n uint256 timestamp;\n bool exists;\n }\n \n mapping(uint64 => address) public requestToUser;\n mapping(address => UserResult) public userLatestResult;\n \n // Errors\n error InsufficientFee();\n\n constructor(address _entropy, address _entropyProvider) {\n entropy = IEntropyV2(_entropy);\n entropyProvider = _entropyProvider;\n }\n\n /**\n * @dev Request a random number for the calling user\n * @return sequenceNumber The unique identifier for this request\n */\n function requestRandom() external payable returns (uint64) {\n uint256 fee = entropy.getFeeV2();\n if (msg.value < fee) {\n revert InsufficientFee();\n }\n\n uint64 sequenceNumber = entropy.requestV2{value: fee}();\n \n // Store which user made this request\n requestToUser[sequenceNumber] = msg.sender;\n \n emit RandomRequest(sequenceNumber, msg.sender);\n return sequenceNumber;\n }\n\n /**\n * @dev Callback function called by Entropy contract with the random result\n * @param sequenceNumber Unique identifier for the request\n * @param randomNumber The 32-byte cryptographically secure random hash\n */\n function entropyCallback(\n uint64 sequenceNumber,\n address, // provider - unused but required by interface\n bytes32 randomNumber\n ) internal override {\n address user = requestToUser[sequenceNumber];\n require(user != address(0), \"Invalid request\");\n \n // Calculate heads/tails (randomNumber % 2)\n bool isHeads = uint256(randomNumber) % 2 == 0;\n \n // Overwrite the previous result with the new one\n userLatestResult[user] = UserResult({\n randomNumber: randomNumber,\n isHeads: isHeads,\n timestamp: block.timestamp,\n exists: true\n });\n \n // Clean up the request mapping\n delete requestToUser[sequenceNumber];\n \n emit RandomResult(user, randomNumber, isHeads);\n }\n\n // ========== VIEW FUNCTIONS ==========\n\n /**\n * @dev Get the latest result for a user\n * @param user The address to query\n * @return randomNumber The 32-byte random hash\n * @return isHeads The heads/tails result (true = heads, false = tails)\n * @return timestamp When the result was generated\n * @return exists Whether the user has any result\n */\n function getUserResult(address user) \n external \n view \n returns (bytes32 randomNumber, bool isHeads, uint256 timestamp, bool exists) \n {\n UserResult storage result = userLatestResult[user];\n return (result.randomNumber, result.isHeads, result.timestamp, result.exists);\n }\n\n /**\n * @dev Check if a user has a random result\n * @param user The address to query\n * @return exists Whether the user has a result\n */\n function hasUserResult(address user) external view returns (bool) {\n return userLatestResult[user].exists;\n }\n\n /**\n * @dev Get the required fee for a random number request\n * @return fee The required fee in wei\n */\n function getRequestFee() public view returns (uint256) {\n return entropy.getFeeV2();\n }\n\n /**\n * @dev Required by IEntropyConsumer interface\n * @return address of the entropy contract\n */\n function getEntropy() internal view override returns (address) {\n return address(entropy);\n }\n\n // Allow the contract to receive funds\n receive() external payable {}\n}" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 1000 + }, + "viaIR": true, + "evmVersion": "paris", + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ], + "": [ + "ast" + ] + } + } + } + }, + "output": { + "sources": { + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol", + "exportedSymbols": { + "EntropyEvents": [ + 114 + ], + "EntropyStructs": [ + 275 + ] + }, + "id": 115, + "license": "Apache-2.0", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 1, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "39:23:0" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "file": "./EntropyStructs.sol", + "id": 2, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 115, + "sourceUnit": 276, + "src": "64:30:0", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyEvents", + "contractDependencies": [], + "contractKind": "interface", + "fullyImplemented": true, + "id": 114, + "linearizedBaseContracts": [ + 114 + ], + "name": "EntropyEvents", + "nameLocation": "207:13:0", + "nodeType": "ContractDefinition", + "nodes": [ + { + "anonymous": false, + "eventSelector": "641f45ac488304746c653e2635855e73663a6e524de1194447d678a58f084012", + "id": 7, + "name": "Registered", + "nameLocation": "233:10:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 6, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 5, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "272:8:0", + "nodeType": "VariableDeclaration", + "scope": 7, + "src": "244:36:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$257_memory_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + }, + "typeName": { + "id": 4, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 3, + "name": "EntropyStructs.ProviderInfo", + "nameLocations": [ + "244:14:0", + "259:12:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 257, + "src": "244:27:0" + }, + "referencedDeclaration": 257, + "src": "244:27:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$257_storage_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + } + }, + "visibility": "internal" + } + ], + "src": "243:38:0" + }, + "src": "227:55:0" + }, + { + "anonymous": false, + "eventSelector": "20e2c2fc72b2cb9fbae9d7d8fd4bdf5bdcc4579043e1e9854e2baf045b6a31d3", + "id": 12, + "name": "Requested", + "nameLocation": "294:9:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 11, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 10, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "327:7:0", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "304:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 9, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 8, + "name": "EntropyStructs.Request", + "nameLocations": [ + "304:14:0", + "319:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "304:22:0" + }, + "referencedDeclaration": 274, + "src": "304:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + } + ], + "src": "303:32:0" + }, + "src": "288:48:0" + }, + { + "anonymous": false, + "eventSelector": "a4c85ab66677ced5caabbbba151714887944b9e0fee05f320e42a1b13a01fbc6", + "id": 25, + "name": "RequestedWithCallback", + "nameLocation": "347:21:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 24, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 14, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "394:8:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "378:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 13, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "378:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 16, + "indexed": true, + "mutability": "mutable", + "name": "requestor", + "nameLocation": "428:9:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "412:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 15, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "412:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 18, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "462:14:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "447:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 17, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "447:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 20, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "494:16:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "486:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 19, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "486:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 23, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "543:7:0", + "nodeType": "VariableDeclaration", + "scope": 25, + "src": "520:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 22, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 21, + "name": "EntropyStructs.Request", + "nameLocations": [ + "520:14:0", + "535:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "520:22:0" + }, + "referencedDeclaration": 274, + "src": "520:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + } + ], + "src": "368:188:0" + }, + "src": "341:216:0" + }, + { + "anonymous": false, + "eventSelector": "39c729f66b0c8aa543d92bc83fb7e0914c9701326b96365b593f28ba706976e4", + "id": 38, + "name": "Revealed", + "nameLocation": "569:8:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 37, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 28, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "610:7:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "587:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 27, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 26, + "name": "EntropyStructs.Request", + "nameLocations": [ + "587:14:0", + "602:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "587:22:0" + }, + "referencedDeclaration": 274, + "src": "587:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 30, + "indexed": false, + "mutability": "mutable", + "name": "userRevelation", + "nameLocation": "635:14:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "627:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 29, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "627:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 32, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "667:18:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "659:26:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 31, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "659:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 34, + "indexed": false, + "mutability": "mutable", + "name": "blockHash", + "nameLocation": "703:9:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "695:17:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 33, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "695:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 36, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "730:12:0", + "nodeType": "VariableDeclaration", + "scope": 38, + "src": "722:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 35, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "722:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "577:171:0" + }, + "src": "563:186:0" + }, + { + "anonymous": false, + "eventSelector": "40be225f151772416d8785647e5641a0b53507623d0ee3fb88802b7d6bdbf728", + "id": 49, + "name": "RevealedWithCallback", + "nameLocation": "760:20:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 48, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 41, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "813:7:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "790:30:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 40, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 39, + "name": "EntropyStructs.Request", + "nameLocations": [ + "790:14:0", + "805:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 274, + "src": "790:22:0" + }, + "referencedDeclaration": 274, + "src": "790:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$274_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 43, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "838:16:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "830:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 42, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "830:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 45, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "872:18:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "864:26:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 44, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "864:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 47, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "908:12:0", + "nodeType": "VariableDeclaration", + "scope": 49, + "src": "900:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 46, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "900:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "780:146:0" + }, + "src": "754:173:0" + }, + { + "anonymous": false, + "eventSelector": "c73c4cbf6f2bace8893b1283ee0e044c059ef9b80765820f4cc22b5ace139b5b", + "id": 65, + "name": "CallbackFailed", + "nameLocation": "939:14:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 64, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 51, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "979:8:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "963:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 50, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "963:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 53, + "indexed": true, + "mutability": "mutable", + "name": "requestor", + "nameLocation": "1013:9:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "997:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 52, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "997:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 55, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1047:14:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1032:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 54, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1032:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 57, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "1079:16:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1071:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 56, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1071:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 59, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "1113:18:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1105:26:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 58, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1105:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 61, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "1149:12:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1141:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 60, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1141:7:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 63, + "indexed": false, + "mutability": "mutable", + "name": "errorCode", + "nameLocation": "1177:9:0", + "nodeType": "VariableDeclaration", + "scope": 65, + "src": "1171:15:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 62, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1171:5:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "953:239:0" + }, + "src": "933:260:0" + }, + { + "anonymous": false, + "eventSelector": "40873158a9e1446599b5dee14bfd652e53a6f48605dab5aaac3b8a12a56c7fce", + "id": 73, + "name": "ProviderFeeUpdated", + "nameLocation": "1205:18:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 72, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 67, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1232:8:0", + "nodeType": "VariableDeclaration", + "scope": 73, + "src": "1224:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 66, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1224:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 69, + "indexed": false, + "mutability": "mutable", + "name": "oldFee", + "nameLocation": "1250:6:0", + "nodeType": "VariableDeclaration", + "scope": 73, + "src": "1242:14:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 68, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1242:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 71, + "indexed": false, + "mutability": "mutable", + "name": "newFee", + "nameLocation": "1266:6:0", + "nodeType": "VariableDeclaration", + "scope": 73, + "src": "1258:14:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 70, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1258:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1223:50:0" + }, + "src": "1199:75:0" + }, + { + "anonymous": false, + "eventSelector": "eb28196cc9984ca7d8c99b41fa943501351706fda54b50f983e60fdc08aa94a0", + "id": 81, + "name": "ProviderDefaultGasLimitUpdated", + "nameLocation": "1286:30:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 80, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 75, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1342:8:0", + "nodeType": "VariableDeclaration", + "scope": 81, + "src": "1326:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 74, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1326:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 77, + "indexed": false, + "mutability": "mutable", + "name": "oldDefaultGasLimit", + "nameLocation": "1367:18:0", + "nodeType": "VariableDeclaration", + "scope": 81, + "src": "1360:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 76, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1360:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 79, + "indexed": false, + "mutability": "mutable", + "name": "newDefaultGasLimit", + "nameLocation": "1402:18:0", + "nodeType": "VariableDeclaration", + "scope": 81, + "src": "1395:25:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 78, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1395:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "1316:110:0" + }, + "src": "1280:147:0" + }, + { + "anonymous": false, + "eventSelector": "1efad1d69168ff2e29c45661eed77d2de2b8c95f412cd22a65b15a38e24f7088", + "id": 89, + "name": "ProviderUriUpdated", + "nameLocation": "1439:18:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 88, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 83, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1466:8:0", + "nodeType": "VariableDeclaration", + "scope": 89, + "src": "1458:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 82, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1458:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 85, + "indexed": false, + "mutability": "mutable", + "name": "oldUri", + "nameLocation": "1482:6:0", + "nodeType": "VariableDeclaration", + "scope": 89, + "src": "1476:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 84, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1476:5:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 87, + "indexed": false, + "mutability": "mutable", + "name": "newUri", + "nameLocation": "1496:6:0", + "nodeType": "VariableDeclaration", + "scope": 89, + "src": "1490:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 86, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1490:5:0", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "1457:46:0" + }, + "src": "1433:71:0" + }, + { + "anonymous": false, + "eventSelector": "2c0fa560a1e6d11854f3f965d262e756c1b6d23d2bfe8f0e54b7807dd79b946b", + "id": 97, + "name": "ProviderFeeManagerUpdated", + "nameLocation": "1516:25:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 96, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 91, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1559:8:0", + "nodeType": "VariableDeclaration", + "scope": 97, + "src": "1551:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 90, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1551:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 93, + "indexed": false, + "mutability": "mutable", + "name": "oldFeeManager", + "nameLocation": "1585:13:0", + "nodeType": "VariableDeclaration", + "scope": 97, + "src": "1577:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 92, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1577:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 95, + "indexed": false, + "mutability": "mutable", + "name": "newFeeManager", + "nameLocation": "1616:13:0", + "nodeType": "VariableDeclaration", + "scope": 97, + "src": "1608:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 94, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1608:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1541:94:0" + }, + "src": "1510:126:0" + }, + { + "anonymous": false, + "eventSelector": "6a5a36f1400b17f2daef49faa26a5133cbcc952cffc0e7f426f3c84d6d207f60", + "id": 105, + "name": "ProviderMaxNumHashesAdvanced", + "nameLocation": "1647:28:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 104, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 99, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1693:8:0", + "nodeType": "VariableDeclaration", + "scope": 105, + "src": "1685:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 98, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1685:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 101, + "indexed": false, + "mutability": "mutable", + "name": "oldMaxNumHashes", + "nameLocation": "1718:15:0", + "nodeType": "VariableDeclaration", + "scope": 105, + "src": "1711:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 100, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1711:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 103, + "indexed": false, + "mutability": "mutable", + "name": "newMaxNumHashes", + "nameLocation": "1750:15:0", + "nodeType": "VariableDeclaration", + "scope": 105, + "src": "1743:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 102, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1743:6:0", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "1675:96:0" + }, + "src": "1641:131:0" + }, + { + "anonymous": false, + "eventSelector": "02128911bc7070fd6c100b116c2dd9a3bb6bf132d5259a65ca8d0c86ccd78f49", + "id": 113, + "name": "Withdrawal", + "nameLocation": "1784:10:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 112, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 107, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1812:8:0", + "nodeType": "VariableDeclaration", + "scope": 113, + "src": "1804:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 106, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1804:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 109, + "indexed": false, + "mutability": "mutable", + "name": "recipient", + "nameLocation": "1838:9:0", + "nodeType": "VariableDeclaration", + "scope": 113, + "src": "1830:17:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 108, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1830:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 111, + "indexed": false, + "mutability": "mutable", + "name": "withdrawnAmount", + "nameLocation": "1865:15:0", + "nodeType": "VariableDeclaration", + "scope": 113, + "src": "1857:23:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 110, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1857:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1794:92:0" + }, + "src": "1778:109:0" + } + ], + "scope": 115, + "src": "197:1692:0", + "usedErrors": [], + "usedEvents": [ + 7, + 12, + 25, + 38, + 49, + 65, + 73, + 81, + 89, + 97, + 105, + 113 + ] + } + ], + "src": "39:1851:0" + }, + "id": 0 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol", + "exportedSymbols": { + "EntropyEventsV2": [ + 230 + ], + "EntropyStructs": [ + 275 + ] + }, + "id": 231, + "license": "Apache-2.0", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 116, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "39:23:1" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "file": "./EntropyStructs.sol", + "id": 117, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 231, + "sourceUnit": 276, + "src": "64:30:1", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyEventsV2", + "contractDependencies": [], + "contractKind": "interface", + "documentation": { + "id": 118, + "nodeType": "StructuredDocumentation", + "src": "96:328:1", + "text": " @title EntropyEventsV2\n @notice Interface defining events for the Entropy V2 system, which handles random number generation\n and provider management on Ethereum.\n @dev This interface is used to emit events that track the lifecycle of random number requests,\n provider registrations, and system configurations." + }, + "fullyImplemented": true, + "id": 230, + "linearizedBaseContracts": [ + 230 + ], + "name": "EntropyEventsV2", + "nameLocation": "435:15:1", + "nodeType": "ContractDefinition", + "nodes": [ + { + "anonymous": false, + "documentation": { + "id": 119, + "nodeType": "StructuredDocumentation", + "src": "457:224:1", + "text": " @notice Emitted when a new provider registers with the Entropy system\n @param provider The address of the registered provider\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "b5ca2dfb0bd25603299b76fefa9fbe3abdc9f951bdfb7ffd208f93ab7f8e203c", + "id": 125, + "name": "Registered", + "nameLocation": "692:10:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 124, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 121, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "719:8:1", + "nodeType": "VariableDeclaration", + "scope": 125, + "src": "703:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 120, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "703:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 123, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "735:9:1", + "nodeType": "VariableDeclaration", + "scope": 125, + "src": "729:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 122, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "729:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "702:43:1" + }, + "src": "686:60:1" + }, + { + "anonymous": false, + "documentation": { + "id": 126, + "nodeType": "StructuredDocumentation", + "src": "752:504:1", + "text": " @notice Emitted when a user requests a random number from a provider\n @param provider The address of the provider handling the request\n @param caller The address of the user requesting the random number\n @param sequenceNumber A unique identifier for this request\n @param userContribution The user's contribution to the random number\n @param gasLimit The gas limit for the callback.\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "209bbfee3369097c31c36ce42994bdcac394866c881f603fb6296f240d6c37db", + "id": 140, + "name": "Requested", + "nameLocation": "1267:9:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 139, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 128, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1302:8:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1286:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 127, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1286:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 130, + "indexed": true, + "mutability": "mutable", + "name": "caller", + "nameLocation": "1336:6:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1320:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 129, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1320:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 132, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1367:14:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1352:29:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 131, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1352:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 134, + "indexed": false, + "mutability": "mutable", + "name": "userContribution", + "nameLocation": "1399:16:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1391:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 133, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1391:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 136, + "indexed": false, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "1432:8:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1425:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 135, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1425:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 138, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "1456:9:1", + "nodeType": "VariableDeclaration", + "scope": 140, + "src": "1450:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 137, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1450:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "1276:195:1" + }, + "src": "1261:211:1" + }, + { + "anonymous": false, + "documentation": { + "id": 141, + "nodeType": "StructuredDocumentation", + "src": "1478:1101:1", + "text": " @notice Emitted when a provider reveals the generated random number\n @param provider The address of the provider that generated the random number\n @param caller The address of the user who requested the random number (and who receives a callback)\n @param sequenceNumber The unique identifier of the request\n @param randomNumber The generated random number\n @param userContribution The user's contribution to the random number\n @param providerContribution The provider's contribution to the random number\n @param callbackFailed Whether the callback to the caller failed\n @param callbackReturnValue Return value from the callback. If the callback failed, this field contains\n the error code and any additional returned data. Note that \"\" often indicates an out-of-gas error.\n If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\n @param callbackGasUsed How much gas the callback used.\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "2231996cc9de260d163cd345089fea7819252b40215c738556aa144a0a11ed47", + "id": 163, + "name": "Revealed", + "nameLocation": "2590:8:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 162, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 143, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2624:8:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2608:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 142, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2608:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 145, + "indexed": true, + "mutability": "mutable", + "name": "caller", + "nameLocation": "2658:6:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2642:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 144, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2642:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 147, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2689:14:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2674:29:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 146, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2674:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 149, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "2721:12:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2713:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 148, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2713:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 151, + "indexed": false, + "mutability": "mutable", + "name": "userContribution", + "nameLocation": "2751:16:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2743:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 150, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2743:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 153, + "indexed": false, + "mutability": "mutable", + "name": "providerContribution", + "nameLocation": "2785:20:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2777:28:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 152, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2777:7:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 155, + "indexed": false, + "mutability": "mutable", + "name": "callbackFailed", + "nameLocation": "2820:14:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2815:19:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 154, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2815:4:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 157, + "indexed": false, + "mutability": "mutable", + "name": "callbackReturnValue", + "nameLocation": "2850:19:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2844:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 156, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "2844:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 159, + "indexed": false, + "mutability": "mutable", + "name": "callbackGasUsed", + "nameLocation": "2886:15:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2879:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 158, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2879:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 161, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "2917:9:1", + "nodeType": "VariableDeclaration", + "scope": 163, + "src": "2911:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 160, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "2911:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "2598:334:1" + }, + "src": "2584:349:1" + }, + { + "anonymous": false, + "documentation": { + "id": 164, + "nodeType": "StructuredDocumentation", + "src": "2939:297:1", + "text": " @notice Emitted when a provider updates their fee\n @param provider The address of the provider updating their fee\n @param oldFee The previous fee amount\n @param newFee The new fee amount\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "2b876e4a8eb641937e15aa02b7b90d376ce4661b51337661d76d330d23aed536", + "id": 174, + "name": "ProviderFeeUpdated", + "nameLocation": "3247:18:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 173, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 166, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3291:8:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3275:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 165, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3275:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 168, + "indexed": false, + "mutability": "mutable", + "name": "oldFee", + "nameLocation": "3317:6:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3309:14:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 167, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "3309:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 170, + "indexed": false, + "mutability": "mutable", + "name": "newFee", + "nameLocation": "3341:6:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3333:14:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 169, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "3333:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 172, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "3363:9:1", + "nodeType": "VariableDeclaration", + "scope": 174, + "src": "3357:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 171, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "3357:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "3265:113:1" + }, + "src": "3241:138:1" + }, + { + "anonymous": false, + "documentation": { + "id": 175, + "nodeType": "StructuredDocumentation", + "src": "3385:355:1", + "text": " @notice Emitted when a provider updates their default gas limit\n @param provider The address of the provider updating their gas limit\n @param oldDefaultGasLimit The previous default gas limit\n @param newDefaultGasLimit The new default gas limit\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "92ec5e11b09fd199655525004a1861acf5dd00f3a672ea8c750ec8bbf7ef6190", + "id": 185, + "name": "ProviderDefaultGasLimitUpdated", + "nameLocation": "3751:30:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 184, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 177, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3807:8:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3791:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 176, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3791:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 179, + "indexed": false, + "mutability": "mutable", + "name": "oldDefaultGasLimit", + "nameLocation": "3832:18:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3825:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 178, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3825:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 181, + "indexed": false, + "mutability": "mutable", + "name": "newDefaultGasLimit", + "nameLocation": "3867:18:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3860:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 180, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3860:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 183, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "3901:9:1", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "3895:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 182, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "3895:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "3781:135:1" + }, + "src": "3745:172:1" + }, + { + "anonymous": false, + "documentation": { + "id": 186, + "nodeType": "StructuredDocumentation", + "src": "3923:283:1", + "text": " @notice Emitted when a provider updates their URI\n @param provider The address of the provider updating their URI\n @param oldUri The previous URI\n @param newUri The new URI\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "61e70b9f3f2fcdff8071ea3b7dba108a38e7c1e59d0d9ddf60462a6c4cee85ea", + "id": 196, + "name": "ProviderUriUpdated", + "nameLocation": "4217:18:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 195, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 188, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "4261:8:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4245:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 187, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4245:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 190, + "indexed": false, + "mutability": "mutable", + "name": "oldUri", + "nameLocation": "4285:6:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4279:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 189, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4279:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 192, + "indexed": false, + "mutability": "mutable", + "name": "newUri", + "nameLocation": "4307:6:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4301:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 191, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4301:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 194, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "4329:9:1", + "nodeType": "VariableDeclaration", + "scope": 196, + "src": "4323:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 193, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4323:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "4235:109:1" + }, + "src": "4211:134:1" + }, + { + "anonymous": false, + "documentation": { + "id": 197, + "nodeType": "StructuredDocumentation", + "src": "4351:353:1", + "text": " @notice Emitted when a provider updates their fee manager address\n @param provider The address of the provider updating their fee manager\n @param oldFeeManager The previous fee manager address\n @param newFeeManager The new fee manager address\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "bdb4fa4c43ffef3ac259c0c209d3cecacc9579c559ec0273193f24d416c64377", + "id": 207, + "name": "ProviderFeeManagerUpdated", + "nameLocation": "4715:25:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 206, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 199, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "4766:8:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4750:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 198, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4750:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 201, + "indexed": false, + "mutability": "mutable", + "name": "oldFeeManager", + "nameLocation": "4792:13:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4784:21:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 200, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4784:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 203, + "indexed": false, + "mutability": "mutable", + "name": "newFeeManager", + "nameLocation": "4823:13:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4815:21:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 202, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4815:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 205, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "4852:9:1", + "nodeType": "VariableDeclaration", + "scope": 207, + "src": "4846:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 204, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4846:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "4740:127:1" + }, + "src": "4709:159:1" + }, + { + "anonymous": false, + "documentation": { + "id": 208, + "nodeType": "StructuredDocumentation", + "src": "4874:392:1", + "text": " @notice Emitted when a provider updates their maximum number of hashes that can be advanced\n @param provider The address of the provider updating their max hashes\n @param oldMaxNumHashes The previous maximum number of hashes\n @param newMaxNumHashes The new maximum number of hashes\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "506807cbd0dcbf141d2ec9b63b6891a27db1eb2d769dffe38cce227ff6a704f4", + "id": 218, + "name": "ProviderMaxNumHashesAdvanced", + "nameLocation": "5277:28:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 217, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 210, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5331:8:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5315:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 209, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5315:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 212, + "indexed": false, + "mutability": "mutable", + "name": "oldMaxNumHashes", + "nameLocation": "5356:15:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5349:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 211, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5349:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 214, + "indexed": false, + "mutability": "mutable", + "name": "newMaxNumHashes", + "nameLocation": "5388:15:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5381:22:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 213, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5381:6:1", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 216, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "5419:9:1", + "nodeType": "VariableDeclaration", + "scope": 218, + "src": "5413:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 215, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "5413:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "5305:129:1" + }, + "src": "5271:164:1" + }, + { + "anonymous": false, + "documentation": { + "id": 219, + "nodeType": "StructuredDocumentation", + "src": "5441:349:1", + "text": " @notice Emitted when a provider withdraws their accumulated fees\n @param provider The address of the provider withdrawing fees\n @param recipient The address receiving the withdrawn fees\n @param withdrawnAmount The amount of fees withdrawn\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "1df589989558acb66e48be55ae76b555f1075333b1ced9e827a685ae2821967f", + "id": 229, + "name": "Withdrawal", + "nameLocation": "5801:10:1", + "nodeType": "EventDefinition", + "parameters": { + "id": 228, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 221, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5837:8:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5821:24:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 220, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5821:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 223, + "indexed": true, + "mutability": "mutable", + "name": "recipient", + "nameLocation": "5871:9:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5855:25:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 222, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5855:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 225, + "indexed": false, + "mutability": "mutable", + "name": "withdrawnAmount", + "nameLocation": "5898:15:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5890:23:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 224, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "5890:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 227, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "5929:9:1", + "nodeType": "VariableDeclaration", + "scope": 229, + "src": "5923:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 226, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "5923:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "5811:133:1" + }, + "src": "5795:150:1" + } + ], + "scope": 231, + "src": "425:5522:1", + "usedErrors": [], + "usedEvents": [ + 125, + 140, + 163, + 174, + 185, + 196, + 207, + 218, + 229 + ] + } + ], + "src": "39:5909:1" + }, + "id": 1 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "exportedSymbols": { + "EntropyStructs": [ + 275 + ] + }, + "id": 276, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 232, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "38:23:2" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyStructs", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 275, + "linearizedBaseContracts": [ + 275 + ], + "name": "EntropyStructs", + "nameLocation": "377:14:2", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "EntropyStructs.ProviderInfo", + "id": 257, + "members": [ + { + "constant": false, + "id": 234, + "mutability": "mutable", + "name": "feeInWei", + "nameLocation": "436:8:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "428:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 233, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "428:7:2", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 236, + "mutability": "mutable", + "name": "accruedFeesInWei", + "nameLocation": "462:16:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "454:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 235, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "454:7:2", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 238, + "mutability": "mutable", + "name": "originalCommitment", + "nameLocation": "777:18:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "769:26:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 237, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "769:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 240, + "mutability": "mutable", + "name": "originalCommitmentSequenceNumber", + "nameLocation": "812:32:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "805:39:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 239, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "805:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 242, + "mutability": "mutable", + "name": "commitmentMetadata", + "nameLocation": "1049:18:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1043:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 241, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1043:5:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 244, + "mutability": "mutable", + "name": "uri", + "nameLocation": "1352:3:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1346:9:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 243, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1346:5:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 246, + "mutability": "mutable", + "name": "endSequenceNumber", + "nameLocation": "1706:17:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1699:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 245, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1699:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 248, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1827:14:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "1820:21:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 247, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1820:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 250, + "mutability": "mutable", + "name": "currentCommitment", + "nameLocation": "2240:17:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2232:25:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 249, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2232:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 252, + "mutability": "mutable", + "name": "currentCommitmentSequenceNumber", + "nameLocation": "2274:31:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2267:38:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 251, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2267:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 254, + "mutability": "mutable", + "name": "feeManager", + "nameLocation": "2415:10:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2407:18:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 253, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2407:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 256, + "mutability": "mutable", + "name": "maxNumHashes", + "nameLocation": "2604:12:2", + "nodeType": "VariableDeclaration", + "scope": 257, + "src": "2597:19:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 255, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2597:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "name": "ProviderInfo", + "nameLocation": "405:12:2", + "nodeType": "StructDefinition", + "scope": 275, + "src": "398:2225:2", + "visibility": "public" + }, + { + "canonicalName": "EntropyStructs.Request", + "id": 274, + "members": [ + { + "constant": false, + "id": 259, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2691:8:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "2683:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 258, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2683:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 261, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2716:14:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "2709:21:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 260, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2709:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 263, + "mutability": "mutable", + "name": "numHashes", + "nameLocation": "2823:9:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "2816:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 262, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2816:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 265, + "mutability": "mutable", + "name": "commitment", + "nameLocation": "3037:10:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3029:18:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 264, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3029:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 267, + "mutability": "mutable", + "name": "blockNumber", + "nameLocation": "3425:11:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3418:18:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 266, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3418:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 269, + "mutability": "mutable", + "name": "requester", + "nameLocation": "3512:9:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3504:17:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 268, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3504:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 271, + "mutability": "mutable", + "name": "useBlockhash", + "nameLocation": "3630:12:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3625:17:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 270, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3625:4:2", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 273, + "mutability": "mutable", + "name": "isRequestWithCallback", + "nameLocation": "3719:21:2", + "nodeType": "VariableDeclaration", + "scope": 274, + "src": "3714:26:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 272, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3714:4:2", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "name": "Request", + "nameLocation": "2636:7:2", + "nodeType": "StructDefinition", + "scope": 275, + "src": "2629:1118:2", + "visibility": "public" + } + ], + "scope": 276, + "src": "368:3381:2", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "38:3712:2" + }, + "id": 2 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol", + "exportedSymbols": { + "EntropyStructsV2": [ + 324 + ] + }, + "id": 325, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 277, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "38:23:3" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyStructsV2", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 324, + "linearizedBaseContracts": [ + 324 + ], + "name": "EntropyStructsV2", + "nameLocation": "72:16:3", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "EntropyStructsV2.ProviderInfo", + "id": 304, + "members": [ + { + "constant": false, + "id": 279, + "mutability": "mutable", + "name": "feeInWei", + "nameLocation": "133:8:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "125:16:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 278, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "125:7:3", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 281, + "mutability": "mutable", + "name": "accruedFeesInWei", + "nameLocation": "159:16:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "151:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 280, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "151:7:3", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 283, + "mutability": "mutable", + "name": "originalCommitment", + "nameLocation": "474:18:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "466:26:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 282, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "466:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 285, + "mutability": "mutable", + "name": "originalCommitmentSequenceNumber", + "nameLocation": "509:32:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "502:39:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 284, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "502:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 287, + "mutability": "mutable", + "name": "commitmentMetadata", + "nameLocation": "746:18:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "740:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 286, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "740:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 289, + "mutability": "mutable", + "name": "uri", + "nameLocation": "1049:3:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1043:9:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 288, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1043:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 291, + "mutability": "mutable", + "name": "endSequenceNumber", + "nameLocation": "1403:17:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1396:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 290, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1396:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 293, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1524:14:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1517:21:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 292, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1517:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 295, + "mutability": "mutable", + "name": "currentCommitment", + "nameLocation": "1937:17:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1929:25:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 294, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1929:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 297, + "mutability": "mutable", + "name": "currentCommitmentSequenceNumber", + "nameLocation": "1971:31:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "1964:38:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 296, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1964:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 299, + "mutability": "mutable", + "name": "feeManager", + "nameLocation": "2112:10:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "2104:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 298, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2104:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 301, + "mutability": "mutable", + "name": "maxNumHashes", + "nameLocation": "2301:12:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "2294:19:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 300, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2294:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 303, + "mutability": "mutable", + "name": "defaultGasLimit", + "nameLocation": "2381:15:3", + "nodeType": "VariableDeclaration", + "scope": 304, + "src": "2374:22:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 302, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2374:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "name": "ProviderInfo", + "nameLocation": "102:12:3", + "nodeType": "StructDefinition", + "scope": 324, + "src": "95:2308:3", + "visibility": "public" + }, + { + "canonicalName": "EntropyStructsV2.Request", + "id": 323, + "members": [ + { + "constant": false, + "id": 306, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2471:8:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2463:16:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 305, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2463:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 308, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2496:14:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2489:21:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 307, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2489:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 310, + "mutability": "mutable", + "name": "numHashes", + "nameLocation": "2603:9:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2596:16:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 309, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2596:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 312, + "mutability": "mutable", + "name": "commitment", + "nameLocation": "2817:10:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "2809:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 311, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2809:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 314, + "mutability": "mutable", + "name": "blockNumber", + "nameLocation": "3205:11:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3198:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 313, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3198:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 316, + "mutability": "mutable", + "name": "requester", + "nameLocation": "3292:9:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3284:17:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 315, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3284:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 318, + "mutability": "mutable", + "name": "useBlockhash", + "nameLocation": "3410:12:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3405:17:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 317, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3405:4:3", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 320, + "mutability": "mutable", + "name": "callbackStatus", + "nameLocation": "3549:14:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3543:20:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint8", + "typeString": "uint8" + }, + "typeName": { + "id": 319, + "name": "uint8", + "nodeType": "ElementaryTypeName", + "src": "3543:5:3", + "typeDescriptions": { + "typeIdentifier": "t_uint8", + "typeString": "uint8" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 322, + "mutability": "mutable", + "name": "gasLimit10k", + "nameLocation": "3852:11:3", + "nodeType": "VariableDeclaration", + "scope": 323, + "src": "3845:18:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint16", + "typeString": "uint16" + }, + "typeName": { + "id": 321, + "name": "uint16", + "nodeType": "ElementaryTypeName", + "src": "3845:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint16", + "typeString": "uint16" + } + }, + "visibility": "internal" + } + ], + "name": "Request", + "nameLocation": "2416:7:3", + "nodeType": "StructDefinition", + "scope": 324, + "src": "2409:1461:3", + "visibility": "public" + } + ], + "scope": 325, + "src": "63:3809:3", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "38:3835:3" + }, + "id": 3 + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "exportedSymbols": { + "IEntropyConsumer": [ + 380 + ] + }, + "id": 381, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 326, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:4" + }, + { + "abstract": true, + "baseContracts": [], + "canonicalName": "IEntropyConsumer", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": false, + "id": 380, + "linearizedBaseContracts": [ + 380 + ], + "name": "IEntropyConsumer", + "nameLocation": "80:16:4", + "nodeType": "ContractDefinition", + "nodes": [ + { + "body": { + "id": 364, + "nodeType": "Block", + "src": "429:253:4", + "statements": [ + { + "assignments": [ + 336 + ], + "declarations": [ + { + "constant": false, + "id": 336, + "mutability": "mutable", + "name": "entropy", + "nameLocation": "447:7:4", + "nodeType": "VariableDeclaration", + "scope": 364, + "src": "439:15:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 335, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "439:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 339, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 337, + "name": "getEntropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 370, + "src": "457:10:4", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 338, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "457:12:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "439:30:4" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 346, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 341, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 336, + "src": "487:7:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 344, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "506:1:4", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 343, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "498:7:4", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 342, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "498:7:4", + "typeDescriptions": {} + } + }, + "id": 345, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "498:10:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "487:21:4", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "456e74726f70792061646472657373206e6f7420736574", + "id": 347, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "510:25:4", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_e60db0a8cee923f04b5f9f7534e23d928fbe66e1acd9ebce5b5a3e302ef79bcf", + "typeString": "literal_string \"Entropy address not set\"" + }, + "value": "Entropy address not set" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_e60db0a8cee923f04b5f9f7534e23d928fbe66e1acd9ebce5b5a3e302ef79bcf", + "typeString": "literal_string \"Entropy address not set\"" + } + ], + "id": 340, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "479:7:4", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 348, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "479:57:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 349, + "nodeType": "ExpressionStatement", + "src": "479:57:4" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 354, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 351, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "554:3:4", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 352, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "558:6:4", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "554:10:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "id": 353, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 336, + "src": "568:7:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "554:21:4", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e6374696f6e", + "id": 355, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "577:37:4", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_8df3c3995bb08ddbb6a3f2cc5ea8c98a01a8d327b39305391122a5bdbafbef21", + "typeString": "literal_string \"Only Entropy can call this function\"" + }, + "value": "Only Entropy can call this function" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_8df3c3995bb08ddbb6a3f2cc5ea8c98a01a8d327b39305391122a5bdbafbef21", + "typeString": "literal_string \"Only Entropy can call this function\"" + } + ], + "id": 350, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "546:7:4", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 356, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "546:69:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 357, + "nodeType": "ExpressionStatement", + "src": "546:69:4" + }, + { + "expression": { + "arguments": [ + { + "id": 359, + "name": "sequence", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 328, + "src": "642:8:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + { + "id": 360, + "name": "provider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 330, + "src": "652:8:4", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 361, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 332, + "src": "662:12:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "id": 358, + "name": "entropyCallback", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 379, + "src": "626:15:4", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_uint64_$_t_address_$_t_bytes32_$returns$__$", + "typeString": "function (uint64,address,bytes32)" + } + }, + "id": 362, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "626:49:4", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 363, + "nodeType": "ExpressionStatement", + "src": "626:49:4" + } + ] + }, + "functionSelector": "52a5f1f8", + "id": 365, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_entropyCallback", + "nameLocation": "316:16:4", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 333, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 328, + "mutability": "mutable", + "name": "sequence", + "nameLocation": "349:8:4", + "nodeType": "VariableDeclaration", + "scope": 365, + "src": "342:15:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 327, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "342:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 330, + "mutability": "mutable", + "name": "provider", + "nameLocation": "375:8:4", + "nodeType": "VariableDeclaration", + "scope": 365, + "src": "367:16:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 329, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "367:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 332, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "401:12:4", + "nodeType": "VariableDeclaration", + "scope": 365, + "src": "393:20:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 331, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "393:7:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "332:87:4" + }, + "returnParameters": { + "id": 334, + "nodeType": "ParameterList", + "parameters": [], + "src": "429:0:4" + }, + "scope": 380, + "src": "307:375:4", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "id": 370, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getEntropy", + "nameLocation": "988:10:4", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 366, + "nodeType": "ParameterList", + "parameters": [], + "src": "998:2:4" + }, + "returnParameters": { + "id": 369, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 368, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 370, + "src": "1032:7:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 367, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1032:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1031:9:4" + }, + "scope": 380, + "src": "979:62:4", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "id": 379, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "entropyCallback", + "nameLocation": "1280:15:4", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 377, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 372, + "mutability": "mutable", + "name": "sequence", + "nameLocation": "1312:8:4", + "nodeType": "VariableDeclaration", + "scope": 379, + "src": "1305:15:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 371, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1305:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 374, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1338:8:4", + "nodeType": "VariableDeclaration", + "scope": 379, + "src": "1330:16:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 373, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1330:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 376, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "1364:12:4", + "nodeType": "VariableDeclaration", + "scope": 379, + "src": "1356:20:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 375, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1356:7:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "1295:87:4" + }, + "returnParameters": { + "id": 378, + "nodeType": "ParameterList", + "parameters": [], + "src": "1399:0:4" + }, + "scope": 380, + "src": "1271:129:4", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + } + ], + "scope": 381, + "src": "62:1340:4", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "37:1366:4" + }, + "id": 4 + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "exportedSymbols": { + "EntropyEvents": [ + 114 + ], + "EntropyEventsV2": [ + 230 + ], + "EntropyStructs": [ + 275 + ], + "EntropyStructsV2": [ + 324 + ], + "IEntropyV2": [ + 474 + ] + }, + "id": 475, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 382, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:5" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol", + "file": "./EntropyEvents.sol", + "id": 383, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 475, + "sourceUnit": 115, + "src": "62:29:5", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol", + "file": "./EntropyEventsV2.sol", + "id": 384, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 475, + "sourceUnit": 231, + "src": "92:31:5", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol", + "file": "./EntropyStructsV2.sol", + "id": 385, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 475, + "sourceUnit": 325, + "src": "124:32:5", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 386, + "name": "EntropyEventsV2", + "nameLocations": [ + "182:15:5" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 230, + "src": "182:15:5" + }, + "id": 387, + "nodeType": "InheritanceSpecifier", + "src": "182:15:5" + } + ], + "canonicalName": "IEntropyV2", + "contractDependencies": [], + "contractKind": "interface", + "fullyImplemented": false, + "id": 474, + "linearizedBaseContracts": [ + 474, + 230 + ], + "name": "IEntropyV2", + "nameLocation": "168:10:5", + "nodeType": "ContractDefinition", + "nodes": [ + { + "documentation": { + "id": 388, + "nodeType": "StructuredDocumentation", + "src": "204:1586:5", + "text": "@notice Request a random number using the default provider with default gas limit\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value.\n Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "7b43155d", + "id": 393, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "1804:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 389, + "nodeType": "ParameterList", + "parameters": [], + "src": "1813:2:5" + }, + "returnParameters": { + "id": 392, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 391, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "1873:22:5", + "nodeType": "VariableDeclaration", + "scope": 393, + "src": "1866:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 390, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1866:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "1865:31:5" + }, + "scope": 474, + "src": "1795:102:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 394, + "nodeType": "StructuredDocumentation", + "src": "1903:1669:5", + "text": "@notice Request a random number using the default provider with specified gas limit\n @param gasLimit The gas limit for the callback function.\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value.\n Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "0bed189f", + "id": 401, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "3586:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 397, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 396, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "3612:8:5", + "nodeType": "VariableDeclaration", + "scope": 401, + "src": "3605:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 395, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3605:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "3595:31:5" + }, + "returnParameters": { + "id": 400, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 399, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "3660:22:5", + "nodeType": "VariableDeclaration", + "scope": 401, + "src": "3653:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 398, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3653:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "3652:31:5" + }, + "scope": 474, + "src": "3577:107:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 402, + "nodeType": "StructuredDocumentation", + "src": "3690:1760:5", + "text": "@notice Request a random number from a specific provider with specified gas limit\n @param provider The address of the provider to request from\n @param gasLimit The gas limit for the callback function\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "0e33da29", + "id": 411, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "5464:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 407, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 404, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5491:8:5", + "nodeType": "VariableDeclaration", + "scope": 411, + "src": "5483:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 403, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5483:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 406, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "5516:8:5", + "nodeType": "VariableDeclaration", + "scope": 411, + "src": "5509:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 405, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5509:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "5473:57:5" + }, + "returnParameters": { + "id": 410, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 409, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "5564:22:5", + "nodeType": "VariableDeclaration", + "scope": 411, + "src": "5557:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 408, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "5557:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "5556:31:5" + }, + "scope": 474, + "src": "5455:133:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 412, + "nodeType": "StructuredDocumentation", + "src": "5594:1409:5", + "text": "@notice Request a random number from a specific provider with a user-provided random number and gas limit\n @param provider The address of the provider to request from\n @param userRandomNumber A random number provided by the user for additional entropy\n @param gasLimit The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller." + }, + "functionSelector": "f77b45e1", + "id": 423, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "7017:9:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 419, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 414, + "mutability": "mutable", + "name": "provider", + "nameLocation": "7044:8:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7036:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 413, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7036:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 416, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "7070:16:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7062:24:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 415, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7062:7:5", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 418, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "7103:8:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7096:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 417, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "7096:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "7026:91:5" + }, + "returnParameters": { + "id": 422, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 421, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "7151:22:5", + "nodeType": "VariableDeclaration", + "scope": 423, + "src": "7144:29:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 420, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "7144:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "7143:31:5" + }, + "scope": 474, + "src": "7008:167:5", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 424, + "nodeType": "StructuredDocumentation", + "src": "7181:442:5", + "text": "@notice Get information about a specific entropy provider\n @param provider The address of the provider to query\n @return info The provider information including configuration, fees, and operational status\n @dev This method returns detailed information about a provider's configuration and capabilities.\n The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits." + }, + "functionSelector": "2f9b787b", + "id": 432, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getProviderInfoV2", + "nameLocation": "7637:17:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 427, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 426, + "mutability": "mutable", + "name": "provider", + "nameLocation": "7672:8:5", + "nodeType": "VariableDeclaration", + "scope": 432, + "src": "7664:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 425, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7664:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "7654:32:5" + }, + "returnParameters": { + "id": 431, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 430, + "mutability": "mutable", + "name": "info", + "nameLocation": "7747:4:5", + "nodeType": "VariableDeclaration", + "scope": 432, + "src": "7710:41:5", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$304_memory_ptr", + "typeString": "struct EntropyStructsV2.ProviderInfo" + }, + "typeName": { + "id": 429, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 428, + "name": "EntropyStructsV2.ProviderInfo", + "nameLocations": [ + "7710:16:5", + "7727:12:5" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 304, + "src": "7710:29:5" + }, + "referencedDeclaration": 304, + "src": "7710:29:5", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$304_storage_ptr", + "typeString": "struct EntropyStructsV2.ProviderInfo" + } + }, + "visibility": "internal" + } + ], + "src": "7709:43:5" + }, + "scope": 474, + "src": "7628:125:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 433, + "nodeType": "StructuredDocumentation", + "src": "7759:350:5", + "text": "@notice Get the address of the default entropy provider\n @return provider The address of the default provider\n @dev This method returns the address of the provider that will be used when no specific provider is specified\n in the requestV2 calls. The default provider can be used to get the base fee and gas limit information." + }, + "functionSelector": "82ee990c", + "id": 438, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getDefaultProvider", + "nameLocation": "8123:18:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 434, + "nodeType": "ParameterList", + "parameters": [], + "src": "8141:2:5" + }, + "returnParameters": { + "id": 437, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 436, + "mutability": "mutable", + "name": "provider", + "nameLocation": "8175:8:5", + "nodeType": "VariableDeclaration", + "scope": 438, + "src": "8167:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 435, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8167:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "8166:18:5" + }, + "scope": 474, + "src": "8114:71:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 439, + "nodeType": "StructuredDocumentation", + "src": "8191:561:5", + "text": "@notice Get information about a specific request\n @param provider The address of the provider that handled the request\n @param sequenceNumber The unique identifier of the request\n @return req The request information including status, random number, and other metadata\n @dev This method allows querying the state of a previously made request. The returned Request struct\n contains information about whether the request was fulfilled, the generated random number (if available),\n and other metadata about the request." + }, + "functionSelector": "754a3600", + "id": 449, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getRequestV2", + "nameLocation": "8766:12:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 444, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 441, + "mutability": "mutable", + "name": "provider", + "nameLocation": "8796:8:5", + "nodeType": "VariableDeclaration", + "scope": 449, + "src": "8788:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 440, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8788:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 443, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "8821:14:5", + "nodeType": "VariableDeclaration", + "scope": 449, + "src": "8814:21:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 442, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "8814:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "8778:63:5" + }, + "returnParameters": { + "id": 448, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 447, + "mutability": "mutable", + "name": "req", + "nameLocation": "8897:3:5", + "nodeType": "VariableDeclaration", + "scope": 449, + "src": "8865:35:5", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$323_memory_ptr", + "typeString": "struct EntropyStructsV2.Request" + }, + "typeName": { + "id": 446, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 445, + "name": "EntropyStructsV2.Request", + "nameLocations": [ + "8865:16:5", + "8882:7:5" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 323, + "src": "8865:24:5" + }, + "referencedDeclaration": 323, + "src": "8865:24:5", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$323_storage_ptr", + "typeString": "struct EntropyStructsV2.Request" + } + }, + "visibility": "internal" + } + ], + "src": "8864:37:5" + }, + "scope": 474, + "src": "8757:145:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 450, + "nodeType": "StructuredDocumentation", + "src": "8908:421:5", + "text": "@notice Get the fee charged by the default provider for the default gas limit\n @return feeAmount The fee amount in wei\n @dev This method returns the base fee required to make a request using the default provider with\n the default gas limit. This fee should be passed as msg.value when calling requestV2().\n The fee can change over time, so this method should be called before each request." + }, + "functionSelector": "8204b67a", + "id": 455, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "9343:8:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 451, + "nodeType": "ParameterList", + "parameters": [], + "src": "9351:2:5" + }, + "returnParameters": { + "id": 454, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 453, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "9385:9:5", + "nodeType": "VariableDeclaration", + "scope": 455, + "src": "9377:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 452, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "9377:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "9376:19:5" + }, + "scope": 474, + "src": "9334:62:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 456, + "nodeType": "StructuredDocumentation", + "src": "9402:489:5", + "text": "@notice Get the fee charged by the default provider for a specific gas limit\n @param gasLimit The gas limit for the callback function\n @return feeAmount The fee amount in wei\n @dev This method returns the fee required to make a request using the default provider with\n the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit).\n The fee can change over time, so this method should be called before each request." + }, + "functionSelector": "ca1642e1", + "id": 463, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "9905:8:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 459, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 458, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "9930:8:5", + "nodeType": "VariableDeclaration", + "scope": 463, + "src": "9923:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 457, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "9923:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "9913:31:5" + }, + "returnParameters": { + "id": 462, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 461, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "9976:9:5", + "nodeType": "VariableDeclaration", + "scope": 463, + "src": "9968:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 460, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "9968:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "9967:19:5" + }, + "scope": 474, + "src": "9896:91:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 464, + "nodeType": "StructuredDocumentation", + "src": "9993:628:5", + "text": "@notice Get the fee charged by a specific provider for a request with a given gas limit\n @param provider The address of the provider to query\n @param gasLimit The gas limit for the callback function\n @return feeAmount The fee amount in wei\n @dev This method returns the fee required to make a request using the specified provider with\n the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit)\n or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method\n should be called before each request." + }, + "functionSelector": "7ab2ac36", + "id": 473, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "10635:8:5", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 469, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 466, + "mutability": "mutable", + "name": "provider", + "nameLocation": "10661:8:5", + "nodeType": "VariableDeclaration", + "scope": 473, + "src": "10653:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 465, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "10653:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 468, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "10686:8:5", + "nodeType": "VariableDeclaration", + "scope": 473, + "src": "10679:15:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 467, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "10679:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "10643:57:5" + }, + "returnParameters": { + "id": 472, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 471, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "10732:9:5", + "nodeType": "VariableDeclaration", + "scope": 473, + "src": "10724:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 470, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "10724:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "10723:19:5" + }, + "scope": 474, + "src": "10626:117:5", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + } + ], + "scope": 475, + "src": "158:10587:5", + "usedErrors": [], + "usedEvents": [ + 125, + 140, + 163, + 174, + 185, + 196, + 207, + 218, + 229 + ] + } + ], + "src": "37:10709:5" + }, + "id": 5 + }, + "contracts/CoinFlip.sol": { + "ast": { + "absolutePath": "contracts/CoinFlip.sol", + "exportedSymbols": { + "CoinFlip": [ + 719 + ], + "EntropyEvents": [ + 114 + ], + "EntropyEventsV2": [ + 230 + ], + "EntropyStructs": [ + 275 + ], + "EntropyStructsV2": [ + 324 + ], + "IEntropyConsumer": [ + 380 + ], + "IEntropyV2": [ + 474 + ] + }, + "id": 720, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 476, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:6" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "file": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "id": 477, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 720, + "sourceUnit": 475, + "src": "62:58:6", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "file": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "id": 478, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 720, + "sourceUnit": 381, + "src": "121:64:6", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 479, + "name": "IEntropyConsumer", + "nameLocations": [ + "208:16:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 380, + "src": "208:16:6" + }, + "id": 480, + "nodeType": "InheritanceSpecifier", + "src": "208:16:6" + } + ], + "canonicalName": "CoinFlip", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 719, + "linearizedBaseContracts": [ + 719, + 380 + ], + "name": "CoinFlip", + "nameLocation": "196:8:6", + "nodeType": "ContractDefinition", + "nodes": [ + { + "anonymous": false, + "eventSelector": "50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d1", + "id": 486, + "name": "RandomRequest", + "nameLocation": "251:13:6", + "nodeType": "EventDefinition", + "parameters": { + "id": 485, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 482, + "indexed": false, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "272:14:6", + "nodeType": "VariableDeclaration", + "scope": 486, + "src": "265:21:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 481, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "265:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 484, + "indexed": false, + "mutability": "mutable", + "name": "user", + "nameLocation": "296:4:6", + "nodeType": "VariableDeclaration", + "scope": 486, + "src": "288:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 483, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "288:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "264:37:6" + }, + "src": "245:57:6" + }, + { + "anonymous": false, + "eventSelector": "6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda93", + "id": 494, + "name": "RandomResult", + "nameLocation": "313:12:6", + "nodeType": "EventDefinition", + "parameters": { + "id": 493, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 488, + "indexed": false, + "mutability": "mutable", + "name": "user", + "nameLocation": "334:4:6", + "nodeType": "VariableDeclaration", + "scope": 494, + "src": "326:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 487, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "326:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 490, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "348:12:6", + "nodeType": "VariableDeclaration", + "scope": 494, + "src": "340:20:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 489, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "340:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 492, + "indexed": false, + "mutability": "mutable", + "name": "isHeads", + "nameLocation": "367:7:6", + "nodeType": "VariableDeclaration", + "scope": 494, + "src": "362:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 491, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "362:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "325:50:6" + }, + "src": "307:69:6" + }, + { + "constant": false, + "id": 497, + "mutability": "mutable", + "name": "entropy", + "nameLocation": "427:7:6", + "nodeType": "VariableDeclaration", + "scope": 719, + "src": "408:26:6", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + }, + "typeName": { + "id": 496, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 495, + "name": "IEntropyV2", + "nameLocations": [ + "408:10:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 474, + "src": "408:10:6" + }, + "referencedDeclaration": 474, + "src": "408:10:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 499, + "mutability": "mutable", + "name": "entropyProvider", + "nameLocation": "456:15:6", + "nodeType": "VariableDeclaration", + "scope": 719, + "src": "440:31:6", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 498, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "440:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "private" + }, + { + "canonicalName": "CoinFlip.UserResult", + "id": 508, + "members": [ + { + "constant": false, + "id": 501, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "573:12:6", + "nodeType": "VariableDeclaration", + "scope": 508, + "src": "565:20:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 500, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "565:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 503, + "mutability": "mutable", + "name": "isHeads", + "nameLocation": "600:7:6", + "nodeType": "VariableDeclaration", + "scope": 508, + "src": "595:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 502, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "595:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 505, + "mutability": "mutable", + "name": "timestamp", + "nameLocation": "625:9:6", + "nodeType": "VariableDeclaration", + "scope": 508, + "src": "617:17:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 504, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "617:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 507, + "mutability": "mutable", + "name": "exists", + "nameLocation": "649:6:6", + "nodeType": "VariableDeclaration", + "scope": 508, + "src": "644:11:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 506, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "644:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "name": "UserResult", + "nameLocation": "544:10:6", + "nodeType": "StructDefinition", + "scope": 719, + "src": "537:125:6", + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "9f392c2b", + "id": 512, + "mutability": "mutable", + "name": "requestToUser", + "nameLocation": "706:13:6", + "nodeType": "VariableDeclaration", + "scope": 719, + "src": "672:47:6", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_address_$", + "typeString": "mapping(uint64 => address)" + }, + "typeName": { + "id": 511, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 509, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "680:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "nodeType": "Mapping", + "src": "672:26:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_address_$", + "typeString": "mapping(uint64 => address)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 510, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "690:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "a3333e59", + "id": 517, + "mutability": "mutable", + "name": "userLatestResult", + "nameLocation": "763:16:6", + "nodeType": "VariableDeclaration", + "scope": 719, + "src": "725:54:6", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_struct$_UserResult_$508_storage_$", + "typeString": "mapping(address => struct CoinFlip.UserResult)" + }, + "typeName": { + "id": 516, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 513, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "733:7:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "725:30:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_struct$_UserResult_$508_storage_$", + "typeString": "mapping(address => struct CoinFlip.UserResult)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 515, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 514, + "name": "UserResult", + "nameLocations": [ + "744:10:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 508, + "src": "744:10:6" + }, + "referencedDeclaration": 508, + "src": "744:10:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage_ptr", + "typeString": "struct CoinFlip.UserResult" + } + } + }, + "visibility": "public" + }, + { + "errorSelector": "025dbdd4", + "id": 519, + "name": "InsufficientFee", + "nameLocation": "810:15:6", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 518, + "nodeType": "ParameterList", + "parameters": [], + "src": "825:2:6" + }, + "src": "804:24:6" + }, + { + "body": { + "id": 536, + "nodeType": "Block", + "src": "890:91:6", + "statements": [ + { + "expression": { + "id": 530, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 526, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 497, + "src": "900:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 528, + "name": "_entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 521, + "src": "921:8:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 527, + "name": "IEntropyV2", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 474, + "src": "910:10:6", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IEntropyV2_$474_$", + "typeString": "type(contract IEntropyV2)" + } + }, + "id": 529, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "910:20:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "src": "900:30:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "id": 531, + "nodeType": "ExpressionStatement", + "src": "900:30:6" + }, + { + "expression": { + "id": 534, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 532, + "name": "entropyProvider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 499, + "src": "940:15:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 533, + "name": "_entropyProvider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "958:16:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "940:34:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 535, + "nodeType": "ExpressionStatement", + "src": "940:34:6" + } + ] + }, + "id": 537, + "implemented": true, + "kind": "constructor", + "modifiers": [], + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 524, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 521, + "mutability": "mutable", + "name": "_entropy", + "nameLocation": "854:8:6", + "nodeType": "VariableDeclaration", + "scope": 537, + "src": "846:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 520, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "846:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 523, + "mutability": "mutable", + "name": "_entropyProvider", + "nameLocation": "872:16:6", + "nodeType": "VariableDeclaration", + "scope": 537, + "src": "864:24:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 522, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "864:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "845:44:6" + }, + "returnParameters": { + "id": 525, + "nodeType": "ParameterList", + "parameters": [], + "src": "890:0:6" + }, + "scope": 719, + "src": "834:147:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "public" + }, + { + "body": { + "id": 581, + "nodeType": "Block", + "src": "1188:397:6", + "statements": [ + { + "assignments": [ + 544 + ], + "declarations": [ + { + "constant": false, + "id": 544, + "mutability": "mutable", + "name": "fee", + "nameLocation": "1206:3:6", + "nodeType": "VariableDeclaration", + "scope": 581, + "src": "1198:11:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 543, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1198:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 548, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "expression": { + "id": 545, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 497, + "src": "1212:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "id": 546, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "1220:8:6", + "memberName": "getFeeV2", + "nodeType": "MemberAccess", + "referencedDeclaration": 455, + "src": "1212:16:6", + "typeDescriptions": { + "typeIdentifier": "t_function_external_view$__$returns$_t_uint128_$", + "typeString": "function () view external returns (uint128)" + } + }, + "id": 547, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1212:18:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1198:32:6" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 552, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 549, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "1244:3:6", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 550, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "1248:5:6", + "memberName": "value", + "nodeType": "MemberAccess", + "src": "1244:9:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "id": 551, + "name": "fee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 544, + "src": "1256:3:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1244:15:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 557, + "nodeType": "IfStatement", + "src": "1240:70:6", + "trueBody": { + "id": 556, + "nodeType": "Block", + "src": "1261:49:6", + "statements": [ + { + "errorCall": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 553, + "name": "InsufficientFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 519, + "src": "1282:15:6", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 554, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1282:17:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 555, + "nodeType": "RevertStatement", + "src": "1275:24:6" + } + ] + } + }, + { + "assignments": [ + 559 + ], + "declarations": [ + { + "constant": false, + "id": 559, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1327:14:6", + "nodeType": "VariableDeclaration", + "scope": 581, + "src": "1320:21:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 558, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1320:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "id": 565, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "expression": { + "argumentTypes": [], + "expression": { + "id": 560, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 497, + "src": "1344:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "id": 561, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "1352:9:6", + "memberName": "requestV2", + "nodeType": "MemberAccess", + "referencedDeclaration": 393, + "src": "1344:17:6", + "typeDescriptions": { + "typeIdentifier": "t_function_external_payable$__$returns$_t_uint64_$", + "typeString": "function () payable external returns (uint64)" + } + }, + "id": 563, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "names": [ + "value" + ], + "nodeType": "FunctionCallOptions", + "options": [ + { + "id": 562, + "name": "fee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 544, + "src": "1369:3:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "src": "1344:29:6", + "typeDescriptions": { + "typeIdentifier": "t_function_external_payable$__$returns$_t_uint64_$value", + "typeString": "function () payable external returns (uint64)" + } + }, + "id": 564, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1344:31:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1320:55:6" + }, + { + "expression": { + "id": 571, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 566, + "name": "requestToUser", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 512, + "src": "1440:13:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_address_$", + "typeString": "mapping(uint64 => address)" + } + }, + "id": 568, + "indexExpression": { + "id": 567, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 559, + "src": "1454:14:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "1440:29:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "expression": { + "id": 569, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "1472:3:6", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 570, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "1476:6:6", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "1472:10:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "1440:42:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 572, + "nodeType": "ExpressionStatement", + "src": "1440:42:6" + }, + { + "eventCall": { + "arguments": [ + { + "id": 574, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 559, + "src": "1520:14:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + { + "expression": { + "id": 575, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "1536:3:6", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 576, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "1540:6:6", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "1536:10:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 573, + "name": "RandomRequest", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 486, + "src": "1506:13:6", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint64_$_t_address_$returns$__$", + "typeString": "function (uint64,address)" + } + }, + "id": 577, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1506:41:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 578, + "nodeType": "EmitStatement", + "src": "1501:46:6" + }, + { + "expression": { + "id": 579, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 559, + "src": "1564:14:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "functionReturnParameters": 542, + "id": 580, + "nodeType": "Return", + "src": "1557:21:6" + } + ] + }, + "documentation": { + "id": 538, + "nodeType": "StructuredDocumentation", + "src": "987:137:6", + "text": " @dev Request a random number for the calling user\n @return sequenceNumber The unique identifier for this request" + }, + "functionSelector": "da9f7550", + "id": 582, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "requestRandom", + "nameLocation": "1138:13:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 539, + "nodeType": "ParameterList", + "parameters": [], + "src": "1151:2:6" + }, + "returnParameters": { + "id": 542, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 541, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 582, + "src": "1180:6:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 540, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1180:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "1179:8:6" + }, + "scope": 719, + "src": "1129:456:6", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "baseFunctions": [ + 379 + ], + "body": { + "id": 643, + "nodeType": "Block", + "src": "2000:653:6", + "statements": [ + { + "assignments": [ + 594 + ], + "declarations": [ + { + "constant": false, + "id": 594, + "mutability": "mutable", + "name": "user", + "nameLocation": "2018:4:6", + "nodeType": "VariableDeclaration", + "scope": 643, + "src": "2010:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 593, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2010:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 598, + "initialValue": { + "baseExpression": { + "id": 595, + "name": "requestToUser", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 512, + "src": "2025:13:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_address_$", + "typeString": "mapping(uint64 => address)" + } + }, + "id": 597, + "indexExpression": { + "id": 596, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 585, + "src": "2039:14:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2025:29:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "2010:44:6" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 605, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 600, + "name": "user", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 594, + "src": "2072:4:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 603, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2088:1:6", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 602, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2080:7:6", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 601, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2080:7:6", + "typeDescriptions": {} + } + }, + "id": 604, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2080:10:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "2072:18:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "496e76616c69642072657175657374", + "id": 606, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2092:17:6", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_05a611143b9e403744ceb3787bff8c32f02de50d096aea039a4bc2ff820c4ae2", + "typeString": "literal_string \"Invalid request\"" + }, + "value": "Invalid request" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_05a611143b9e403744ceb3787bff8c32f02de50d096aea039a4bc2ff820c4ae2", + "typeString": "literal_string \"Invalid request\"" + } + ], + "id": 599, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "2064:7:6", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 607, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2064:46:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 608, + "nodeType": "ExpressionStatement", + "src": "2064:46:6" + }, + { + "assignments": [ + 610 + ], + "declarations": [ + { + "constant": false, + "id": 610, + "mutability": "mutable", + "name": "isHeads", + "nameLocation": "2186:7:6", + "nodeType": "VariableDeclaration", + "scope": 643, + "src": "2181:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 609, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2181:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "id": 619, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 618, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 616, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "id": 613, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 589, + "src": "2204:12:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "id": 612, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2196:7:6", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 611, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2196:7:6", + "typeDescriptions": {} + } + }, + "id": 614, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2196:21:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "%", + "rightExpression": { + "hexValue": "32", + "id": 615, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2220:1:6", + "typeDescriptions": { + "typeIdentifier": "t_rational_2_by_1", + "typeString": "int_const 2" + }, + "value": "2" + }, + "src": "2196:25:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 617, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2225:1:6", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "2196:30:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "2181:45:6" + }, + { + "expression": { + "id": 630, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 620, + "name": "userLatestResult", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 517, + "src": "2303:16:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_struct$_UserResult_$508_storage_$", + "typeString": "mapping(address => struct CoinFlip.UserResult storage ref)" + } + }, + "id": 622, + "indexExpression": { + "id": 621, + "name": "user", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 594, + "src": "2320:4:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "2303:22:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage", + "typeString": "struct CoinFlip.UserResult storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 624, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 589, + "src": "2367:12:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + { + "id": 625, + "name": "isHeads", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 610, + "src": "2402:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "expression": { + "id": 626, + "name": "block", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -4, + "src": "2434:5:6", + "typeDescriptions": { + "typeIdentifier": "t_magic_block", + "typeString": "block" + } + }, + "id": 627, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2440:9:6", + "memberName": "timestamp", + "nodeType": "MemberAccess", + "src": "2434:15:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "74727565", + "id": 628, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2471:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 623, + "name": "UserResult", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 508, + "src": "2328:10:6", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_struct$_UserResult_$508_storage_ptr_$", + "typeString": "type(struct CoinFlip.UserResult storage pointer)" + } + }, + "id": 629, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "structConstructorCall", + "lValueRequested": false, + "nameLocations": [ + "2353:12:6", + "2393:7:6", + "2423:9:6", + "2463:6:6" + ], + "names": [ + "randomNumber", + "isHeads", + "timestamp", + "exists" + ], + "nodeType": "FunctionCall", + "src": "2328:158:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_memory_ptr", + "typeString": "struct CoinFlip.UserResult memory" + } + }, + "src": "2303:183:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage", + "typeString": "struct CoinFlip.UserResult storage ref" + } + }, + "id": 631, + "nodeType": "ExpressionStatement", + "src": "2303:183:6" + }, + { + "expression": { + "id": 635, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "2545:36:6", + "subExpression": { + "baseExpression": { + "id": 632, + "name": "requestToUser", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 512, + "src": "2552:13:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_address_$", + "typeString": "mapping(uint64 => address)" + } + }, + "id": 634, + "indexExpression": { + "id": 633, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 585, + "src": "2566:14:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "2552:29:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 636, + "nodeType": "ExpressionStatement", + "src": "2545:36:6" + }, + { + "eventCall": { + "arguments": [ + { + "id": 638, + "name": "user", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 594, + "src": "2618:4:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 639, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 589, + "src": "2624:12:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + { + "id": 640, + "name": "isHeads", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 610, + "src": "2638:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 637, + "name": "RandomResult", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 494, + "src": "2605:12:6", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bytes32_$_t_bool_$returns$__$", + "typeString": "function (address,bytes32,bool)" + } + }, + "id": 641, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2605:41:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 642, + "nodeType": "EmitStatement", + "src": "2600:46:6" + } + ] + }, + "documentation": { + "id": 583, + "nodeType": "StructuredDocumentation", + "src": "1591:230:6", + "text": " @dev Callback function called by Entropy contract with the random result\n @param sequenceNumber Unique identifier for the request\n @param randomNumber The 32-byte cryptographically secure random hash" + }, + "id": 644, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "entropyCallback", + "nameLocation": "1835:15:6", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 591, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "1991:8:6" + }, + "parameters": { + "id": 590, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 585, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1867:14:6", + "nodeType": "VariableDeclaration", + "scope": 644, + "src": "1860:21:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 584, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1860:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 587, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 644, + "src": "1891:7:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 586, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1891:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 589, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "1963:12:6", + "nodeType": "VariableDeclaration", + "scope": 644, + "src": "1955:20:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 588, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1955:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "1850:131:6" + }, + "returnParameters": { + "id": 592, + "nodeType": "ParameterList", + "parameters": [], + "src": "2000:0:6" + }, + "scope": 719, + "src": "1826:827:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 675, + "nodeType": "Block", + "src": "3202:154:6", + "statements": [ + { + "assignments": [ + 660 + ], + "declarations": [ + { + "constant": false, + "id": 660, + "mutability": "mutable", + "name": "result", + "nameLocation": "3231:6:6", + "nodeType": "VariableDeclaration", + "scope": 675, + "src": "3212:25:6", + "stateVariable": false, + "storageLocation": "storage", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage_ptr", + "typeString": "struct CoinFlip.UserResult" + }, + "typeName": { + "id": 659, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 658, + "name": "UserResult", + "nameLocations": [ + "3212:10:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 508, + "src": "3212:10:6" + }, + "referencedDeclaration": 508, + "src": "3212:10:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage_ptr", + "typeString": "struct CoinFlip.UserResult" + } + }, + "visibility": "internal" + } + ], + "id": 664, + "initialValue": { + "baseExpression": { + "id": 661, + "name": "userLatestResult", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 517, + "src": "3240:16:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_struct$_UserResult_$508_storage_$", + "typeString": "mapping(address => struct CoinFlip.UserResult storage ref)" + } + }, + "id": 663, + "indexExpression": { + "id": 662, + "name": "user", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 647, + "src": "3257:4:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3240:22:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage", + "typeString": "struct CoinFlip.UserResult storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3212:50:6" + }, + { + "expression": { + "components": [ + { + "expression": { + "id": 665, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 660, + "src": "3280:6:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage_ptr", + "typeString": "struct CoinFlip.UserResult storage pointer" + } + }, + "id": 666, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3287:12:6", + "memberName": "randomNumber", + "nodeType": "MemberAccess", + "referencedDeclaration": 501, + "src": "3280:19:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + { + "expression": { + "id": 667, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 660, + "src": "3301:6:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage_ptr", + "typeString": "struct CoinFlip.UserResult storage pointer" + } + }, + "id": 668, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3308:7:6", + "memberName": "isHeads", + "nodeType": "MemberAccess", + "referencedDeclaration": 503, + "src": "3301:14:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "expression": { + "id": 669, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 660, + "src": "3317:6:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage_ptr", + "typeString": "struct CoinFlip.UserResult storage pointer" + } + }, + "id": 670, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3324:9:6", + "memberName": "timestamp", + "nodeType": "MemberAccess", + "referencedDeclaration": 505, + "src": "3317:16:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 671, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 660, + "src": "3335:6:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage_ptr", + "typeString": "struct CoinFlip.UserResult storage pointer" + } + }, + "id": 672, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3342:6:6", + "memberName": "exists", + "nodeType": "MemberAccess", + "referencedDeclaration": 507, + "src": "3335:13:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 673, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "3279:70:6", + "typeDescriptions": { + "typeIdentifier": "t_tuple$_t_bytes32_$_t_bool_$_t_uint256_$_t_bool_$", + "typeString": "tuple(bytes32,bool,uint256,bool)" + } + }, + "functionReturnParameters": 657, + "id": 674, + "nodeType": "Return", + "src": "3272:77:6" + } + ] + }, + "documentation": { + "id": 645, + "nodeType": "StructuredDocumentation", + "src": "2704:333:6", + "text": " @dev Get the latest result for a user\n @param user The address to query\n @return randomNumber The 32-byte random hash\n @return isHeads The heads/tails result (true = heads, false = tails)\n @return timestamp When the result was generated\n @return exists Whether the user has any result" + }, + "functionSelector": "37e61d6f", + "id": 676, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "getUserResult", + "nameLocation": "3051:13:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 648, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 647, + "mutability": "mutable", + "name": "user", + "nameLocation": "3073:4:6", + "nodeType": "VariableDeclaration", + "scope": 676, + "src": "3065:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 646, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3065:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "3064:14:6" + }, + "returnParameters": { + "id": 657, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 650, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "3137:12:6", + "nodeType": "VariableDeclaration", + "scope": 676, + "src": "3129:20:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 649, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3129:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 652, + "mutability": "mutable", + "name": "isHeads", + "nameLocation": "3156:7:6", + "nodeType": "VariableDeclaration", + "scope": 676, + "src": "3151:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 651, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3151:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 654, + "mutability": "mutable", + "name": "timestamp", + "nameLocation": "3173:9:6", + "nodeType": "VariableDeclaration", + "scope": 676, + "src": "3165:17:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 653, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3165:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 656, + "mutability": "mutable", + "name": "exists", + "nameLocation": "3189:6:6", + "nodeType": "VariableDeclaration", + "scope": 676, + "src": "3184:11:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 655, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3184:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "3128:68:6" + }, + "scope": 719, + "src": "3042:314:6", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 689, + "nodeType": "Block", + "src": "3584:53:6", + "statements": [ + { + "expression": { + "expression": { + "baseExpression": { + "id": 684, + "name": "userLatestResult", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 517, + "src": "3601:16:6", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_struct$_UserResult_$508_storage_$", + "typeString": "mapping(address => struct CoinFlip.UserResult storage ref)" + } + }, + "id": 686, + "indexExpression": { + "id": 685, + "name": "user", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 679, + "src": "3618:4:6", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3601:22:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_UserResult_$508_storage", + "typeString": "struct CoinFlip.UserResult storage ref" + } + }, + "id": 687, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3624:6:6", + "memberName": "exists", + "nodeType": "MemberAccess", + "referencedDeclaration": 507, + "src": "3601:29:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 683, + "id": 688, + "nodeType": "Return", + "src": "3594:36:6" + } + ] + }, + "documentation": { + "id": 677, + "nodeType": "StructuredDocumentation", + "src": "3362:151:6", + "text": " @dev Check if a user has a random result\n @param user The address to query\n @return exists Whether the user has a result" + }, + "functionSelector": "3bba000b", + "id": 690, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "hasUserResult", + "nameLocation": "3527:13:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 680, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 679, + "mutability": "mutable", + "name": "user", + "nameLocation": "3549:4:6", + "nodeType": "VariableDeclaration", + "scope": 690, + "src": "3541:12:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 678, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3541:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "3540:14:6" + }, + "returnParameters": { + "id": 683, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 682, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 690, + "src": "3578:4:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 681, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3578:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "3577:6:6" + }, + "scope": 719, + "src": "3518:119:6", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 700, + "nodeType": "Block", + "src": "3818:42:6", + "statements": [ + { + "expression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "expression": { + "id": 696, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 497, + "src": "3835:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + }, + "id": 697, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3843:8:6", + "memberName": "getFeeV2", + "nodeType": "MemberAccess", + "referencedDeclaration": 455, + "src": "3835:16:6", + "typeDescriptions": { + "typeIdentifier": "t_function_external_view$__$returns$_t_uint128_$", + "typeString": "function () view external returns (uint128)" + } + }, + "id": 698, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3835:18:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "functionReturnParameters": 695, + "id": 699, + "nodeType": "Return", + "src": "3828:25:6" + } + ] + }, + "documentation": { + "id": 691, + "nodeType": "StructuredDocumentation", + "src": "3643:115:6", + "text": " @dev Get the required fee for a random number request\n @return fee The required fee in wei" + }, + "functionSelector": "0d37b537", + "id": 701, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "getRequestFee", + "nameLocation": "3772:13:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 692, + "nodeType": "ParameterList", + "parameters": [], + "src": "3785:2:6" + }, + "returnParameters": { + "id": 695, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 694, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 701, + "src": "3809:7:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 693, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3809:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "3808:9:6" + }, + "scope": 719, + "src": "3763:97:6", + "stateMutability": "view", + "virtual": false, + "visibility": "public" + }, + { + "baseFunctions": [ + 370 + ], + "body": { + "id": 713, + "nodeType": "Block", + "src": "4043:40:6", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 710, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 497, + "src": "4068:7:6", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_IEntropyV2_$474", + "typeString": "contract IEntropyV2" + } + ], + "id": 709, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "4060:7:6", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 708, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4060:7:6", + "typeDescriptions": {} + } + }, + "id": 711, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "4060:16:6", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 707, + "id": 712, + "nodeType": "Return", + "src": "4053:23:6" + } + ] + }, + "documentation": { + "id": 702, + "nodeType": "StructuredDocumentation", + "src": "3866:109:6", + "text": " @dev Required by IEntropyConsumer interface\n @return address of the entropy contract" + }, + "id": 714, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "getEntropy", + "nameLocation": "3989:10:6", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 704, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "4016:8:6" + }, + "parameters": { + "id": 703, + "nodeType": "ParameterList", + "parameters": [], + "src": "3999:2:6" + }, + "returnParameters": { + "id": 707, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 706, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 714, + "src": "4034:7:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 705, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4034:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "4033:9:6" + }, + "scope": 719, + "src": "3980:103:6", + "stateMutability": "view", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 717, + "nodeType": "Block", + "src": "4159:2:6", + "statements": [] + }, + "id": 718, + "implemented": true, + "kind": "receive", + "modifiers": [], + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 715, + "nodeType": "ParameterList", + "parameters": [], + "src": "4139:2:6" + }, + "returnParameters": { + "id": 716, + "nodeType": "ParameterList", + "parameters": [], + "src": "4159:0:6" + }, + "scope": 719, + "src": "4132:29:6", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + } + ], + "scope": 720, + "src": "187:3976:6", + "usedErrors": [ + 519 + ], + "usedEvents": [ + 486, + 494 + ] + } + ], + "src": "37:4126:6" + }, + "id": 6 + } + }, + "contracts": { + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "EntropyEvents": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "errorCode", + "type": "bytes" + } + ], + "name": "CallbackFailed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.ProviderInfo", + "name": "provider", + "type": "tuple" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "RequestedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "RevealedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + } + ], + "name": "Withdrawal", + "type": "event" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"errorCode\",\"type\":\"bytes\"}],\"name\":\"CallbackFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.ProviderInfo\",\"name\":\"provider\",\"type\":\"tuple\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"RequestedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"RevealedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"}],\"name\":\"Withdrawal\",\"type\":\"event\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":\"EntropyEvents\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "EntropyEventsV2": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "callbackFailed", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "callbackReturnValue", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "callbackGasUsed", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Withdrawal", + "type": "event" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"callbackFailed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"callbackReturnValue\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"callbackGasUsed\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Withdrawal\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"This interface is used to emit events that track the lifecycle of random number requests, provider registrations, and system configurations.\",\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newDefaultGasLimit\":\"The new default gas limit\",\"oldDefaultGasLimit\":\"The previous default gas limit\",\"provider\":\"The address of the provider updating their gas limit\"}},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFeeManager\":\"The new fee manager address\",\"oldFeeManager\":\"The previous fee manager address\",\"provider\":\"The address of the provider updating their fee manager\"}},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFee\":\"The new fee amount\",\"oldFee\":\"The previous fee amount\",\"provider\":\"The address of the provider updating their fee\"}},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newMaxNumHashes\":\"The new maximum number of hashes\",\"oldMaxNumHashes\":\"The previous maximum number of hashes\",\"provider\":\"The address of the provider updating their max hashes\"}},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newUri\":\"The new URI\",\"oldUri\":\"The previous URI\",\"provider\":\"The address of the provider updating their URI\"}},\"Registered(address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the registered provider\"}},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"params\":{\"caller\":\"The address of the user requesting the random number\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"gasLimit\":\"The gas limit for the callback.\",\"provider\":\"The address of the provider handling the request\",\"sequenceNumber\":\"A unique identifier for this request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"params\":{\"callbackFailed\":\"Whether the callback to the caller failed\",\"callbackGasUsed\":\"How much gas the callback used.\",\"callbackReturnValue\":\"Return value from the callback. If the callback failed, this field contains the error code and any additional returned data. Note that \\\"\\\" often indicates an out-of-gas error. If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\",\"caller\":\"The address of the user who requested the random number (and who receives a callback)\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider that generated the random number\",\"providerContribution\":\"The provider's contribution to the random number\",\"randomNumber\":\"The generated random number\",\"sequenceNumber\":\"The unique identifier of the request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Withdrawal(address,address,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider withdrawing fees\",\"recipient\":\"The address receiving the withdrawn fees\",\"withdrawnAmount\":\"The amount of fees withdrawn\"}}},\"kind\":\"dev\",\"methods\":{},\"title\":\"EntropyEventsV2\",\"version\":1},\"userdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their default gas limit\"},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"notice\":\"Emitted when a provider updates their fee manager address\"},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"notice\":\"Emitted when a provider updates their fee\"},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their maximum number of hashes that can be advanced\"},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"notice\":\"Emitted when a provider updates their URI\"},\"Registered(address,bytes)\":{\"notice\":\"Emitted when a new provider registers with the Entropy system\"},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"notice\":\"Emitted when a user requests a random number from a provider\"},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"notice\":\"Emitted when a provider reveals the generated random number\"},\"Withdrawal(address,address,uint128,bytes)\":{\"notice\":\"Emitted when a provider withdraws their accumulated fees\"}},\"kind\":\"user\",\"methods\":{},\"notice\":\"Interface defining events for the Entropy V2 system, which handles random number generation and provider management on Ethereum.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":\"EntropyEventsV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "EntropyStructs": { + "abi": [], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "60808060405234601357603a908160198239f35b600080fdfe600080fdfea2646970667358221220601a77c211c71b4896e8485e621a1a208c32c4e6c6c4abcf73dca6531fa15bd064736f6c63430008180033", + "opcodes": "PUSH1 0x80 DUP1 PUSH1 0x40 MSTORE CALLVALUE PUSH1 0x13 JUMPI PUSH1 0x3A SWAP1 DUP2 PUSH1 0x19 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT INVALID PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH1 0x1A PUSH24 0xC211C71B4896E8485E621A1A208C32C4E6C6C4ABCF73DCA6 MSTORE8 0x1F LOG1 JUMPDEST 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "368:3381:2:-:0;;;;;;;;;;;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "600080fdfea2646970667358221220601a77c211c71b4896e8485e621a1a208c32c4e6c6c4abcf73dca6531fa15bd064736f6c63430008180033", + "opcodes": "PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH1 0x1A PUSH24 0xC211C71B4896E8485E621A1A208C32C4E6C6C4ABCF73DCA6 MSTORE8 0x1F LOG1 JUMPDEST 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "368:3381:2:-:0;;" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":\"EntropyStructs\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "EntropyStructsV2": { + "abi": [], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "60808060405234601357603a908160198239f35b600080fdfe600080fdfea264697066735822122079d95283c2c574f47633e2e052f262dc01d488dadfcd075d698ae2d717d14c9064736f6c63430008180033", + "opcodes": "PUSH1 0x80 DUP1 PUSH1 0x40 MSTORE CALLVALUE PUSH1 0x13 JUMPI PUSH1 0x3A SWAP1 DUP2 PUSH1 0x19 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT INVALID PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH26 0xD95283C2C574F47633E2E052F262DC01D488DADFCD075D698AE2 0xD7 OR 0xD1 0x4C SWAP1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "63:3809:3:-:0;;;;;;;;;;;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "600080fdfea264697066735822122079d95283c2c574f47633e2e052f262dc01d488dadfcd075d698ae2d717d14c9064736f6c63430008180033", + "opcodes": "PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH26 0xD95283C2C574F47633E2E052F262DC01D488DADFCD075D698AE2 0xD7 OR 0xD1 0x4C SWAP1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "63:3809:3:-:0;;" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":\"EntropyStructsV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "IEntropyConsumer": { + "abi": [ + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "_entropyCallback(uint64,address,bytes32)": "52a5f1f8" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"_entropyCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":\"IEntropyConsumer\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":{\"keccak256\":\"0xf3d3dee1e9cbdef70b6c1f4d79aa8b438413e4636c00e79e615da9dc4df9c379\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://0e473522447c8f92a43f4fa3e54d83a789e12cc44b2a86847bd238a7f8827952\",\"dweb:/ipfs/Qmdihx73a89EZYy2GpitTxK92SWDLyPWeWnJTZ4Acva958\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "IEntropyV2": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "callbackFailed", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "callbackReturnValue", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "callbackGasUsed", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Withdrawal", + "type": "event" + }, + { + "inputs": [], + "name": "getDefaultProvider", + "outputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "name": "getProviderInfoV2", + "outputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "defaultGasLimit", + "type": "uint32" + } + ], + "internalType": "struct EntropyStructsV2.ProviderInfo", + "name": "info", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "getRequestV2", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "callbackStatus", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "gasLimit10k", + "type": "uint16" + } + ], + "internalType": "struct EntropyStructsV2.Request", + "name": "req", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "getDefaultProvider()": "82ee990c", + "getFeeV2()": "8204b67a", + "getFeeV2(address,uint32)": "7ab2ac36", + "getFeeV2(uint32)": "ca1642e1", + "getProviderInfoV2(address)": "2f9b787b", + "getRequestV2(address,uint64)": "754a3600", + "requestV2()": "7b43155d", + "requestV2(address,bytes32,uint32)": "f77b45e1", + "requestV2(address,uint32)": "0e33da29", + "requestV2(uint32)": "0bed189f" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"callbackFailed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"callbackReturnValue\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"callbackGasUsed\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getDefaultProvider\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getProviderInfoV2\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"defaultGasLimit\",\"type\":\"uint32\"}],\"internalType\":\"struct EntropyStructsV2.ProviderInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"}],\"name\":\"getRequestV2\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"callbackStatus\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"gasLimit10k\",\"type\":\"uint16\"}],\"internalType\":\"struct EntropyStructsV2.Request\",\"name\":\"req\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newDefaultGasLimit\":\"The new default gas limit\",\"oldDefaultGasLimit\":\"The previous default gas limit\",\"provider\":\"The address of the provider updating their gas limit\"}},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFeeManager\":\"The new fee manager address\",\"oldFeeManager\":\"The previous fee manager address\",\"provider\":\"The address of the provider updating their fee manager\"}},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFee\":\"The new fee amount\",\"oldFee\":\"The previous fee amount\",\"provider\":\"The address of the provider updating their fee\"}},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newMaxNumHashes\":\"The new maximum number of hashes\",\"oldMaxNumHashes\":\"The previous maximum number of hashes\",\"provider\":\"The address of the provider updating their max hashes\"}},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newUri\":\"The new URI\",\"oldUri\":\"The previous URI\",\"provider\":\"The address of the provider updating their URI\"}},\"Registered(address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the registered provider\"}},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"params\":{\"caller\":\"The address of the user requesting the random number\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"gasLimit\":\"The gas limit for the callback.\",\"provider\":\"The address of the provider handling the request\",\"sequenceNumber\":\"A unique identifier for this request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"params\":{\"callbackFailed\":\"Whether the callback to the caller failed\",\"callbackGasUsed\":\"How much gas the callback used.\",\"callbackReturnValue\":\"Return value from the callback. If the callback failed, this field contains the error code and any additional returned data. Note that \\\"\\\" often indicates an out-of-gas error. If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\",\"caller\":\"The address of the user who requested the random number (and who receives a callback)\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider that generated the random number\",\"providerContribution\":\"The provider's contribution to the random number\",\"randomNumber\":\"The generated random number\",\"sequenceNumber\":\"The unique identifier of the request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Withdrawal(address,address,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider withdrawing fees\",\"recipient\":\"The address receiving the withdrawn fees\",\"withdrawnAmount\":\"The amount of fees withdrawn\"}}},\"kind\":\"dev\",\"methods\":{\"getDefaultProvider()\":{\"details\":\"This method returns the address of the provider that will be used when no specific provider is specified in the requestV2 calls. The default provider can be used to get the base fee and gas limit information.\",\"returns\":{\"provider\":\"The address of the default provider\"}},\"getFeeV2()\":{\"details\":\"This method returns the base fee required to make a request using the default provider with the default gas limit. This fee should be passed as msg.value when calling requestV2(). The fee can change over time, so this method should be called before each request.\",\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(address,uint32)\":{\"details\":\"This method returns the fee required to make a request using the specified provider with the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit) or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to query\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(uint32)\":{\"details\":\"This method returns the fee required to make a request using the default provider with the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getProviderInfoV2(address)\":{\"details\":\"This method returns detailed information about a provider's configuration and capabilities. The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits.\",\"params\":{\"provider\":\"The address of the provider to query\"},\"returns\":{\"info\":\"The provider information including configuration, fees, and operational status\"}},\"getRequestV2(address,uint64)\":{\"details\":\"This method allows querying the state of a previously made request. The returned Request struct contains information about whether the request was fulfilled, the generated random number (if available), and other metadata about the request.\",\"params\":{\"provider\":\"The address of the provider that handled the request\",\"sequenceNumber\":\"The unique identifier of the request\"},\"returns\":{\"req\":\"The request information including status, random number, and other metadata\"}},\"requestV2()\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,bytes32,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\",\"provider\":\"The address of the provider to request from\",\"userRandomNumber\":\"A random number provided by the user for additional entropy\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to request from\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function.\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}}},\"version\":1},\"userdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their default gas limit\"},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"notice\":\"Emitted when a provider updates their fee manager address\"},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"notice\":\"Emitted when a provider updates their fee\"},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their maximum number of hashes that can be advanced\"},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"notice\":\"Emitted when a provider updates their URI\"},\"Registered(address,bytes)\":{\"notice\":\"Emitted when a new provider registers with the Entropy system\"},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"notice\":\"Emitted when a user requests a random number from a provider\"},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"notice\":\"Emitted when a provider reveals the generated random number\"},\"Withdrawal(address,address,uint128,bytes)\":{\"notice\":\"Emitted when a provider withdraws their accumulated fees\"}},\"kind\":\"user\",\"methods\":{\"getDefaultProvider()\":{\"notice\":\"Get the address of the default entropy provider\"},\"getFeeV2()\":{\"notice\":\"Get the fee charged by the default provider for the default gas limit\"},\"getFeeV2(address,uint32)\":{\"notice\":\"Get the fee charged by a specific provider for a request with a given gas limit\"},\"getFeeV2(uint32)\":{\"notice\":\"Get the fee charged by the default provider for a specific gas limit\"},\"getProviderInfoV2(address)\":{\"notice\":\"Get information about a specific entropy provider\"},\"getRequestV2(address,uint64)\":{\"notice\":\"Get information about a specific request\"},\"requestV2()\":{\"notice\":\"Request a random number using the default provider with default gas limit\"},\"requestV2(address,bytes32,uint32)\":{\"notice\":\"Request a random number from a specific provider with a user-provided random number and gas limit\"},\"requestV2(address,uint32)\":{\"notice\":\"Request a random number from a specific provider with specified gas limit\"},\"requestV2(uint32)\":{\"notice\":\"Request a random number using the default provider with specified gas limit\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":\"IEntropyV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":{\"keccak256\":\"0x79d7755d04dcc4d689115a14197aab690ab179000e5fc95bc1a73aeaa40c4924\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://c56f5d6e3f4c055f53ba25639bd27ec63a8d02648d1ef0037e7e45d2f893b97c\",\"dweb:/ipfs/QmYZDzmGe4cb6UXRecnxmKqkASPvhVLBmd8y5ZMMZF21C7\"]}},\"version\":1}" + } + }, + "contracts/CoinFlip.sol": { + "CoinFlip": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_entropy", + "type": "address" + }, + { + "internalType": "address", + "name": "_entropyProvider", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "InsufficientFee", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "RandomRequest", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isHeads", + "type": "bool" + } + ], + "name": "RandomResult", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getRequestFee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "getUserResult", + "outputs": [ + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "isHeads", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "exists", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "hasUserResult", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "requestRandom", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "name": "requestToUser", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "userLatestResult", + "outputs": [ + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "isHeads", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "exists", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "evm": { + "bytecode": { + "functionDebugData": { + "abi_decode_address_fromMemory": { + "entryPoint": 168, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + } + }, + "generatedSources": [], + "linkReferences": {}, + "object": "60803461008d57601f61077f38819003918201601f19168301916001600160401b0383118484101761009257808492604094855283398101031261008d57610052602061004b836100a8565b92016100a8565b600080546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556040516106c290816100bd8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008d5756fe608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c9081630d37b537146105655750806337e61d6f146102315780633bba000b1461052857806352a5f1f8146102e75780639f392c2b146102a7578063a3333e59146102315763da9f755003610013578160031936011261022d576001600160a01b03825416928151936341025b3d60e11b855260209485818481855afa90811561022357906fffffffffffffffffffffffffffffffff9186916101f6575b5016918234106101cf579085918451809481937f7b43155d0000000000000000000000000000000000000000000000000000000083525af19081156101c3579082918491610175575b5067ffffffffffffffff169283815260028552203373ffffffffffffffffffffffffffffffffffffffff198254161790557f50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d18180518481523386820152a151908152f35b809250858092503d83116101bc575b61018e818361062c565b810103126101b8575167ffffffffffffffff811681036101b857819067ffffffffffffffff610111565b8280fd5b503d610184565b505051903d90823e3d90fd5b83517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b6102169150873d891161021c575b61020e818361062c565b810190610664565b386100c8565b503d610204565b84513d87823e3d90fd5b5080fd5b503461022d57602036600319011261022d5780916001600160a01b036102556105fa565b168152600360205220906102a382549160ff6001850154169360ff60036002830154920154169151948594859260609295949195608085019685521515602085015260408401521515910152565b0390f35b503461022d57602036600319011261022d576001600160a01b038160209367ffffffffffffffff6102d6610615565b168152600285522054169051908152f35b503461022d57606036600319011261022d57610301610615565b6001600160a01b039160243583811603610524576044358385541680156104e15733036104785767ffffffffffffffff80931693848652602090600282528387205416948515610436578351600184161595608082019081118282101761042357916103f086949260609896947f6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda939a98528481526003888c6103d48785018b81528a808701934285528f880195600187528152868b522095518655511515600186019060ff801983541691151516179055565b51600284015551151591019060ff801983541691151516179055565b88526002815282882073ffffffffffffffffffffffffffffffffffffffff1981541690558251948552840152820152a180f35b60248960418c634e487b7160e01b835252fd5b6064888386519162461bcd60e51b8352820152600f60248201527f496e76616c6964207265717565737400000000000000000000000000000000006044820152fd5b608486602084519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606487602085519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b503461022d57602036600319011261022d5760ff6003826020946001600160a01b036105526105fa565b1681528286522001541690519015158152f35b929390503461052457836003193601126105245782602091816001600160a01b038754166341025b3d60e11b82525afa9182156105f057602093926105bf575b506fffffffffffffffffffffffffffffffff905191168152f35b6fffffffffffffffffffffffffffffffff9192506105e990843d861161021c5761020e818361062c565b91906105a5565b81513d85823e3d90fd5b600435906001600160a01b038216820361061057565b600080fd5b6004359067ffffffffffffffff8216820361061057565b90601f8019910116810190811067ffffffffffffffff82111761064e57604052565b634e487b7160e01b600052604160045260246000fd5b9081602091031261061057516fffffffffffffffffffffffffffffffff81168103610610579056fea264697066735822122048e072da4fa8f2a219aa7973eff209bfd0c1c381c67926fd30361497ef53717064736f6c63430008180033", + "opcodes": "PUSH1 0x80 CALLVALUE PUSH2 0x8D JUMPI PUSH1 0x1F PUSH2 0x77F CODESIZE DUP2 SWAP1 SUB SWAP2 DUP3 ADD PUSH1 0x1F NOT AND DUP4 ADD SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP4 GT DUP5 DUP5 LT OR PUSH2 0x92 JUMPI DUP1 DUP5 SWAP3 PUSH1 0x40 SWAP5 DUP6 MSTORE DUP4 CODECOPY DUP2 ADD SUB SLT PUSH2 0x8D JUMPI PUSH2 0x52 PUSH1 0x20 PUSH2 0x4B DUP4 PUSH2 0xA8 JUMP JUMPDEST SWAP3 ADD PUSH2 0xA8 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP4 DUP5 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT SWAP2 DUP3 AND OR SWAP1 SWAP2 SSTORE PUSH1 0x1 DUP1 SLOAD SWAP3 SWAP1 SWAP4 AND SWAP2 AND OR SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH2 0x6C2 SWAP1 DUP2 PUSH2 0xBD DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST MLOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x8D JUMPI JUMP INVALID PUSH1 0x80 PUSH1 0x40 SWAP1 DUP1 DUP3 MSTORE PUSH1 0x4 SWAP2 DUP3 CALLDATASIZE LT ISZERO PUSH2 0x23 JUMPI JUMPDEST POP POP POP CALLDATASIZE ISZERO PUSH2 0x21 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST STOP JUMPDEST PUSH1 0x0 SWAP2 DUP3 CALLDATALOAD PUSH1 0xE0 SHR SWAP1 DUP2 PUSH4 0xD37B537 EQ PUSH2 0x565 JUMPI POP DUP1 PUSH4 0x37E61D6F EQ PUSH2 0x231 JUMPI DUP1 PUSH4 0x3BBA000B EQ PUSH2 0x528 JUMPI DUP1 PUSH4 0x52A5F1F8 EQ PUSH2 0x2E7 JUMPI DUP1 PUSH4 0x9F392C2B EQ PUSH2 0x2A7 JUMPI DUP1 PUSH4 0xA3333E59 EQ PUSH2 0x231 JUMPI PUSH4 0xDA9F7550 SUB PUSH2 0x13 JUMPI DUP2 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x22D JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 SLOAD AND SWAP3 DUP2 MLOAD SWAP4 PUSH4 0x41025B3D PUSH1 0xE1 SHL DUP6 MSTORE PUSH1 0x20 SWAP5 DUP6 DUP2 DUP5 DUP2 DUP6 GAS STATICCALL SWAP1 DUP2 ISZERO PUSH2 0x223 JUMPI SWAP1 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 DUP7 SWAP2 PUSH2 0x1F6 JUMPI JUMPDEST POP AND SWAP2 DUP3 CALLVALUE LT PUSH2 0x1CF JUMPI SWAP1 DUP6 SWAP2 DUP5 MLOAD DUP1 SWAP5 DUP2 SWAP4 PUSH32 0x7B43155D00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE GAS CALL SWAP1 DUP2 ISZERO PUSH2 0x1C3 JUMPI SWAP1 DUP3 SWAP2 DUP5 SWAP2 PUSH2 0x175 JUMPI JUMPDEST POP PUSH8 0xFFFFFFFFFFFFFFFF AND SWAP3 DUP4 DUP2 MSTORE PUSH1 0x2 DUP6 MSTORE KECCAK256 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP3 SLOAD AND OR SWAP1 SSTORE PUSH32 0x50290F0ECDF820EC0A238E6E34494463B11E1F2E7E5DFAF475541266AAB117D1 DUP2 DUP1 MLOAD DUP5 DUP2 MSTORE CALLER DUP7 DUP3 ADD MSTORE LOG1 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST DUP1 SWAP3 POP DUP6 DUP1 SWAP3 POP RETURNDATASIZE DUP4 GT PUSH2 0x1BC JUMPI JUMPDEST PUSH2 0x18E DUP2 DUP4 PUSH2 0x62C JUMP JUMPDEST DUP2 ADD SUB SLT PUSH2 0x1B8 JUMPI MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x1B8 JUMPI DUP2 SWAP1 PUSH8 0xFFFFFFFFFFFFFFFF PUSH2 0x111 JUMP JUMPDEST DUP3 DUP1 REVERT JUMPDEST POP RETURNDATASIZE PUSH2 0x184 JUMP JUMPDEST POP POP MLOAD SWAP1 RETURNDATASIZE SWAP1 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST DUP4 MLOAD PUSH32 0x25DBDD400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE REVERT JUMPDEST PUSH2 0x216 SWAP2 POP DUP8 RETURNDATASIZE DUP10 GT PUSH2 0x21C JUMPI JUMPDEST PUSH2 0x20E DUP2 DUP4 PUSH2 0x62C JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x664 JUMP JUMPDEST CODESIZE PUSH2 0xC8 JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0x204 JUMP JUMPDEST DUP5 MLOAD RETURNDATASIZE DUP8 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST POP DUP1 REVERT JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI DUP1 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x255 PUSH2 0x5FA JUMP JUMPDEST AND DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE KECCAK256 SWAP1 PUSH2 0x2A3 DUP3 SLOAD SWAP2 PUSH1 0xFF PUSH1 0x1 DUP6 ADD SLOAD AND SWAP4 PUSH1 0xFF PUSH1 0x3 PUSH1 0x2 DUP4 ADD SLOAD SWAP3 ADD SLOAD AND SWAP2 MLOAD SWAP5 DUP6 SWAP5 DUP6 SWAP3 PUSH1 0x60 SWAP3 SWAP6 SWAP5 SWAP2 SWAP6 PUSH1 0x80 DUP6 ADD SWAP7 DUP6 MSTORE ISZERO ISZERO PUSH1 0x20 DUP6 ADD MSTORE PUSH1 0x40 DUP5 ADD MSTORE ISZERO ISZERO SWAP2 ADD MSTORE JUMP JUMPDEST SUB SWAP1 RETURN JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 PUSH1 0x20 SWAP4 PUSH8 0xFFFFFFFFFFFFFFFF PUSH2 0x2D6 PUSH2 0x615 JUMP JUMPDEST AND DUP2 MSTORE PUSH1 0x2 DUP6 MSTORE KECCAK256 SLOAD AND SWAP1 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI PUSH2 0x301 PUSH2 0x615 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 PUSH1 0x24 CALLDATALOAD DUP4 DUP2 AND SUB PUSH2 0x524 JUMPI PUSH1 0x44 CALLDATALOAD DUP4 DUP6 SLOAD AND DUP1 ISZERO PUSH2 0x4E1 JUMPI CALLER SUB PUSH2 0x478 JUMPI PUSH8 0xFFFFFFFFFFFFFFFF DUP1 SWAP4 AND SWAP4 DUP5 DUP7 MSTORE PUSH1 0x20 SWAP1 PUSH1 0x2 DUP3 MSTORE DUP4 DUP8 KECCAK256 SLOAD AND SWAP5 DUP6 ISZERO PUSH2 0x436 JUMPI DUP4 MLOAD PUSH1 0x1 DUP5 AND ISZERO SWAP6 PUSH1 0x80 DUP3 ADD SWAP1 DUP2 GT DUP3 DUP3 LT OR PUSH2 0x423 JUMPI SWAP2 PUSH2 0x3F0 DUP7 SWAP5 SWAP3 PUSH1 0x60 SWAP9 SWAP7 SWAP5 PUSH32 0x6386B02F5AC582B91AFCE0D71662E77CDC26D30336DC9E5AF24A6D2D659FDA93 SWAP11 SWAP9 MSTORE DUP5 DUP2 MSTORE PUSH1 0x3 DUP9 DUP13 PUSH2 0x3D4 DUP8 DUP6 ADD DUP12 DUP2 MSTORE DUP11 DUP1 DUP8 ADD SWAP4 TIMESTAMP DUP6 MSTORE DUP16 DUP9 ADD SWAP6 PUSH1 0x1 DUP8 MSTORE DUP2 MSTORE DUP7 DUP12 MSTORE KECCAK256 SWAP6 MLOAD DUP7 SSTORE MLOAD ISZERO ISZERO PUSH1 0x1 DUP7 ADD SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST MLOAD PUSH1 0x2 DUP5 ADD SSTORE MLOAD ISZERO ISZERO SWAP2 ADD SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST DUP9 MSTORE PUSH1 0x2 DUP2 MSTORE DUP3 DUP9 KECCAK256 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP2 SLOAD AND SWAP1 SSTORE DUP3 MLOAD SWAP5 DUP6 MSTORE DUP5 ADD MSTORE DUP3 ADD MSTORE LOG1 DUP1 RETURN JUMPDEST PUSH1 0x24 DUP10 PUSH1 0x41 DUP13 PUSH4 0x4E487B71 PUSH1 0xE0 SHL DUP4 MSTORE MSTORE REVERT JUMPDEST PUSH1 0x64 DUP9 DUP4 DUP7 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E76616C696420726571756573740000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x84 DUP7 PUSH1 0x20 DUP5 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920456E74726F70792063616E2063616C6C20746869732066756E6374 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x696F6E0000000000000000000000000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x64 DUP8 PUSH1 0x20 DUP6 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x456E74726F70792061646472657373206E6F7420736574000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST DUP4 DUP1 REVERT JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI PUSH1 0xFF PUSH1 0x3 DUP3 PUSH1 0x20 SWAP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x552 PUSH2 0x5FA JUMP JUMPDEST AND DUP2 MSTORE DUP3 DUP7 MSTORE KECCAK256 ADD SLOAD AND SWAP1 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST SWAP3 SWAP4 SWAP1 POP CALLVALUE PUSH2 0x524 JUMPI DUP4 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x524 JUMPI DUP3 PUSH1 0x20 SWAP2 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 SLOAD AND PUSH4 0x41025B3D PUSH1 0xE1 SHL DUP3 MSTORE GAS STATICCALL SWAP2 DUP3 ISZERO PUSH2 0x5F0 JUMPI PUSH1 0x20 SWAP4 SWAP3 PUSH2 0x5BF JUMPI JUMPDEST POP PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 MLOAD SWAP2 AND DUP2 MSTORE RETURN JUMPDEST PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 SWAP3 POP PUSH2 0x5E9 SWAP1 DUP5 RETURNDATASIZE DUP7 GT PUSH2 0x21C JUMPI PUSH2 0x20E DUP2 DUP4 PUSH2 0x62C JUMP JUMPDEST SWAP2 SWAP1 PUSH2 0x5A5 JUMP JUMPDEST DUP2 MLOAD RETURNDATASIZE DUP6 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x610 JUMPI JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 AND DUP3 SUB PUSH2 0x610 JUMPI JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x64E JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x610 JUMPI MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x610 JUMPI SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 BASEFEE 0xE0 PUSH19 0xDA4FA8F2A219AA7973EFF209BFD0C1C381C679 0x26 REVERT ADDRESS CALLDATASIZE EQ SWAP8 0xEF MSTORE8 PUSH18 0x7064736F6C63430008180033000000000000 ", + "sourceMap": "187:3976:6:-:0;;;;;;;;;;;;;-1:-1:-1;;187:3976:6;;;;-1:-1:-1;;;;;187:3976:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::i;:::-;-1:-1:-1;187:3976:6;;-1:-1:-1;;;;;187:3976:6;;;-1:-1:-1;;;;;;187:3976:6;;;;;;;-1:-1:-1;187:3976:6;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;187:3976:6;;;;;;-1:-1:-1;187:3976:6;;;;;-1:-1:-1;187:3976:6;;;;-1:-1:-1;;;;;187:3976:6;;;;;;:::o" + }, + "deployedBytecode": { + "functionDebugData": { + "abi_decode_address": { + "entryPoint": 1530, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "abi_decode_uint128_fromMemory": { + "entryPoint": 1636, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_uint64": { + "entryPoint": 1557, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "abi_encode_bytes32_bool_uint256_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 5, + "returnSlots": 1 + }, + "finalize_allocation": { + "entryPoint": 1580, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "update_storage_value_offsett_bool_to_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + } + }, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c9081630d37b537146105655750806337e61d6f146102315780633bba000b1461052857806352a5f1f8146102e75780639f392c2b146102a7578063a3333e59146102315763da9f755003610013578160031936011261022d576001600160a01b03825416928151936341025b3d60e11b855260209485818481855afa90811561022357906fffffffffffffffffffffffffffffffff9186916101f6575b5016918234106101cf579085918451809481937f7b43155d0000000000000000000000000000000000000000000000000000000083525af19081156101c3579082918491610175575b5067ffffffffffffffff169283815260028552203373ffffffffffffffffffffffffffffffffffffffff198254161790557f50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d18180518481523386820152a151908152f35b809250858092503d83116101bc575b61018e818361062c565b810103126101b8575167ffffffffffffffff811681036101b857819067ffffffffffffffff610111565b8280fd5b503d610184565b505051903d90823e3d90fd5b83517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b6102169150873d891161021c575b61020e818361062c565b810190610664565b386100c8565b503d610204565b84513d87823e3d90fd5b5080fd5b503461022d57602036600319011261022d5780916001600160a01b036102556105fa565b168152600360205220906102a382549160ff6001850154169360ff60036002830154920154169151948594859260609295949195608085019685521515602085015260408401521515910152565b0390f35b503461022d57602036600319011261022d576001600160a01b038160209367ffffffffffffffff6102d6610615565b168152600285522054169051908152f35b503461022d57606036600319011261022d57610301610615565b6001600160a01b039160243583811603610524576044358385541680156104e15733036104785767ffffffffffffffff80931693848652602090600282528387205416948515610436578351600184161595608082019081118282101761042357916103f086949260609896947f6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda939a98528481526003888c6103d48785018b81528a808701934285528f880195600187528152868b522095518655511515600186019060ff801983541691151516179055565b51600284015551151591019060ff801983541691151516179055565b88526002815282882073ffffffffffffffffffffffffffffffffffffffff1981541690558251948552840152820152a180f35b60248960418c634e487b7160e01b835252fd5b6064888386519162461bcd60e51b8352820152600f60248201527f496e76616c6964207265717565737400000000000000000000000000000000006044820152fd5b608486602084519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606487602085519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b503461022d57602036600319011261022d5760ff6003826020946001600160a01b036105526105fa565b1681528286522001541690519015158152f35b929390503461052457836003193601126105245782602091816001600160a01b038754166341025b3d60e11b82525afa9182156105f057602093926105bf575b506fffffffffffffffffffffffffffffffff905191168152f35b6fffffffffffffffffffffffffffffffff9192506105e990843d861161021c5761020e818361062c565b91906105a5565b81513d85823e3d90fd5b600435906001600160a01b038216820361061057565b600080fd5b6004359067ffffffffffffffff8216820361061057565b90601f8019910116810190811067ffffffffffffffff82111761064e57604052565b634e487b7160e01b600052604160045260246000fd5b9081602091031261061057516fffffffffffffffffffffffffffffffff81168103610610579056fea264697066735822122048e072da4fa8f2a219aa7973eff209bfd0c1c381c67926fd30361497ef53717064736f6c63430008180033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 SWAP1 DUP1 DUP3 MSTORE PUSH1 0x4 SWAP2 DUP3 CALLDATASIZE LT ISZERO PUSH2 0x23 JUMPI JUMPDEST POP POP POP CALLDATASIZE ISZERO PUSH2 0x21 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST STOP JUMPDEST PUSH1 0x0 SWAP2 DUP3 CALLDATALOAD PUSH1 0xE0 SHR SWAP1 DUP2 PUSH4 0xD37B537 EQ PUSH2 0x565 JUMPI POP DUP1 PUSH4 0x37E61D6F EQ PUSH2 0x231 JUMPI DUP1 PUSH4 0x3BBA000B EQ PUSH2 0x528 JUMPI DUP1 PUSH4 0x52A5F1F8 EQ PUSH2 0x2E7 JUMPI DUP1 PUSH4 0x9F392C2B EQ PUSH2 0x2A7 JUMPI DUP1 PUSH4 0xA3333E59 EQ PUSH2 0x231 JUMPI PUSH4 0xDA9F7550 SUB PUSH2 0x13 JUMPI DUP2 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x22D JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 SLOAD AND SWAP3 DUP2 MLOAD SWAP4 PUSH4 0x41025B3D PUSH1 0xE1 SHL DUP6 MSTORE PUSH1 0x20 SWAP5 DUP6 DUP2 DUP5 DUP2 DUP6 GAS STATICCALL SWAP1 DUP2 ISZERO PUSH2 0x223 JUMPI SWAP1 PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 DUP7 SWAP2 PUSH2 0x1F6 JUMPI JUMPDEST POP AND SWAP2 DUP3 CALLVALUE LT PUSH2 0x1CF JUMPI SWAP1 DUP6 SWAP2 DUP5 MLOAD DUP1 SWAP5 DUP2 SWAP4 PUSH32 0x7B43155D00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE GAS CALL SWAP1 DUP2 ISZERO PUSH2 0x1C3 JUMPI SWAP1 DUP3 SWAP2 DUP5 SWAP2 PUSH2 0x175 JUMPI JUMPDEST POP PUSH8 0xFFFFFFFFFFFFFFFF AND SWAP3 DUP4 DUP2 MSTORE PUSH1 0x2 DUP6 MSTORE KECCAK256 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP3 SLOAD AND OR SWAP1 SSTORE PUSH32 0x50290F0ECDF820EC0A238E6E34494463B11E1F2E7E5DFAF475541266AAB117D1 DUP2 DUP1 MLOAD DUP5 DUP2 MSTORE CALLER DUP7 DUP3 ADD MSTORE LOG1 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST DUP1 SWAP3 POP DUP6 DUP1 SWAP3 POP RETURNDATASIZE DUP4 GT PUSH2 0x1BC JUMPI JUMPDEST PUSH2 0x18E DUP2 DUP4 PUSH2 0x62C JUMP JUMPDEST DUP2 ADD SUB SLT PUSH2 0x1B8 JUMPI MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x1B8 JUMPI DUP2 SWAP1 PUSH8 0xFFFFFFFFFFFFFFFF PUSH2 0x111 JUMP JUMPDEST DUP3 DUP1 REVERT JUMPDEST POP RETURNDATASIZE PUSH2 0x184 JUMP JUMPDEST POP POP MLOAD SWAP1 RETURNDATASIZE SWAP1 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST DUP4 MLOAD PUSH32 0x25DBDD400000000000000000000000000000000000000000000000000000000 DUP2 MSTORE REVERT JUMPDEST PUSH2 0x216 SWAP2 POP DUP8 RETURNDATASIZE DUP10 GT PUSH2 0x21C JUMPI JUMPDEST PUSH2 0x20E DUP2 DUP4 PUSH2 0x62C JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x664 JUMP JUMPDEST CODESIZE PUSH2 0xC8 JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0x204 JUMP JUMPDEST DUP5 MLOAD RETURNDATASIZE DUP8 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST POP DUP1 REVERT JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI DUP1 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x255 PUSH2 0x5FA JUMP JUMPDEST AND DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE KECCAK256 SWAP1 PUSH2 0x2A3 DUP3 SLOAD SWAP2 PUSH1 0xFF PUSH1 0x1 DUP6 ADD SLOAD AND SWAP4 PUSH1 0xFF PUSH1 0x3 PUSH1 0x2 DUP4 ADD SLOAD SWAP3 ADD SLOAD AND SWAP2 MLOAD SWAP5 DUP6 SWAP5 DUP6 SWAP3 PUSH1 0x60 SWAP3 SWAP6 SWAP5 SWAP2 SWAP6 PUSH1 0x80 DUP6 ADD SWAP7 DUP6 MSTORE ISZERO ISZERO PUSH1 0x20 DUP6 ADD MSTORE PUSH1 0x40 DUP5 ADD MSTORE ISZERO ISZERO SWAP2 ADD MSTORE JUMP JUMPDEST SUB SWAP1 RETURN JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 PUSH1 0x20 SWAP4 PUSH8 0xFFFFFFFFFFFFFFFF PUSH2 0x2D6 PUSH2 0x615 JUMP JUMPDEST AND DUP2 MSTORE PUSH1 0x2 DUP6 MSTORE KECCAK256 SLOAD AND SWAP1 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI PUSH2 0x301 PUSH2 0x615 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 PUSH1 0x24 CALLDATALOAD DUP4 DUP2 AND SUB PUSH2 0x524 JUMPI PUSH1 0x44 CALLDATALOAD DUP4 DUP6 SLOAD AND DUP1 ISZERO PUSH2 0x4E1 JUMPI CALLER SUB PUSH2 0x478 JUMPI PUSH8 0xFFFFFFFFFFFFFFFF DUP1 SWAP4 AND SWAP4 DUP5 DUP7 MSTORE PUSH1 0x20 SWAP1 PUSH1 0x2 DUP3 MSTORE DUP4 DUP8 KECCAK256 SLOAD AND SWAP5 DUP6 ISZERO PUSH2 0x436 JUMPI DUP4 MLOAD PUSH1 0x1 DUP5 AND ISZERO SWAP6 PUSH1 0x80 DUP3 ADD SWAP1 DUP2 GT DUP3 DUP3 LT OR PUSH2 0x423 JUMPI SWAP2 PUSH2 0x3F0 DUP7 SWAP5 SWAP3 PUSH1 0x60 SWAP9 SWAP7 SWAP5 PUSH32 0x6386B02F5AC582B91AFCE0D71662E77CDC26D30336DC9E5AF24A6D2D659FDA93 SWAP11 SWAP9 MSTORE DUP5 DUP2 MSTORE PUSH1 0x3 DUP9 DUP13 PUSH2 0x3D4 DUP8 DUP6 ADD DUP12 DUP2 MSTORE DUP11 DUP1 DUP8 ADD SWAP4 TIMESTAMP DUP6 MSTORE DUP16 DUP9 ADD SWAP6 PUSH1 0x1 DUP8 MSTORE DUP2 MSTORE DUP7 DUP12 MSTORE KECCAK256 SWAP6 MLOAD DUP7 SSTORE MLOAD ISZERO ISZERO PUSH1 0x1 DUP7 ADD SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST MLOAD PUSH1 0x2 DUP5 ADD SSTORE MLOAD ISZERO ISZERO SWAP2 ADD SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST DUP9 MSTORE PUSH1 0x2 DUP2 MSTORE DUP3 DUP9 KECCAK256 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP2 SLOAD AND SWAP1 SSTORE DUP3 MLOAD SWAP5 DUP6 MSTORE DUP5 ADD MSTORE DUP3 ADD MSTORE LOG1 DUP1 RETURN JUMPDEST PUSH1 0x24 DUP10 PUSH1 0x41 DUP13 PUSH4 0x4E487B71 PUSH1 0xE0 SHL DUP4 MSTORE MSTORE REVERT JUMPDEST PUSH1 0x64 DUP9 DUP4 DUP7 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E76616C696420726571756573740000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x84 DUP7 PUSH1 0x20 DUP5 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920456E74726F70792063616E2063616C6C20746869732066756E6374 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x696F6E0000000000000000000000000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x64 DUP8 PUSH1 0x20 DUP6 MLOAD SWAP2 PUSH3 0x461BCD PUSH1 0xE5 SHL DUP4 MSTORE DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x456E74726F70792061646472657373206E6F7420736574000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST DUP4 DUP1 REVERT JUMPDEST POP CALLVALUE PUSH2 0x22D JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x22D JUMPI PUSH1 0xFF PUSH1 0x3 DUP3 PUSH1 0x20 SWAP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x552 PUSH2 0x5FA JUMP JUMPDEST AND DUP2 MSTORE DUP3 DUP7 MSTORE KECCAK256 ADD SLOAD AND SWAP1 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST SWAP3 SWAP4 SWAP1 POP CALLVALUE PUSH2 0x524 JUMPI DUP4 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x524 JUMPI DUP3 PUSH1 0x20 SWAP2 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 SLOAD AND PUSH4 0x41025B3D PUSH1 0xE1 SHL DUP3 MSTORE GAS STATICCALL SWAP2 DUP3 ISZERO PUSH2 0x5F0 JUMPI PUSH1 0x20 SWAP4 SWAP3 PUSH2 0x5BF JUMPI JUMPDEST POP PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 MLOAD SWAP2 AND DUP2 MSTORE RETURN JUMPDEST PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 SWAP3 POP PUSH2 0x5E9 SWAP1 DUP5 RETURNDATASIZE DUP7 GT PUSH2 0x21C JUMPI PUSH2 0x20E DUP2 DUP4 PUSH2 0x62C JUMP JUMPDEST SWAP2 SWAP1 PUSH2 0x5A5 JUMP JUMPDEST DUP2 MLOAD RETURNDATASIZE DUP6 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x610 JUMPI JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 AND DUP3 SUB PUSH2 0x610 JUMPI JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x64E JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x610 JUMPI MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x610 JUMPI SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 BASEFEE 0xE0 PUSH19 0xDA4FA8F2A219AA7973EFF209BFD0C1C381C679 0x26 REVERT ADDRESS CALLDATASIZE EQ SWAP8 0xEF MSTORE8 PUSH18 0x7064736F6C63430008180033000000000000 ", + "sourceMap": "187:3976:6:-:0;;;;;;;;;;;;;;-1:-1:-1;187:3976:6;;;;;;;;;;;;;;;;;;;;;;;;;3835:18;;187:3976;3835:18;;;187:3976;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;187:3976:6;;;;;;1212:18;-1:-1:-1;;;1212:18:6;;;;;;;;;;;;;;;;;187:3976;1212:18;;;;;187:3976;;;1244:9;;;:15;1240:70;;187:3976;;;;;1344:31;;;;187:3976;1344:31;;;;;;;;;;;;;;;;187:3976;;;;;;;;1440:13;187:3976;;;1472:10;-1:-1:-1;;187:3976:6;;;;;;1506:41;187:3976;;;;;;1472:10;187:3976;;;;1506:41;187:3976;;;;;1344:31;;;;;;;;;;;;;;;;;;:::i;:::-;;;187:3976;;;;;;;;;;;;1344:31;;187:3976;1344:31;;187:3976;;;;1344:31;;;;;;187:3976;;;;;;;;;;;1240:70;187:3976;;1282:17;;;;1212:18;;;;;;;;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;;187:3976;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;187:3976:6;;;;;;-1:-1:-1;;;;;187:3976:6;;:::i;:::-;;;;725:54;187:3976;;;;;;;725:54;187:3976;725:54;;;187:3976;;725:54;187:3976;725:54;;;;187:3976;725:54;;187:3976;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;187:3976:6;;;;-1:-1:-1;;;;;187:3976:6;;;;;;:::i;:::-;;;;672:47;187:3976;;;;;;;;;;;;;;;;;;-1:-1:-1;;187:3976:6;;;;;;:::i;:::-;-1:-1:-1;;;;;187:3976:6;;;;;;;;;;;;;;;487:21:4;;187:3976:6;;554:10:4;:21;187:3976:6;;;;;;;;;;;;2025:13;187:3976;;;;;;;2072:18;;;187:3976;;;;;;;2196:30;;187:3976;;;;;;;;;;;;;;;;;;;;;2605:41;187:3976;;;;;;2303:16;2328:158;;187:3976;2328:158;;;187:3976;;;2328:158;;;;2434:15;;187:3976;;2328:158;;;187:3976;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2025:13;187:3976;;;;;;;;;;;;;;;;;;;;;;;;;;2025:13;187:3976;;;;;-1:-1:-1;;187:3976:6;;;;;;;;;;;;;;;;2605:41;187:3976;;;;;;;-1:-1:-1;;;187:3976:6;;;;;;;;;;;-1:-1:-1;;;187:3976:6;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;187:3976:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;187:3976:6;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;187:3976:6;;;;;3601:16;187:3976;;;-1:-1:-1;;;;;187:3976:6;;:::i;:::-;;;;;;;;3601:29;187:3976;;;;;;;;;;;;;;;;;;;;;;;;;;;3835:18;187:3976;;-1:-1:-1;;;;;187:3976:6;;;-1:-1:-1;;;3835:18:6;;;;;;;;;;;;;;187:3976;;;;;;;;;;3835:18;187:3976;3835:18;;;;;;;;;;;;;;;:::i;:::-;;;;;;187:3976;;;;;;;;;;;;;-1:-1:-1;;;;;187:3976:6;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;-1:-1:-1;;;187:3976:6;;;;;;;;;;;;;;;;;;;;;;;;;;:::o" + }, + "methodIdentifiers": { + "_entropyCallback(uint64,address,bytes32)": "52a5f1f8", + "getRequestFee()": "0d37b537", + "getUserResult(address)": "37e61d6f", + "hasUserResult(address)": "3bba000b", + "requestRandom()": "da9f7550", + "requestToUser(uint64)": "9f392c2b", + "userLatestResult(address)": "a3333e59" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_entropy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_entropyProvider\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InsufficientFee\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"RandomRequest\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isHeads\",\"type\":\"bool\"}],\"name\":\"RandomResult\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"_entropyCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRequestFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserResult\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"isHeads\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"exists\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasUserResult\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestRandom\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"requestToUser\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userLatestResult\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"isHeads\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"exists\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getRequestFee()\":{\"details\":\"Get the required fee for a random number request\",\"returns\":{\"_0\":\"fee The required fee in wei\"}},\"getUserResult(address)\":{\"details\":\"Get the latest result for a user\",\"params\":{\"user\":\"The address to query\"},\"returns\":{\"exists\":\"Whether the user has any result\",\"isHeads\":\"The heads/tails result (true = heads, false = tails)\",\"randomNumber\":\"The 32-byte random hash\",\"timestamp\":\"When the result was generated\"}},\"hasUserResult(address)\":{\"details\":\"Check if a user has a random result\",\"params\":{\"user\":\"The address to query\"},\"returns\":{\"_0\":\"exists Whether the user has a result\"}},\"requestRandom()\":{\"details\":\"Request a random number for the calling user\",\"returns\":{\"_0\":\"sequenceNumber The unique identifier for this request\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/CoinFlip.sol\":\"CoinFlip\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":{\"keccak256\":\"0xf3d3dee1e9cbdef70b6c1f4d79aa8b438413e4636c00e79e615da9dc4df9c379\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://0e473522447c8f92a43f4fa3e54d83a789e12cc44b2a86847bd238a7f8827952\",\"dweb:/ipfs/Qmdihx73a89EZYy2GpitTxK92SWDLyPWeWnJTZ4Acva958\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":{\"keccak256\":\"0x79d7755d04dcc4d689115a14197aab690ab179000e5fc95bc1a73aeaa40c4924\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://c56f5d6e3f4c055f53ba25639bd27ec63a8d02648d1ef0037e7e45d2f893b97c\",\"dweb:/ipfs/QmYZDzmGe4cb6UXRecnxmKqkASPvhVLBmd8y5ZMMZF21C7\"]},\"contracts/CoinFlip.sol\":{\"keccak256\":\"0x6c8dfb69843afd2491a69b9248861ebefeb2070074222c34fc294e161585864e\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://be19f2400552f02194e10e0f9eb638f9a670c2cee1eaad104822a2592ecc68da\",\"dweb:/ipfs/QmU2cnWqjTjMKDXw35L2G7h7jaM3SJYipYA9NrPvN1aJ6g\"]}},\"version\":1}" + } + } + } + } +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/868fca786570c3fb857b13cfdc500aab.json b/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/868fca786570c3fb857b13cfdc500aab.json new file mode 100644 index 0000000..18f524b --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/build-info/868fca786570c3fb857b13cfdc500aab.json @@ -0,0 +1,54673 @@ +{ + "id": "868fca786570c3fb857b13cfdc500aab", + "_format": "hh-sol-build-info-1", + "solcVersion": "0.8.24", + "solcLongVersion": "0.8.24+commit.e11b9ed9", + "input": { + "language": "Solidity", + "sources": { + "@openzeppelin/contracts/access/Ownable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Context.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\nimport \"./EntropyStructs.sol\";\n\n// Deprecated -- these events are still emitted, but the lack of indexing\n// makes them hard to use.\ninterface EntropyEvents {\n event Registered(EntropyStructs.ProviderInfo provider);\n\n event Requested(EntropyStructs.Request request);\n event RequestedWithCallback(\n address indexed provider,\n address indexed requestor,\n uint64 indexed sequenceNumber,\n bytes32 userRandomNumber,\n EntropyStructs.Request request\n );\n\n event Revealed(\n EntropyStructs.Request request,\n bytes32 userRevelation,\n bytes32 providerRevelation,\n bytes32 blockHash,\n bytes32 randomNumber\n );\n event RevealedWithCallback(\n EntropyStructs.Request request,\n bytes32 userRandomNumber,\n bytes32 providerRevelation,\n bytes32 randomNumber\n );\n\n event CallbackFailed(\n address indexed provider,\n address indexed requestor,\n uint64 indexed sequenceNumber,\n bytes32 userRandomNumber,\n bytes32 providerRevelation,\n bytes32 randomNumber,\n bytes errorCode\n );\n\n event ProviderFeeUpdated(address provider, uint128 oldFee, uint128 newFee);\n\n event ProviderDefaultGasLimitUpdated(\n address indexed provider,\n uint32 oldDefaultGasLimit,\n uint32 newDefaultGasLimit\n );\n\n event ProviderUriUpdated(address provider, bytes oldUri, bytes newUri);\n\n event ProviderFeeManagerUpdated(\n address provider,\n address oldFeeManager,\n address newFeeManager\n );\n event ProviderMaxNumHashesAdvanced(\n address provider,\n uint32 oldMaxNumHashes,\n uint32 newMaxNumHashes\n );\n\n event Withdrawal(\n address provider,\n address recipient,\n uint128 withdrawnAmount\n );\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.0;\n\nimport \"./EntropyStructs.sol\";\n\n/**\n * @title EntropyEventsV2\n * @notice Interface defining events for the Entropy V2 system, which handles random number generation\n * and provider management on Ethereum.\n * @dev This interface is used to emit events that track the lifecycle of random number requests,\n * provider registrations, and system configurations.\n */\ninterface EntropyEventsV2 {\n /**\n * @notice Emitted when a new provider registers with the Entropy system\n * @param provider The address of the registered provider\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Registered(address indexed provider, bytes extraArgs);\n\n /**\n * @notice Emitted when a user requests a random number from a provider\n * @param provider The address of the provider handling the request\n * @param caller The address of the user requesting the random number\n * @param sequenceNumber A unique identifier for this request\n * @param userContribution The user's contribution to the random number\n * @param gasLimit The gas limit for the callback.\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Requested(\n address indexed provider,\n address indexed caller,\n uint64 indexed sequenceNumber,\n bytes32 userContribution,\n uint32 gasLimit,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider reveals the generated random number\n * @param provider The address of the provider that generated the random number\n * @param caller The address of the user who requested the random number (and who receives a callback)\n * @param sequenceNumber The unique identifier of the request\n * @param randomNumber The generated random number\n * @param userContribution The user's contribution to the random number\n * @param providerContribution The provider's contribution to the random number\n * @param callbackFailed Whether the callback to the caller failed\n * @param callbackReturnValue Return value from the callback. If the callback failed, this field contains\n * the error code and any additional returned data. Note that \"\" often indicates an out-of-gas error.\n * If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\n * @param callbackGasUsed How much gas the callback used.\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Revealed(\n address indexed provider,\n address indexed caller,\n uint64 indexed sequenceNumber,\n bytes32 randomNumber,\n bytes32 userContribution,\n bytes32 providerContribution,\n bool callbackFailed,\n bytes callbackReturnValue,\n uint32 callbackGasUsed,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their fee\n * @param provider The address of the provider updating their fee\n * @param oldFee The previous fee amount\n * @param newFee The new fee amount\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderFeeUpdated(\n address indexed provider,\n uint128 oldFee,\n uint128 newFee,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their default gas limit\n * @param provider The address of the provider updating their gas limit\n * @param oldDefaultGasLimit The previous default gas limit\n * @param newDefaultGasLimit The new default gas limit\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderDefaultGasLimitUpdated(\n address indexed provider,\n uint32 oldDefaultGasLimit,\n uint32 newDefaultGasLimit,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their URI\n * @param provider The address of the provider updating their URI\n * @param oldUri The previous URI\n * @param newUri The new URI\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderUriUpdated(\n address indexed provider,\n bytes oldUri,\n bytes newUri,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their fee manager address\n * @param provider The address of the provider updating their fee manager\n * @param oldFeeManager The previous fee manager address\n * @param newFeeManager The new fee manager address\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderFeeManagerUpdated(\n address indexed provider,\n address oldFeeManager,\n address newFeeManager,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider updates their maximum number of hashes that can be advanced\n * @param provider The address of the provider updating their max hashes\n * @param oldMaxNumHashes The previous maximum number of hashes\n * @param newMaxNumHashes The new maximum number of hashes\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event ProviderMaxNumHashesAdvanced(\n address indexed provider,\n uint32 oldMaxNumHashes,\n uint32 newMaxNumHashes,\n bytes extraArgs\n );\n\n /**\n * @notice Emitted when a provider withdraws their accumulated fees\n * @param provider The address of the provider withdrawing fees\n * @param recipient The address receiving the withdrawn fees\n * @param withdrawnAmount The amount of fees withdrawn\n * @param extraArgs A field for extra data for forward compatibility.\n */\n event Withdrawal(\n address indexed provider,\n address indexed recipient,\n uint128 withdrawnAmount,\n bytes extraArgs\n );\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "content": "// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.0;\n\n// This contract holds old versions of the Entropy structs that are no longer used for contract storage.\n// However, they are still used in EntropyEvents to maintain the public interface of prior versions of\n// the Entropy contract.\n//\n// See EntropyStructsV2 for the struct definitions currently in use.\ncontract EntropyStructs {\n struct ProviderInfo {\n uint128 feeInWei;\n uint128 accruedFeesInWei;\n // The commitment that the provider posted to the blockchain, and the sequence number\n // where they committed to this. This value is not advanced after the provider commits,\n // and instead is stored to help providers track where they are in the hash chain.\n bytes32 originalCommitment;\n uint64 originalCommitmentSequenceNumber;\n // Metadata for the current commitment. Providers may optionally use this field to help\n // manage rotations (i.e., to pick the sequence number from the correct hash chain).\n bytes commitmentMetadata;\n // Optional URI where clients can retrieve revelations for the provider.\n // Client SDKs can use this field to automatically determine how to retrieve random values for each provider.\n // TODO: specify the API that must be implemented at this URI\n bytes uri;\n // The first sequence number that is *not* included in the current commitment (i.e., an exclusive end index).\n // The contract maintains the invariant that sequenceNumber <= endSequenceNumber.\n // If sequenceNumber == endSequenceNumber, the provider must rotate their commitment to add additional random values.\n uint64 endSequenceNumber;\n // The sequence number that will be assigned to the next inbound user request.\n uint64 sequenceNumber;\n // The current commitment represents an index/value in the provider's hash chain.\n // These values are used to verify requests for future sequence numbers. Note that\n // currentCommitmentSequenceNumber < sequenceNumber.\n //\n // The currentCommitment advances forward through the provider's hash chain as values\n // are revealed on-chain.\n bytes32 currentCommitment;\n uint64 currentCommitmentSequenceNumber;\n // An address that is authorized to set / withdraw fees on behalf of this provider.\n address feeManager;\n // Maximum number of hashes to record in a request. This should be set according to the maximum gas limit\n // the provider supports for callbacks.\n uint32 maxNumHashes;\n }\n\n struct Request {\n // Storage slot 1 //\n address provider;\n uint64 sequenceNumber;\n // The number of hashes required to verify the provider revelation.\n uint32 numHashes;\n // Storage slot 2 //\n // The commitment is keccak256(userCommitment, providerCommitment). Storing the hash instead of both saves 20k gas by\n // eliminating 1 store.\n bytes32 commitment;\n // Storage slot 3 //\n // The number of the block where this request was created.\n // Note that we're using a uint64 such that we have an additional space for an address and other fields in\n // this storage slot. Although block.number returns a uint256, 64 bits should be plenty to index all of the\n // blocks ever generated.\n uint64 blockNumber;\n // The address that requested this random number.\n address requester;\n // If true, incorporate the blockhash of blockNumber into the generated random value.\n bool useBlockhash;\n // True if this is a request that expects a callback.\n bool isRequestWithCallback;\n }\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "content": "// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.0;\n\ncontract EntropyStructsV2 {\n struct ProviderInfo {\n uint128 feeInWei;\n uint128 accruedFeesInWei;\n // The commitment that the provider posted to the blockchain, and the sequence number\n // where they committed to this. This value is not advanced after the provider commits,\n // and instead is stored to help providers track where they are in the hash chain.\n bytes32 originalCommitment;\n uint64 originalCommitmentSequenceNumber;\n // Metadata for the current commitment. Providers may optionally use this field to help\n // manage rotations (i.e., to pick the sequence number from the correct hash chain).\n bytes commitmentMetadata;\n // Optional URI where clients can retrieve revelations for the provider.\n // Client SDKs can use this field to automatically determine how to retrieve random values for each provider.\n // TODO: specify the API that must be implemented at this URI\n bytes uri;\n // The first sequence number that is *not* included in the current commitment (i.e., an exclusive end index).\n // The contract maintains the invariant that sequenceNumber <= endSequenceNumber.\n // If sequenceNumber == endSequenceNumber, the provider must rotate their commitment to add additional random values.\n uint64 endSequenceNumber;\n // The sequence number that will be assigned to the next inbound user request.\n uint64 sequenceNumber;\n // The current commitment represents an index/value in the provider's hash chain.\n // These values are used to verify requests for future sequence numbers. Note that\n // currentCommitmentSequenceNumber < sequenceNumber.\n //\n // The currentCommitment advances forward through the provider's hash chain as values\n // are revealed on-chain.\n bytes32 currentCommitment;\n uint64 currentCommitmentSequenceNumber;\n // An address that is authorized to set / withdraw fees on behalf of this provider.\n address feeManager;\n // Maximum number of hashes to record in a request. This should be set according to the maximum gas limit\n // the provider supports for callbacks.\n uint32 maxNumHashes;\n // Default gas limit to use for callbacks.\n uint32 defaultGasLimit;\n }\n\n struct Request {\n // Storage slot 1 //\n address provider;\n uint64 sequenceNumber;\n // The number of hashes required to verify the provider revelation.\n uint32 numHashes;\n // Storage slot 2 //\n // The commitment is keccak256(userCommitment, providerCommitment). Storing the hash instead of both saves 20k gas by\n // eliminating 1 store.\n bytes32 commitment;\n // Storage slot 3 //\n // The number of the block where this request was created.\n // Note that we're using a uint64 such that we have an additional space for an address and other fields in\n // this storage slot. Although block.number returns a uint256, 64 bits should be plenty to index all of the\n // blocks ever generated.\n uint64 blockNumber;\n // The address that requested this random number.\n address requester;\n // If true, incorporate the blockhash of blockNumber into the generated random value.\n bool useBlockhash;\n // Status flag for requests with callbacks. See EntropyConstants for the possible values of this flag.\n uint8 callbackStatus;\n // The gasLimit in units of 10k gas. (i.e., 2 = 20k gas). We're using units of 10k in order to fit this\n // field into the remaining 2 bytes of this storage slot. The dynamic range here is 10k - 655M, which should\n // cover all real-world use cases.\n uint16 gasLimit10k;\n }\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/IEntropy.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nimport \"./EntropyEvents.sol\";\nimport \"./EntropyEventsV2.sol\";\nimport \"./EntropyStructsV2.sol\";\nimport \"./IEntropyV2.sol\";\n\ninterface IEntropy is EntropyEvents, EntropyEventsV2, IEntropyV2 {\n // Register msg.sender as a randomness provider. The arguments are the provider's configuration parameters\n // and initial commitment. Re-registering the same provider rotates the provider's commitment (and updates\n // the feeInWei).\n //\n // chainLength is the number of values in the hash chain *including* the commitment, that is, chainLength >= 1.\n function register(\n uint128 feeInWei,\n bytes32 commitment,\n bytes calldata commitmentMetadata,\n uint64 chainLength,\n bytes calldata uri\n ) external;\n\n // Withdraw a portion of the accumulated fees for the provider msg.sender.\n // Calling this function will transfer `amount` wei to the caller (provided that they have accrued a sufficient\n // balance of fees in the contract).\n function withdraw(uint128 amount) external;\n\n // Withdraw a portion of the accumulated fees for provider. The msg.sender must be the fee manager for this provider.\n // Calling this function will transfer `amount` wei to the caller (provided that they have accrued a sufficient\n // balance of fees in the contract).\n function withdrawAsFeeManager(address provider, uint128 amount) external;\n\n // As a user, request a random number from `provider`. Prior to calling this method, the user should\n // generate a random number x and keep it secret. The user should then compute hash(x) and pass that\n // as the userCommitment argument. (You may call the constructUserCommitment method to compute the hash.)\n //\n // This method returns a sequence number. The user should pass this sequence number to\n // their chosen provider (the exact method for doing so will depend on the provider) to retrieve the provider's\n // number. The user should then call fulfillRequest to construct the final random number.\n //\n // This method will revert unless the caller provides a sufficient fee (at least getFee(provider)) as msg.value.\n // Note that excess value is *not* refunded to the caller.\n function request(\n address provider,\n bytes32 userCommitment,\n bool useBlockHash\n ) external payable returns (uint64 assignedSequenceNumber);\n\n // Request a random number. The method expects the provider address and a secret random number\n // in the arguments. It returns a sequence number.\n //\n // The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n // The `entropyCallback` method on that interface will receive a callback with the generated random number.\n // `entropyCallback` will be run with the provider's default gas limit (see `getProviderInfo(provider).defaultGasLimit`).\n // If your callback needs additional gas, please use `requestWithCallbackAndGasLimit`.\n //\n // This method will revert unless the caller provides a sufficient fee (at least `getFee(provider)`) as msg.value.\n // Note that excess value is *not* refunded to the caller.\n function requestWithCallback(\n address provider,\n bytes32 userRandomNumber\n ) external payable returns (uint64 assignedSequenceNumber);\n\n // Fulfill a request for a random number. This method validates the provided userRandomness and provider's proof\n // against the corresponding commitments in the in-flight request. If both values are validated, this function returns\n // the corresponding random number.\n //\n // Note that this function can only be called once per in-flight request. Calling this function deletes the stored\n // request information (so that the contract doesn't use a linear amount of storage in the number of requests).\n // If you need to use the returned random number more than once, you are responsible for storing it.\n function reveal(\n address provider,\n uint64 sequenceNumber,\n bytes32 userRevelation,\n bytes32 providerRevelation\n ) external returns (bytes32 randomNumber);\n\n // Fulfill a request for a random number. This method validates the provided userRandomness\n // and provider's revelation against the corresponding commitment in the in-flight request. If both values are validated\n // and the requestor address is a contract address, this function calls the requester's entropyCallback method with the\n // sequence number, provider address and the random number as arguments. Else if the requestor is an EOA, it won't call it.\n //\n // Note that this function can only be called once per in-flight request. Calling this function deletes the stored\n // request information (so that the contract doesn't use a linear amount of storage in the number of requests).\n // If you need to use the returned random number more than once, you are responsible for storing it.\n //\n // Anyone can call this method to fulfill a request, but the callback will only be made to the original requester.\n function revealWithCallback(\n address provider,\n uint64 sequenceNumber,\n bytes32 userRandomNumber,\n bytes32 providerRevelation\n ) external;\n\n function getProviderInfo(\n address provider\n ) external view returns (EntropyStructs.ProviderInfo memory info);\n\n function getRequest(\n address provider,\n uint64 sequenceNumber\n ) external view returns (EntropyStructs.Request memory req);\n\n // Get the fee charged by provider for a request with the default gasLimit (`request` or `requestWithCallback`).\n // If you are calling any of the `requestV2` methods, please use `getFeeV2`.\n function getFee(address provider) external view returns (uint128 feeAmount);\n\n function getAccruedPythFees()\n external\n view\n returns (uint128 accruedPythFeesInWei);\n\n function setProviderFee(uint128 newFeeInWei) external;\n\n function setProviderFeeAsFeeManager(\n address provider,\n uint128 newFeeInWei\n ) external;\n\n function setProviderUri(bytes calldata newUri) external;\n\n // Set manager as the fee manager for the provider msg.sender.\n // After calling this function, manager will be able to set the provider's fees and withdraw them.\n // Only one address can be the fee manager for a provider at a time -- calling this function again with a new value\n // will override the previous value. Call this function with the all-zero address to disable the fee manager role.\n function setFeeManager(address manager) external;\n\n // Set the maximum number of hashes to record in a request. This should be set according to the maximum gas limit\n // the provider supports for callbacks.\n function setMaxNumHashes(uint32 maxNumHashes) external;\n\n // Set the default gas limit for a request. If 0, no\n function setDefaultGasLimit(uint32 gasLimit) external;\n\n // Advance the provider commitment and increase the sequence number.\n // This is used to reduce the `numHashes` required for future requests which leads to reduced gas usage.\n function advanceProviderCommitment(\n address provider,\n uint64 advancedSequenceNumber,\n bytes32 providerRevelation\n ) external;\n\n function constructUserCommitment(\n bytes32 userRandomness\n ) external pure returns (bytes32 userCommitment);\n\n function combineRandomValues(\n bytes32 userRandomness,\n bytes32 providerRandomness,\n bytes32 blockHash\n ) external pure returns (bytes32 combinedRandomness);\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nabstract contract IEntropyConsumer {\n // This method is called by Entropy to provide the random number to the consumer.\n // It asserts that the msg.sender is the Entropy contract. It is not meant to be\n // override by the consumer.\n function _entropyCallback(\n uint64 sequence,\n address provider,\n bytes32 randomNumber\n ) external {\n address entropy = getEntropy();\n require(entropy != address(0), \"Entropy address not set\");\n require(msg.sender == entropy, \"Only Entropy can call this function\");\n\n entropyCallback(sequence, provider, randomNumber);\n }\n\n // getEntropy returns Entropy contract address. The method is being used to check that the\n // callback is indeed from Entropy contract. The consumer is expected to implement this method.\n // Entropy address can be found here - https://docs.pyth.network/entropy/contract-addresses\n function getEntropy() internal view virtual returns (address);\n\n // This method is expected to be implemented by the consumer to handle the random number.\n // It will be called by _entropyCallback after _entropyCallback ensures that the call is\n // indeed from Entropy contract.\n function entropyCallback(\n uint64 sequence,\n address provider,\n bytes32 randomNumber\n ) internal virtual;\n}\n" + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "content": "// SPDX-License-Identifier: Apache 2\npragma solidity ^0.8.0;\n\nimport \"./EntropyEvents.sol\";\nimport \"./EntropyEventsV2.sol\";\nimport \"./EntropyStructsV2.sol\";\n\ninterface IEntropyV2 is EntropyEventsV2 {\n /// @notice Request a random number using the default provider with default gas limit\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value.\n /// Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2()\n external\n payable\n returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number using the default provider with specified gas limit\n /// @param gasLimit The gas limit for the callback function.\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value.\n /// Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2(\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number from a specific provider with specified gas limit\n /// @param provider The address of the provider to request from\n /// @param gasLimit The gas limit for the callback function\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n /// Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n ///\n /// Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n /// This approach modifies the security guarantees such that a dishonest validator and provider can\n /// collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n /// now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n /// call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\n function requestV2(\n address provider,\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Request a random number from a specific provider with a user-provided random number and gas limit\n /// @param provider The address of the provider to request from\n /// @param userRandomNumber A random number provided by the user for additional entropy\n /// @param gasLimit The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\n /// @return assignedSequenceNumber A unique identifier for this request\n /// @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n /// The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n /// the generated random number.\n ///\n /// `entropyCallback` will be run with the `gasLimit` provided to this function.\n /// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n /// by the provider's configured default limit.\n ///\n /// This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n /// Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n /// prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n function requestV2(\n address provider,\n bytes32 userRandomNumber,\n uint32 gasLimit\n ) external payable returns (uint64 assignedSequenceNumber);\n\n /// @notice Get information about a specific entropy provider\n /// @param provider The address of the provider to query\n /// @return info The provider information including configuration, fees, and operational status\n /// @dev This method returns detailed information about a provider's configuration and capabilities.\n /// The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits.\n function getProviderInfoV2(\n address provider\n ) external view returns (EntropyStructsV2.ProviderInfo memory info);\n\n /// @notice Get the address of the default entropy provider\n /// @return provider The address of the default provider\n /// @dev This method returns the address of the provider that will be used when no specific provider is specified\n /// in the requestV2 calls. The default provider can be used to get the base fee and gas limit information.\n function getDefaultProvider() external view returns (address provider);\n\n /// @notice Get information about a specific request\n /// @param provider The address of the provider that handled the request\n /// @param sequenceNumber The unique identifier of the request\n /// @return req The request information including status, random number, and other metadata\n /// @dev This method allows querying the state of a previously made request. The returned Request struct\n /// contains information about whether the request was fulfilled, the generated random number (if available),\n /// and other metadata about the request.\n function getRequestV2(\n address provider,\n uint64 sequenceNumber\n ) external view returns (EntropyStructsV2.Request memory req);\n\n /// @notice Get the fee charged by the default provider for the default gas limit\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the base fee required to make a request using the default provider with\n /// the default gas limit. This fee should be passed as msg.value when calling requestV2().\n /// The fee can change over time, so this method should be called before each request.\n function getFeeV2() external view returns (uint128 feeAmount);\n\n /// @notice Get the fee charged by the default provider for a specific gas limit\n /// @param gasLimit The gas limit for the callback function\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the fee required to make a request using the default provider with\n /// the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit).\n /// The fee can change over time, so this method should be called before each request.\n function getFeeV2(\n uint32 gasLimit\n ) external view returns (uint128 feeAmount);\n\n /// @notice Get the fee charged by a specific provider for a request with a given gas limit\n /// @param provider The address of the provider to query\n /// @param gasLimit The gas limit for the callback function\n /// @return feeAmount The fee amount in wei\n /// @dev This method returns the fee required to make a request using the specified provider with\n /// the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit)\n /// or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method\n /// should be called before each request.\n function getFeeV2(\n address provider,\n uint32 gasLimit\n ) external view returns (uint128 feeAmount);\n}\n" + }, + "contracts/PlaylistReputationNFT.sol": { + "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport \"erc721a/contracts/ERC721A.sol\";\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\nimport {IEntropyConsumer} from \"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\";\nimport {IEntropy} from \"@pythnetwork/entropy-sdk-solidity/IEntropy.sol\";\n\ncontract PlaylistReputationNFT is ERC721A, Ownable, IEntropyConsumer {\n // Core NFT data\n struct PlaylistInfo {\n string name;\n string playlistId;\n uint256 reputation; // 0-100 scale\n uint256 createdAt;\n bool isActive;\n }\n \n // Entropy for random decay\n IEntropy entropy;\n address entropyProvider;\n \n // Mappings\n mapping(uint256 => PlaylistInfo) public playlists;\n mapping(uint64 => uint256) public pendingDecayRequests; // sequenceNumber -> tokenId\n mapping(address => mapping(uint256 => bool)) public hasVoted; // user -> tokenId -> voted\n \n // Constants\n uint256 public constant MAX_REPUTATION = 100;\n uint256 public constant GROWTH_PER_VOTE = 5;\n uint256 public constant DECAY_CHANCE = 30; // 30% chance of decay\n \n event PlaylistMinted(uint256 indexed tokenId, string name, string playlistId);\n event ReputationGrown(uint256 indexed tokenId, uint256 newReputation, address voter);\n event DecayTriggered(uint256 indexed tokenId, uint64 sequenceNumber);\n event ReputationDecayed(uint256 indexed tokenId, uint256 newReputation);\n\n constructor(address _entropy, address _provider) ERC721A(\"PlaylistRep\", \"PLREP\") Ownable(msg.sender) {\n entropy = IEntropy(_entropy);\n entropyProvider = _provider;\n }\n\n // ========== DETERMINISTIC GROWTH ==========\n \n function mintPlaylist(address to, string calldata name, string calldata playlistId) external returns (uint256) {\n uint256 tokenId = _nextTokenId();\n _mint(to, 1);\n \n playlists[tokenId] = PlaylistInfo({\n name: name,\n playlistId: playlistId,\n reputation: 50, // Start at 50% reputation\n createdAt: block.timestamp,\n isActive: true\n });\n \n emit PlaylistMinted(tokenId, name, playlistId);\n return tokenId;\n }\n\n function voteForPlaylist(uint256 tokenId) external {\n require(_exists(tokenId), \"Playlist does not exist\");\n require(!hasVoted[msg.sender][tokenId], \"Already voted for this playlist\");\n require(playlists[tokenId].isActive, \"Playlist is inactive\");\n \n PlaylistInfo storage playlist = playlists[tokenId];\n \n // Grow reputation deterministically\n if (playlist.reputation + GROWTH_PER_VOTE <= MAX_REPUTATION) {\n playlist.reputation += GROWTH_PER_VOTE;\n } else {\n playlist.reputation = MAX_REPUTATION;\n }\n \n hasVoted[msg.sender][tokenId] = true;\n emit ReputationGrown(tokenId, playlist.reputation, msg.sender);\n }\n\n // ========== RANDOM DECAY ==========\n \n function triggerDecay(uint256 tokenId) external payable {\n require(_exists(tokenId), \"Playlist does not exist\");\n require(playlists[tokenId].isActive, \"Playlist is inactive\");\n require(playlists[tokenId].reputation > 0, \"Reputation already at minimum\");\n \n uint128 requestFee = entropy.getFee(entropyProvider);\n require(msg.value >= requestFee, \"Not enough fees\");\n\n uint64 sequenceNumber = entropy.requestWithCallback{value: requestFee}(\n entropyProvider,\n bytes32(0) // No user random number needed\n );\n\n pendingDecayRequests[sequenceNumber] = tokenId;\n emit DecayTriggered(tokenId, sequenceNumber);\n }\n\n function entropyCallback(uint64 sequenceNumber, address provider, bytes32 randomNumber) internal override {\n uint256 tokenId = pendingDecayRequests[sequenceNumber];\n require(tokenId != 0, \"Request not found\");\n\n PlaylistInfo storage playlist = playlists[tokenId];\n \n // 30% chance of decay\n uint256 randomValue = uint256(randomNumber) % 100;\n if (randomValue < DECAY_CHANCE) {\n // Decay by 10% of current reputation\n uint256 decayAmount = playlist.reputation / 10;\n if (playlist.reputation > decayAmount) {\n playlist.reputation -= decayAmount;\n } else {\n playlist.reputation = 0;\n playlist.isActive = false;\n }\n emit ReputationDecayed(tokenId, playlist.reputation);\n }\n \n delete pendingDecayRequests[sequenceNumber];\n }\n\n function getEntropy() internal view override returns (address) {\n return address(entropy);\n }\n\n // ========== UTILITY FUNCTIONS ==========\n \n function getPlaylistInfo(uint256 tokenId) external view returns (PlaylistInfo memory) {\n require(_exists(tokenId), \"Playlist does not exist\");\n return playlists[tokenId];\n }\n\n function tokensOfOwner(address owner) public view returns (uint256[] memory) {\n unchecked {\n uint256 tokenIdsIdx;\n address currOwnershipAddr;\n uint256 tokenIdsLength = balanceOf(owner);\n uint256[] memory tokenIds = new uint256[](tokenIdsLength);\n TokenOwnership memory ownership;\n for (\n uint256 i = _startTokenId();\n tokenIdsIdx != tokenIdsLength;\n ++i\n ) {\n ownership = _ownershipAt(i);\n if (ownership.burned) continue;\n if (ownership.addr != address(0))\n currOwnershipAddr = ownership.addr;\n if (currOwnershipAddr == owner) tokenIds[tokenIdsIdx++] = i;\n }\n return tokenIds;\n }\n }\n}" + }, + "erc721a/contracts/ERC721A.sol": { + "content": "// SPDX-License-Identifier: MIT\n// ERC721A Contracts v4.3.0\n// Creator: Chiru Labs\n\npragma solidity ^0.8.4;\n\nimport './IERC721A.sol';\n\n/**\n * @dev Interface of ERC721 token receiver.\n */\ninterface ERC721A__IERC721Receiver {\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes calldata data\n ) external returns (bytes4);\n}\n\n/**\n * @title ERC721A\n *\n * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)\n * Non-Fungible Token Standard, including the Metadata extension.\n * Optimized for lower gas during batch mints.\n *\n * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)\n * starting from `_startTokenId()`.\n *\n * The `_sequentialUpTo()` function can be overriden to enable spot mints\n * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`.\n *\n * Assumptions:\n *\n * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.\n * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).\n */\ncontract ERC721A is IERC721A {\n // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).\n struct TokenApprovalRef {\n address value;\n }\n\n // =============================================================\n // CONSTANTS\n // =============================================================\n\n // Mask of an entry in packed address data.\n uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;\n\n // The bit position of `numberMinted` in packed address data.\n uint256 private constant _BITPOS_NUMBER_MINTED = 64;\n\n // The bit position of `numberBurned` in packed address data.\n uint256 private constant _BITPOS_NUMBER_BURNED = 128;\n\n // The bit position of `aux` in packed address data.\n uint256 private constant _BITPOS_AUX = 192;\n\n // Mask of all 256 bits in packed address data except the 64 bits for `aux`.\n uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;\n\n // The bit position of `startTimestamp` in packed ownership.\n uint256 private constant _BITPOS_START_TIMESTAMP = 160;\n\n // The bit mask of the `burned` bit in packed ownership.\n uint256 private constant _BITMASK_BURNED = 1 << 224;\n\n // The bit position of the `nextInitialized` bit in packed ownership.\n uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;\n\n // The bit mask of the `nextInitialized` bit in packed ownership.\n uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;\n\n // The bit position of `extraData` in packed ownership.\n uint256 private constant _BITPOS_EXTRA_DATA = 232;\n\n // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.\n uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;\n\n // The mask of the lower 160 bits for addresses.\n uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;\n\n // The maximum `quantity` that can be minted with {_mintERC2309}.\n // This limit is to prevent overflows on the address data entries.\n // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}\n // is required to cause an overflow, which is unrealistic.\n uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;\n\n // The `Transfer` event signature is given by:\n // `keccak256(bytes(\"Transfer(address,address,uint256)\"))`.\n bytes32 private constant _TRANSFER_EVENT_SIGNATURE =\n 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;\n\n // =============================================================\n // STORAGE\n // =============================================================\n\n // The next token ID to be minted.\n uint256 private _currentIndex;\n\n // The number of tokens burned.\n uint256 private _burnCounter;\n\n // Token name\n string private _name;\n\n // Token symbol\n string private _symbol;\n\n // Mapping from token ID to ownership details\n // An empty struct value does not necessarily mean the token is unowned.\n // See {_packedOwnershipOf} implementation for details.\n //\n // Bits Layout:\n // - [0..159] `addr`\n // - [160..223] `startTimestamp`\n // - [224] `burned`\n // - [225] `nextInitialized`\n // - [232..255] `extraData`\n mapping(uint256 => uint256) private _packedOwnerships;\n\n // Mapping owner address to address data.\n //\n // Bits Layout:\n // - [0..63] `balance`\n // - [64..127] `numberMinted`\n // - [128..191] `numberBurned`\n // - [192..255] `aux`\n mapping(address => uint256) private _packedAddressData;\n\n // Mapping from token ID to approved address.\n mapping(uint256 => TokenApprovalRef) private _tokenApprovals;\n\n // Mapping from owner to operator approvals\n mapping(address => mapping(address => bool)) private _operatorApprovals;\n\n // The amount of tokens minted above `_sequentialUpTo()`.\n // We call these spot mints (i.e. non-sequential mints).\n uint256 private _spotMinted;\n\n // =============================================================\n // CONSTRUCTOR\n // =============================================================\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n _currentIndex = _startTokenId();\n\n if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector);\n }\n\n // =============================================================\n // TOKEN COUNTING OPERATIONS\n // =============================================================\n\n /**\n * @dev Returns the starting token ID for sequential mints.\n *\n * Override this function to change the starting token ID for sequential mints.\n *\n * Note: The value returned must never change after any tokens have been minted.\n */\n function _startTokenId() internal view virtual returns (uint256) {\n return 0;\n }\n\n /**\n * @dev Returns the maximum token ID (inclusive) for sequential mints.\n *\n * Override this function to return a value less than 2**256 - 1,\n * but greater than `_startTokenId()`, to enable spot (non-sequential) mints.\n *\n * Note: The value returned must never change after any tokens have been minted.\n */\n function _sequentialUpTo() internal view virtual returns (uint256) {\n return type(uint256).max;\n }\n\n /**\n * @dev Returns the next token ID to be minted.\n */\n function _nextTokenId() internal view virtual returns (uint256) {\n return _currentIndex;\n }\n\n /**\n * @dev Returns the total number of tokens in existence.\n * Burned tokens will reduce the count.\n * To get the total number of tokens minted, please see {_totalMinted}.\n */\n function totalSupply() public view virtual override returns (uint256 result) {\n // Counter underflow is impossible as `_burnCounter` cannot be incremented\n // more than `_currentIndex + _spotMinted - _startTokenId()` times.\n unchecked {\n // With spot minting, the intermediate `result` can be temporarily negative,\n // and the computation must be unchecked.\n result = _currentIndex - _burnCounter - _startTokenId();\n if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;\n }\n }\n\n /**\n * @dev Returns the total amount of tokens minted in the contract.\n */\n function _totalMinted() internal view virtual returns (uint256 result) {\n // Counter underflow is impossible as `_currentIndex` does not decrement,\n // and it is initialized to `_startTokenId()`.\n unchecked {\n result = _currentIndex - _startTokenId();\n if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;\n }\n }\n\n /**\n * @dev Returns the total number of tokens burned.\n */\n function _totalBurned() internal view virtual returns (uint256) {\n return _burnCounter;\n }\n\n /**\n * @dev Returns the total number of tokens that are spot-minted.\n */\n function _totalSpotMinted() internal view virtual returns (uint256) {\n return _spotMinted;\n }\n\n // =============================================================\n // ADDRESS DATA OPERATIONS\n // =============================================================\n\n /**\n * @dev Returns the number of tokens in `owner`'s account.\n */\n function balanceOf(address owner) public view virtual override returns (uint256) {\n if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector);\n return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;\n }\n\n /**\n * Returns the number of tokens minted by `owner`.\n */\n function _numberMinted(address owner) internal view returns (uint256) {\n return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;\n }\n\n /**\n * Returns the number of tokens burned by or on behalf of `owner`.\n */\n function _numberBurned(address owner) internal view returns (uint256) {\n return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;\n }\n\n /**\n * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).\n */\n function _getAux(address owner) internal view returns (uint64) {\n return uint64(_packedAddressData[owner] >> _BITPOS_AUX);\n }\n\n /**\n * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).\n * If there are multiple variables, please pack them into a uint64.\n */\n function _setAux(address owner, uint64 aux) internal virtual {\n uint256 packed = _packedAddressData[owner];\n uint256 auxCasted;\n // Cast `aux` with assembly to avoid redundant masking.\n assembly {\n auxCasted := aux\n }\n packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);\n _packedAddressData[owner] = packed;\n }\n\n // =============================================================\n // IERC165\n // =============================================================\n\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30000 gas.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n // The interface IDs are constants representing the first 4 bytes\n // of the XOR of all function selectors in the interface.\n // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)\n // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)\n return\n interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.\n interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.\n interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.\n }\n\n // =============================================================\n // IERC721Metadata\n // =============================================================\n\n /**\n * @dev Returns the token collection name.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {\n if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector);\n\n string memory baseURI = _baseURI();\n return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';\n }\n\n /**\n * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n * by default, it can be overridden in child contracts.\n */\n function _baseURI() internal view virtual returns (string memory) {\n return '';\n }\n\n // =============================================================\n // OWNERSHIPS OPERATIONS\n // =============================================================\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) public view virtual override returns (address) {\n return address(uint160(_packedOwnershipOf(tokenId)));\n }\n\n /**\n * @dev Gas spent here starts off proportional to the maximum mint batch size.\n * It gradually moves to O(1) as tokens get transferred around over time.\n */\n function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {\n return _unpackedOwnership(_packedOwnershipOf(tokenId));\n }\n\n /**\n * @dev Returns the unpacked `TokenOwnership` struct at `index`.\n */\n function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {\n return _unpackedOwnership(_packedOwnerships[index]);\n }\n\n /**\n * @dev Returns whether the ownership slot at `index` is initialized.\n * An uninitialized slot does not necessarily mean that the slot has no owner.\n */\n function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {\n return _packedOwnerships[index] != 0;\n }\n\n /**\n * @dev Initializes the ownership slot minted at `index` for efficiency purposes.\n */\n function _initializeOwnershipAt(uint256 index) internal virtual {\n if (_packedOwnerships[index] == 0) {\n _packedOwnerships[index] = _packedOwnershipOf(index);\n }\n }\n\n /**\n * @dev Returns the packed ownership data of `tokenId`.\n */\n function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {\n if (_startTokenId() <= tokenId) {\n packed = _packedOwnerships[tokenId];\n\n if (tokenId > _sequentialUpTo()) {\n if (_packedOwnershipExists(packed)) return packed;\n _revert(OwnerQueryForNonexistentToken.selector);\n }\n\n // If the data at the starting slot does not exist, start the scan.\n if (packed == 0) {\n if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);\n // Invariant:\n // There will always be an initialized ownership slot\n // (i.e. `ownership.addr != address(0) && ownership.burned == false`)\n // before an unintialized ownership slot\n // (i.e. `ownership.addr == address(0) && ownership.burned == false`)\n // Hence, `tokenId` will not underflow.\n //\n // We can directly compare the packed value.\n // If the address is zero, packed will be zero.\n for (;;) {\n unchecked {\n packed = _packedOwnerships[--tokenId];\n }\n if (packed == 0) continue;\n if (packed & _BITMASK_BURNED == 0) return packed;\n // Otherwise, the token is burned, and we must revert.\n // This handles the case of batch burned tokens, where only the burned bit\n // of the starting slot is set, and remaining slots are left uninitialized.\n _revert(OwnerQueryForNonexistentToken.selector);\n }\n }\n // Otherwise, the data exists and we can skip the scan.\n // This is possible because we have already achieved the target condition.\n // This saves 2143 gas on transfers of initialized tokens.\n // If the token is not burned, return `packed`. Otherwise, revert.\n if (packed & _BITMASK_BURNED == 0) return packed;\n }\n _revert(OwnerQueryForNonexistentToken.selector);\n }\n\n /**\n * @dev Returns the unpacked `TokenOwnership` struct from `packed`.\n */\n function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {\n ownership.addr = address(uint160(packed));\n ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);\n ownership.burned = packed & _BITMASK_BURNED != 0;\n ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);\n }\n\n /**\n * @dev Packs ownership data into a single uint256.\n */\n function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {\n assembly {\n // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.\n owner := and(owner, _BITMASK_ADDRESS)\n // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.\n result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))\n }\n }\n\n /**\n * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.\n */\n function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {\n // For branchless setting of the `nextInitialized` flag.\n assembly {\n // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.\n result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))\n }\n }\n\n // =============================================================\n // APPROVAL OPERATIONS\n // =============================================================\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n */\n function approve(address to, uint256 tokenId) public payable virtual override {\n _approve(to, tokenId, true);\n }\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) public view virtual override returns (address) {\n if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector);\n\n return _tokenApprovals[tokenId].value;\n }\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom}\n * for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n _operatorApprovals[_msgSenderERC721A()][operator] = approved;\n emit ApprovalForAll(_msgSenderERC721A(), operator, approved);\n }\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {\n return _operatorApprovals[owner][operator];\n }\n\n /**\n * @dev Returns whether `tokenId` exists.\n *\n * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n *\n * Tokens start existing when they are minted. See {_mint}.\n */\n function _exists(uint256 tokenId) internal view virtual returns (bool result) {\n if (_startTokenId() <= tokenId) {\n if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]);\n\n if (tokenId < _currentIndex) {\n uint256 packed;\n while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;\n result = packed & _BITMASK_BURNED == 0;\n }\n }\n }\n\n /**\n * @dev Returns whether `packed` represents a token that exists.\n */\n function _packedOwnershipExists(uint256 packed) private pure returns (bool result) {\n assembly {\n // The following is equivalent to `owner != address(0) && burned == false`.\n // Symbolically tested.\n result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED))\n }\n }\n\n /**\n * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.\n */\n function _isSenderApprovedOrOwner(\n address approvedAddress,\n address owner,\n address msgSender\n ) private pure returns (bool result) {\n assembly {\n // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.\n owner := and(owner, _BITMASK_ADDRESS)\n // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.\n msgSender := and(msgSender, _BITMASK_ADDRESS)\n // `msgSender == owner || msgSender == approvedAddress`.\n result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))\n }\n }\n\n /**\n * @dev Returns the storage slot and value for the approved address of `tokenId`.\n */\n function _getApprovedSlotAndAddress(uint256 tokenId)\n private\n view\n returns (uint256 approvedAddressSlot, address approvedAddress)\n {\n TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];\n // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.\n assembly {\n approvedAddressSlot := tokenApproval.slot\n approvedAddress := sload(approvedAddressSlot)\n }\n }\n\n // =============================================================\n // TRANSFER OPERATIONS\n // =============================================================\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token\n * by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public payable virtual override {\n uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);\n\n // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.\n from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));\n\n if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);\n\n (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);\n\n // The nested ifs save around 20+ gas over a compound boolean condition.\n if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))\n if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);\n\n _beforeTokenTransfers(from, to, tokenId, 1);\n\n // Clear approvals from the previous owner.\n assembly {\n if approvedAddress {\n // This is equivalent to `delete _tokenApprovals[tokenId]`.\n sstore(approvedAddressSlot, 0)\n }\n }\n\n // Underflow of the sender's balance is impossible because we check for\n // ownership above and the recipient's balance can't realistically overflow.\n // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.\n unchecked {\n // We can directly increment and decrement the balances.\n --_packedAddressData[from]; // Updates: `balance -= 1`.\n ++_packedAddressData[to]; // Updates: `balance += 1`.\n\n // Updates:\n // - `address` to the next owner.\n // - `startTimestamp` to the timestamp of transfering.\n // - `burned` to `false`.\n // - `nextInitialized` to `true`.\n _packedOwnerships[tokenId] = _packOwnershipData(\n to,\n _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)\n );\n\n // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .\n if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {\n uint256 nextTokenId = tokenId + 1;\n // If the next slot's address is zero and not burned (i.e. packed value is zero).\n if (_packedOwnerships[nextTokenId] == 0) {\n // If the next slot is within bounds.\n if (nextTokenId != _currentIndex) {\n // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.\n _packedOwnerships[nextTokenId] = prevOwnershipPacked;\n }\n }\n }\n }\n\n // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.\n uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;\n assembly {\n // Emit the `Transfer` event.\n log4(\n 0, // Start of data (0, since no data).\n 0, // End of data (0, since no data).\n _TRANSFER_EVENT_SIGNATURE, // Signature.\n from, // `from`.\n toMasked, // `to`.\n tokenId // `tokenId`.\n )\n }\n if (toMasked == 0) _revert(TransferToZeroAddress.selector);\n\n _afterTokenTransfers(from, to, tokenId, 1);\n }\n\n /**\n * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public payable virtual override {\n safeTransferFrom(from, to, tokenId, '');\n }\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token\n * by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement\n * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public payable virtual override {\n transferFrom(from, to, tokenId);\n if (to.code.length != 0)\n if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {\n _revert(TransferToNonERC721ReceiverImplementer.selector);\n }\n }\n\n /**\n * @dev Hook that is called before a set of serially-ordered token IDs\n * are about to be transferred. This includes minting.\n * And also called before burning one token.\n *\n * `startTokenId` - the first token ID to be transferred.\n * `quantity` - the amount to be transferred.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be\n * transferred to `to`.\n * - When `from` is zero, `tokenId` will be minted for `to`.\n * - When `to` is zero, `tokenId` will be burned by `from`.\n * - `from` and `to` are never both zero.\n */\n function _beforeTokenTransfers(\n address from,\n address to,\n uint256 startTokenId,\n uint256 quantity\n ) internal virtual {}\n\n /**\n * @dev Hook that is called after a set of serially-ordered token IDs\n * have been transferred. This includes minting.\n * And also called after one token has been burned.\n *\n * `startTokenId` - the first token ID to be transferred.\n * `quantity` - the amount to be transferred.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been\n * transferred to `to`.\n * - When `from` is zero, `tokenId` has been minted for `to`.\n * - When `to` is zero, `tokenId` has been burned by `from`.\n * - `from` and `to` are never both zero.\n */\n function _afterTokenTransfers(\n address from,\n address to,\n uint256 startTokenId,\n uint256 quantity\n ) internal virtual {}\n\n /**\n * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.\n *\n * `from` - Previous owner of the given token ID.\n * `to` - Target address that will receive the token.\n * `tokenId` - Token ID to be transferred.\n * `_data` - Optional data to send along with the call.\n *\n * Returns whether the call correctly returned the expected magic value.\n */\n function _checkContractOnERC721Received(\n address from,\n address to,\n uint256 tokenId,\n bytes memory _data\n ) private returns (bool) {\n try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (\n bytes4 retval\n ) {\n return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;\n } catch (bytes memory reason) {\n if (reason.length == 0) {\n _revert(TransferToNonERC721ReceiverImplementer.selector);\n }\n assembly {\n revert(add(32, reason), mload(reason))\n }\n }\n }\n\n // =============================================================\n // MINT OPERATIONS\n // =============================================================\n\n /**\n * @dev Mints `quantity` tokens and transfers them to `to`.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `quantity` must be greater than 0.\n *\n * Emits a {Transfer} event for each mint.\n */\n function _mint(address to, uint256 quantity) internal virtual {\n uint256 startTokenId = _currentIndex;\n if (quantity == 0) _revert(MintZeroQuantity.selector);\n\n _beforeTokenTransfers(address(0), to, startTokenId, quantity);\n\n // Overflows are incredibly unrealistic.\n // `balance` and `numberMinted` have a maximum limit of 2**64.\n // `tokenId` has a maximum limit of 2**256.\n unchecked {\n // Updates:\n // - `address` to the owner.\n // - `startTimestamp` to the timestamp of minting.\n // - `burned` to `false`.\n // - `nextInitialized` to `quantity == 1`.\n _packedOwnerships[startTokenId] = _packOwnershipData(\n to,\n _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)\n );\n\n // Updates:\n // - `balance += quantity`.\n // - `numberMinted += quantity`.\n //\n // We can directly add to the `balance` and `numberMinted`.\n _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);\n\n // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.\n uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;\n\n if (toMasked == 0) _revert(MintToZeroAddress.selector);\n\n uint256 end = startTokenId + quantity;\n uint256 tokenId = startTokenId;\n\n if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);\n\n do {\n assembly {\n // Emit the `Transfer` event.\n log4(\n 0, // Start of data (0, since no data).\n 0, // End of data (0, since no data).\n _TRANSFER_EVENT_SIGNATURE, // Signature.\n 0, // `address(0)`.\n toMasked, // `to`.\n tokenId // `tokenId`.\n )\n }\n // The `!=` check ensures that large values of `quantity`\n // that overflows uint256 will make the loop run out of gas.\n } while (++tokenId != end);\n\n _currentIndex = end;\n }\n _afterTokenTransfers(address(0), to, startTokenId, quantity);\n }\n\n /**\n * @dev Mints `quantity` tokens and transfers them to `to`.\n *\n * This function is intended for efficient minting only during contract creation.\n *\n * It emits only one {ConsecutiveTransfer} as defined in\n * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),\n * instead of a sequence of {Transfer} event(s).\n *\n * Calling this function outside of contract creation WILL make your contract\n * non-compliant with the ERC721 standard.\n * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309\n * {ConsecutiveTransfer} event is only permissible during contract creation.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `quantity` must be greater than 0.\n *\n * Emits a {ConsecutiveTransfer} event.\n */\n function _mintERC2309(address to, uint256 quantity) internal virtual {\n uint256 startTokenId = _currentIndex;\n if (to == address(0)) _revert(MintToZeroAddress.selector);\n if (quantity == 0) _revert(MintZeroQuantity.selector);\n if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);\n\n _beforeTokenTransfers(address(0), to, startTokenId, quantity);\n\n // Overflows are unrealistic due to the above check for `quantity` to be below the limit.\n unchecked {\n // Updates:\n // - `balance += quantity`.\n // - `numberMinted += quantity`.\n //\n // We can directly add to the `balance` and `numberMinted`.\n _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);\n\n // Updates:\n // - `address` to the owner.\n // - `startTimestamp` to the timestamp of minting.\n // - `burned` to `false`.\n // - `nextInitialized` to `quantity == 1`.\n _packedOwnerships[startTokenId] = _packOwnershipData(\n to,\n _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)\n );\n\n if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);\n\n emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);\n\n _currentIndex = startTokenId + quantity;\n }\n _afterTokenTransfers(address(0), to, startTokenId, quantity);\n }\n\n /**\n * @dev Safely mints `quantity` tokens and transfers them to `to`.\n *\n * Requirements:\n *\n * - If `to` refers to a smart contract, it must implement\n * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.\n * - `quantity` must be greater than 0.\n *\n * See {_mint}.\n *\n * Emits a {Transfer} event for each mint.\n */\n function _safeMint(\n address to,\n uint256 quantity,\n bytes memory _data\n ) internal virtual {\n _mint(to, quantity);\n\n unchecked {\n if (to.code.length != 0) {\n uint256 end = _currentIndex;\n uint256 index = end - quantity;\n do {\n if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {\n _revert(TransferToNonERC721ReceiverImplementer.selector);\n }\n } while (index < end);\n // This prevents reentrancy to `_safeMint`.\n // It does not prevent reentrancy to `_safeMintSpot`.\n if (_currentIndex != end) revert();\n }\n }\n }\n\n /**\n * @dev Equivalent to `_safeMint(to, quantity, '')`.\n */\n function _safeMint(address to, uint256 quantity) internal virtual {\n _safeMint(to, quantity, '');\n }\n\n /**\n * @dev Mints a single token at `tokenId`.\n *\n * Note: A spot-minted `tokenId` that has been burned can be re-minted again.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `tokenId` must be greater than `_sequentialUpTo()`.\n * - `tokenId` must not exist.\n *\n * Emits a {Transfer} event for each mint.\n */\n function _mintSpot(address to, uint256 tokenId) internal virtual {\n if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector);\n uint256 prevOwnershipPacked = _packedOwnerships[tokenId];\n if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector);\n\n _beforeTokenTransfers(address(0), to, tokenId, 1);\n\n // Overflows are incredibly unrealistic.\n // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1.\n // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1.\n unchecked {\n // Updates:\n // - `address` to the owner.\n // - `startTimestamp` to the timestamp of minting.\n // - `burned` to `false`.\n // - `nextInitialized` to `true` (as `quantity == 1`).\n _packedOwnerships[tokenId] = _packOwnershipData(\n to,\n _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked)\n );\n\n // Updates:\n // - `balance += 1`.\n // - `numberMinted += 1`.\n //\n // We can directly add to the `balance` and `numberMinted`.\n _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1;\n\n // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.\n uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;\n\n if (toMasked == 0) _revert(MintToZeroAddress.selector);\n\n assembly {\n // Emit the `Transfer` event.\n log4(\n 0, // Start of data (0, since no data).\n 0, // End of data (0, since no data).\n _TRANSFER_EVENT_SIGNATURE, // Signature.\n 0, // `address(0)`.\n toMasked, // `to`.\n tokenId // `tokenId`.\n )\n }\n\n ++_spotMinted;\n }\n\n _afterTokenTransfers(address(0), to, tokenId, 1);\n }\n\n /**\n * @dev Safely mints a single token at `tokenId`.\n *\n * Note: A spot-minted `tokenId` that has been burned can be re-minted again.\n *\n * Requirements:\n *\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}.\n * - `tokenId` must be greater than `_sequentialUpTo()`.\n * - `tokenId` must not exist.\n *\n * See {_mintSpot}.\n *\n * Emits a {Transfer} event.\n */\n function _safeMintSpot(\n address to,\n uint256 tokenId,\n bytes memory _data\n ) internal virtual {\n _mintSpot(to, tokenId);\n\n unchecked {\n if (to.code.length != 0) {\n uint256 currentSpotMinted = _spotMinted;\n if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) {\n _revert(TransferToNonERC721ReceiverImplementer.selector);\n }\n // This prevents reentrancy to `_safeMintSpot`.\n // It does not prevent reentrancy to `_safeMint`.\n if (_spotMinted != currentSpotMinted) revert();\n }\n }\n }\n\n /**\n * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`.\n */\n function _safeMintSpot(address to, uint256 tokenId) internal virtual {\n _safeMintSpot(to, tokenId, '');\n }\n\n // =============================================================\n // APPROVAL OPERATIONS\n // =============================================================\n\n /**\n * @dev Equivalent to `_approve(to, tokenId, false)`.\n */\n function _approve(address to, uint256 tokenId) internal virtual {\n _approve(to, tokenId, false);\n }\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the\n * zero address clears previous approvals.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function _approve(\n address to,\n uint256 tokenId,\n bool approvalCheck\n ) internal virtual {\n address owner = ownerOf(tokenId);\n\n if (approvalCheck && _msgSenderERC721A() != owner)\n if (!isApprovedForAll(owner, _msgSenderERC721A())) {\n _revert(ApprovalCallerNotOwnerNorApproved.selector);\n }\n\n _tokenApprovals[tokenId].value = to;\n emit Approval(owner, to, tokenId);\n }\n\n // =============================================================\n // BURN OPERATIONS\n // =============================================================\n\n /**\n * @dev Equivalent to `_burn(tokenId, false)`.\n */\n function _burn(uint256 tokenId) internal virtual {\n _burn(tokenId, false);\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId, bool approvalCheck) internal virtual {\n uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);\n\n address from = address(uint160(prevOwnershipPacked));\n\n (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);\n\n if (approvalCheck) {\n // The nested ifs save around 20+ gas over a compound boolean condition.\n if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))\n if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);\n }\n\n _beforeTokenTransfers(from, address(0), tokenId, 1);\n\n // Clear approvals from the previous owner.\n assembly {\n if approvedAddress {\n // This is equivalent to `delete _tokenApprovals[tokenId]`.\n sstore(approvedAddressSlot, 0)\n }\n }\n\n // Underflow of the sender's balance is impossible because we check for\n // ownership above and the recipient's balance can't realistically overflow.\n // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.\n unchecked {\n // Updates:\n // - `balance -= 1`.\n // - `numberBurned += 1`.\n //\n // We can directly decrement the balance, and increment the number burned.\n // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.\n _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;\n\n // Updates:\n // - `address` to the last owner.\n // - `startTimestamp` to the timestamp of burning.\n // - `burned` to `true`.\n // - `nextInitialized` to `true`.\n _packedOwnerships[tokenId] = _packOwnershipData(\n from,\n (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)\n );\n\n // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .\n if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {\n uint256 nextTokenId = tokenId + 1;\n // If the next slot's address is zero and not burned (i.e. packed value is zero).\n if (_packedOwnerships[nextTokenId] == 0) {\n // If the next slot is within bounds.\n if (nextTokenId != _currentIndex) {\n // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.\n _packedOwnerships[nextTokenId] = prevOwnershipPacked;\n }\n }\n }\n }\n\n emit Transfer(from, address(0), tokenId);\n _afterTokenTransfers(from, address(0), tokenId, 1);\n\n // Overflow not possible, as `_burnCounter` cannot be exceed `_currentIndex + _spotMinted` times.\n unchecked {\n _burnCounter++;\n }\n }\n\n // =============================================================\n // EXTRA DATA OPERATIONS\n // =============================================================\n\n /**\n * @dev Directly sets the extra data for the ownership data `index`.\n */\n function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {\n uint256 packed = _packedOwnerships[index];\n if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector);\n uint256 extraDataCasted;\n // Cast `extraData` with assembly to avoid redundant masking.\n assembly {\n extraDataCasted := extraData\n }\n packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);\n _packedOwnerships[index] = packed;\n }\n\n /**\n * @dev Called during each token transfer to set the 24bit `extraData` field.\n * Intended to be overridden by the cosumer contract.\n *\n * `previousExtraData` - the value of `extraData` before transfer.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be\n * transferred to `to`.\n * - When `from` is zero, `tokenId` will be minted for `to`.\n * - When `to` is zero, `tokenId` will be burned by `from`.\n * - `from` and `to` are never both zero.\n */\n function _extraData(\n address from,\n address to,\n uint24 previousExtraData\n ) internal view virtual returns (uint24) {}\n\n /**\n * @dev Returns the next extra data for the packed ownership data.\n * The returned result is shifted into position.\n */\n function _nextExtraData(\n address from,\n address to,\n uint256 prevOwnershipPacked\n ) private view returns (uint256) {\n uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);\n return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;\n }\n\n // =============================================================\n // OTHER OPERATIONS\n // =============================================================\n\n /**\n * @dev Returns the message sender (defaults to `msg.sender`).\n *\n * If you are writing GSN compatible contracts, you need to override this function.\n */\n function _msgSenderERC721A() internal view virtual returns (address) {\n return msg.sender;\n }\n\n /**\n * @dev Converts a uint256 to its ASCII string decimal representation.\n */\n function _toString(uint256 value) internal pure virtual returns (string memory str) {\n assembly {\n // The maximum value of a uint256 contains 78 digits (1 byte per digit), but\n // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.\n // We will need 1 word for the trailing zeros padding, 1 word for the length,\n // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.\n let m := add(mload(0x40), 0xa0)\n // Update the free memory pointer to allocate.\n mstore(0x40, m)\n // Assign the `str` to the end.\n str := sub(m, 0x20)\n // Zeroize the slot after the string.\n mstore(str, 0)\n\n // Cache the end of the memory to calculate the length later.\n let end := str\n\n // We write the string from rightmost digit to leftmost digit.\n // The following is essentially a do-while loop that also handles the zero case.\n // prettier-ignore\n for { let temp := value } 1 {} {\n str := sub(str, 1)\n // Write the character to the pointer.\n // The ASCII index of the '0' character is 48.\n mstore8(str, add(48, mod(temp, 10)))\n // Keep dividing `temp` until zero.\n temp := div(temp, 10)\n // prettier-ignore\n if iszero(temp) { break }\n }\n\n let length := sub(end, str)\n // Move the pointer 32 bytes leftwards to make room for the length.\n str := sub(str, 0x20)\n // Store the length.\n mstore(str, length)\n }\n }\n\n /**\n * @dev For more efficient reverts.\n */\n function _revert(bytes4 errorSelector) internal pure {\n assembly {\n mstore(0x00, errorSelector)\n revert(0x00, 0x04)\n }\n }\n}\n" + }, + "erc721a/contracts/IERC721A.sol": { + "content": "// SPDX-License-Identifier: MIT\n// ERC721A Contracts v4.3.0\n// Creator: Chiru Labs\n\npragma solidity ^0.8.4;\n\n/**\n * @dev Interface of ERC721A.\n */\ninterface IERC721A {\n /**\n * The caller must own the token or be an approved operator.\n */\n error ApprovalCallerNotOwnerNorApproved();\n\n /**\n * The token does not exist.\n */\n error ApprovalQueryForNonexistentToken();\n\n /**\n * Cannot query the balance for the zero address.\n */\n error BalanceQueryForZeroAddress();\n\n /**\n * Cannot mint to the zero address.\n */\n error MintToZeroAddress();\n\n /**\n * The quantity of tokens minted must be more than zero.\n */\n error MintZeroQuantity();\n\n /**\n * The token does not exist.\n */\n error OwnerQueryForNonexistentToken();\n\n /**\n * The caller must own the token or be an approved operator.\n */\n error TransferCallerNotOwnerNorApproved();\n\n /**\n * The token must be owned by `from`.\n */\n error TransferFromIncorrectOwner();\n\n /**\n * Cannot safely transfer to a contract that does not implement the\n * ERC721Receiver interface.\n */\n error TransferToNonERC721ReceiverImplementer();\n\n /**\n * Cannot transfer to the zero address.\n */\n error TransferToZeroAddress();\n\n /**\n * The token does not exist.\n */\n error URIQueryForNonexistentToken();\n\n /**\n * The `quantity` minted with ERC2309 exceeds the safety limit.\n */\n error MintERC2309QuantityExceedsLimit();\n\n /**\n * The `extraData` cannot be set on an unintialized ownership slot.\n */\n error OwnershipNotInitializedForExtraData();\n\n /**\n * `_sequentialUpTo()` must be greater than `_startTokenId()`.\n */\n error SequentialUpToTooSmall();\n\n /**\n * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.\n */\n error SequentialMintExceedsLimit();\n\n /**\n * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.\n */\n error SpotMintTokenIdTooSmall();\n\n /**\n * Cannot mint over a token that already exists.\n */\n error TokenAlreadyExists();\n\n /**\n * The feature is not compatible with spot mints.\n */\n error NotCompatibleWithSpotMints();\n\n // =============================================================\n // STRUCTS\n // =============================================================\n\n struct TokenOwnership {\n // The address of the owner.\n address addr;\n // Stores the start time of ownership with minimal overhead for tokenomics.\n uint64 startTimestamp;\n // Whether the token has been burned.\n bool burned;\n // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.\n uint24 extraData;\n }\n\n // =============================================================\n // TOKEN COUNTERS\n // =============================================================\n\n /**\n * @dev Returns the total number of tokens in existence.\n * Burned tokens will reduce the count.\n * To get the total number of tokens minted, please see {_totalMinted}.\n */\n function totalSupply() external view returns (uint256);\n\n // =============================================================\n // IERC165\n // =============================================================\n\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n\n // =============================================================\n // IERC721\n // =============================================================\n\n /**\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables\n * (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in `owner`'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`,\n * checking first that contract recipients are aware of the ERC721 protocol\n * to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be have been allowed to move\n * this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement\n * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes calldata data\n ) external payable;\n\n /**\n * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external payable;\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom}\n * whenever possible.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token\n * by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external payable;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the\n * zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external payable;\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom}\n * for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n\n // =============================================================\n // IERC721Metadata\n // =============================================================\n\n /**\n * @dev Returns the token collection name.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) external view returns (string memory);\n\n // =============================================================\n // IERC2309\n // =============================================================\n\n /**\n * @dev Emitted when tokens in `fromTokenId` to `toTokenId`\n * (inclusive) is transferred from `from` to `to`, as defined in the\n * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.\n *\n * See {_mintERC2309} for more details.\n */\n event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 1000 + }, + "viaIR": true, + "evmVersion": "paris", + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata" + ], + "": [ + "ast" + ] + } + } + } + }, + "output": { + "errors": [ + { + "component": "general", + "errorCode": "5667", + "formattedMessage": "Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.\n --> contracts/PlaylistReputationNFT.sol:98:53:\n |\n98 | function entropyCallback(uint64 sequenceNumber, address provider, bytes32 randomNumber) internal override {\n | ^^^^^^^^^^^^^^^^\n\n", + "message": "Unused function parameter. Remove or comment out the variable name to silence this warning.", + "severity": "warning", + "sourceLocation": { + "end": 3765, + "file": "contracts/PlaylistReputationNFT.sol", + "start": 3749 + }, + "type": "Warning" + } + ], + "sources": { + "@openzeppelin/contracts/access/Ownable.sol": { + "ast": { + "absolutePath": "@openzeppelin/contracts/access/Ownable.sol", + "exportedSymbols": { + "Context": [ + 177 + ], + "Ownable": [ + 147 + ] + }, + "id": 148, + "license": "MIT", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 1, + "literals": [ + "solidity", + "^", + "0.8", + ".20" + ], + "nodeType": "PragmaDirective", + "src": "102:24:0" + }, + { + "absolutePath": "@openzeppelin/contracts/utils/Context.sol", + "file": "../utils/Context.sol", + "id": 3, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 148, + "sourceUnit": 178, + "src": "128:45:0", + "symbolAliases": [ + { + "foreign": { + "id": 2, + "name": "Context", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 177, + "src": "136:7:0", + "typeDescriptions": {} + }, + "nameLocation": "-1:-1:-1" + } + ], + "unitAlias": "" + }, + { + "abstract": true, + "baseContracts": [ + { + "baseName": { + "id": 5, + "name": "Context", + "nameLocations": [ + "692:7:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 177, + "src": "692:7:0" + }, + "id": 6, + "nodeType": "InheritanceSpecifier", + "src": "692:7:0" + } + ], + "canonicalName": "Ownable", + "contractDependencies": [], + "contractKind": "contract", + "documentation": { + "id": 4, + "nodeType": "StructuredDocumentation", + "src": "175:487:0", + "text": " @dev Contract module which provides a basic access control mechanism, where\n there is an account (an owner) that can be granted exclusive access to\n specific functions.\n The initial owner is set to the address provided by the deployer. This can\n later be changed with {transferOwnership}.\n This module is used through inheritance. It will make available the modifier\n `onlyOwner`, which can be applied to your functions to restrict their use to\n the owner." + }, + "fullyImplemented": true, + "id": 147, + "linearizedBaseContracts": [ + 147, + 177 + ], + "name": "Ownable", + "nameLocation": "681:7:0", + "nodeType": "ContractDefinition", + "nodes": [ + { + "constant": false, + "id": 8, + "mutability": "mutable", + "name": "_owner", + "nameLocation": "722:6:0", + "nodeType": "VariableDeclaration", + "scope": 147, + "src": "706:22:0", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 7, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "706:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "private" + }, + { + "documentation": { + "id": 9, + "nodeType": "StructuredDocumentation", + "src": "735:85:0", + "text": " @dev The caller account is not authorized to perform an operation." + }, + "errorSelector": "118cdaa7", + "id": 13, + "name": "OwnableUnauthorizedAccount", + "nameLocation": "831:26:0", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 12, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 11, + "mutability": "mutable", + "name": "account", + "nameLocation": "866:7:0", + "nodeType": "VariableDeclaration", + "scope": 13, + "src": "858:15:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 10, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "858:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "857:17:0" + }, + "src": "825:50:0" + }, + { + "documentation": { + "id": 14, + "nodeType": "StructuredDocumentation", + "src": "881:82:0", + "text": " @dev The owner is not a valid owner account. (eg. `address(0)`)" + }, + "errorSelector": "1e4fbdf7", + "id": 18, + "name": "OwnableInvalidOwner", + "nameLocation": "974:19:0", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 17, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 16, + "mutability": "mutable", + "name": "owner", + "nameLocation": "1002:5:0", + "nodeType": "VariableDeclaration", + "scope": 18, + "src": "994:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 15, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "994:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "993:15:0" + }, + "src": "968:41:0" + }, + { + "anonymous": false, + "eventSelector": "8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "id": 24, + "name": "OwnershipTransferred", + "nameLocation": "1021:20:0", + "nodeType": "EventDefinition", + "parameters": { + "id": 23, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 20, + "indexed": true, + "mutability": "mutable", + "name": "previousOwner", + "nameLocation": "1058:13:0", + "nodeType": "VariableDeclaration", + "scope": 24, + "src": "1042:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 19, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1042:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 22, + "indexed": true, + "mutability": "mutable", + "name": "newOwner", + "nameLocation": "1089:8:0", + "nodeType": "VariableDeclaration", + "scope": 24, + "src": "1073:24:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 21, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1073:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1041:57:0" + }, + "src": "1015:84:0" + }, + { + "body": { + "id": 49, + "nodeType": "Block", + "src": "1259:153:0", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 35, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 30, + "name": "initialOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 27, + "src": "1273:12:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 33, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1297:1:0", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 32, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "1289:7:0", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 31, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1289:7:0", + "typeDescriptions": {} + } + }, + "id": 34, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1289:10:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "1273:26:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 44, + "nodeType": "IfStatement", + "src": "1269:95:0", + "trueBody": { + "id": 43, + "nodeType": "Block", + "src": "1301:63:0", + "statements": [ + { + "errorCall": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 39, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1350:1:0", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 38, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "1342:7:0", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 37, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1342:7:0", + "typeDescriptions": {} + } + }, + "id": 40, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1342:10:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 36, + "name": "OwnableInvalidOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 18, + "src": "1322:19:0", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", + "typeString": "function (address) pure" + } + }, + "id": 41, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1322:31:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 42, + "nodeType": "RevertStatement", + "src": "1315:38:0" + } + ] + } + }, + { + "expression": { + "arguments": [ + { + "id": 46, + "name": "initialOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 27, + "src": "1392:12:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 45, + "name": "_transferOwnership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 146, + "src": "1373:18:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 47, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1373:32:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 48, + "nodeType": "ExpressionStatement", + "src": "1373:32:0" + } + ] + }, + "documentation": { + "id": 25, + "nodeType": "StructuredDocumentation", + "src": "1105:115:0", + "text": " @dev Initializes the contract setting the address provided by the deployer as the initial owner." + }, + "id": 50, + "implemented": true, + "kind": "constructor", + "modifiers": [], + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 28, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 27, + "mutability": "mutable", + "name": "initialOwner", + "nameLocation": "1245:12:0", + "nodeType": "VariableDeclaration", + "scope": 50, + "src": "1237:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 26, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1237:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1236:22:0" + }, + "returnParameters": { + "id": 29, + "nodeType": "ParameterList", + "parameters": [], + "src": "1259:0:0" + }, + "scope": 147, + "src": "1225:187:0", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 57, + "nodeType": "Block", + "src": "1521:41:0", + "statements": [ + { + "expression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 53, + "name": "_checkOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 84, + "src": "1531:11:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$__$", + "typeString": "function () view" + } + }, + "id": 54, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1531:13:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 55, + "nodeType": "ExpressionStatement", + "src": "1531:13:0" + }, + { + "id": 56, + "nodeType": "PlaceholderStatement", + "src": "1554:1:0" + } + ] + }, + "documentation": { + "id": 51, + "nodeType": "StructuredDocumentation", + "src": "1418:77:0", + "text": " @dev Throws if called by any account other than the owner." + }, + "id": 58, + "name": "onlyOwner", + "nameLocation": "1509:9:0", + "nodeType": "ModifierDefinition", + "parameters": { + "id": 52, + "nodeType": "ParameterList", + "parameters": [], + "src": "1518:2:0" + }, + "src": "1500:62:0", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 66, + "nodeType": "Block", + "src": "1693:30:0", + "statements": [ + { + "expression": { + "id": 64, + "name": "_owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 8, + "src": "1710:6:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 63, + "id": 65, + "nodeType": "Return", + "src": "1703:13:0" + } + ] + }, + "documentation": { + "id": 59, + "nodeType": "StructuredDocumentation", + "src": "1568:65:0", + "text": " @dev Returns the address of the current owner." + }, + "functionSelector": "8da5cb5b", + "id": 67, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "owner", + "nameLocation": "1647:5:0", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 60, + "nodeType": "ParameterList", + "parameters": [], + "src": "1652:2:0" + }, + "returnParameters": { + "id": 63, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 62, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 67, + "src": "1684:7:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 61, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1684:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1683:9:0" + }, + "scope": 147, + "src": "1638:85:0", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 83, + "nodeType": "Block", + "src": "1841:117:0", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 75, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 71, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 67, + "src": "1855:5:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 72, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1855:7:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 73, + "name": "_msgSender", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "1866:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 74, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1866:12:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "1855:23:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 82, + "nodeType": "IfStatement", + "src": "1851:101:0", + "trueBody": { + "id": 81, + "nodeType": "Block", + "src": "1880:72:0", + "statements": [ + { + "errorCall": { + "arguments": [ + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 77, + "name": "_msgSender", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "1928:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 78, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1928:12:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 76, + "name": "OwnableUnauthorizedAccount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 13, + "src": "1901:26:0", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", + "typeString": "function (address) pure" + } + }, + "id": 79, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1901:40:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 80, + "nodeType": "RevertStatement", + "src": "1894:47:0" + } + ] + } + } + ] + }, + "documentation": { + "id": 68, + "nodeType": "StructuredDocumentation", + "src": "1729:62:0", + "text": " @dev Throws if the sender is not the owner." + }, + "id": 84, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_checkOwner", + "nameLocation": "1805:11:0", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 69, + "nodeType": "ParameterList", + "parameters": [], + "src": "1816:2:0" + }, + "returnParameters": { + "id": 70, + "nodeType": "ParameterList", + "parameters": [], + "src": "1841:0:0" + }, + "scope": 147, + "src": "1796:162:0", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 97, + "nodeType": "Block", + "src": "2347:47:0", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 93, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2384:1:0", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 92, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2376:7:0", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 91, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2376:7:0", + "typeDescriptions": {} + } + }, + "id": 94, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2376:10:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 90, + "name": "_transferOwnership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 146, + "src": "2357:18:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 95, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2357:30:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 96, + "nodeType": "ExpressionStatement", + "src": "2357:30:0" + } + ] + }, + "documentation": { + "id": 85, + "nodeType": "StructuredDocumentation", + "src": "1964:324:0", + "text": " @dev Leaves the contract without owner. It will not be possible to call\n `onlyOwner` functions. Can only be called by the current owner.\n NOTE: Renouncing ownership will leave the contract without an owner,\n thereby disabling any functionality that is only available to the owner." + }, + "functionSelector": "715018a6", + "id": 98, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 88, + "kind": "modifierInvocation", + "modifierName": { + "id": 87, + "name": "onlyOwner", + "nameLocations": [ + "2337:9:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 58, + "src": "2337:9:0" + }, + "nodeType": "ModifierInvocation", + "src": "2337:9:0" + } + ], + "name": "renounceOwnership", + "nameLocation": "2302:17:0", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 86, + "nodeType": "ParameterList", + "parameters": [], + "src": "2319:2:0" + }, + "returnParameters": { + "id": 89, + "nodeType": "ParameterList", + "parameters": [], + "src": "2347:0:0" + }, + "scope": 147, + "src": "2293:101:0", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 125, + "nodeType": "Block", + "src": "2613:145:0", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 111, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 106, + "name": "newOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 101, + "src": "2627:8:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 109, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2647:1:0", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 108, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2639:7:0", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 107, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2639:7:0", + "typeDescriptions": {} + } + }, + "id": 110, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2639:10:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "2627:22:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 120, + "nodeType": "IfStatement", + "src": "2623:91:0", + "trueBody": { + "id": 119, + "nodeType": "Block", + "src": "2651:63:0", + "statements": [ + { + "errorCall": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 115, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2700:1:0", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 114, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2692:7:0", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 113, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2692:7:0", + "typeDescriptions": {} + } + }, + "id": 116, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2692:10:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 112, + "name": "OwnableInvalidOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 18, + "src": "2672:19:0", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", + "typeString": "function (address) pure" + } + }, + "id": 117, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2672:31:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 118, + "nodeType": "RevertStatement", + "src": "2665:38:0" + } + ] + } + }, + { + "expression": { + "arguments": [ + { + "id": 122, + "name": "newOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 101, + "src": "2742:8:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 121, + "name": "_transferOwnership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 146, + "src": "2723:18:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 123, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2723:28:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 124, + "nodeType": "ExpressionStatement", + "src": "2723:28:0" + } + ] + }, + "documentation": { + "id": 99, + "nodeType": "StructuredDocumentation", + "src": "2400:138:0", + "text": " @dev Transfers ownership of the contract to a new account (`newOwner`).\n Can only be called by the current owner." + }, + "functionSelector": "f2fde38b", + "id": 126, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 104, + "kind": "modifierInvocation", + "modifierName": { + "id": 103, + "name": "onlyOwner", + "nameLocations": [ + "2603:9:0" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 58, + "src": "2603:9:0" + }, + "nodeType": "ModifierInvocation", + "src": "2603:9:0" + } + ], + "name": "transferOwnership", + "nameLocation": "2552:17:0", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 102, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 101, + "mutability": "mutable", + "name": "newOwner", + "nameLocation": "2578:8:0", + "nodeType": "VariableDeclaration", + "scope": 126, + "src": "2570:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 100, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2570:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "2569:18:0" + }, + "returnParameters": { + "id": 105, + "nodeType": "ParameterList", + "parameters": [], + "src": "2613:0:0" + }, + "scope": 147, + "src": "2543:215:0", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 145, + "nodeType": "Block", + "src": "2975:124:0", + "statements": [ + { + "assignments": [ + 133 + ], + "declarations": [ + { + "constant": false, + "id": 133, + "mutability": "mutable", + "name": "oldOwner", + "nameLocation": "2993:8:0", + "nodeType": "VariableDeclaration", + "scope": 145, + "src": "2985:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 132, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2985:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 135, + "initialValue": { + "id": 134, + "name": "_owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 8, + "src": "3004:6:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "2985:25:0" + }, + { + "expression": { + "id": 138, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 136, + "name": "_owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 8, + "src": "3020:6:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 137, + "name": "newOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 129, + "src": "3029:8:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "3020:17:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 139, + "nodeType": "ExpressionStatement", + "src": "3020:17:0" + }, + { + "eventCall": { + "arguments": [ + { + "id": 141, + "name": "oldOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 133, + "src": "3073:8:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 142, + "name": "newOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 129, + "src": "3083:8:0", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 140, + "name": "OwnershipTransferred", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 24, + "src": "3052:20:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", + "typeString": "function (address,address)" + } + }, + "id": 143, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3052:40:0", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 144, + "nodeType": "EmitStatement", + "src": "3047:45:0" + } + ] + }, + "documentation": { + "id": 127, + "nodeType": "StructuredDocumentation", + "src": "2764:143:0", + "text": " @dev Transfers ownership of the contract to a new account (`newOwner`).\n Internal function without access restriction." + }, + "id": 146, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_transferOwnership", + "nameLocation": "2921:18:0", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 130, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 129, + "mutability": "mutable", + "name": "newOwner", + "nameLocation": "2948:8:0", + "nodeType": "VariableDeclaration", + "scope": 146, + "src": "2940:16:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 128, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2940:7:0", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "2939:18:0" + }, + "returnParameters": { + "id": 131, + "nodeType": "ParameterList", + "parameters": [], + "src": "2975:0:0" + }, + "scope": 147, + "src": "2912:187:0", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + } + ], + "scope": 148, + "src": "663:2438:0", + "usedErrors": [ + 13, + 18 + ], + "usedEvents": [ + 24 + ] + } + ], + "src": "102:3000:0" + }, + "id": 0 + }, + "@openzeppelin/contracts/utils/Context.sol": { + "ast": { + "absolutePath": "@openzeppelin/contracts/utils/Context.sol", + "exportedSymbols": { + "Context": [ + 177 + ] + }, + "id": 178, + "license": "MIT", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 149, + "literals": [ + "solidity", + "^", + "0.8", + ".20" + ], + "nodeType": "PragmaDirective", + "src": "101:24:1" + }, + { + "abstract": true, + "baseContracts": [], + "canonicalName": "Context", + "contractDependencies": [], + "contractKind": "contract", + "documentation": { + "id": 150, + "nodeType": "StructuredDocumentation", + "src": "127:496:1", + "text": " @dev Provides information about the current execution context, including the\n sender of the transaction and its data. While these are generally available\n via msg.sender and msg.data, they should not be accessed in such a direct\n manner, since when dealing with meta-transactions the account sending and\n paying for execution may not be the actual sender (as far as an application\n is concerned).\n This contract is only required for intermediate, library-like contracts." + }, + "fullyImplemented": true, + "id": 177, + "linearizedBaseContracts": [ + 177 + ], + "name": "Context", + "nameLocation": "642:7:1", + "nodeType": "ContractDefinition", + "nodes": [ + { + "body": { + "id": 158, + "nodeType": "Block", + "src": "718:34:1", + "statements": [ + { + "expression": { + "expression": { + "id": 155, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "735:3:1", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 156, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "739:6:1", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "735:10:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 154, + "id": 157, + "nodeType": "Return", + "src": "728:17:1" + } + ] + }, + "id": 159, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_msgSender", + "nameLocation": "665:10:1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 151, + "nodeType": "ParameterList", + "parameters": [], + "src": "675:2:1" + }, + "returnParameters": { + "id": 154, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 153, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 159, + "src": "709:7:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 152, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "709:7:1", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "708:9:1" + }, + "scope": 177, + "src": "656:96:1", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 167, + "nodeType": "Block", + "src": "825:32:1", + "statements": [ + { + "expression": { + "expression": { + "id": 164, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "842:3:1", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 165, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "846:4:1", + "memberName": "data", + "nodeType": "MemberAccess", + "src": "842:8:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_calldata_ptr", + "typeString": "bytes calldata" + } + }, + "functionReturnParameters": 163, + "id": 166, + "nodeType": "Return", + "src": "835:15:1" + } + ] + }, + "id": 168, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_msgData", + "nameLocation": "767:8:1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 160, + "nodeType": "ParameterList", + "parameters": [], + "src": "775:2:1" + }, + "returnParameters": { + "id": 163, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 162, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 168, + "src": "809:14:1", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_bytes_calldata_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 161, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "809:5:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "808:16:1" + }, + "scope": 177, + "src": "758:99:1", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 175, + "nodeType": "Block", + "src": "935:25:1", + "statements": [ + { + "expression": { + "hexValue": "30", + "id": 173, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "952:1:1", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "functionReturnParameters": 172, + "id": 174, + "nodeType": "Return", + "src": "945:8:1" + } + ] + }, + "id": 176, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_contextSuffixLength", + "nameLocation": "872:20:1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 169, + "nodeType": "ParameterList", + "parameters": [], + "src": "892:2:1" + }, + "returnParameters": { + "id": 172, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 171, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 176, + "src": "926:7:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 170, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "926:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "925:9:1" + }, + "scope": 177, + "src": "863:97:1", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + } + ], + "scope": 178, + "src": "624:338:1", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "101:862:1" + }, + "id": 1 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol", + "exportedSymbols": { + "EntropyEvents": [ + 292 + ], + "EntropyStructs": [ + 453 + ] + }, + "id": 293, + "license": "Apache-2.0", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 179, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "39:23:2" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "file": "./EntropyStructs.sol", + "id": 180, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 293, + "sourceUnit": 454, + "src": "64:30:2", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyEvents", + "contractDependencies": [], + "contractKind": "interface", + "fullyImplemented": true, + "id": 292, + "linearizedBaseContracts": [ + 292 + ], + "name": "EntropyEvents", + "nameLocation": "207:13:2", + "nodeType": "ContractDefinition", + "nodes": [ + { + "anonymous": false, + "eventSelector": "641f45ac488304746c653e2635855e73663a6e524de1194447d678a58f084012", + "id": 185, + "name": "Registered", + "nameLocation": "233:10:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 184, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 183, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "272:8:2", + "nodeType": "VariableDeclaration", + "scope": 185, + "src": "244:36:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$435_memory_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + }, + "typeName": { + "id": 182, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 181, + "name": "EntropyStructs.ProviderInfo", + "nameLocations": [ + "244:14:2", + "259:12:2" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 435, + "src": "244:27:2" + }, + "referencedDeclaration": 435, + "src": "244:27:2", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$435_storage_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + } + }, + "visibility": "internal" + } + ], + "src": "243:38:2" + }, + "src": "227:55:2" + }, + { + "anonymous": false, + "eventSelector": "20e2c2fc72b2cb9fbae9d7d8fd4bdf5bdcc4579043e1e9854e2baf045b6a31d3", + "id": 190, + "name": "Requested", + "nameLocation": "294:9:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 189, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 188, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "327:7:2", + "nodeType": "VariableDeclaration", + "scope": 190, + "src": "304:30:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 187, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 186, + "name": "EntropyStructs.Request", + "nameLocations": [ + "304:14:2", + "319:7:2" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 452, + "src": "304:22:2" + }, + "referencedDeclaration": 452, + "src": "304:22:2", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + } + ], + "src": "303:32:2" + }, + "src": "288:48:2" + }, + { + "anonymous": false, + "eventSelector": "a4c85ab66677ced5caabbbba151714887944b9e0fee05f320e42a1b13a01fbc6", + "id": 203, + "name": "RequestedWithCallback", + "nameLocation": "347:21:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 202, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 192, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "394:8:2", + "nodeType": "VariableDeclaration", + "scope": 203, + "src": "378:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 191, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "378:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 194, + "indexed": true, + "mutability": "mutable", + "name": "requestor", + "nameLocation": "428:9:2", + "nodeType": "VariableDeclaration", + "scope": 203, + "src": "412:25:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 193, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "412:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 196, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "462:14:2", + "nodeType": "VariableDeclaration", + "scope": 203, + "src": "447:29:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 195, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "447:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 198, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "494:16:2", + "nodeType": "VariableDeclaration", + "scope": 203, + "src": "486:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 197, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "486:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 201, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "543:7:2", + "nodeType": "VariableDeclaration", + "scope": 203, + "src": "520:30:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 200, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 199, + "name": "EntropyStructs.Request", + "nameLocations": [ + "520:14:2", + "535:7:2" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 452, + "src": "520:22:2" + }, + "referencedDeclaration": 452, + "src": "520:22:2", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + } + ], + "src": "368:188:2" + }, + "src": "341:216:2" + }, + { + "anonymous": false, + "eventSelector": "39c729f66b0c8aa543d92bc83fb7e0914c9701326b96365b593f28ba706976e4", + "id": 216, + "name": "Revealed", + "nameLocation": "569:8:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 215, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 206, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "610:7:2", + "nodeType": "VariableDeclaration", + "scope": 216, + "src": "587:30:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 205, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 204, + "name": "EntropyStructs.Request", + "nameLocations": [ + "587:14:2", + "602:7:2" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 452, + "src": "587:22:2" + }, + "referencedDeclaration": 452, + "src": "587:22:2", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 208, + "indexed": false, + "mutability": "mutable", + "name": "userRevelation", + "nameLocation": "635:14:2", + "nodeType": "VariableDeclaration", + "scope": 216, + "src": "627:22:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 207, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "627:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 210, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "667:18:2", + "nodeType": "VariableDeclaration", + "scope": 216, + "src": "659:26:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 209, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "659:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 212, + "indexed": false, + "mutability": "mutable", + "name": "blockHash", + "nameLocation": "703:9:2", + "nodeType": "VariableDeclaration", + "scope": 216, + "src": "695:17:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 211, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "695:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 214, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "730:12:2", + "nodeType": "VariableDeclaration", + "scope": 216, + "src": "722:20:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 213, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "722:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "577:171:2" + }, + "src": "563:186:2" + }, + { + "anonymous": false, + "eventSelector": "40be225f151772416d8785647e5641a0b53507623d0ee3fb88802b7d6bdbf728", + "id": 227, + "name": "RevealedWithCallback", + "nameLocation": "760:20:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 226, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 219, + "indexed": false, + "mutability": "mutable", + "name": "request", + "nameLocation": "813:7:2", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "790:30:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 218, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 217, + "name": "EntropyStructs.Request", + "nameLocations": [ + "790:14:2", + "805:7:2" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 452, + "src": "790:22:2" + }, + "referencedDeclaration": 452, + "src": "790:22:2", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 221, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "838:16:2", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "830:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 220, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "830:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 223, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "872:18:2", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "864:26:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 222, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "864:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 225, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "908:12:2", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "900:20:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 224, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "900:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "780:146:2" + }, + "src": "754:173:2" + }, + { + "anonymous": false, + "eventSelector": "c73c4cbf6f2bace8893b1283ee0e044c059ef9b80765820f4cc22b5ace139b5b", + "id": 243, + "name": "CallbackFailed", + "nameLocation": "939:14:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 242, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 229, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "979:8:2", + "nodeType": "VariableDeclaration", + "scope": 243, + "src": "963:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 228, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "963:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 231, + "indexed": true, + "mutability": "mutable", + "name": "requestor", + "nameLocation": "1013:9:2", + "nodeType": "VariableDeclaration", + "scope": 243, + "src": "997:25:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 230, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "997:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 233, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1047:14:2", + "nodeType": "VariableDeclaration", + "scope": 243, + "src": "1032:29:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 232, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1032:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 235, + "indexed": false, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "1079:16:2", + "nodeType": "VariableDeclaration", + "scope": 243, + "src": "1071:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 234, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1071:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 237, + "indexed": false, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "1113:18:2", + "nodeType": "VariableDeclaration", + "scope": 243, + "src": "1105:26:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 236, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1105:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 239, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "1149:12:2", + "nodeType": "VariableDeclaration", + "scope": 243, + "src": "1141:20:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 238, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1141:7:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 241, + "indexed": false, + "mutability": "mutable", + "name": "errorCode", + "nameLocation": "1177:9:2", + "nodeType": "VariableDeclaration", + "scope": 243, + "src": "1171:15:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 240, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1171:5:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "953:239:2" + }, + "src": "933:260:2" + }, + { + "anonymous": false, + "eventSelector": "40873158a9e1446599b5dee14bfd652e53a6f48605dab5aaac3b8a12a56c7fce", + "id": 251, + "name": "ProviderFeeUpdated", + "nameLocation": "1205:18:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 250, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 245, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1232:8:2", + "nodeType": "VariableDeclaration", + "scope": 251, + "src": "1224:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 244, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1224:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 247, + "indexed": false, + "mutability": "mutable", + "name": "oldFee", + "nameLocation": "1250:6:2", + "nodeType": "VariableDeclaration", + "scope": 251, + "src": "1242:14:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 246, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1242:7:2", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 249, + "indexed": false, + "mutability": "mutable", + "name": "newFee", + "nameLocation": "1266:6:2", + "nodeType": "VariableDeclaration", + "scope": 251, + "src": "1258:14:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 248, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1258:7:2", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1223:50:2" + }, + "src": "1199:75:2" + }, + { + "anonymous": false, + "eventSelector": "eb28196cc9984ca7d8c99b41fa943501351706fda54b50f983e60fdc08aa94a0", + "id": 259, + "name": "ProviderDefaultGasLimitUpdated", + "nameLocation": "1286:30:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 258, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 253, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1342:8:2", + "nodeType": "VariableDeclaration", + "scope": 259, + "src": "1326:24:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 252, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1326:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 255, + "indexed": false, + "mutability": "mutable", + "name": "oldDefaultGasLimit", + "nameLocation": "1367:18:2", + "nodeType": "VariableDeclaration", + "scope": 259, + "src": "1360:25:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 254, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1360:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 257, + "indexed": false, + "mutability": "mutable", + "name": "newDefaultGasLimit", + "nameLocation": "1402:18:2", + "nodeType": "VariableDeclaration", + "scope": 259, + "src": "1395:25:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 256, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1395:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "1316:110:2" + }, + "src": "1280:147:2" + }, + { + "anonymous": false, + "eventSelector": "1efad1d69168ff2e29c45661eed77d2de2b8c95f412cd22a65b15a38e24f7088", + "id": 267, + "name": "ProviderUriUpdated", + "nameLocation": "1439:18:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 266, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 261, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1466:8:2", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "1458:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 260, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1458:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 263, + "indexed": false, + "mutability": "mutable", + "name": "oldUri", + "nameLocation": "1482:6:2", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "1476:12:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 262, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1476:5:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 265, + "indexed": false, + "mutability": "mutable", + "name": "newUri", + "nameLocation": "1496:6:2", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "1490:12:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 264, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1490:5:2", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "1457:46:2" + }, + "src": "1433:71:2" + }, + { + "anonymous": false, + "eventSelector": "2c0fa560a1e6d11854f3f965d262e756c1b6d23d2bfe8f0e54b7807dd79b946b", + "id": 275, + "name": "ProviderFeeManagerUpdated", + "nameLocation": "1516:25:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 274, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 269, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1559:8:2", + "nodeType": "VariableDeclaration", + "scope": 275, + "src": "1551:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 268, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1551:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 271, + "indexed": false, + "mutability": "mutable", + "name": "oldFeeManager", + "nameLocation": "1585:13:2", + "nodeType": "VariableDeclaration", + "scope": 275, + "src": "1577:21:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 270, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1577:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 273, + "indexed": false, + "mutability": "mutable", + "name": "newFeeManager", + "nameLocation": "1616:13:2", + "nodeType": "VariableDeclaration", + "scope": 275, + "src": "1608:21:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 272, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1608:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1541:94:2" + }, + "src": "1510:126:2" + }, + { + "anonymous": false, + "eventSelector": "6a5a36f1400b17f2daef49faa26a5133cbcc952cffc0e7f426f3c84d6d207f60", + "id": 283, + "name": "ProviderMaxNumHashesAdvanced", + "nameLocation": "1647:28:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 282, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 277, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1693:8:2", + "nodeType": "VariableDeclaration", + "scope": 283, + "src": "1685:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 276, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1685:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 279, + "indexed": false, + "mutability": "mutable", + "name": "oldMaxNumHashes", + "nameLocation": "1718:15:2", + "nodeType": "VariableDeclaration", + "scope": 283, + "src": "1711:22:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 278, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1711:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 281, + "indexed": false, + "mutability": "mutable", + "name": "newMaxNumHashes", + "nameLocation": "1750:15:2", + "nodeType": "VariableDeclaration", + "scope": 283, + "src": "1743:22:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 280, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1743:6:2", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "1675:96:2" + }, + "src": "1641:131:2" + }, + { + "anonymous": false, + "eventSelector": "02128911bc7070fd6c100b116c2dd9a3bb6bf132d5259a65ca8d0c86ccd78f49", + "id": 291, + "name": "Withdrawal", + "nameLocation": "1784:10:2", + "nodeType": "EventDefinition", + "parameters": { + "id": 290, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 285, + "indexed": false, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1812:8:2", + "nodeType": "VariableDeclaration", + "scope": 291, + "src": "1804:16:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 284, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1804:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 287, + "indexed": false, + "mutability": "mutable", + "name": "recipient", + "nameLocation": "1838:9:2", + "nodeType": "VariableDeclaration", + "scope": 291, + "src": "1830:17:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 286, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1830:7:2", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 289, + "indexed": false, + "mutability": "mutable", + "name": "withdrawnAmount", + "nameLocation": "1865:15:2", + "nodeType": "VariableDeclaration", + "scope": 291, + "src": "1857:23:2", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 288, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1857:7:2", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1794:92:2" + }, + "src": "1778:109:2" + } + ], + "scope": 293, + "src": "197:1692:2", + "usedErrors": [], + "usedEvents": [ + 185, + 190, + 203, + 216, + 227, + 243, + 251, + 259, + 267, + 275, + 283, + 291 + ] + } + ], + "src": "39:1851:2" + }, + "id": 2 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol", + "exportedSymbols": { + "EntropyEventsV2": [ + 408 + ], + "EntropyStructs": [ + 453 + ] + }, + "id": 409, + "license": "Apache-2.0", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 294, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "39:23:3" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "file": "./EntropyStructs.sol", + "id": 295, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 409, + "sourceUnit": 454, + "src": "64:30:3", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyEventsV2", + "contractDependencies": [], + "contractKind": "interface", + "documentation": { + "id": 296, + "nodeType": "StructuredDocumentation", + "src": "96:328:3", + "text": " @title EntropyEventsV2\n @notice Interface defining events for the Entropy V2 system, which handles random number generation\n and provider management on Ethereum.\n @dev This interface is used to emit events that track the lifecycle of random number requests,\n provider registrations, and system configurations." + }, + "fullyImplemented": true, + "id": 408, + "linearizedBaseContracts": [ + 408 + ], + "name": "EntropyEventsV2", + "nameLocation": "435:15:3", + "nodeType": "ContractDefinition", + "nodes": [ + { + "anonymous": false, + "documentation": { + "id": 297, + "nodeType": "StructuredDocumentation", + "src": "457:224:3", + "text": " @notice Emitted when a new provider registers with the Entropy system\n @param provider The address of the registered provider\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "b5ca2dfb0bd25603299b76fefa9fbe3abdc9f951bdfb7ffd208f93ab7f8e203c", + "id": 303, + "name": "Registered", + "nameLocation": "692:10:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 302, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 299, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "719:8:3", + "nodeType": "VariableDeclaration", + "scope": 303, + "src": "703:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 298, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "703:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 301, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "735:9:3", + "nodeType": "VariableDeclaration", + "scope": 303, + "src": "729:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 300, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "729:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "702:43:3" + }, + "src": "686:60:3" + }, + { + "anonymous": false, + "documentation": { + "id": 304, + "nodeType": "StructuredDocumentation", + "src": "752:504:3", + "text": " @notice Emitted when a user requests a random number from a provider\n @param provider The address of the provider handling the request\n @param caller The address of the user requesting the random number\n @param sequenceNumber A unique identifier for this request\n @param userContribution The user's contribution to the random number\n @param gasLimit The gas limit for the callback.\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "209bbfee3369097c31c36ce42994bdcac394866c881f603fb6296f240d6c37db", + "id": 318, + "name": "Requested", + "nameLocation": "1267:9:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 317, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 306, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1302:8:3", + "nodeType": "VariableDeclaration", + "scope": 318, + "src": "1286:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 305, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1286:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 308, + "indexed": true, + "mutability": "mutable", + "name": "caller", + "nameLocation": "1336:6:3", + "nodeType": "VariableDeclaration", + "scope": 318, + "src": "1320:22:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 307, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1320:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 310, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1367:14:3", + "nodeType": "VariableDeclaration", + "scope": 318, + "src": "1352:29:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 309, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1352:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 312, + "indexed": false, + "mutability": "mutable", + "name": "userContribution", + "nameLocation": "1399:16:3", + "nodeType": "VariableDeclaration", + "scope": 318, + "src": "1391:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 311, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1391:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 314, + "indexed": false, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "1432:8:3", + "nodeType": "VariableDeclaration", + "scope": 318, + "src": "1425:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 313, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "1425:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 316, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "1456:9:3", + "nodeType": "VariableDeclaration", + "scope": 318, + "src": "1450:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 315, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1450:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "1276:195:3" + }, + "src": "1261:211:3" + }, + { + "anonymous": false, + "documentation": { + "id": 319, + "nodeType": "StructuredDocumentation", + "src": "1478:1101:3", + "text": " @notice Emitted when a provider reveals the generated random number\n @param provider The address of the provider that generated the random number\n @param caller The address of the user who requested the random number (and who receives a callback)\n @param sequenceNumber The unique identifier of the request\n @param randomNumber The generated random number\n @param userContribution The user's contribution to the random number\n @param providerContribution The provider's contribution to the random number\n @param callbackFailed Whether the callback to the caller failed\n @param callbackReturnValue Return value from the callback. If the callback failed, this field contains\n the error code and any additional returned data. Note that \"\" often indicates an out-of-gas error.\n If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\n @param callbackGasUsed How much gas the callback used.\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "2231996cc9de260d163cd345089fea7819252b40215c738556aa144a0a11ed47", + "id": 341, + "name": "Revealed", + "nameLocation": "2590:8:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 340, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 321, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2624:8:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2608:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 320, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2608:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 323, + "indexed": true, + "mutability": "mutable", + "name": "caller", + "nameLocation": "2658:6:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2642:22:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 322, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2642:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 325, + "indexed": true, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2689:14:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2674:29:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 324, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2674:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 327, + "indexed": false, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "2721:12:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2713:20:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 326, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2713:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 329, + "indexed": false, + "mutability": "mutable", + "name": "userContribution", + "nameLocation": "2751:16:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2743:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 328, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2743:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 331, + "indexed": false, + "mutability": "mutable", + "name": "providerContribution", + "nameLocation": "2785:20:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2777:28:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 330, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2777:7:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 333, + "indexed": false, + "mutability": "mutable", + "name": "callbackFailed", + "nameLocation": "2820:14:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2815:19:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 332, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2815:4:3", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 335, + "indexed": false, + "mutability": "mutable", + "name": "callbackReturnValue", + "nameLocation": "2850:19:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2844:25:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 334, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "2844:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 337, + "indexed": false, + "mutability": "mutable", + "name": "callbackGasUsed", + "nameLocation": "2886:15:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2879:22:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 336, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2879:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 339, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "2917:9:3", + "nodeType": "VariableDeclaration", + "scope": 341, + "src": "2911:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 338, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "2911:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "2598:334:3" + }, + "src": "2584:349:3" + }, + { + "anonymous": false, + "documentation": { + "id": 342, + "nodeType": "StructuredDocumentation", + "src": "2939:297:3", + "text": " @notice Emitted when a provider updates their fee\n @param provider The address of the provider updating their fee\n @param oldFee The previous fee amount\n @param newFee The new fee amount\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "2b876e4a8eb641937e15aa02b7b90d376ce4661b51337661d76d330d23aed536", + "id": 352, + "name": "ProviderFeeUpdated", + "nameLocation": "3247:18:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 351, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 344, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3291:8:3", + "nodeType": "VariableDeclaration", + "scope": 352, + "src": "3275:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 343, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3275:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 346, + "indexed": false, + "mutability": "mutable", + "name": "oldFee", + "nameLocation": "3317:6:3", + "nodeType": "VariableDeclaration", + "scope": 352, + "src": "3309:14:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 345, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "3309:7:3", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 348, + "indexed": false, + "mutability": "mutable", + "name": "newFee", + "nameLocation": "3341:6:3", + "nodeType": "VariableDeclaration", + "scope": 352, + "src": "3333:14:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 347, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "3333:7:3", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 350, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "3363:9:3", + "nodeType": "VariableDeclaration", + "scope": 352, + "src": "3357:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 349, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "3357:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "3265:113:3" + }, + "src": "3241:138:3" + }, + { + "anonymous": false, + "documentation": { + "id": 353, + "nodeType": "StructuredDocumentation", + "src": "3385:355:3", + "text": " @notice Emitted when a provider updates their default gas limit\n @param provider The address of the provider updating their gas limit\n @param oldDefaultGasLimit The previous default gas limit\n @param newDefaultGasLimit The new default gas limit\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "92ec5e11b09fd199655525004a1861acf5dd00f3a672ea8c750ec8bbf7ef6190", + "id": 363, + "name": "ProviderDefaultGasLimitUpdated", + "nameLocation": "3751:30:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 362, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 355, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3807:8:3", + "nodeType": "VariableDeclaration", + "scope": 363, + "src": "3791:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 354, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3791:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 357, + "indexed": false, + "mutability": "mutable", + "name": "oldDefaultGasLimit", + "nameLocation": "3832:18:3", + "nodeType": "VariableDeclaration", + "scope": 363, + "src": "3825:25:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 356, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3825:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 359, + "indexed": false, + "mutability": "mutable", + "name": "newDefaultGasLimit", + "nameLocation": "3867:18:3", + "nodeType": "VariableDeclaration", + "scope": 363, + "src": "3860:25:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 358, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3860:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 361, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "3901:9:3", + "nodeType": "VariableDeclaration", + "scope": 363, + "src": "3895:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 360, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "3895:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "3781:135:3" + }, + "src": "3745:172:3" + }, + { + "anonymous": false, + "documentation": { + "id": 364, + "nodeType": "StructuredDocumentation", + "src": "3923:283:3", + "text": " @notice Emitted when a provider updates their URI\n @param provider The address of the provider updating their URI\n @param oldUri The previous URI\n @param newUri The new URI\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "61e70b9f3f2fcdff8071ea3b7dba108a38e7c1e59d0d9ddf60462a6c4cee85ea", + "id": 374, + "name": "ProviderUriUpdated", + "nameLocation": "4217:18:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 373, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 366, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "4261:8:3", + "nodeType": "VariableDeclaration", + "scope": 374, + "src": "4245:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 365, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4245:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 368, + "indexed": false, + "mutability": "mutable", + "name": "oldUri", + "nameLocation": "4285:6:3", + "nodeType": "VariableDeclaration", + "scope": 374, + "src": "4279:12:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 367, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4279:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 370, + "indexed": false, + "mutability": "mutable", + "name": "newUri", + "nameLocation": "4307:6:3", + "nodeType": "VariableDeclaration", + "scope": 374, + "src": "4301:12:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 369, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4301:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 372, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "4329:9:3", + "nodeType": "VariableDeclaration", + "scope": 374, + "src": "4323:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 371, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4323:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "4235:109:3" + }, + "src": "4211:134:3" + }, + { + "anonymous": false, + "documentation": { + "id": 375, + "nodeType": "StructuredDocumentation", + "src": "4351:353:3", + "text": " @notice Emitted when a provider updates their fee manager address\n @param provider The address of the provider updating their fee manager\n @param oldFeeManager The previous fee manager address\n @param newFeeManager The new fee manager address\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "bdb4fa4c43ffef3ac259c0c209d3cecacc9579c559ec0273193f24d416c64377", + "id": 385, + "name": "ProviderFeeManagerUpdated", + "nameLocation": "4715:25:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 384, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 377, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "4766:8:3", + "nodeType": "VariableDeclaration", + "scope": 385, + "src": "4750:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 376, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4750:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 379, + "indexed": false, + "mutability": "mutable", + "name": "oldFeeManager", + "nameLocation": "4792:13:3", + "nodeType": "VariableDeclaration", + "scope": 385, + "src": "4784:21:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 378, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4784:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 381, + "indexed": false, + "mutability": "mutable", + "name": "newFeeManager", + "nameLocation": "4823:13:3", + "nodeType": "VariableDeclaration", + "scope": 385, + "src": "4815:21:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 380, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4815:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 383, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "4852:9:3", + "nodeType": "VariableDeclaration", + "scope": 385, + "src": "4846:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 382, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "4846:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "4740:127:3" + }, + "src": "4709:159:3" + }, + { + "anonymous": false, + "documentation": { + "id": 386, + "nodeType": "StructuredDocumentation", + "src": "4874:392:3", + "text": " @notice Emitted when a provider updates their maximum number of hashes that can be advanced\n @param provider The address of the provider updating their max hashes\n @param oldMaxNumHashes The previous maximum number of hashes\n @param newMaxNumHashes The new maximum number of hashes\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "506807cbd0dcbf141d2ec9b63b6891a27db1eb2d769dffe38cce227ff6a704f4", + "id": 396, + "name": "ProviderMaxNumHashesAdvanced", + "nameLocation": "5277:28:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 395, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 388, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5331:8:3", + "nodeType": "VariableDeclaration", + "scope": 396, + "src": "5315:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 387, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5315:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 390, + "indexed": false, + "mutability": "mutable", + "name": "oldMaxNumHashes", + "nameLocation": "5356:15:3", + "nodeType": "VariableDeclaration", + "scope": 396, + "src": "5349:22:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 389, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5349:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 392, + "indexed": false, + "mutability": "mutable", + "name": "newMaxNumHashes", + "nameLocation": "5388:15:3", + "nodeType": "VariableDeclaration", + "scope": 396, + "src": "5381:22:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 391, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5381:6:3", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 394, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "5419:9:3", + "nodeType": "VariableDeclaration", + "scope": 396, + "src": "5413:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 393, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "5413:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "5305:129:3" + }, + "src": "5271:164:3" + }, + { + "anonymous": false, + "documentation": { + "id": 397, + "nodeType": "StructuredDocumentation", + "src": "5441:349:3", + "text": " @notice Emitted when a provider withdraws their accumulated fees\n @param provider The address of the provider withdrawing fees\n @param recipient The address receiving the withdrawn fees\n @param withdrawnAmount The amount of fees withdrawn\n @param extraArgs A field for extra data for forward compatibility." + }, + "eventSelector": "1df589989558acb66e48be55ae76b555f1075333b1ced9e827a685ae2821967f", + "id": 407, + "name": "Withdrawal", + "nameLocation": "5801:10:3", + "nodeType": "EventDefinition", + "parameters": { + "id": 406, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 399, + "indexed": true, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5837:8:3", + "nodeType": "VariableDeclaration", + "scope": 407, + "src": "5821:24:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 398, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5821:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 401, + "indexed": true, + "mutability": "mutable", + "name": "recipient", + "nameLocation": "5871:9:3", + "nodeType": "VariableDeclaration", + "scope": 407, + "src": "5855:25:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 400, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5855:7:3", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 403, + "indexed": false, + "mutability": "mutable", + "name": "withdrawnAmount", + "nameLocation": "5898:15:3", + "nodeType": "VariableDeclaration", + "scope": 407, + "src": "5890:23:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 402, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "5890:7:3", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 405, + "indexed": false, + "mutability": "mutable", + "name": "extraArgs", + "nameLocation": "5929:9:3", + "nodeType": "VariableDeclaration", + "scope": 407, + "src": "5923:15:3", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 404, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "5923:5:3", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "5811:133:3" + }, + "src": "5795:150:3" + } + ], + "scope": 409, + "src": "425:5522:3", + "usedErrors": [], + "usedEvents": [ + 303, + 318, + 341, + 352, + 363, + 374, + 385, + 396, + 407 + ] + } + ], + "src": "39:5909:3" + }, + "id": 3 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol", + "exportedSymbols": { + "EntropyStructs": [ + 453 + ] + }, + "id": 454, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 410, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "38:23:4" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyStructs", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 453, + "linearizedBaseContracts": [ + 453 + ], + "name": "EntropyStructs", + "nameLocation": "377:14:4", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "EntropyStructs.ProviderInfo", + "id": 435, + "members": [ + { + "constant": false, + "id": 412, + "mutability": "mutable", + "name": "feeInWei", + "nameLocation": "436:8:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "428:16:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 411, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "428:7:4", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 414, + "mutability": "mutable", + "name": "accruedFeesInWei", + "nameLocation": "462:16:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "454:24:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 413, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "454:7:4", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 416, + "mutability": "mutable", + "name": "originalCommitment", + "nameLocation": "777:18:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "769:26:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 415, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "769:7:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 418, + "mutability": "mutable", + "name": "originalCommitmentSequenceNumber", + "nameLocation": "812:32:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "805:39:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 417, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "805:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 420, + "mutability": "mutable", + "name": "commitmentMetadata", + "nameLocation": "1049:18:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "1043:24:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 419, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1043:5:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 422, + "mutability": "mutable", + "name": "uri", + "nameLocation": "1352:3:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "1346:9:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 421, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1346:5:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 424, + "mutability": "mutable", + "name": "endSequenceNumber", + "nameLocation": "1706:17:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "1699:24:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 423, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1699:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 426, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1827:14:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "1820:21:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 425, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1820:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 428, + "mutability": "mutable", + "name": "currentCommitment", + "nameLocation": "2240:17:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "2232:25:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 427, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2232:7:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 430, + "mutability": "mutable", + "name": "currentCommitmentSequenceNumber", + "nameLocation": "2274:31:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "2267:38:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 429, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2267:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 432, + "mutability": "mutable", + "name": "feeManager", + "nameLocation": "2415:10:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "2407:18:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 431, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2407:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 434, + "mutability": "mutable", + "name": "maxNumHashes", + "nameLocation": "2604:12:4", + "nodeType": "VariableDeclaration", + "scope": 435, + "src": "2597:19:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 433, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2597:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "name": "ProviderInfo", + "nameLocation": "405:12:4", + "nodeType": "StructDefinition", + "scope": 453, + "src": "398:2225:4", + "visibility": "public" + }, + { + "canonicalName": "EntropyStructs.Request", + "id": 452, + "members": [ + { + "constant": false, + "id": 437, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2691:8:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "2683:16:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 436, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2683:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 439, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2716:14:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "2709:21:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 438, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2709:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 441, + "mutability": "mutable", + "name": "numHashes", + "nameLocation": "2823:9:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "2816:16:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 440, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2816:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 443, + "mutability": "mutable", + "name": "commitment", + "nameLocation": "3037:10:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "3029:18:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 442, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3029:7:4", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 445, + "mutability": "mutable", + "name": "blockNumber", + "nameLocation": "3425:11:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "3418:18:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 444, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3418:6:4", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 447, + "mutability": "mutable", + "name": "requester", + "nameLocation": "3512:9:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "3504:17:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 446, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3504:7:4", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 449, + "mutability": "mutable", + "name": "useBlockhash", + "nameLocation": "3630:12:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "3625:17:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 448, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3625:4:4", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 451, + "mutability": "mutable", + "name": "isRequestWithCallback", + "nameLocation": "3719:21:4", + "nodeType": "VariableDeclaration", + "scope": 452, + "src": "3714:26:4", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 450, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3714:4:4", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "name": "Request", + "nameLocation": "2636:7:4", + "nodeType": "StructDefinition", + "scope": 453, + "src": "2629:1118:4", + "visibility": "public" + } + ], + "scope": 454, + "src": "368:3381:4", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "38:3712:4" + }, + "id": 4 + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol", + "exportedSymbols": { + "EntropyStructsV2": [ + 502 + ] + }, + "id": 503, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 455, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "38:23:5" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "EntropyStructsV2", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 502, + "linearizedBaseContracts": [ + 502 + ], + "name": "EntropyStructsV2", + "nameLocation": "72:16:5", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "EntropyStructsV2.ProviderInfo", + "id": 482, + "members": [ + { + "constant": false, + "id": 457, + "mutability": "mutable", + "name": "feeInWei", + "nameLocation": "133:8:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "125:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 456, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "125:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 459, + "mutability": "mutable", + "name": "accruedFeesInWei", + "nameLocation": "159:16:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "151:24:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 458, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "151:7:5", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 461, + "mutability": "mutable", + "name": "originalCommitment", + "nameLocation": "474:18:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "466:26:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 460, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "466:7:5", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 463, + "mutability": "mutable", + "name": "originalCommitmentSequenceNumber", + "nameLocation": "509:32:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "502:39:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 462, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "502:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 465, + "mutability": "mutable", + "name": "commitmentMetadata", + "nameLocation": "746:18:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "740:24:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 464, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "740:5:5", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 467, + "mutability": "mutable", + "name": "uri", + "nameLocation": "1049:3:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "1043:9:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 466, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "1043:5:5", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 469, + "mutability": "mutable", + "name": "endSequenceNumber", + "nameLocation": "1403:17:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "1396:24:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 468, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1396:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 471, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1524:14:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "1517:21:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 470, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1517:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 473, + "mutability": "mutable", + "name": "currentCommitment", + "nameLocation": "1937:17:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "1929:25:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 472, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1929:7:5", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 475, + "mutability": "mutable", + "name": "currentCommitmentSequenceNumber", + "nameLocation": "1971:31:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "1964:38:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 474, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1964:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 477, + "mutability": "mutable", + "name": "feeManager", + "nameLocation": "2112:10:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "2104:18:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 476, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2104:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 479, + "mutability": "mutable", + "name": "maxNumHashes", + "nameLocation": "2301:12:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "2294:19:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 478, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2294:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 481, + "mutability": "mutable", + "name": "defaultGasLimit", + "nameLocation": "2381:15:5", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "2374:22:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 480, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2374:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "name": "ProviderInfo", + "nameLocation": "102:12:5", + "nodeType": "StructDefinition", + "scope": 502, + "src": "95:2308:5", + "visibility": "public" + }, + { + "canonicalName": "EntropyStructsV2.Request", + "id": 501, + "members": [ + { + "constant": false, + "id": 484, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2471:8:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "2463:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 483, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2463:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 486, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "2496:14:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "2489:21:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 485, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2489:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 488, + "mutability": "mutable", + "name": "numHashes", + "nameLocation": "2603:9:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "2596:16:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 487, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "2596:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 490, + "mutability": "mutable", + "name": "commitment", + "nameLocation": "2817:10:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "2809:18:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 489, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2809:7:5", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 492, + "mutability": "mutable", + "name": "blockNumber", + "nameLocation": "3205:11:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "3198:18:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 491, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3198:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 494, + "mutability": "mutable", + "name": "requester", + "nameLocation": "3292:9:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "3284:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 493, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3284:7:5", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 496, + "mutability": "mutable", + "name": "useBlockhash", + "nameLocation": "3410:12:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "3405:17:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 495, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3405:4:5", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 498, + "mutability": "mutable", + "name": "callbackStatus", + "nameLocation": "3549:14:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "3543:20:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint8", + "typeString": "uint8" + }, + "typeName": { + "id": 497, + "name": "uint8", + "nodeType": "ElementaryTypeName", + "src": "3543:5:5", + "typeDescriptions": { + "typeIdentifier": "t_uint8", + "typeString": "uint8" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 500, + "mutability": "mutable", + "name": "gasLimit10k", + "nameLocation": "3852:11:5", + "nodeType": "VariableDeclaration", + "scope": 501, + "src": "3845:18:5", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint16", + "typeString": "uint16" + }, + "typeName": { + "id": 499, + "name": "uint16", + "nodeType": "ElementaryTypeName", + "src": "3845:6:5", + "typeDescriptions": { + "typeIdentifier": "t_uint16", + "typeString": "uint16" + } + }, + "visibility": "internal" + } + ], + "name": "Request", + "nameLocation": "2416:7:5", + "nodeType": "StructDefinition", + "scope": 502, + "src": "2409:1461:5", + "visibility": "public" + } + ], + "scope": 503, + "src": "63:3809:5", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "38:3835:5" + }, + "id": 5 + }, + "@pythnetwork/entropy-sdk-solidity/IEntropy.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropy.sol", + "exportedSymbols": { + "EntropyEvents": [ + 292 + ], + "EntropyEventsV2": [ + 408 + ], + "EntropyStructs": [ + 453 + ], + "EntropyStructsV2": [ + 502 + ], + "IEntropy": [ + 673 + ], + "IEntropyV2": [ + 823 + ] + }, + "id": 674, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 504, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:6" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol", + "file": "./EntropyEvents.sol", + "id": 505, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 674, + "sourceUnit": 293, + "src": "62:29:6", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol", + "file": "./EntropyEventsV2.sol", + "id": 506, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 674, + "sourceUnit": 409, + "src": "92:31:6", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol", + "file": "./EntropyStructsV2.sol", + "id": 507, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 674, + "sourceUnit": 503, + "src": "124:32:6", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "file": "./IEntropyV2.sol", + "id": 508, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 674, + "sourceUnit": 824, + "src": "157:26:6", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 509, + "name": "EntropyEvents", + "nameLocations": [ + "207:13:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 292, + "src": "207:13:6" + }, + "id": 510, + "nodeType": "InheritanceSpecifier", + "src": "207:13:6" + }, + { + "baseName": { + "id": 511, + "name": "EntropyEventsV2", + "nameLocations": [ + "222:15:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 408, + "src": "222:15:6" + }, + "id": 512, + "nodeType": "InheritanceSpecifier", + "src": "222:15:6" + }, + { + "baseName": { + "id": 513, + "name": "IEntropyV2", + "nameLocations": [ + "239:10:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 823, + "src": "239:10:6" + }, + "id": 514, + "nodeType": "InheritanceSpecifier", + "src": "239:10:6" + } + ], + "canonicalName": "IEntropy", + "contractDependencies": [], + "contractKind": "interface", + "fullyImplemented": false, + "id": 673, + "linearizedBaseContracts": [ + 673, + 823, + 408, + 292 + ], + "name": "IEntropy", + "nameLocation": "195:8:6", + "nodeType": "ContractDefinition", + "nodes": [ + { + "functionSelector": "38b049c6", + "id": 527, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "register", + "nameLocation": "632:8:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 525, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 516, + "mutability": "mutable", + "name": "feeInWei", + "nameLocation": "658:8:6", + "nodeType": "VariableDeclaration", + "scope": 527, + "src": "650:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 515, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "650:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 518, + "mutability": "mutable", + "name": "commitment", + "nameLocation": "684:10:6", + "nodeType": "VariableDeclaration", + "scope": 527, + "src": "676:18:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 517, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "676:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 520, + "mutability": "mutable", + "name": "commitmentMetadata", + "nameLocation": "719:18:6", + "nodeType": "VariableDeclaration", + "scope": 527, + "src": "704:33:6", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_bytes_calldata_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 519, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "704:5:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 522, + "mutability": "mutable", + "name": "chainLength", + "nameLocation": "754:11:6", + "nodeType": "VariableDeclaration", + "scope": 527, + "src": "747:18:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 521, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "747:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 524, + "mutability": "mutable", + "name": "uri", + "nameLocation": "790:3:6", + "nodeType": "VariableDeclaration", + "scope": 527, + "src": "775:18:6", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_bytes_calldata_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 523, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "775:5:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "640:159:6" + }, + "returnParameters": { + "id": 526, + "nodeType": "ParameterList", + "parameters": [], + "src": "808:0:6" + }, + "scope": 673, + "src": "623:186:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "02387a7b", + "id": 532, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "withdraw", + "nameLocation": "1060:8:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 530, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 529, + "mutability": "mutable", + "name": "amount", + "nameLocation": "1077:6:6", + "nodeType": "VariableDeclaration", + "scope": 532, + "src": "1069:14:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 528, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1069:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1068:16:6" + }, + "returnParameters": { + "id": 531, + "nodeType": "ParameterList", + "parameters": [], + "src": "1093:0:6" + }, + "scope": 673, + "src": "1051:43:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "308fe218", + "id": 539, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "withdrawAsFeeManager", + "nameLocation": "1388:20:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 537, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 534, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1417:8:6", + "nodeType": "VariableDeclaration", + "scope": 539, + "src": "1409:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 533, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1409:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 536, + "mutability": "mutable", + "name": "amount", + "nameLocation": "1435:6:6", + "nodeType": "VariableDeclaration", + "scope": 539, + "src": "1427:14:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 535, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "1427:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "1408:34:6" + }, + "returnParameters": { + "id": 538, + "nodeType": "ParameterList", + "parameters": [], + "src": "1451:0:6" + }, + "scope": 673, + "src": "1379:73:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "93cbf217", + "id": 550, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "request", + "nameLocation": "2282:7:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 546, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 541, + "mutability": "mutable", + "name": "provider", + "nameLocation": "2307:8:6", + "nodeType": "VariableDeclaration", + "scope": 550, + "src": "2299:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 540, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2299:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 543, + "mutability": "mutable", + "name": "userCommitment", + "nameLocation": "2333:14:6", + "nodeType": "VariableDeclaration", + "scope": 550, + "src": "2325:22:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 542, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "2325:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 545, + "mutability": "mutable", + "name": "useBlockHash", + "nameLocation": "2362:12:6", + "nodeType": "VariableDeclaration", + "scope": 550, + "src": "2357:17:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 544, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2357:4:6", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "2289:91:6" + }, + "returnParameters": { + "id": 549, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 548, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "2414:22:6", + "nodeType": "VariableDeclaration", + "scope": 550, + "src": "2407:29:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 547, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2407:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "2406:31:6" + }, + "scope": 673, + "src": "2273:165:6", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "19cb825f", + "id": 559, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestWithCallback", + "nameLocation": "3245:19:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 555, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 552, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3282:8:6", + "nodeType": "VariableDeclaration", + "scope": 559, + "src": "3274:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 551, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3274:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 554, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "3308:16:6", + "nodeType": "VariableDeclaration", + "scope": 559, + "src": "3300:24:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 553, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3300:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "3264:66:6" + }, + "returnParameters": { + "id": 558, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 557, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "3364:22:6", + "nodeType": "VariableDeclaration", + "scope": 559, + "src": "3357:29:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 556, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3357:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "3356:31:6" + }, + "scope": 673, + "src": "3236:152:6", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "9371df51", + "id": 572, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "reveal", + "nameLocation": "4030:6:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 568, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 561, + "mutability": "mutable", + "name": "provider", + "nameLocation": "4054:8:6", + "nodeType": "VariableDeclaration", + "scope": 572, + "src": "4046:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 560, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4046:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 563, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "4079:14:6", + "nodeType": "VariableDeclaration", + "scope": 572, + "src": "4072:21:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 562, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "4072:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 565, + "mutability": "mutable", + "name": "userRevelation", + "nameLocation": "4111:14:6", + "nodeType": "VariableDeclaration", + "scope": 572, + "src": "4103:22:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 564, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "4103:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 567, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "4143:18:6", + "nodeType": "VariableDeclaration", + "scope": 572, + "src": "4135:26:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 566, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "4135:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "4036:131:6" + }, + "returnParameters": { + "id": 571, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 570, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "4194:12:6", + "nodeType": "VariableDeclaration", + "scope": 572, + "src": "4186:20:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 569, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "4186:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "4185:22:6" + }, + "scope": 673, + "src": "4021:187:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "3d30bc0e", + "id": 583, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "revealWithCallback", + "nameLocation": "5169:18:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 581, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 574, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5205:8:6", + "nodeType": "VariableDeclaration", + "scope": 583, + "src": "5197:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 573, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5197:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 576, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "5230:14:6", + "nodeType": "VariableDeclaration", + "scope": 583, + "src": "5223:21:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 575, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "5223:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 578, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "5262:16:6", + "nodeType": "VariableDeclaration", + "scope": 583, + "src": "5254:24:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 577, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "5254:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 580, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "5296:18:6", + "nodeType": "VariableDeclaration", + "scope": 583, + "src": "5288:26:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 579, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "5288:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "5187:133:6" + }, + "returnParameters": { + "id": 582, + "nodeType": "ParameterList", + "parameters": [], + "src": "5329:0:6" + }, + "scope": 673, + "src": "5160:170:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "7583902f", + "id": 591, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getProviderInfo", + "nameLocation": "5345:15:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 586, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 585, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5378:8:6", + "nodeType": "VariableDeclaration", + "scope": 591, + "src": "5370:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 584, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5370:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "5360:32:6" + }, + "returnParameters": { + "id": 590, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 589, + "mutability": "mutable", + "name": "info", + "nameLocation": "5451:4:6", + "nodeType": "VariableDeclaration", + "scope": 591, + "src": "5416:39:6", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$435_memory_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + }, + "typeName": { + "id": 588, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 587, + "name": "EntropyStructs.ProviderInfo", + "nameLocations": [ + "5416:14:6", + "5431:12:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 435, + "src": "5416:27:6" + }, + "referencedDeclaration": 435, + "src": "5416:27:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$435_storage_ptr", + "typeString": "struct EntropyStructs.ProviderInfo" + } + }, + "visibility": "internal" + } + ], + "src": "5415:41:6" + }, + "scope": 673, + "src": "5336:121:6", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "6151ab1f", + "id": 601, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getRequest", + "nameLocation": "5472:10:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 596, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 593, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5500:8:6", + "nodeType": "VariableDeclaration", + "scope": 601, + "src": "5492:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 592, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5492:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 595, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "5525:14:6", + "nodeType": "VariableDeclaration", + "scope": 601, + "src": "5518:21:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 594, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "5518:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "5482:63:6" + }, + "returnParameters": { + "id": 600, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 599, + "mutability": "mutable", + "name": "req", + "nameLocation": "5599:3:6", + "nodeType": "VariableDeclaration", + "scope": 601, + "src": "5569:33:6", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_memory_ptr", + "typeString": "struct EntropyStructs.Request" + }, + "typeName": { + "id": 598, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 597, + "name": "EntropyStructs.Request", + "nameLocations": [ + "5569:14:6", + "5584:7:6" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 452, + "src": "5569:22:6" + }, + "referencedDeclaration": 452, + "src": "5569:22:6", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$452_storage_ptr", + "typeString": "struct EntropyStructs.Request" + } + }, + "visibility": "internal" + } + ], + "src": "5568:35:6" + }, + "scope": 673, + "src": "5463:141:6", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "b88c9148", + "id": 608, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFee", + "nameLocation": "5817:6:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 604, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 603, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5832:8:6", + "nodeType": "VariableDeclaration", + "scope": 608, + "src": "5824:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 602, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5824:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "5823:18:6" + }, + "returnParameters": { + "id": 607, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 606, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "5873:9:6", + "nodeType": "VariableDeclaration", + "scope": 608, + "src": "5865:17:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 605, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "5865:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "5864:19:6" + }, + "scope": 673, + "src": "5808:76:6", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "c970835c", + "id": 613, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getAccruedPythFees", + "nameLocation": "5899:18:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 609, + "nodeType": "ParameterList", + "parameters": [], + "src": "5917:2:6" + }, + "returnParameters": { + "id": 612, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 611, + "mutability": "mutable", + "name": "accruedPythFeesInWei", + "nameLocation": "5975:20:6", + "nodeType": "VariableDeclaration", + "scope": 613, + "src": "5967:28:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 610, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "5967:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "5966:30:6" + }, + "scope": 673, + "src": "5890:107:6", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "ace63a7e", + "id": 618, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "setProviderFee", + "nameLocation": "6012:14:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 616, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 615, + "mutability": "mutable", + "name": "newFeeInWei", + "nameLocation": "6035:11:6", + "nodeType": "VariableDeclaration", + "scope": 618, + "src": "6027:19:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 614, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "6027:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "6026:21:6" + }, + "returnParameters": { + "id": 617, + "nodeType": "ParameterList", + "parameters": [], + "src": "6056:0:6" + }, + "scope": 673, + "src": "6003:54:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "c03c035d", + "id": 625, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "setProviderFeeAsFeeManager", + "nameLocation": "6072:26:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 623, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 620, + "mutability": "mutable", + "name": "provider", + "nameLocation": "6116:8:6", + "nodeType": "VariableDeclaration", + "scope": 625, + "src": "6108:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 619, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6108:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 622, + "mutability": "mutable", + "name": "newFeeInWei", + "nameLocation": "6142:11:6", + "nodeType": "VariableDeclaration", + "scope": 625, + "src": "6134:19:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 621, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "6134:7:6", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "6098:61:6" + }, + "returnParameters": { + "id": 624, + "nodeType": "ParameterList", + "parameters": [], + "src": "6168:0:6" + }, + "scope": 673, + "src": "6063:106:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "b469f1c9", + "id": 630, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "setProviderUri", + "nameLocation": "6184:14:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 628, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 627, + "mutability": "mutable", + "name": "newUri", + "nameLocation": "6214:6:6", + "nodeType": "VariableDeclaration", + "scope": 630, + "src": "6199:21:6", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_bytes_calldata_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 626, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "6199:5:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "6198:23:6" + }, + "returnParameters": { + "id": 629, + "nodeType": "ParameterList", + "parameters": [], + "src": "6230:0:6" + }, + "scope": 673, + "src": "6175:56:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "472d35b9", + "id": 635, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "setFeeManager", + "nameLocation": "6655:13:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 633, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 632, + "mutability": "mutable", + "name": "manager", + "nameLocation": "6677:7:6", + "nodeType": "VariableDeclaration", + "scope": 635, + "src": "6669:15:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 631, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6669:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "6668:17:6" + }, + "returnParameters": { + "id": 634, + "nodeType": "ParameterList", + "parameters": [], + "src": "6694:0:6" + }, + "scope": 673, + "src": "6646:49:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "84a96f7e", + "id": 640, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "setMaxNumHashes", + "nameLocation": "6872:15:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 638, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 637, + "mutability": "mutable", + "name": "maxNumHashes", + "nameLocation": "6895:12:6", + "nodeType": "VariableDeclaration", + "scope": 640, + "src": "6888:19:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 636, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "6888:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "6887:21:6" + }, + "returnParameters": { + "id": 639, + "nodeType": "ParameterList", + "parameters": [], + "src": "6917:0:6" + }, + "scope": 673, + "src": "6863:55:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "524b6f70", + "id": 645, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "setDefaultGasLimit", + "nameLocation": "6990:18:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 643, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 642, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "7016:8:6", + "nodeType": "VariableDeclaration", + "scope": 645, + "src": "7009:15:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 641, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "7009:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "7008:17:6" + }, + "returnParameters": { + "id": 644, + "nodeType": "ParameterList", + "parameters": [], + "src": "7034:0:6" + }, + "scope": 673, + "src": "6981:54:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "96f0d6e4", + "id": 654, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "advanceProviderCommitment", + "nameLocation": "7232:25:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 652, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 647, + "mutability": "mutable", + "name": "provider", + "nameLocation": "7275:8:6", + "nodeType": "VariableDeclaration", + "scope": 654, + "src": "7267:16:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 646, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7267:7:6", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 649, + "mutability": "mutable", + "name": "advancedSequenceNumber", + "nameLocation": "7300:22:6", + "nodeType": "VariableDeclaration", + "scope": 654, + "src": "7293:29:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 648, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "7293:6:6", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 651, + "mutability": "mutable", + "name": "providerRevelation", + "nameLocation": "7340:18:6", + "nodeType": "VariableDeclaration", + "scope": 654, + "src": "7332:26:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 650, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7332:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "7257:107:6" + }, + "returnParameters": { + "id": 653, + "nodeType": "ParameterList", + "parameters": [], + "src": "7373:0:6" + }, + "scope": 673, + "src": "7223:151:6", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "c715aa2e", + "id": 661, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "constructUserCommitment", + "nameLocation": "7389:23:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 657, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 656, + "mutability": "mutable", + "name": "userRandomness", + "nameLocation": "7430:14:6", + "nodeType": "VariableDeclaration", + "scope": 661, + "src": "7422:22:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 655, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7422:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "7412:38:6" + }, + "returnParameters": { + "id": 660, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 659, + "mutability": "mutable", + "name": "userCommitment", + "nameLocation": "7482:14:6", + "nodeType": "VariableDeclaration", + "scope": 661, + "src": "7474:22:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 658, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7474:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "7473:24:6" + }, + "scope": 673, + "src": "7380:118:6", + "stateMutability": "pure", + "virtual": false, + "visibility": "external" + }, + { + "functionSelector": "14e82e8c", + "id": 672, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "combineRandomValues", + "nameLocation": "7513:19:6", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 668, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 663, + "mutability": "mutable", + "name": "userRandomness", + "nameLocation": "7550:14:6", + "nodeType": "VariableDeclaration", + "scope": 672, + "src": "7542:22:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 662, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7542:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 665, + "mutability": "mutable", + "name": "providerRandomness", + "nameLocation": "7582:18:6", + "nodeType": "VariableDeclaration", + "scope": 672, + "src": "7574:26:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 664, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7574:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 667, + "mutability": "mutable", + "name": "blockHash", + "nameLocation": "7618:9:6", + "nodeType": "VariableDeclaration", + "scope": 672, + "src": "7610:17:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 666, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7610:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "7532:101:6" + }, + "returnParameters": { + "id": 671, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 670, + "mutability": "mutable", + "name": "combinedRandomness", + "nameLocation": "7665:18:6", + "nodeType": "VariableDeclaration", + "scope": 672, + "src": "7657:26:6", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 669, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7657:7:6", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "7656:28:6" + }, + "scope": 673, + "src": "7504:181:6", + "stateMutability": "pure", + "virtual": false, + "visibility": "external" + } + ], + "scope": 674, + "src": "185:7502:6", + "usedErrors": [], + "usedEvents": [ + 185, + 190, + 203, + 216, + 227, + 243, + 251, + 259, + 267, + 275, + 283, + 291, + 303, + 318, + 341, + 352, + 363, + 374, + 385, + 396, + 407 + ] + } + ], + "src": "37:7651:6" + }, + "id": 6 + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "exportedSymbols": { + "IEntropyConsumer": [ + 729 + ] + }, + "id": 730, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 675, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:7" + }, + { + "abstract": true, + "baseContracts": [], + "canonicalName": "IEntropyConsumer", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": false, + "id": 729, + "linearizedBaseContracts": [ + 729 + ], + "name": "IEntropyConsumer", + "nameLocation": "80:16:7", + "nodeType": "ContractDefinition", + "nodes": [ + { + "body": { + "id": 713, + "nodeType": "Block", + "src": "429:253:7", + "statements": [ + { + "assignments": [ + 685 + ], + "declarations": [ + { + "constant": false, + "id": 685, + "mutability": "mutable", + "name": "entropy", + "nameLocation": "447:7:7", + "nodeType": "VariableDeclaration", + "scope": 713, + "src": "439:15:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 684, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "439:7:7", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 688, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 686, + "name": "getEntropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 719, + "src": "457:10:7", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 687, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "457:12:7", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "439:30:7" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 695, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 690, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 685, + "src": "487:7:7", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 693, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "506:1:7", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 692, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "498:7:7", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 691, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "498:7:7", + "typeDescriptions": {} + } + }, + "id": 694, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "498:10:7", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "487:21:7", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "456e74726f70792061646472657373206e6f7420736574", + "id": 696, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "510:25:7", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_e60db0a8cee923f04b5f9f7534e23d928fbe66e1acd9ebce5b5a3e302ef79bcf", + "typeString": "literal_string \"Entropy address not set\"" + }, + "value": "Entropy address not set" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_e60db0a8cee923f04b5f9f7534e23d928fbe66e1acd9ebce5b5a3e302ef79bcf", + "typeString": "literal_string \"Entropy address not set\"" + } + ], + "id": 689, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "479:7:7", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 697, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "479:57:7", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 698, + "nodeType": "ExpressionStatement", + "src": "479:57:7" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 703, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 700, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "554:3:7", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 701, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "558:6:7", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "554:10:7", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "id": 702, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 685, + "src": "568:7:7", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "554:21:7", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e6374696f6e", + "id": 704, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "577:37:7", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_8df3c3995bb08ddbb6a3f2cc5ea8c98a01a8d327b39305391122a5bdbafbef21", + "typeString": "literal_string \"Only Entropy can call this function\"" + }, + "value": "Only Entropy can call this function" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_8df3c3995bb08ddbb6a3f2cc5ea8c98a01a8d327b39305391122a5bdbafbef21", + "typeString": "literal_string \"Only Entropy can call this function\"" + } + ], + "id": 699, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "546:7:7", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 705, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "546:69:7", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 706, + "nodeType": "ExpressionStatement", + "src": "546:69:7" + }, + { + "expression": { + "arguments": [ + { + "id": 708, + "name": "sequence", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 677, + "src": "642:8:7", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + { + "id": 709, + "name": "provider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 679, + "src": "652:8:7", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 710, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 681, + "src": "662:12:7", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "id": 707, + "name": "entropyCallback", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 728, + "src": "626:15:7", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_uint64_$_t_address_$_t_bytes32_$returns$__$", + "typeString": "function (uint64,address,bytes32)" + } + }, + "id": 711, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "626:49:7", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 712, + "nodeType": "ExpressionStatement", + "src": "626:49:7" + } + ] + }, + "functionSelector": "52a5f1f8", + "id": 714, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_entropyCallback", + "nameLocation": "316:16:7", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 682, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 677, + "mutability": "mutable", + "name": "sequence", + "nameLocation": "349:8:7", + "nodeType": "VariableDeclaration", + "scope": 714, + "src": "342:15:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 676, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "342:6:7", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 679, + "mutability": "mutable", + "name": "provider", + "nameLocation": "375:8:7", + "nodeType": "VariableDeclaration", + "scope": 714, + "src": "367:16:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 678, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "367:7:7", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 681, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "401:12:7", + "nodeType": "VariableDeclaration", + "scope": 714, + "src": "393:20:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 680, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "393:7:7", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "332:87:7" + }, + "returnParameters": { + "id": 683, + "nodeType": "ParameterList", + "parameters": [], + "src": "429:0:7" + }, + "scope": 729, + "src": "307:375:7", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "id": 719, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getEntropy", + "nameLocation": "988:10:7", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 715, + "nodeType": "ParameterList", + "parameters": [], + "src": "998:2:7" + }, + "returnParameters": { + "id": 718, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 717, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 719, + "src": "1032:7:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 716, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1032:7:7", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1031:9:7" + }, + "scope": 729, + "src": "979:62:7", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "id": 728, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "entropyCallback", + "nameLocation": "1280:15:7", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 726, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 721, + "mutability": "mutable", + "name": "sequence", + "nameLocation": "1312:8:7", + "nodeType": "VariableDeclaration", + "scope": 728, + "src": "1305:15:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 720, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1305:6:7", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 723, + "mutability": "mutable", + "name": "provider", + "nameLocation": "1338:8:7", + "nodeType": "VariableDeclaration", + "scope": 728, + "src": "1330:16:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 722, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1330:7:7", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 725, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "1364:12:7", + "nodeType": "VariableDeclaration", + "scope": 728, + "src": "1356:20:7", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 724, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "1356:7:7", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "1295:87:7" + }, + "returnParameters": { + "id": 727, + "nodeType": "ParameterList", + "parameters": [], + "src": "1399:0:7" + }, + "scope": 729, + "src": "1271:129:7", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + } + ], + "scope": 730, + "src": "62:1340:7", + "usedErrors": [], + "usedEvents": [] + } + ], + "src": "37:1366:7" + }, + "id": 7 + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "ast": { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol", + "exportedSymbols": { + "EntropyEvents": [ + 292 + ], + "EntropyEventsV2": [ + 408 + ], + "EntropyStructs": [ + 453 + ], + "EntropyStructsV2": [ + 502 + ], + "IEntropyV2": [ + 823 + ] + }, + "id": 824, + "license": "Apache 2", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 731, + "literals": [ + "solidity", + "^", + "0.8", + ".0" + ], + "nodeType": "PragmaDirective", + "src": "37:23:8" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol", + "file": "./EntropyEvents.sol", + "id": 732, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 824, + "sourceUnit": 293, + "src": "62:29:8", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol", + "file": "./EntropyEventsV2.sol", + "id": 733, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 824, + "sourceUnit": 409, + "src": "92:31:8", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol", + "file": "./EntropyStructsV2.sol", + "id": 734, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 824, + "sourceUnit": 503, + "src": "124:32:8", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 735, + "name": "EntropyEventsV2", + "nameLocations": [ + "182:15:8" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 408, + "src": "182:15:8" + }, + "id": 736, + "nodeType": "InheritanceSpecifier", + "src": "182:15:8" + } + ], + "canonicalName": "IEntropyV2", + "contractDependencies": [], + "contractKind": "interface", + "fullyImplemented": false, + "id": 823, + "linearizedBaseContracts": [ + 823, + 408 + ], + "name": "IEntropyV2", + "nameLocation": "168:10:8", + "nodeType": "ContractDefinition", + "nodes": [ + { + "documentation": { + "id": 737, + "nodeType": "StructuredDocumentation", + "src": "204:1586:8", + "text": "@notice Request a random number using the default provider with default gas limit\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value.\n Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "7b43155d", + "id": 742, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "1804:9:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 738, + "nodeType": "ParameterList", + "parameters": [], + "src": "1813:2:8" + }, + "returnParameters": { + "id": 741, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 740, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "1873:22:8", + "nodeType": "VariableDeclaration", + "scope": 742, + "src": "1866:29:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 739, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1866:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "1865:31:8" + }, + "scope": 823, + "src": "1795:102:8", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 743, + "nodeType": "StructuredDocumentation", + "src": "1903:1669:8", + "text": "@notice Request a random number using the default provider with specified gas limit\n @param gasLimit The gas limit for the callback function.\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value.\n Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "0bed189f", + "id": 750, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "3586:9:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 746, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 745, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "3612:8:8", + "nodeType": "VariableDeclaration", + "scope": 750, + "src": "3605:15:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 744, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "3605:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "3595:31:8" + }, + "returnParameters": { + "id": 749, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 748, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "3660:22:8", + "nodeType": "VariableDeclaration", + "scope": 750, + "src": "3653:29:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 747, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3653:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "3652:31:8" + }, + "scope": 823, + "src": "3577:107:8", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 751, + "nodeType": "StructuredDocumentation", + "src": "3690:1760:8", + "text": "@notice Request a random number from a specific provider with specified gas limit\n @param provider The address of the provider to request from\n @param gasLimit The gas limit for the callback function\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\n Note that this method uses an in-contract PRNG to generate the user's contribution to the random number.\n This approach modifies the security guarantees such that a dishonest validator and provider can\n collude to manipulate the result (as opposed to a malicious user and provider). That is, the user\n now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption,\n call a variant of `requestV2` that accepts a `userRandomNumber` parameter." + }, + "functionSelector": "0e33da29", + "id": 760, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "5464:9:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 756, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 753, + "mutability": "mutable", + "name": "provider", + "nameLocation": "5491:8:8", + "nodeType": "VariableDeclaration", + "scope": 760, + "src": "5483:16:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 752, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5483:7:8", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 755, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "5516:8:8", + "nodeType": "VariableDeclaration", + "scope": 760, + "src": "5509:15:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 754, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "5509:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "5473:57:8" + }, + "returnParameters": { + "id": 759, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 758, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "5564:22:8", + "nodeType": "VariableDeclaration", + "scope": 760, + "src": "5557:29:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 757, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "5557:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "5556:31:8" + }, + "scope": 823, + "src": "5455:133:8", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 761, + "nodeType": "StructuredDocumentation", + "src": "5594:1409:8", + "text": "@notice Request a random number from a specific provider with a user-provided random number and gas limit\n @param provider The address of the provider to request from\n @param userRandomNumber A random number provided by the user for additional entropy\n @param gasLimit The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\n @return assignedSequenceNumber A unique identifier for this request\n @dev The address calling this function should be a contract that inherits from the IEntropyConsumer interface.\n The `entropyCallback` method on that interface will receive a callback with the returned sequence number and\n the generated random number.\n `entropyCallback` will be run with the `gasLimit` provided to this function.\n The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded\n by the provider's configured default limit.\n This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value.\n Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)`\n prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller." + }, + "functionSelector": "f77b45e1", + "id": 772, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "requestV2", + "nameLocation": "7017:9:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 768, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 763, + "mutability": "mutable", + "name": "provider", + "nameLocation": "7044:8:8", + "nodeType": "VariableDeclaration", + "scope": 772, + "src": "7036:16:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 762, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7036:7:8", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 765, + "mutability": "mutable", + "name": "userRandomNumber", + "nameLocation": "7070:16:8", + "nodeType": "VariableDeclaration", + "scope": 772, + "src": "7062:24:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 764, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "7062:7:8", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 767, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "7103:8:8", + "nodeType": "VariableDeclaration", + "scope": 772, + "src": "7096:15:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 766, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "7096:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "7026:91:8" + }, + "returnParameters": { + "id": 771, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 770, + "mutability": "mutable", + "name": "assignedSequenceNumber", + "nameLocation": "7151:22:8", + "nodeType": "VariableDeclaration", + "scope": 772, + "src": "7144:29:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 769, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "7144:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "7143:31:8" + }, + "scope": 823, + "src": "7008:167:8", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 773, + "nodeType": "StructuredDocumentation", + "src": "7181:442:8", + "text": "@notice Get information about a specific entropy provider\n @param provider The address of the provider to query\n @return info The provider information including configuration, fees, and operational status\n @dev This method returns detailed information about a provider's configuration and capabilities.\n The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits." + }, + "functionSelector": "2f9b787b", + "id": 781, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getProviderInfoV2", + "nameLocation": "7637:17:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 776, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 775, + "mutability": "mutable", + "name": "provider", + "nameLocation": "7672:8:8", + "nodeType": "VariableDeclaration", + "scope": 781, + "src": "7664:16:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 774, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7664:7:8", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "7654:32:8" + }, + "returnParameters": { + "id": 780, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 779, + "mutability": "mutable", + "name": "info", + "nameLocation": "7747:4:8", + "nodeType": "VariableDeclaration", + "scope": 781, + "src": "7710:41:8", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$482_memory_ptr", + "typeString": "struct EntropyStructsV2.ProviderInfo" + }, + "typeName": { + "id": 778, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 777, + "name": "EntropyStructsV2.ProviderInfo", + "nameLocations": [ + "7710:16:8", + "7727:12:8" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 482, + "src": "7710:29:8" + }, + "referencedDeclaration": 482, + "src": "7710:29:8", + "typeDescriptions": { + "typeIdentifier": "t_struct$_ProviderInfo_$482_storage_ptr", + "typeString": "struct EntropyStructsV2.ProviderInfo" + } + }, + "visibility": "internal" + } + ], + "src": "7709:43:8" + }, + "scope": 823, + "src": "7628:125:8", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 782, + "nodeType": "StructuredDocumentation", + "src": "7759:350:8", + "text": "@notice Get the address of the default entropy provider\n @return provider The address of the default provider\n @dev This method returns the address of the provider that will be used when no specific provider is specified\n in the requestV2 calls. The default provider can be used to get the base fee and gas limit information." + }, + "functionSelector": "82ee990c", + "id": 787, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getDefaultProvider", + "nameLocation": "8123:18:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 783, + "nodeType": "ParameterList", + "parameters": [], + "src": "8141:2:8" + }, + "returnParameters": { + "id": 786, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 785, + "mutability": "mutable", + "name": "provider", + "nameLocation": "8175:8:8", + "nodeType": "VariableDeclaration", + "scope": 787, + "src": "8167:16:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 784, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8167:7:8", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "8166:18:8" + }, + "scope": 823, + "src": "8114:71:8", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 788, + "nodeType": "StructuredDocumentation", + "src": "8191:561:8", + "text": "@notice Get information about a specific request\n @param provider The address of the provider that handled the request\n @param sequenceNumber The unique identifier of the request\n @return req The request information including status, random number, and other metadata\n @dev This method allows querying the state of a previously made request. The returned Request struct\n contains information about whether the request was fulfilled, the generated random number (if available),\n and other metadata about the request." + }, + "functionSelector": "754a3600", + "id": 798, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getRequestV2", + "nameLocation": "8766:12:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 793, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 790, + "mutability": "mutable", + "name": "provider", + "nameLocation": "8796:8:8", + "nodeType": "VariableDeclaration", + "scope": 798, + "src": "8788:16:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 789, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8788:7:8", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 792, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "8821:14:8", + "nodeType": "VariableDeclaration", + "scope": 798, + "src": "8814:21:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 791, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "8814:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "8778:63:8" + }, + "returnParameters": { + "id": 797, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 796, + "mutability": "mutable", + "name": "req", + "nameLocation": "8897:3:8", + "nodeType": "VariableDeclaration", + "scope": 798, + "src": "8865:35:8", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$501_memory_ptr", + "typeString": "struct EntropyStructsV2.Request" + }, + "typeName": { + "id": 795, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 794, + "name": "EntropyStructsV2.Request", + "nameLocations": [ + "8865:16:8", + "8882:7:8" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 501, + "src": "8865:24:8" + }, + "referencedDeclaration": 501, + "src": "8865:24:8", + "typeDescriptions": { + "typeIdentifier": "t_struct$_Request_$501_storage_ptr", + "typeString": "struct EntropyStructsV2.Request" + } + }, + "visibility": "internal" + } + ], + "src": "8864:37:8" + }, + "scope": 823, + "src": "8757:145:8", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 799, + "nodeType": "StructuredDocumentation", + "src": "8908:421:8", + "text": "@notice Get the fee charged by the default provider for the default gas limit\n @return feeAmount The fee amount in wei\n @dev This method returns the base fee required to make a request using the default provider with\n the default gas limit. This fee should be passed as msg.value when calling requestV2().\n The fee can change over time, so this method should be called before each request." + }, + "functionSelector": "8204b67a", + "id": 804, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "9343:8:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 800, + "nodeType": "ParameterList", + "parameters": [], + "src": "9351:2:8" + }, + "returnParameters": { + "id": 803, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 802, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "9385:9:8", + "nodeType": "VariableDeclaration", + "scope": 804, + "src": "9377:17:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 801, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "9377:7:8", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "9376:19:8" + }, + "scope": 823, + "src": "9334:62:8", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 805, + "nodeType": "StructuredDocumentation", + "src": "9402:489:8", + "text": "@notice Get the fee charged by the default provider for a specific gas limit\n @param gasLimit The gas limit for the callback function\n @return feeAmount The fee amount in wei\n @dev This method returns the fee required to make a request using the default provider with\n the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit).\n The fee can change over time, so this method should be called before each request." + }, + "functionSelector": "ca1642e1", + "id": 812, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "9905:8:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 808, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 807, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "9930:8:8", + "nodeType": "VariableDeclaration", + "scope": 812, + "src": "9923:15:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 806, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "9923:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "9913:31:8" + }, + "returnParameters": { + "id": 811, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 810, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "9976:9:8", + "nodeType": "VariableDeclaration", + "scope": 812, + "src": "9968:17:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 809, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "9968:7:8", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "9967:19:8" + }, + "scope": 823, + "src": "9896:91:8", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 813, + "nodeType": "StructuredDocumentation", + "src": "9993:628:8", + "text": "@notice Get the fee charged by a specific provider for a request with a given gas limit\n @param provider The address of the provider to query\n @param gasLimit The gas limit for the callback function\n @return feeAmount The fee amount in wei\n @dev This method returns the fee required to make a request using the specified provider with\n the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit)\n or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method\n should be called before each request." + }, + "functionSelector": "7ab2ac36", + "id": 822, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getFeeV2", + "nameLocation": "10635:8:8", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 818, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 815, + "mutability": "mutable", + "name": "provider", + "nameLocation": "10661:8:8", + "nodeType": "VariableDeclaration", + "scope": 822, + "src": "10653:16:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 814, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "10653:7:8", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 817, + "mutability": "mutable", + "name": "gasLimit", + "nameLocation": "10686:8:8", + "nodeType": "VariableDeclaration", + "scope": 822, + "src": "10679:15:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + }, + "typeName": { + "id": 816, + "name": "uint32", + "nodeType": "ElementaryTypeName", + "src": "10679:6:8", + "typeDescriptions": { + "typeIdentifier": "t_uint32", + "typeString": "uint32" + } + }, + "visibility": "internal" + } + ], + "src": "10643:57:8" + }, + "returnParameters": { + "id": 821, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 820, + "mutability": "mutable", + "name": "feeAmount", + "nameLocation": "10732:9:8", + "nodeType": "VariableDeclaration", + "scope": 822, + "src": "10724:17:8", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 819, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "10724:7:8", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "src": "10723:19:8" + }, + "scope": 823, + "src": "10626:117:8", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + } + ], + "scope": 824, + "src": "158:10587:8", + "usedErrors": [], + "usedEvents": [ + 303, + 318, + 341, + 352, + 363, + 374, + 385, + 396, + 407 + ] + } + ], + "src": "37:10709:8" + }, + "id": 8 + }, + "contracts/PlaylistReputationNFT.sol": { + "ast": { + "absolutePath": "contracts/PlaylistReputationNFT.sol", + "exportedSymbols": { + "Context": [ + 177 + ], + "ERC721A": [ + 3428 + ], + "ERC721A__IERC721Receiver": [ + 1346 + ], + "IERC721A": [ + 3649 + ], + "IEntropy": [ + 673 + ], + "IEntropyConsumer": [ + 729 + ], + "Ownable": [ + 147 + ], + "PlaylistReputationNFT": [ + 1328 + ] + }, + "id": 1329, + "license": "MIT", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 825, + "literals": [ + "solidity", + "^", + "0.8", + ".24" + ], + "nodeType": "PragmaDirective", + "src": "32:24:9" + }, + { + "absolutePath": "erc721a/contracts/ERC721A.sol", + "file": "erc721a/contracts/ERC721A.sol", + "id": 826, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 1329, + "sourceUnit": 3429, + "src": "58:39:9", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/access/Ownable.sol", + "file": "@openzeppelin/contracts/access/Ownable.sol", + "id": 827, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 1329, + "sourceUnit": 148, + "src": "98:52:9", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "file": "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol", + "id": 829, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 1329, + "sourceUnit": 730, + "src": "151:88:9", + "symbolAliases": [ + { + "foreign": { + "id": 828, + "name": "IEntropyConsumer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 729, + "src": "159:16:9", + "typeDescriptions": {} + }, + "nameLocation": "-1:-1:-1" + } + ], + "unitAlias": "" + }, + { + "absolutePath": "@pythnetwork/entropy-sdk-solidity/IEntropy.sol", + "file": "@pythnetwork/entropy-sdk-solidity/IEntropy.sol", + "id": 831, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 1329, + "sourceUnit": 674, + "src": "240:72:9", + "symbolAliases": [ + { + "foreign": { + "id": 830, + "name": "IEntropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 673, + "src": "248:8:9", + "typeDescriptions": {} + }, + "nameLocation": "-1:-1:-1" + } + ], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 832, + "name": "ERC721A", + "nameLocations": [ + "348:7:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 3428, + "src": "348:7:9" + }, + "id": 833, + "nodeType": "InheritanceSpecifier", + "src": "348:7:9" + }, + { + "baseName": { + "id": 834, + "name": "Ownable", + "nameLocations": [ + "357:7:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 147, + "src": "357:7:9" + }, + "id": 835, + "nodeType": "InheritanceSpecifier", + "src": "357:7:9" + }, + { + "baseName": { + "id": 836, + "name": "IEntropyConsumer", + "nameLocations": [ + "366:16:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 729, + "src": "366:16:9" + }, + "id": 837, + "nodeType": "InheritanceSpecifier", + "src": "366:16:9" + } + ], + "canonicalName": "PlaylistReputationNFT", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 1328, + "linearizedBaseContracts": [ + 1328, + 729, + 147, + 177, + 3428, + 3649 + ], + "name": "PlaylistReputationNFT", + "nameLocation": "323:21:9", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "PlaylistReputationNFT.PlaylistInfo", + "id": 848, + "members": [ + { + "constant": false, + "id": 839, + "mutability": "mutable", + "name": "name", + "nameLocation": "447:4:9", + "nodeType": "VariableDeclaration", + "scope": 848, + "src": "440:11:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 838, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "440:6:9", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 841, + "mutability": "mutable", + "name": "playlistId", + "nameLocation": "468:10:9", + "nodeType": "VariableDeclaration", + "scope": 848, + "src": "461:17:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 840, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "461:6:9", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 843, + "mutability": "mutable", + "name": "reputation", + "nameLocation": "496:10:9", + "nodeType": "VariableDeclaration", + "scope": 848, + "src": "488:18:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 842, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "488:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 845, + "mutability": "mutable", + "name": "createdAt", + "nameLocation": "539:9:9", + "nodeType": "VariableDeclaration", + "scope": 848, + "src": "531:17:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 844, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "531:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 847, + "mutability": "mutable", + "name": "isActive", + "nameLocation": "563:8:9", + "nodeType": "VariableDeclaration", + "scope": 848, + "src": "558:13:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 846, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "558:4:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "name": "PlaylistInfo", + "nameLocation": "417:12:9", + "nodeType": "StructDefinition", + "scope": 1328, + "src": "410:168:9", + "visibility": "public" + }, + { + "constant": false, + "id": 851, + "mutability": "mutable", + "name": "entropy", + "nameLocation": "629:7:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "620:16:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + }, + "typeName": { + "id": 850, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 849, + "name": "IEntropy", + "nameLocations": [ + "620:8:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 673, + "src": "620:8:9" + }, + "referencedDeclaration": 673, + "src": "620:8:9", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 853, + "mutability": "mutable", + "name": "entropyProvider", + "nameLocation": "650:15:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "642:23:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 852, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "642:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "functionSelector": "ecc6362f", + "id": 858, + "mutability": "mutable", + "name": "playlists", + "nameLocation": "732:9:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "692:49:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo)" + }, + "typeName": { + "id": 857, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 854, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "700:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "692:32:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 856, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 855, + "name": "PlaylistInfo", + "nameLocations": [ + "711:12:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 848, + "src": "711:12:9" + }, + "referencedDeclaration": 848, + "src": "711:12:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "baccd1d2", + "id": 862, + "mutability": "mutable", + "name": "pendingDecayRequests", + "nameLocation": "781:20:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "747:54:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_uint256_$", + "typeString": "mapping(uint64 => uint256)" + }, + "typeName": { + "id": 861, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 859, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "755:6:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "nodeType": "Mapping", + "src": "747:26:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_uint256_$", + "typeString": "mapping(uint64 => uint256)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 860, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "765:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "42545825", + "id": 868, + "mutability": "mutable", + "name": "hasVoted", + "nameLocation": "888:8:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "836:60:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_uint256_$_t_bool_$_$", + "typeString": "mapping(address => mapping(uint256 => bool))" + }, + "typeName": { + "id": 867, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 863, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "844:7:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "836:44:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_uint256_$_t_bool_$_$", + "typeString": "mapping(address => mapping(uint256 => bool))" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 866, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 864, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "863:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "855:24:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_bool_$", + "typeString": "mapping(uint256 => bool)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 865, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "874:4:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + } + }, + "visibility": "public" + }, + { + "constant": true, + "functionSelector": "d213c0f2", + "id": 871, + "mutability": "constant", + "name": "MAX_REPUTATION", + "nameLocation": "976:14:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "952:44:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 869, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "952:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "313030", + "id": 870, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "993:3:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_100_by_1", + "typeString": "int_const 100" + }, + "value": "100" + }, + "visibility": "public" + }, + { + "constant": true, + "functionSelector": "77ee63f1", + "id": 874, + "mutability": "constant", + "name": "GROWTH_PER_VOTE", + "nameLocation": "1026:15:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "1002:43:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 872, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1002:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "35", + "id": 873, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1044:1:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_5_by_1", + "typeString": "int_const 5" + }, + "value": "5" + }, + "visibility": "public" + }, + { + "constant": true, + "functionSelector": "4535f1c1", + "id": 877, + "mutability": "constant", + "name": "DECAY_CHANCE", + "nameLocation": "1075:12:9", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "1051:41:9", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 875, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1051:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "3330", + "id": 876, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1090:2:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_30_by_1", + "typeString": "int_const 30" + }, + "value": "30" + }, + "visibility": "public" + }, + { + "anonymous": false, + "eventSelector": "c3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2", + "id": 885, + "name": "PlaylistMinted", + "nameLocation": "1132:14:9", + "nodeType": "EventDefinition", + "parameters": { + "id": 884, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 879, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1163:7:9", + "nodeType": "VariableDeclaration", + "scope": 885, + "src": "1147:23:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 878, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1147:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 881, + "indexed": false, + "mutability": "mutable", + "name": "name", + "nameLocation": "1179:4:9", + "nodeType": "VariableDeclaration", + "scope": 885, + "src": "1172:11:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 880, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1172:6:9", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 883, + "indexed": false, + "mutability": "mutable", + "name": "playlistId", + "nameLocation": "1192:10:9", + "nodeType": "VariableDeclaration", + "scope": 885, + "src": "1185:17:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 882, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1185:6:9", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "1146:57:9" + }, + "src": "1126:78:9" + }, + { + "anonymous": false, + "eventSelector": "a15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab20", + "id": 893, + "name": "ReputationGrown", + "nameLocation": "1215:15:9", + "nodeType": "EventDefinition", + "parameters": { + "id": 892, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 887, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1247:7:9", + "nodeType": "VariableDeclaration", + "scope": 893, + "src": "1231:23:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 886, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1231:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 889, + "indexed": false, + "mutability": "mutable", + "name": "newReputation", + "nameLocation": "1264:13:9", + "nodeType": "VariableDeclaration", + "scope": 893, + "src": "1256:21:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 888, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1256:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 891, + "indexed": false, + "mutability": "mutable", + "name": "voter", + "nameLocation": "1287:5:9", + "nodeType": "VariableDeclaration", + "scope": 893, + "src": "1279:13:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 890, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1279:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1230:63:9" + }, + "src": "1209:85:9" + }, + { + "anonymous": false, + "eventSelector": "6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e073", + "id": 899, + "name": "DecayTriggered", + "nameLocation": "1305:14:9", + "nodeType": "EventDefinition", + "parameters": { + "id": 898, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 895, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1336:7:9", + "nodeType": "VariableDeclaration", + "scope": 899, + "src": "1320:23:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 894, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1320:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 897, + "indexed": false, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "1352:14:9", + "nodeType": "VariableDeclaration", + "scope": 899, + "src": "1345:21:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 896, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "1345:6:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "1319:48:9" + }, + "src": "1299:69:9" + }, + { + "anonymous": false, + "eventSelector": "7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b3", + "id": 905, + "name": "ReputationDecayed", + "nameLocation": "1379:17:9", + "nodeType": "EventDefinition", + "parameters": { + "id": 904, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 901, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1413:7:9", + "nodeType": "VariableDeclaration", + "scope": 905, + "src": "1397:23:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 900, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1397:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 903, + "indexed": false, + "mutability": "mutable", + "name": "newReputation", + "nameLocation": "1430:13:9", + "nodeType": "VariableDeclaration", + "scope": 905, + "src": "1422:21:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 902, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1422:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "1396:48:9" + }, + "src": "1373:72:9" + }, + { + "body": { + "id": 930, + "nodeType": "Block", + "src": "1552:82:9", + "statements": [ + { + "expression": { + "id": 924, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 920, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 851, + "src": "1562:7:9", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 922, + "name": "_entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 907, + "src": "1581:8:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 921, + "name": "IEntropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 673, + "src": "1572:8:9", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IEntropy_$673_$", + "typeString": "type(contract IEntropy)" + } + }, + "id": 923, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1572:18:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + }, + "src": "1562:28:9", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + }, + "id": 925, + "nodeType": "ExpressionStatement", + "src": "1562:28:9" + }, + { + "expression": { + "id": 928, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 926, + "name": "entropyProvider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 853, + "src": "1600:15:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 927, + "name": "_provider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 909, + "src": "1618:9:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "1600:27:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 929, + "nodeType": "ExpressionStatement", + "src": "1600:27:9" + } + ] + }, + "id": 931, + "implemented": true, + "kind": "constructor", + "modifiers": [ + { + "arguments": [ + { + "hexValue": "506c61796c697374526570", + "id": 912, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1508:13:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_7a8c4fc5507931841a459974fbe1ccd7e038964221aa230a4983dec560de583c", + "typeString": "literal_string \"PlaylistRep\"" + }, + "value": "PlaylistRep" + }, + { + "hexValue": "504c524550", + "id": 913, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1523:7:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_d49e8c51e340e0e370c868884a21c2807005185149d4820e68495c4a9f64d7fd", + "typeString": "literal_string \"PLREP\"" + }, + "value": "PLREP" + } + ], + "id": 914, + "kind": "baseConstructorSpecifier", + "modifierName": { + "id": 911, + "name": "ERC721A", + "nameLocations": [ + "1500:7:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 3428, + "src": "1500:7:9" + }, + "nodeType": "ModifierInvocation", + "src": "1500:31:9" + }, + { + "arguments": [ + { + "expression": { + "id": 916, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "1540:3:9", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 917, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "1544:6:9", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "1540:10:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "id": 918, + "kind": "baseConstructorSpecifier", + "modifierName": { + "id": 915, + "name": "Ownable", + "nameLocations": [ + "1532:7:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 147, + "src": "1532:7:9" + }, + "nodeType": "ModifierInvocation", + "src": "1532:19:9" + } + ], + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 910, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 907, + "mutability": "mutable", + "name": "_entropy", + "nameLocation": "1471:8:9", + "nodeType": "VariableDeclaration", + "scope": 931, + "src": "1463:16:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 906, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1463:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 909, + "mutability": "mutable", + "name": "_provider", + "nameLocation": "1489:9:9", + "nodeType": "VariableDeclaration", + "scope": 931, + "src": "1481:17:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 908, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1481:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1462:37:9" + }, + "returnParameters": { + "id": 919, + "nodeType": "ParameterList", + "parameters": [], + "src": "1552:0:9" + }, + "scope": 1328, + "src": "1451:183:9", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "public" + }, + { + "body": { + "id": 973, + "nodeType": "Block", + "src": "1806:407:9", + "statements": [ + { + "assignments": [ + 943 + ], + "declarations": [ + { + "constant": false, + "id": 943, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1824:7:9", + "nodeType": "VariableDeclaration", + "scope": 973, + "src": "1816:15:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 942, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1816:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 946, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 944, + "name": "_nextTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1510, + "src": "1834:12:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 945, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1834:14:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1816:32:9" + }, + { + "expression": { + "arguments": [ + { + "id": 948, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 933, + "src": "1864:2:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "hexValue": "31", + "id": 949, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1868:1:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 947, + "name": "_mint", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2687, + "src": "1858:5:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,uint256)" + } + }, + "id": 950, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "1858:12:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 951, + "nodeType": "ExpressionStatement", + "src": "1858:12:9" + }, + { + "expression": { + "id": 963, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 952, + "name": "playlists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 858, + "src": "1889:9:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo storage ref)" + } + }, + "id": 954, + "indexExpression": { + "id": 953, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 943, + "src": "1899:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "1889:18:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 956, + "name": "name", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 935, + "src": "1943:4:9", + "typeDescriptions": { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + } + }, + { + "id": 957, + "name": "playlistId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 937, + "src": "1973:10:9", + "typeDescriptions": { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + } + }, + { + "hexValue": "3530", + "id": 958, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2009:2:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_50_by_1", + "typeString": "int_const 50" + }, + "value": "50" + }, + { + "expression": { + "id": 959, + "name": "block", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -4, + "src": "2063:5:9", + "typeDescriptions": { + "typeIdentifier": "t_magic_block", + "typeString": "block" + } + }, + "id": 960, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2069:9:9", + "memberName": "timestamp", + "nodeType": "MemberAccess", + "src": "2063:15:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "74727565", + "id": 961, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2102:4:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + }, + { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + }, + { + "typeIdentifier": "t_rational_50_by_1", + "typeString": "int_const 50" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 955, + "name": "PlaylistInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 848, + "src": "1910:12:9", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_struct$_PlaylistInfo_$848_storage_ptr_$", + "typeString": "type(struct PlaylistReputationNFT.PlaylistInfo storage pointer)" + } + }, + "id": 962, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "structConstructorCall", + "lValueRequested": false, + "nameLocations": [ + "1937:4:9", + "1961:10:9", + "1997:10:9", + "2052:9:9", + "2092:8:9" + ], + "names": [ + "name", + "playlistId", + "reputation", + "createdAt", + "isActive" + ], + "nodeType": "FunctionCall", + "src": "1910:207:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_memory_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo memory" + } + }, + "src": "1889:228:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "id": 964, + "nodeType": "ExpressionStatement", + "src": "1889:228:9" + }, + { + "eventCall": { + "arguments": [ + { + "id": 966, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 943, + "src": "2156:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 967, + "name": "name", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 935, + "src": "2165:4:9", + "typeDescriptions": { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + } + }, + { + "id": 968, + "name": "playlistId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 937, + "src": "2171:10:9", + "typeDescriptions": { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + }, + { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string calldata" + } + ], + "id": 965, + "name": "PlaylistMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 885, + "src": "2141:14:9", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (uint256,string memory,string memory)" + } + }, + "id": 969, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2141:41:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 970, + "nodeType": "EmitStatement", + "src": "2136:46:9" + }, + { + "expression": { + "id": 971, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 943, + "src": "2199:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 941, + "id": 972, + "nodeType": "Return", + "src": "2192:14:9" + } + ] + }, + "functionSelector": "a7384a4c", + "id": 974, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "mintPlaylist", + "nameLocation": "1704:12:9", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 938, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 933, + "mutability": "mutable", + "name": "to", + "nameLocation": "1725:2:9", + "nodeType": "VariableDeclaration", + "scope": 974, + "src": "1717:10:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 932, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1717:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 935, + "mutability": "mutable", + "name": "name", + "nameLocation": "1745:4:9", + "nodeType": "VariableDeclaration", + "scope": 974, + "src": "1729:20:9", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string" + }, + "typeName": { + "id": 934, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1729:6:9", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 937, + "mutability": "mutable", + "name": "playlistId", + "nameLocation": "1767:10:9", + "nodeType": "VariableDeclaration", + "scope": 974, + "src": "1751:26:9", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_string_calldata_ptr", + "typeString": "string" + }, + "typeName": { + "id": 936, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1751:6:9", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "1716:62:9" + }, + "returnParameters": { + "id": 941, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 940, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 974, + "src": "1797:7:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 939, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1797:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "1796:9:9" + }, + "scope": 1328, + "src": "1695:518:9", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1050, + "nodeType": "Block", + "src": "2270:673:9", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 981, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 976, + "src": "2296:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 980, + "name": "_exists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2199, + "src": "2288:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 982, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2288:16:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "506c61796c69737420646f6573206e6f74206578697374", + "id": 983, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2306:25:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_af6165025490c4d899edcd333baea78e287d3dd18c243cff5eac67a4f37695c9", + "typeString": "literal_string \"Playlist does not exist\"" + }, + "value": "Playlist does not exist" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_af6165025490c4d899edcd333baea78e287d3dd18c243cff5eac67a4f37695c9", + "typeString": "literal_string \"Playlist does not exist\"" + } + ], + "id": 979, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "2280:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 984, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2280:52:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 985, + "nodeType": "ExpressionStatement", + "src": "2280:52:9" + }, + { + "expression": { + "arguments": [ + { + "id": 993, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "2350:30:9", + "subExpression": { + "baseExpression": { + "baseExpression": { + "id": 987, + "name": "hasVoted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 868, + "src": "2351:8:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_uint256_$_t_bool_$_$", + "typeString": "mapping(address => mapping(uint256 => bool))" + } + }, + "id": 990, + "indexExpression": { + "expression": { + "id": 988, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "2360:3:9", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 989, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2364:6:9", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "2360:10:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2351:20:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_bool_$", + "typeString": "mapping(uint256 => bool)" + } + }, + "id": 992, + "indexExpression": { + "id": 991, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 976, + "src": "2372:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2351:29:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "416c726561647920766f74656420666f72207468697320706c61796c697374", + "id": 994, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2382:33:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ab28de1dce11d5388ed0dda2a5faa9ea7ce9633f8f62f7f76712529c14fad598", + "typeString": "literal_string \"Already voted for this playlist\"" + }, + "value": "Already voted for this playlist" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ab28de1dce11d5388ed0dda2a5faa9ea7ce9633f8f62f7f76712529c14fad598", + "typeString": "literal_string \"Already voted for this playlist\"" + } + ], + "id": 986, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "2342:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 995, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2342:74:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 996, + "nodeType": "ExpressionStatement", + "src": "2342:74:9" + }, + { + "expression": { + "arguments": [ + { + "expression": { + "baseExpression": { + "id": 998, + "name": "playlists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 858, + "src": "2434:9:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo storage ref)" + } + }, + "id": 1000, + "indexExpression": { + "id": 999, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 976, + "src": "2444:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2434:18:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "id": 1001, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2453:8:9", + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 847, + "src": "2434:27:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "506c61796c69737420697320696e616374697665", + "id": 1002, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2463:22:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_87194798af08faeddb26cc580b3a7a54f50adc62d035a23b2250176ef0602ddf", + "typeString": "literal_string \"Playlist is inactive\"" + }, + "value": "Playlist is inactive" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_87194798af08faeddb26cc580b3a7a54f50adc62d035a23b2250176ef0602ddf", + "typeString": "literal_string \"Playlist is inactive\"" + } + ], + "id": 997, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "2426:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1003, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2426:60:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1004, + "nodeType": "ExpressionStatement", + "src": "2426:60:9" + }, + { + "assignments": [ + 1007 + ], + "declarations": [ + { + "constant": false, + "id": 1007, + "mutability": "mutable", + "name": "playlist", + "nameLocation": "2526:8:9", + "nodeType": "VariableDeclaration", + "scope": 1050, + "src": "2505:29:9", + "stateVariable": false, + "storageLocation": "storage", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo" + }, + "typeName": { + "id": 1006, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1005, + "name": "PlaylistInfo", + "nameLocations": [ + "2505:12:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 848, + "src": "2505:12:9" + }, + "referencedDeclaration": 848, + "src": "2505:12:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo" + } + }, + "visibility": "internal" + } + ], + "id": 1011, + "initialValue": { + "baseExpression": { + "id": 1008, + "name": "playlists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 858, + "src": "2537:9:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo storage ref)" + } + }, + "id": 1010, + "indexExpression": { + "id": 1009, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 976, + "src": "2547:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2537:18:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "2505:50:9" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1017, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1015, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1012, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1007, + "src": "2623:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1013, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2632:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "2623:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "id": 1014, + "name": "GROWTH_PER_VOTE", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 874, + "src": "2645:15:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2623:37:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "id": 1016, + "name": "MAX_REPUTATION", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 871, + "src": "2664:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2623:55:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": { + "id": 1031, + "nodeType": "Block", + "src": "2749:61:9", + "statements": [ + { + "expression": { + "id": 1029, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1025, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1007, + "src": "2763:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1027, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "2772:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "2763:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1028, + "name": "MAX_REPUTATION", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 871, + "src": "2785:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2763:36:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1030, + "nodeType": "ExpressionStatement", + "src": "2763:36:9" + } + ] + }, + "id": 1032, + "nodeType": "IfStatement", + "src": "2619:191:9", + "trueBody": { + "id": 1024, + "nodeType": "Block", + "src": "2680:63:9", + "statements": [ + { + "expression": { + "id": 1022, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1018, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1007, + "src": "2694:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1020, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "2703:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "2694:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "id": 1021, + "name": "GROWTH_PER_VOTE", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 874, + "src": "2717:15:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2694:38:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1023, + "nodeType": "ExpressionStatement", + "src": "2694:38:9" + } + ] + } + }, + { + "expression": { + "id": 1040, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "baseExpression": { + "id": 1033, + "name": "hasVoted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 868, + "src": "2828:8:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_uint256_$_t_bool_$_$", + "typeString": "mapping(address => mapping(uint256 => bool))" + } + }, + "id": 1037, + "indexExpression": { + "expression": { + "id": 1034, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "2837:3:9", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1035, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2841:6:9", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "2837:10:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2828:20:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_bool_$", + "typeString": "mapping(uint256 => bool)" + } + }, + "id": 1038, + "indexExpression": { + "id": 1036, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 976, + "src": "2849:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "2828:29:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "74727565", + "id": 1039, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2860:4:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "2828:36:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1041, + "nodeType": "ExpressionStatement", + "src": "2828:36:9" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1043, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 976, + "src": "2895:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1044, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1007, + "src": "2904:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1045, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2913:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "2904:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1046, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "2925:3:9", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1047, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "2929:6:9", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "2925:10:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1042, + "name": "ReputationGrown", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 893, + "src": "2879:15:9", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_address_$returns$__$", + "typeString": "function (uint256,uint256,address)" + } + }, + "id": 1048, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "2879:57:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1049, + "nodeType": "EmitStatement", + "src": "2874:62:9" + } + ] + }, + "functionSelector": "41ac50b3", + "id": 1051, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "voteForPlaylist", + "nameLocation": "2228:15:9", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 977, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 976, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "2252:7:9", + "nodeType": "VariableDeclaration", + "scope": 1051, + "src": "2244:15:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 975, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2244:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "2243:17:9" + }, + "returnParameters": { + "id": 978, + "nodeType": "ParameterList", + "parameters": [], + "src": "2270:0:9" + }, + "scope": 1328, + "src": "2219:724:9", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1120, + "nodeType": "Block", + "src": "3052:643:9", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 1058, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1053, + "src": "3078:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1057, + "name": "_exists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2199, + "src": "3070:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 1059, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3070:16:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "506c61796c69737420646f6573206e6f74206578697374", + "id": 1060, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3088:25:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_af6165025490c4d899edcd333baea78e287d3dd18c243cff5eac67a4f37695c9", + "typeString": "literal_string \"Playlist does not exist\"" + }, + "value": "Playlist does not exist" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_af6165025490c4d899edcd333baea78e287d3dd18c243cff5eac67a4f37695c9", + "typeString": "literal_string \"Playlist does not exist\"" + } + ], + "id": 1056, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "3062:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1061, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3062:52:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1062, + "nodeType": "ExpressionStatement", + "src": "3062:52:9" + }, + { + "expression": { + "arguments": [ + { + "expression": { + "baseExpression": { + "id": 1064, + "name": "playlists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 858, + "src": "3132:9:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo storage ref)" + } + }, + "id": 1066, + "indexExpression": { + "id": 1065, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1053, + "src": "3142:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3132:18:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "id": 1067, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3151:8:9", + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 847, + "src": "3132:27:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "506c61796c69737420697320696e616374697665", + "id": 1068, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3161:22:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_87194798af08faeddb26cc580b3a7a54f50adc62d035a23b2250176ef0602ddf", + "typeString": "literal_string \"Playlist is inactive\"" + }, + "value": "Playlist is inactive" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_87194798af08faeddb26cc580b3a7a54f50adc62d035a23b2250176ef0602ddf", + "typeString": "literal_string \"Playlist is inactive\"" + } + ], + "id": 1063, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "3124:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1069, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3124:60:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1070, + "nodeType": "ExpressionStatement", + "src": "3124:60:9" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1077, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "baseExpression": { + "id": 1072, + "name": "playlists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 858, + "src": "3202:9:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo storage ref)" + } + }, + "id": 1074, + "indexExpression": { + "id": 1073, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1053, + "src": "3212:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3202:18:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "id": 1075, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3221:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "3202:29:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">", + "rightExpression": { + "hexValue": "30", + "id": 1076, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3234:1:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "3202:33:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "52657075746174696f6e20616c7265616479206174206d696e696d756d", + "id": 1078, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3237:31:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_adadbc696c870280725fc23345c573128d07cd33b40cf9478936fdd66f83c60c", + "typeString": "literal_string \"Reputation already at minimum\"" + }, + "value": "Reputation already at minimum" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_adadbc696c870280725fc23345c573128d07cd33b40cf9478936fdd66f83c60c", + "typeString": "literal_string \"Reputation already at minimum\"" + } + ], + "id": 1071, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "3194:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1079, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3194:75:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1080, + "nodeType": "ExpressionStatement", + "src": "3194:75:9" + }, + { + "assignments": [ + 1082 + ], + "declarations": [ + { + "constant": false, + "id": 1082, + "mutability": "mutable", + "name": "requestFee", + "nameLocation": "3296:10:9", + "nodeType": "VariableDeclaration", + "scope": 1120, + "src": "3288:18:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + }, + "typeName": { + "id": 1081, + "name": "uint128", + "nodeType": "ElementaryTypeName", + "src": "3288:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "visibility": "internal" + } + ], + "id": 1087, + "initialValue": { + "arguments": [ + { + "id": 1085, + "name": "entropyProvider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 853, + "src": "3324:15:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "expression": { + "id": 1083, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 851, + "src": "3309:7:9", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + }, + "id": 1084, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3317:6:9", + "memberName": "getFee", + "nodeType": "MemberAccess", + "referencedDeclaration": 608, + "src": "3309:14:9", + "typeDescriptions": { + "typeIdentifier": "t_function_external_view$_t_address_$returns$_t_uint128_$", + "typeString": "function (address) view external returns (uint128)" + } + }, + "id": 1086, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3309:31:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3288:52:9" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1092, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1089, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "3358:3:9", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1090, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3362:5:9", + "memberName": "value", + "nodeType": "MemberAccess", + "src": "3358:9:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">=", + "rightExpression": { + "id": 1091, + "name": "requestFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1082, + "src": "3371:10:9", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + }, + "src": "3358:23:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e6f7420656e6f7567682066656573", + "id": 1093, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3383:17:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_68bd3e93aebc39553ce75a32d41341b55d92973a57cbcb00cdf28bc2d37d8b24", + "typeString": "literal_string \"Not enough fees\"" + }, + "value": "Not enough fees" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_68bd3e93aebc39553ce75a32d41341b55d92973a57cbcb00cdf28bc2d37d8b24", + "typeString": "literal_string \"Not enough fees\"" + } + ], + "id": 1088, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "3350:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1094, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3350:51:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1095, + "nodeType": "ExpressionStatement", + "src": "3350:51:9" + }, + { + "assignments": [ + 1097 + ], + "declarations": [ + { + "constant": false, + "id": 1097, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "3419:14:9", + "nodeType": "VariableDeclaration", + "scope": 1120, + "src": "3412:21:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 1096, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3412:6:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "id": 1108, + "initialValue": { + "arguments": [ + { + "id": 1102, + "name": "entropyProvider", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 853, + "src": "3496:15:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [ + { + "hexValue": "30", + "id": 1105, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3533:1:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 1104, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "3525:7:9", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes32_$", + "typeString": "type(bytes32)" + }, + "typeName": { + "id": 1103, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3525:7:9", + "typeDescriptions": {} + } + }, + "id": 1106, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3525:10:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "expression": { + "id": 1098, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 851, + "src": "3436:7:9", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + }, + "id": 1099, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "3444:19:9", + "memberName": "requestWithCallback", + "nodeType": "MemberAccess", + "referencedDeclaration": 559, + "src": "3436:27:9", + "typeDescriptions": { + "typeIdentifier": "t_function_external_payable$_t_address_$_t_bytes32_$returns$_t_uint64_$", + "typeString": "function (address,bytes32) payable external returns (uint64)" + } + }, + "id": 1101, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "names": [ + "value" + ], + "nodeType": "FunctionCallOptions", + "options": [ + { + "id": 1100, + "name": "requestFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1082, + "src": "3471:10:9", + "typeDescriptions": { + "typeIdentifier": "t_uint128", + "typeString": "uint128" + } + } + ], + "src": "3436:46:9", + "typeDescriptions": { + "typeIdentifier": "t_function_external_payable$_t_address_$_t_bytes32_$returns$_t_uint64_$value", + "typeString": "function (address,bytes32) payable external returns (uint64)" + } + }, + "id": 1107, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3436:141:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3412:165:9" + }, + { + "expression": { + "id": 1113, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1109, + "name": "pendingDecayRequests", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 862, + "src": "3588:20:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_uint256_$", + "typeString": "mapping(uint64 => uint256)" + } + }, + "id": 1111, + "indexExpression": { + "id": 1110, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1097, + "src": "3609:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3588:36:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1112, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1053, + "src": "3627:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3588:46:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1114, + "nodeType": "ExpressionStatement", + "src": "3588:46:9" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1116, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1053, + "src": "3664:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 1117, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1097, + "src": "3673:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + ], + "id": 1115, + "name": "DecayTriggered", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 899, + "src": "3649:14:9", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint64_$returns$__$", + "typeString": "function (uint256,uint64)" + } + }, + "id": 1118, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3649:39:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1119, + "nodeType": "EmitStatement", + "src": "3644:44:9" + } + ] + }, + "functionSelector": "85de8b3c", + "id": 1121, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "triggerDecay", + "nameLocation": "3005:12:9", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1054, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1053, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "3026:7:9", + "nodeType": "VariableDeclaration", + "scope": 1121, + "src": "3018:15:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1052, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3018:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "3017:17:9" + }, + "returnParameters": { + "id": 1055, + "nodeType": "ParameterList", + "parameters": [], + "src": "3052:0:9" + }, + "scope": 1328, + "src": "2996:699:9", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "baseFunctions": [ + 728 + ], + "body": { + "id": 1208, + "nodeType": "Block", + "src": "3807:797:9", + "statements": [ + { + "assignments": [ + 1132 + ], + "declarations": [ + { + "constant": false, + "id": 1132, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "3825:7:9", + "nodeType": "VariableDeclaration", + "scope": 1208, + "src": "3817:15:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1131, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3817:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1136, + "initialValue": { + "baseExpression": { + "id": 1133, + "name": "pendingDecayRequests", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 862, + "src": "3835:20:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_uint256_$", + "typeString": "mapping(uint64 => uint256)" + } + }, + "id": 1135, + "indexExpression": { + "id": 1134, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1123, + "src": "3856:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3835:36:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3817:54:9" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1140, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1138, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1132, + "src": "3889:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1139, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3900:1:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "3889:12:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "52657175657374206e6f7420666f756e64", + "id": 1141, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3903:19:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_08d952b17500dd5902992a000c0649ecce782bfe207c5a5b9167049eb212b204", + "typeString": "literal_string \"Request not found\"" + }, + "value": "Request not found" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_08d952b17500dd5902992a000c0649ecce782bfe207c5a5b9167049eb212b204", + "typeString": "literal_string \"Request not found\"" + } + ], + "id": 1137, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "3881:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1142, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "3881:42:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1143, + "nodeType": "ExpressionStatement", + "src": "3881:42:9" + }, + { + "assignments": [ + 1146 + ], + "declarations": [ + { + "constant": false, + "id": 1146, + "mutability": "mutable", + "name": "playlist", + "nameLocation": "3955:8:9", + "nodeType": "VariableDeclaration", + "scope": 1208, + "src": "3934:29:9", + "stateVariable": false, + "storageLocation": "storage", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo" + }, + "typeName": { + "id": 1145, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1144, + "name": "PlaylistInfo", + "nameLocations": [ + "3934:12:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 848, + "src": "3934:12:9" + }, + "referencedDeclaration": 848, + "src": "3934:12:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo" + } + }, + "visibility": "internal" + } + ], + "id": 1150, + "initialValue": { + "baseExpression": { + "id": 1147, + "name": "playlists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 858, + "src": "3966:9:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo storage ref)" + } + }, + "id": 1149, + "indexExpression": { + "id": 1148, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1132, + "src": "3976:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3966:18:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3934:50:9" + }, + { + "assignments": [ + 1152 + ], + "declarations": [ + { + "constant": false, + "id": 1152, + "mutability": "mutable", + "name": "randomValue", + "nameLocation": "4042:11:9", + "nodeType": "VariableDeclaration", + "scope": 1208, + "src": "4034:19:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1151, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4034:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1159, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1158, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "id": 1155, + "name": "randomNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1127, + "src": "4064:12:9", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + ], + "id": 1154, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "4056:7:9", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 1153, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4056:7:9", + "typeDescriptions": {} + } + }, + "id": 1156, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "4056:21:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "%", + "rightExpression": { + "hexValue": "313030", + "id": 1157, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4080:3:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_100_by_1", + "typeString": "int_const 100" + }, + "value": "100" + }, + "src": "4056:27:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "4034:49:9" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1162, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1160, + "name": "randomValue", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1152, + "src": "4097:11:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "id": 1161, + "name": "DECAY_CHANCE", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 877, + "src": "4111:12:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4097:26:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1202, + "nodeType": "IfStatement", + "src": "4093:443:9", + "trueBody": { + "id": 1201, + "nodeType": "Block", + "src": "4125:411:9", + "statements": [ + { + "assignments": [ + 1164 + ], + "declarations": [ + { + "constant": false, + "id": 1164, + "mutability": "mutable", + "name": "decayAmount", + "nameLocation": "4197:11:9", + "nodeType": "VariableDeclaration", + "scope": 1201, + "src": "4189:19:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1163, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4189:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1169, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1168, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1165, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1146, + "src": "4211:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1166, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "4220:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "4211:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "/", + "rightExpression": { + "hexValue": "3130", + "id": 1167, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4233:2:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_10_by_1", + "typeString": "int_const 10" + }, + "value": "10" + }, + "src": "4211:24:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "4189:46:9" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1173, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1170, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1146, + "src": "4253:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1171, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "4262:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "4253:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">", + "rightExpression": { + "id": 1172, + "name": "decayAmount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1164, + "src": "4275:11:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4253:33:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": { + "id": 1193, + "nodeType": "Block", + "src": "4361:99:9", + "statements": [ + { + "expression": { + "id": 1185, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1181, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1146, + "src": "4379:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1183, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "4388:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "4379:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "30", + "id": 1184, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4401:1:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "4379:23:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1186, + "nodeType": "ExpressionStatement", + "src": "4379:23:9" + }, + { + "expression": { + "id": 1191, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1187, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1146, + "src": "4420:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1189, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "4429:8:9", + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 847, + "src": "4420:17:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "66616c7365", + "id": 1190, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4440:5:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "4420:25:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1192, + "nodeType": "ExpressionStatement", + "src": "4420:25:9" + } + ] + }, + "id": 1194, + "nodeType": "IfStatement", + "src": "4249:211:9", + "trueBody": { + "id": 1180, + "nodeType": "Block", + "src": "4288:67:9", + "statements": [ + { + "expression": { + "id": 1178, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1174, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1146, + "src": "4306:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1176, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "4315:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "4306:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "-=", + "rightHandSide": { + "id": 1177, + "name": "decayAmount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1164, + "src": "4329:11:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4306:34:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1179, + "nodeType": "ExpressionStatement", + "src": "4306:34:9" + } + ] + } + }, + { + "eventCall": { + "arguments": [ + { + "id": 1196, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1132, + "src": "4496:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1197, + "name": "playlist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1146, + "src": "4505:8:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage pointer" + } + }, + "id": 1198, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "4514:10:9", + "memberName": "reputation", + "nodeType": "MemberAccess", + "referencedDeclaration": 843, + "src": "4505:19:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1195, + "name": "ReputationDecayed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 905, + "src": "4478:17:9", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256)" + } + }, + "id": 1199, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "4478:47:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1200, + "nodeType": "EmitStatement", + "src": "4473:52:9" + } + ] + } + }, + { + "expression": { + "id": 1206, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "4554:43:9", + "subExpression": { + "baseExpression": { + "id": 1203, + "name": "pendingDecayRequests", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 862, + "src": "4561:20:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint64_$_t_uint256_$", + "typeString": "mapping(uint64 => uint256)" + } + }, + "id": 1205, + "indexExpression": { + "id": 1204, + "name": "sequenceNumber", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1123, + "src": "4582:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "4561:36:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1207, + "nodeType": "ExpressionStatement", + "src": "4554:43:9" + } + ] + }, + "id": 1209, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "entropyCallback", + "nameLocation": "3710:15:9", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1129, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "3798:8:9" + }, + "parameters": { + "id": 1128, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1123, + "mutability": "mutable", + "name": "sequenceNumber", + "nameLocation": "3733:14:9", + "nodeType": "VariableDeclaration", + "scope": 1209, + "src": "3726:21:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 1122, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "3726:6:9", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1125, + "mutability": "mutable", + "name": "provider", + "nameLocation": "3757:8:9", + "nodeType": "VariableDeclaration", + "scope": 1209, + "src": "3749:16:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1124, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3749:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1127, + "mutability": "mutable", + "name": "randomNumber", + "nameLocation": "3775:12:9", + "nodeType": "VariableDeclaration", + "scope": 1209, + "src": "3767:20:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 1126, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3767:7:9", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "visibility": "internal" + } + ], + "src": "3725:63:9" + }, + "returnParameters": { + "id": 1130, + "nodeType": "ParameterList", + "parameters": [], + "src": "3807:0:9" + }, + "scope": 1328, + "src": "3701:903:9", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "internal" + }, + { + "baseFunctions": [ + 719 + ], + "body": { + "id": 1220, + "nodeType": "Block", + "src": "4673:40:9", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 1217, + "name": "entropy", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 851, + "src": "4698:7:9", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_IEntropy_$673", + "typeString": "contract IEntropy" + } + ], + "id": 1216, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "4690:7:9", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1215, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4690:7:9", + "typeDescriptions": {} + } + }, + "id": 1218, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "4690:16:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 1214, + "id": 1219, + "nodeType": "Return", + "src": "4683:23:9" + } + ] + }, + "id": 1221, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "getEntropy", + "nameLocation": "4619:10:9", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1211, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "4646:8:9" + }, + "parameters": { + "id": 1210, + "nodeType": "ParameterList", + "parameters": [], + "src": "4629:2:9" + }, + "returnParameters": { + "id": 1214, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1213, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1221, + "src": "4664:7:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1212, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4664:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "4663:9:9" + }, + "scope": 1328, + "src": "4610:103:9", + "stateMutability": "view", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 1240, + "nodeType": "Block", + "src": "4857:104:9", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 1231, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1223, + "src": "4883:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1230, + "name": "_exists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2199, + "src": "4875:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 1232, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "4875:16:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "506c61796c69737420646f6573206e6f74206578697374", + "id": 1233, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4893:25:9", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_af6165025490c4d899edcd333baea78e287d3dd18c243cff5eac67a4f37695c9", + "typeString": "literal_string \"Playlist does not exist\"" + }, + "value": "Playlist does not exist" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_af6165025490c4d899edcd333baea78e287d3dd18c243cff5eac67a4f37695c9", + "typeString": "literal_string \"Playlist does not exist\"" + } + ], + "id": 1229, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -18, + -18 + ], + "referencedDeclaration": -18, + "src": "4867:7:9", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1234, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "4867:52:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1235, + "nodeType": "ExpressionStatement", + "src": "4867:52:9" + }, + { + "expression": { + "baseExpression": { + "id": 1236, + "name": "playlists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 858, + "src": "4936:9:9", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_PlaylistInfo_$848_storage_$", + "typeString": "mapping(uint256 => struct PlaylistReputationNFT.PlaylistInfo storage ref)" + } + }, + "id": 1238, + "indexExpression": { + "id": 1237, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1223, + "src": "4946:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4936:18:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo storage ref" + } + }, + "functionReturnParameters": 1228, + "id": 1239, + "nodeType": "Return", + "src": "4929:25:9" + } + ] + }, + "functionSelector": "a9182f3f", + "id": 1241, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "getPlaylistInfo", + "nameLocation": "4780:15:9", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1224, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1223, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "4804:7:9", + "nodeType": "VariableDeclaration", + "scope": 1241, + "src": "4796:15:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1222, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4796:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "4795:17:9" + }, + "returnParameters": { + "id": 1228, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1227, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1241, + "src": "4836:19:9", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_memory_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo" + }, + "typeName": { + "id": 1226, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1225, + "name": "PlaylistInfo", + "nameLocations": [ + "4836:12:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 848, + "src": "4836:12:9" + }, + "referencedDeclaration": 848, + "src": "4836:12:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_PlaylistInfo_$848_storage_ptr", + "typeString": "struct PlaylistReputationNFT.PlaylistInfo" + } + }, + "visibility": "internal" + } + ], + "src": "4835:21:9" + }, + "scope": 1328, + "src": "4771:190:9", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1326, + "nodeType": "Block", + "src": "5044:745:9", + "statements": [ + { + "id": 1325, + "nodeType": "UncheckedBlock", + "src": "5054:729:9", + "statements": [ + { + "assignments": [ + 1250 + ], + "declarations": [ + { + "constant": false, + "id": 1250, + "mutability": "mutable", + "name": "tokenIdsIdx", + "nameLocation": "5086:11:9", + "nodeType": "VariableDeclaration", + "scope": 1325, + "src": "5078:19:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1249, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5078:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1251, + "nodeType": "VariableDeclarationStatement", + "src": "5078:19:9" + }, + { + "assignments": [ + 1253 + ], + "declarations": [ + { + "constant": false, + "id": 1253, + "mutability": "mutable", + "name": "currOwnershipAddr", + "nameLocation": "5119:17:9", + "nodeType": "VariableDeclaration", + "scope": 1325, + "src": "5111:25:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1252, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5111:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 1254, + "nodeType": "VariableDeclarationStatement", + "src": "5111:25:9" + }, + { + "assignments": [ + 1256 + ], + "declarations": [ + { + "constant": false, + "id": 1256, + "mutability": "mutable", + "name": "tokenIdsLength", + "nameLocation": "5158:14:9", + "nodeType": "VariableDeclaration", + "scope": 1325, + "src": "5150:22:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1255, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5150:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1260, + "initialValue": { + "arguments": [ + { + "id": 1258, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1243, + "src": "5185:5:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1257, + "name": "balanceOf", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1615, + "src": "5175:9:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", + "typeString": "function (address) view returns (uint256)" + } + }, + "id": 1259, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5175:16:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "5150:41:9" + }, + { + "assignments": [ + 1265 + ], + "declarations": [ + { + "constant": false, + "id": 1265, + "mutability": "mutable", + "name": "tokenIds", + "nameLocation": "5222:8:9", + "nodeType": "VariableDeclaration", + "scope": 1325, + "src": "5205:25:9", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", + "typeString": "uint256[]" + }, + "typeName": { + "baseType": { + "id": 1263, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5205:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1264, + "nodeType": "ArrayTypeName", + "src": "5205:9:9", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", + "typeString": "uint256[]" + } + }, + "visibility": "internal" + } + ], + "id": 1271, + "initialValue": { + "arguments": [ + { + "id": 1269, + "name": "tokenIdsLength", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1256, + "src": "5247:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1268, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "NewExpression", + "src": "5233:13:9", + "typeDescriptions": { + "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", + "typeString": "function (uint256) pure returns (uint256[] memory)" + }, + "typeName": { + "baseType": { + "id": 1266, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5237:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1267, + "nodeType": "ArrayTypeName", + "src": "5237:9:9", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", + "typeString": "uint256[]" + } + } + }, + "id": 1270, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5233:29:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", + "typeString": "uint256[] memory" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "5205:57:9" + }, + { + "assignments": [ + 1274 + ], + "declarations": [ + { + "constant": false, + "id": 1274, + "mutability": "mutable", + "name": "ownership", + "nameLocation": "5298:9:9", + "nodeType": "VariableDeclaration", + "scope": 1325, + "src": "5276:31:9", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership" + }, + "typeName": { + "id": 1273, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1272, + "name": "TokenOwnership", + "nameLocations": [ + "5276:14:9" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 3494, + "src": "5276:14:9" + }, + "referencedDeclaration": 3494, + "src": "5276:14:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_storage_ptr", + "typeString": "struct IERC721A.TokenOwnership" + } + }, + "visibility": "internal" + } + ], + "id": 1275, + "nodeType": "VariableDeclarationStatement", + "src": "5276:31:9" + }, + { + "body": { + "id": 1321, + "nodeType": "Block", + "src": "5453:291:9", + "statements": [ + { + "expression": { + "id": 1291, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1287, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1274, + "src": "5471:9:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 1289, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1277, + "src": "5496:1:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1288, + "name": "_ownershipAt", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1854, + "src": "5483:12:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_struct$_TokenOwnership_$3494_memory_ptr_$", + "typeString": "function (uint256) view returns (struct IERC721A.TokenOwnership memory)" + } + }, + "id": 1290, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5483:15:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "src": "5471:27:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 1292, + "nodeType": "ExpressionStatement", + "src": "5471:27:9" + }, + { + "condition": { + "expression": { + "id": 1293, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1274, + "src": "5520:9:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 1294, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "5530:6:9", + "memberName": "burned", + "nodeType": "MemberAccess", + "referencedDeclaration": 3491, + "src": "5520:16:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1296, + "nodeType": "IfStatement", + "src": "5516:30:9", + "trueBody": { + "id": 1295, + "nodeType": "Continue", + "src": "5538:8:9" + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 1303, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1297, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1274, + "src": "5568:9:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 1298, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "5578:4:9", + "memberName": "addr", + "nodeType": "MemberAccess", + "referencedDeclaration": 3487, + "src": "5568:14:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 1301, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5594:1:9", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 1300, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "5586:7:9", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1299, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5586:7:9", + "typeDescriptions": {} + } + }, + "id": 1302, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5586:10:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "5568:28:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1309, + "nodeType": "IfStatement", + "src": "5564:88:9", + "trueBody": { + "expression": { + "id": 1307, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1304, + "name": "currOwnershipAddr", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "5618:17:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "expression": { + "id": 1305, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1274, + "src": "5638:9:9", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 1306, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "5648:4:9", + "memberName": "addr", + "nodeType": "MemberAccess", + "referencedDeclaration": 3487, + "src": "5638:14:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "5618:34:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 1308, + "nodeType": "ExpressionStatement", + "src": "5618:34:9" + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 1312, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1310, + "name": "currOwnershipAddr", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "5674:17:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "id": 1311, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1243, + "src": "5695:5:9", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "5674:26:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1320, + "nodeType": "IfStatement", + "src": "5670:59:9", + "trueBody": { + "expression": { + "id": 1318, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1313, + "name": "tokenIds", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1265, + "src": "5702:8:9", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", + "typeString": "uint256[] memory" + } + }, + "id": 1316, + "indexExpression": { + "id": 1315, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": false, + "src": "5711:13:9", + "subExpression": { + "id": 1314, + "name": "tokenIdsIdx", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1250, + "src": "5711:11:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "5702:23:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1317, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1277, + "src": "5728:1:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "5702:27:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1319, + "nodeType": "ExpressionStatement", + "src": "5702:27:9" + } + } + ] + }, + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1283, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1281, + "name": "tokenIdsIdx", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1250, + "src": "5388:11:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 1282, + "name": "tokenIdsLength", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1256, + "src": "5403:14:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "5388:29:9", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1322, + "initializationExpression": { + "assignments": [ + 1277 + ], + "declarations": [ + { + "constant": false, + "id": 1277, + "mutability": "mutable", + "name": "i", + "nameLocation": "5351:1:9", + "nodeType": "VariableDeclaration", + "scope": 1322, + "src": "5343:9:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1276, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5343:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1280, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1278, + "name": "_startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1488, + "src": "5355:13:9", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1279, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5355:15:9", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "5343:27:9" + }, + "isSimpleCounterLoop": false, + "loopExpression": { + "expression": { + "id": 1285, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": true, + "src": "5435:3:9", + "subExpression": { + "id": 1284, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1277, + "src": "5437:1:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1286, + "nodeType": "ExpressionStatement", + "src": "5435:3:9" + }, + "nodeType": "ForStatement", + "src": "5321:423:9" + }, + { + "expression": { + "id": 1323, + "name": "tokenIds", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1265, + "src": "5764:8:9", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", + "typeString": "uint256[] memory" + } + }, + "functionReturnParameters": 1248, + "id": 1324, + "nodeType": "Return", + "src": "5757:15:9" + } + ] + } + ] + }, + "functionSelector": "8462151c", + "id": 1327, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "tokensOfOwner", + "nameLocation": "4976:13:9", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1244, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1243, + "mutability": "mutable", + "name": "owner", + "nameLocation": "4998:5:9", + "nodeType": "VariableDeclaration", + "scope": 1327, + "src": "4990:13:9", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1242, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4990:7:9", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "4989:15:9" + }, + "returnParameters": { + "id": 1248, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1247, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1327, + "src": "5026:16:9", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", + "typeString": "uint256[]" + }, + "typeName": { + "baseType": { + "id": 1245, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5026:7:9", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1246, + "nodeType": "ArrayTypeName", + "src": "5026:9:9", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", + "typeString": "uint256[]" + } + }, + "visibility": "internal" + } + ], + "src": "5025:18:9" + }, + "scope": 1328, + "src": "4967:822:9", + "stateMutability": "view", + "virtual": false, + "visibility": "public" + } + ], + "scope": 1329, + "src": "314:5477:9", + "usedErrors": [ + 13, + 18, + 3434, + 3437, + 3440, + 3443, + 3446, + 3449, + 3452, + 3455, + 3458, + 3461, + 3464, + 3467, + 3470, + 3473, + 3476, + 3479, + 3482, + 3485 + ], + "usedEvents": [ + 24, + 885, + 893, + 899, + 905, + 3517, + 3526, + 3535, + 3648 + ] + } + ], + "src": "32:5759:9" + }, + "id": 9 + }, + "erc721a/contracts/ERC721A.sol": { + "ast": { + "absolutePath": "erc721a/contracts/ERC721A.sol", + "exportedSymbols": { + "ERC721A": [ + 3428 + ], + "ERC721A__IERC721Receiver": [ + 1346 + ], + "IERC721A": [ + 3649 + ] + }, + "id": 3429, + "license": "MIT", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 1330, + "literals": [ + "solidity", + "^", + "0.8", + ".4" + ], + "nodeType": "PragmaDirective", + "src": "84:23:10" + }, + { + "absolutePath": "erc721a/contracts/IERC721A.sol", + "file": "./IERC721A.sol", + "id": 1331, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 3429, + "sourceUnit": 3650, + "src": "109:24:10", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "ERC721A__IERC721Receiver", + "contractDependencies": [], + "contractKind": "interface", + "documentation": { + "id": 1332, + "nodeType": "StructuredDocumentation", + "src": "135:51:10", + "text": " @dev Interface of ERC721 token receiver." + }, + "fullyImplemented": false, + "id": 1346, + "linearizedBaseContracts": [ + 1346 + ], + "name": "ERC721A__IERC721Receiver", + "nameLocation": "197:24:10", + "nodeType": "ContractDefinition", + "nodes": [ + { + "functionSelector": "150b7a02", + "id": 1345, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "onERC721Received", + "nameLocation": "237:16:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1341, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1334, + "mutability": "mutable", + "name": "operator", + "nameLocation": "271:8:10", + "nodeType": "VariableDeclaration", + "scope": 1345, + "src": "263:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1333, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "263:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1336, + "mutability": "mutable", + "name": "from", + "nameLocation": "297:4:10", + "nodeType": "VariableDeclaration", + "scope": 1345, + "src": "289:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1335, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "289:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1338, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "319:7:10", + "nodeType": "VariableDeclaration", + "scope": 1345, + "src": "311:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1337, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "311:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1340, + "mutability": "mutable", + "name": "data", + "nameLocation": "351:4:10", + "nodeType": "VariableDeclaration", + "scope": 1345, + "src": "336:19:10", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_bytes_calldata_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 1339, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "336:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "253:108:10" + }, + "returnParameters": { + "id": 1344, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1343, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1345, + "src": "380:6:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "typeName": { + "id": 1342, + "name": "bytes4", + "nodeType": "ElementaryTypeName", + "src": "380:6:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "visibility": "internal" + } + ], + "src": "379:8:10" + }, + "scope": 1346, + "src": "228:160:10", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + } + ], + "scope": 3429, + "src": "187:203:10", + "usedErrors": [], + "usedEvents": [] + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 1348, + "name": "IERC721A", + "nameLocations": [ + "1073:8:10" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 3649, + "src": "1073:8:10" + }, + "id": 1349, + "nodeType": "InheritanceSpecifier", + "src": "1073:8:10" + } + ], + "canonicalName": "ERC721A", + "contractDependencies": [], + "contractKind": "contract", + "documentation": { + "id": 1347, + "nodeType": "StructuredDocumentation", + "src": "392:660:10", + "text": " @title ERC721A\n @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)\n Non-Fungible Token Standard, including the Metadata extension.\n Optimized for lower gas during batch mints.\n Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)\n starting from `_startTokenId()`.\n The `_sequentialUpTo()` function can be overriden to enable spot mints\n (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`.\n Assumptions:\n - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.\n - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256)." + }, + "fullyImplemented": true, + "id": 3428, + "linearizedBaseContracts": [ + 3428, + 3649 + ], + "name": "ERC721A", + "nameLocation": "1062:7:10", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "ERC721A.TokenApprovalRef", + "id": 1352, + "members": [ + { + "constant": false, + "id": 1351, + "mutability": "mutable", + "name": "value", + "nameLocation": "1215:5:10", + "nodeType": "VariableDeclaration", + "scope": 1352, + "src": "1207:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1350, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1207:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "name": "TokenApprovalRef", + "nameLocation": "1180:16:10", + "nodeType": "StructDefinition", + "scope": 3428, + "src": "1173:54:10", + "visibility": "public" + }, + { + "constant": true, + "id": 1360, + "mutability": "constant", + "name": "_BITMASK_ADDRESS_DATA_ENTRY", + "nameLocation": "1488:27:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "1463:68:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1353, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1463:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_rational_18446744073709551615_by_1", + "typeString": "int_const 18446744073709551615" + }, + "id": 1359, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_rational_18446744073709551616_by_1", + "typeString": "int_const 18446744073709551616" + }, + "id": 1356, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 1354, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1519:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "hexValue": "3634", + "id": 1355, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1524:2:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_64_by_1", + "typeString": "int_const 64" + }, + "value": "64" + }, + "src": "1519:7:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_18446744073709551616_by_1", + "typeString": "int_const 18446744073709551616" + } + } + ], + "id": 1357, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "1518:9:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_18446744073709551616_by_1", + "typeString": "int_const 18446744073709551616" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 1358, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1530:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "1518:13:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_18446744073709551615_by_1", + "typeString": "int_const 18446744073709551615" + } + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1363, + "mutability": "constant", + "name": "_BITPOS_NUMBER_MINTED", + "nameLocation": "1629:21:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "1604:51:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1361, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1604:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "3634", + "id": 1362, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1653:2:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_64_by_1", + "typeString": "int_const 64" + }, + "value": "64" + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1366, + "mutability": "constant", + "name": "_BITPOS_NUMBER_BURNED", + "nameLocation": "1753:21:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "1728:52:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1364, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1728:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "313238", + "id": 1365, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1777:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_128_by_1", + "typeString": "int_const 128" + }, + "value": "128" + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1369, + "mutability": "constant", + "name": "_BITPOS_AUX", + "nameLocation": "1869:11:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "1844:42:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1367, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1844:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "313932", + "id": 1368, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1883:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_192_by_1", + "typeString": "int_const 192" + }, + "value": "192" + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1377, + "mutability": "constant", + "name": "_BITMASK_AUX_COMPLEMENT", + "nameLocation": "1999:23:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "1974:65:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1370, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1974:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512895_by_1", + "typeString": "int_const 6277...(50 digits omitted)...2895" + }, + "id": 1376, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512896_by_1", + "typeString": "int_const 6277...(50 digits omitted)...2896" + }, + "id": 1373, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 1371, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2026:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "hexValue": "313932", + "id": 1372, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2031:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_192_by_1", + "typeString": "int_const 192" + }, + "value": "192" + }, + "src": "2026:8:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512896_by_1", + "typeString": "int_const 6277...(50 digits omitted)...2896" + } + } + ], + "id": 1374, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2025:10:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512896_by_1", + "typeString": "int_const 6277...(50 digits omitted)...2896" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 1375, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2038:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "2025:14:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512895_by_1", + "typeString": "int_const 6277...(50 digits omitted)...2895" + } + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1380, + "mutability": "constant", + "name": "_BITPOS_START_TIMESTAMP", + "nameLocation": "2136:23:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "2111:54:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1378, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2111:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "313630", + "id": 1379, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2162:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_160_by_1", + "typeString": "int_const 160" + }, + "value": "160" + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1385, + "mutability": "constant", + "name": "_BITMASK_BURNED", + "nameLocation": "2258:15:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "2233:51:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1381, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2233:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_rational_26959946667150639794667015087019630673637144422540572481103610249216_by_1", + "typeString": "int_const 2695...(60 digits omitted)...9216" + }, + "id": 1384, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 1382, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2276:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "hexValue": "323234", + "id": 1383, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2281:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_224_by_1", + "typeString": "int_const 224" + }, + "value": "224" + }, + "src": "2276:8:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_26959946667150639794667015087019630673637144422540572481103610249216_by_1", + "typeString": "int_const 2695...(60 digits omitted)...9216" + } + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1388, + "mutability": "constant", + "name": "_BITPOS_NEXT_INITIALIZED", + "nameLocation": "2390:24:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "2365:55:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1386, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2365:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "323235", + "id": 1387, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2417:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_225_by_1", + "typeString": "int_const 225" + }, + "value": "225" + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1393, + "mutability": "constant", + "name": "_BITMASK_NEXT_INITIALIZED", + "nameLocation": "2522:25:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "2497:61:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1389, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2497:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_rational_53919893334301279589334030174039261347274288845081144962207220498432_by_1", + "typeString": "int_const 5391...(60 digits omitted)...8432" + }, + "id": 1392, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 1390, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2550:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "hexValue": "323235", + "id": 1391, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2555:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_225_by_1", + "typeString": "int_const 225" + }, + "value": "225" + }, + "src": "2550:8:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_53919893334301279589334030174039261347274288845081144962207220498432_by_1", + "typeString": "int_const 5391...(60 digits omitted)...8432" + } + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1396, + "mutability": "constant", + "name": "_BITPOS_EXTRA_DATA", + "nameLocation": "2650:18:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "2625:49:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1394, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2625:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "323332", + "id": 1395, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2671:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_232_by_1", + "typeString": "int_const 232" + }, + "value": "232" + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1404, + "mutability": "constant", + "name": "_BITMASK_EXTRA_DATA_COMPLEMENT", + "nameLocation": "2792:30:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "2767:72:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1397, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2767:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_rational_6901746346790563787434755862277025452451108972170386555162524223799295_by_1", + "typeString": "int_const 6901...(62 digits omitted)...9295" + }, + "id": 1403, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_rational_6901746346790563787434755862277025452451108972170386555162524223799296_by_1", + "typeString": "int_const 6901...(62 digits omitted)...9296" + }, + "id": 1400, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 1398, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2826:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "hexValue": "323332", + "id": 1399, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2831:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_232_by_1", + "typeString": "int_const 232" + }, + "value": "232" + }, + "src": "2826:8:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_6901746346790563787434755862277025452451108972170386555162524223799296_by_1", + "typeString": "int_const 6901...(62 digits omitted)...9296" + } + } + ], + "id": 1401, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2825:10:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_6901746346790563787434755862277025452451108972170386555162524223799296_by_1", + "typeString": "int_const 6901...(62 digits omitted)...9296" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 1402, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2838:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "2825:14:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_6901746346790563787434755862277025452451108972170386555162524223799295_by_1", + "typeString": "int_const 6901...(62 digits omitted)...9295" + } + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1412, + "mutability": "constant", + "name": "_BITMASK_ADDRESS", + "nameLocation": "2924:16:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "2899:58:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1405, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2899:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_rational_1461501637330902918203684832716283019655932542975_by_1", + "typeString": "int_const 1461...(41 digits omitted)...2975" + }, + "id": 1411, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_rational_1461501637330902918203684832716283019655932542976_by_1", + "typeString": "int_const 1461...(41 digits omitted)...2976" + }, + "id": 1408, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 1406, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2944:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "hexValue": "313630", + "id": 1407, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2949:3:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_160_by_1", + "typeString": "int_const 160" + }, + "value": "160" + }, + "src": "2944:8:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1461501637330902918203684832716283019655932542976_by_1", + "typeString": "int_const 1461...(41 digits omitted)...2976" + } + } + ], + "id": 1409, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2943:10:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1461501637330902918203684832716283019655932542976_by_1", + "typeString": "int_const 1461...(41 digits omitted)...2976" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 1410, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2956:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "2943:14:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1461501637330902918203684832716283019655932542975_by_1", + "typeString": "int_const 1461...(41 digits omitted)...2975" + } + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1415, + "mutability": "constant", + "name": "_MAX_MINT_ERC2309_QUANTITY_LIMIT", + "nameLocation": "3265:32:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "3240:64:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1413, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3240:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "35303030", + "id": 1414, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3300:4:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_5000_by_1", + "typeString": "int_const 5000" + }, + "value": "5000" + }, + "visibility": "private" + }, + { + "constant": true, + "id": 1418, + "mutability": "constant", + "name": "_TRANSFER_EVENT_SIGNATURE", + "nameLocation": "3451:25:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "3426:127:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + }, + "typeName": { + "id": 1416, + "name": "bytes32", + "nodeType": "ElementaryTypeName", + "src": "3426:7:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes32", + "typeString": "bytes32" + } + }, + "value": { + "hexValue": "307864646632353261643162653263383962363963326230363866633337386461613935326261376631363363346131313632386635356134646635323362336566", + "id": 1417, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3487:66:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_100389287136786176327247604509743168900146139575972864366142685224231313322991_by_1", + "typeString": "int_const 1003...(70 digits omitted)...2991" + }, + "value": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1420, + "mutability": "mutable", + "name": "_currentIndex", + "nameLocation": "3796:13:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "3780:29:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1419, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3780:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1422, + "mutability": "mutable", + "name": "_burnCounter", + "nameLocation": "3868:12:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "3852:28:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1421, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3852:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1424, + "mutability": "mutable", + "name": "_name", + "nameLocation": "3920:5:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "3905:20:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string" + }, + "typeName": { + "id": 1423, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "3905:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1426, + "mutability": "mutable", + "name": "_symbol", + "nameLocation": "3967:7:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "3952:22:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string" + }, + "typeName": { + "id": 1425, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "3952:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1430, + "mutability": "mutable", + "name": "_packedOwnerships", + "nameLocation": "4394:17:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "4358:53:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + }, + "typeName": { + "id": 1429, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 1427, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4366:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "4358:27:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 1428, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4377:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1434, + "mutability": "mutable", + "name": "_packedAddressData", + "nameLocation": "4653:18:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "4617:54:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "typeName": { + "id": 1433, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 1431, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4625:7:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "4617:27:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 1432, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4636:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1439, + "mutability": "mutable", + "name": "_tokenApprovals", + "nameLocation": "4773:15:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "4728:60:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_TokenApprovalRef_$1352_storage_$", + "typeString": "mapping(uint256 => struct ERC721A.TokenApprovalRef)" + }, + "typeName": { + "id": 1438, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 1435, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4736:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "4728:36:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_TokenApprovalRef_$1352_storage_$", + "typeString": "mapping(uint256 => struct ERC721A.TokenApprovalRef)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 1437, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1436, + "name": "TokenApprovalRef", + "nameLocations": [ + "4747:16:10" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 1352, + "src": "4747:16:10" + }, + "referencedDeclaration": 1352, + "src": "4747:16:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenApprovalRef_$1352_storage_ptr", + "typeString": "struct ERC721A.TokenApprovalRef" + } + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1445, + "mutability": "mutable", + "name": "_operatorApprovals", + "nameLocation": "4896:18:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "4843:71:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", + "typeString": "mapping(address => mapping(address => bool))" + }, + "typeName": { + "id": 1444, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 1440, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4851:7:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "4843:44:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", + "typeString": "mapping(address => mapping(address => bool))" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 1443, + "keyName": "", + "keyNameLocation": "-1:-1:-1", + "keyType": { + "id": 1441, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4870:7:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "4862:24:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "valueName": "", + "valueNameLocation": "-1:-1:-1", + "valueType": { + "id": 1442, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4881:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + } + }, + "visibility": "private" + }, + { + "constant": false, + "id": 1447, + "mutability": "mutable", + "name": "_spotMinted", + "nameLocation": "5060:11:10", + "nodeType": "VariableDeclaration", + "scope": 3428, + "src": "5044:27:10", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1446, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5044:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "private" + }, + { + "body": { + "id": 1478, + "nodeType": "Block", + "src": "5317:190:10", + "statements": [ + { + "expression": { + "id": 1456, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1454, + "name": "_name", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1424, + "src": "5327:5:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1455, + "name": "name_", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1449, + "src": "5335:5:10", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "5327:13:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 1457, + "nodeType": "ExpressionStatement", + "src": "5327:13:10" + }, + { + "expression": { + "id": 1460, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1458, + "name": "_symbol", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1426, + "src": "5350:7:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1459, + "name": "symbol_", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1451, + "src": "5360:7:10", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "5350:17:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 1461, + "nodeType": "ExpressionStatement", + "src": "5350:17:10" + }, + { + "expression": { + "id": 1465, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1462, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "5377:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1463, + "name": "_startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1488, + "src": "5393:13:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1464, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5393:15:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "5377:31:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1466, + "nodeType": "ExpressionStatement", + "src": "5377:31:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1471, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1467, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "5423:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1468, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5423:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1469, + "name": "_startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1488, + "src": "5443:13:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1470, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5443:15:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "5423:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1477, + "nodeType": "IfStatement", + "src": "5419:81:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 1473, + "name": "SequentialUpToTooSmall", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3473, + "src": "5468:22:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1474, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "5491:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "5468:31:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 1472, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "5460:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 1475, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "5460:40:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1476, + "nodeType": "ExpressionStatement", + "src": "5460:40:10" + } + } + ] + }, + "id": 1479, + "implemented": true, + "kind": "constructor", + "modifiers": [], + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1452, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1449, + "mutability": "mutable", + "name": "name_", + "nameLocation": "5287:5:10", + "nodeType": "VariableDeclaration", + "scope": 1479, + "src": "5273:19:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 1448, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5273:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1451, + "mutability": "mutable", + "name": "symbol_", + "nameLocation": "5308:7:10", + "nodeType": "VariableDeclaration", + "scope": 1479, + "src": "5294:21:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 1450, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5294:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "5272:44:10" + }, + "returnParameters": { + "id": 1453, + "nodeType": "ParameterList", + "parameters": [], + "src": "5317:0:10" + }, + "scope": 3428, + "src": "5261:246:10", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "public" + }, + { + "body": { + "id": 1487, + "nodeType": "Block", + "src": "6031:25:10", + "statements": [ + { + "expression": { + "hexValue": "30", + "id": 1485, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6048:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "functionReturnParameters": 1484, + "id": 1486, + "nodeType": "Return", + "src": "6041:8:10" + } + ] + }, + "documentation": { + "id": 1480, + "nodeType": "StructuredDocumentation", + "src": "5703:258:10", + "text": " @dev Returns the starting token ID for sequential mints.\n Override this function to change the starting token ID for sequential mints.\n Note: The value returned must never change after any tokens have been minted." + }, + "id": 1488, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_startTokenId", + "nameLocation": "5975:13:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1481, + "nodeType": "ParameterList", + "parameters": [], + "src": "5988:2:10" + }, + "returnParameters": { + "id": 1484, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1483, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1488, + "src": "6022:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1482, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6022:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "6021:9:10" + }, + "scope": 3428, + "src": "5966:90:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1500, + "nodeType": "Block", + "src": "6471:41:10", + "statements": [ + { + "expression": { + "expression": { + "arguments": [ + { + "id": 1496, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "6493:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 1495, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6493:7:10", + "typeDescriptions": {} + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + } + ], + "id": 1494, + "name": "type", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -27, + "src": "6488:4:10", + "typeDescriptions": { + "typeIdentifier": "t_function_metatype_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1497, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "6488:13:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_magic_meta_type_t_uint256", + "typeString": "type(uint256)" + } + }, + "id": 1498, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "memberLocation": "6502:3:10", + "memberName": "max", + "nodeType": "MemberAccess", + "src": "6488:17:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1493, + "id": 1499, + "nodeType": "Return", + "src": "6481:24:10" + } + ] + }, + "documentation": { + "id": 1489, + "nodeType": "StructuredDocumentation", + "src": "6062:337:10", + "text": " @dev Returns the maximum token ID (inclusive) for sequential mints.\n Override this function to return a value less than 2**256 - 1,\n but greater than `_startTokenId()`, to enable spot (non-sequential) mints.\n Note: The value returned must never change after any tokens have been minted." + }, + "id": 1501, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_sequentialUpTo", + "nameLocation": "6413:15:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1490, + "nodeType": "ParameterList", + "parameters": [], + "src": "6428:2:10" + }, + "returnParameters": { + "id": 1493, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1492, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1501, + "src": "6462:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1491, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6462:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "6461:9:10" + }, + "scope": 3428, + "src": "6404:108:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1509, + "nodeType": "Block", + "src": "6650:37:10", + "statements": [ + { + "expression": { + "id": 1507, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "6667:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1506, + "id": 1508, + "nodeType": "Return", + "src": "6660:20:10" + } + ] + }, + "documentation": { + "id": 1502, + "nodeType": "StructuredDocumentation", + "src": "6518:63:10", + "text": " @dev Returns the next token ID to be minted." + }, + "id": 1510, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_nextTokenId", + "nameLocation": "6595:12:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1503, + "nodeType": "ParameterList", + "parameters": [], + "src": "6607:2:10" + }, + "returnParameters": { + "id": 1506, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1505, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1510, + "src": "6641:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1504, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6641:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "6640:9:10" + }, + "scope": 3428, + "src": "6586:101:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "baseFunctions": [ + 3500 + ], + "body": { + "id": 1540, + "nodeType": "Block", + "src": "6967:487:10", + "statements": [ + { + "id": 1539, + "nodeType": "UncheckedBlock", + "src": "7136:312:10", + "statements": [ + { + "expression": { + "id": 1524, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1517, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1515, + "src": "7303:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1523, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1520, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1518, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "7312:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "id": 1519, + "name": "_burnCounter", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1422, + "src": "7328:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7312:28:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1521, + "name": "_startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1488, + "src": "7343:13:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1522, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "7343:15:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7312:46:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7303:55:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1525, + "nodeType": "ExpressionStatement", + "src": "7303:55:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1533, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1526, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "7376:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1527, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "7376:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "expression": { + "arguments": [ + { + "id": 1530, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "7402:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 1529, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "7402:7:10", + "typeDescriptions": {} + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + } + ], + "id": 1528, + "name": "type", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -27, + "src": "7397:4:10", + "typeDescriptions": { + "typeIdentifier": "t_function_metatype_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1531, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "7397:13:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_magic_meta_type_t_uint256", + "typeString": "type(uint256)" + } + }, + "id": 1532, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "memberLocation": "7411:3:10", + "memberName": "max", + "nodeType": "MemberAccess", + "src": "7397:17:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7376:38:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1538, + "nodeType": "IfStatement", + "src": "7372:65:10", + "trueBody": { + "expression": { + "id": 1536, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1534, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1515, + "src": "7416:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "id": 1535, + "name": "_spotMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1447, + "src": "7426:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7416:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1537, + "nodeType": "ExpressionStatement", + "src": "7416:21:10" + } + } + ] + } + ] + }, + "documentation": { + "id": 1511, + "nodeType": "StructuredDocumentation", + "src": "6693:192:10", + "text": " @dev Returns the total number of tokens in existence.\n Burned tokens will reduce the count.\n To get the total number of tokens minted, please see {_totalMinted}." + }, + "functionSelector": "18160ddd", + "id": 1541, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "totalSupply", + "nameLocation": "6899:11:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1513, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "6933:8:10" + }, + "parameters": { + "id": 1512, + "nodeType": "ParameterList", + "parameters": [], + "src": "6910:2:10" + }, + "returnParameters": { + "id": 1516, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1515, + "mutability": "mutable", + "name": "result", + "nameLocation": "6959:6:10", + "nodeType": "VariableDeclaration", + "scope": 1541, + "src": "6951:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1514, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6951:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "6950:16:10" + }, + "scope": 3428, + "src": "6890:564:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 1568, + "nodeType": "Block", + "src": "7618:307:10", + "statements": [ + { + "id": 1567, + "nodeType": "UncheckedBlock", + "src": "7765:154:10", + "statements": [ + { + "expression": { + "id": 1552, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1547, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1545, + "src": "7789:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1551, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1548, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "7798:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1549, + "name": "_startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1488, + "src": "7814:13:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1550, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "7814:15:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7798:31:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7789:40:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1553, + "nodeType": "ExpressionStatement", + "src": "7789:40:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1561, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1554, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "7847:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1555, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "7847:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "expression": { + "arguments": [ + { + "id": 1558, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "7873:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 1557, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "7873:7:10", + "typeDescriptions": {} + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + } + ], + "id": 1556, + "name": "type", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -27, + "src": "7868:4:10", + "typeDescriptions": { + "typeIdentifier": "t_function_metatype_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1559, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "7868:13:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_magic_meta_type_t_uint256", + "typeString": "type(uint256)" + } + }, + "id": 1560, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "memberLocation": "7882:3:10", + "memberName": "max", + "nodeType": "MemberAccess", + "src": "7868:17:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7847:38:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1566, + "nodeType": "IfStatement", + "src": "7843:65:10", + "trueBody": { + "expression": { + "id": 1564, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1562, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1545, + "src": "7887:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "id": 1563, + "name": "_spotMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1447, + "src": "7897:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7887:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1565, + "nodeType": "ExpressionStatement", + "src": "7887:21:10" + } + } + ] + } + ] + }, + "documentation": { + "id": 1542, + "nodeType": "StructuredDocumentation", + "src": "7460:82:10", + "text": " @dev Returns the total amount of tokens minted in the contract." + }, + "id": 1569, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_totalMinted", + "nameLocation": "7556:12:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1543, + "nodeType": "ParameterList", + "parameters": [], + "src": "7568:2:10" + }, + "returnParameters": { + "id": 1546, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1545, + "mutability": "mutable", + "name": "result", + "nameLocation": "7610:6:10", + "nodeType": "VariableDeclaration", + "scope": 1569, + "src": "7602:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1544, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "7602:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "7601:16:10" + }, + "scope": 3428, + "src": "7547:378:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1577, + "nodeType": "Block", + "src": "8066:36:10", + "statements": [ + { + "expression": { + "id": 1575, + "name": "_burnCounter", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1422, + "src": "8083:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1574, + "id": 1576, + "nodeType": "Return", + "src": "8076:19:10" + } + ] + }, + "documentation": { + "id": 1570, + "nodeType": "StructuredDocumentation", + "src": "7931:66:10", + "text": " @dev Returns the total number of tokens burned." + }, + "id": 1578, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_totalBurned", + "nameLocation": "8011:12:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1571, + "nodeType": "ParameterList", + "parameters": [], + "src": "8023:2:10" + }, + "returnParameters": { + "id": 1574, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1573, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1578, + "src": "8057:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1572, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "8057:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "8056:9:10" + }, + "scope": 3428, + "src": "8002:100:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1586, + "nodeType": "Block", + "src": "8261:35:10", + "statements": [ + { + "expression": { + "id": 1584, + "name": "_spotMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1447, + "src": "8278:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1583, + "id": 1585, + "nodeType": "Return", + "src": "8271:18:10" + } + ] + }, + "documentation": { + "id": 1579, + "nodeType": "StructuredDocumentation", + "src": "8108:80:10", + "text": " @dev Returns the total number of tokens that are spot-minted." + }, + "id": 1587, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_totalSpotMinted", + "nameLocation": "8202:16:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1580, + "nodeType": "ParameterList", + "parameters": [], + "src": "8218:2:10" + }, + "returnParameters": { + "id": 1583, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1582, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1587, + "src": "8252:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1581, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "8252:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "8251:9:10" + }, + "scope": 3428, + "src": "8193:103:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "baseFunctions": [ + 3543 + ], + "body": { + "id": 1614, + "nodeType": "Block", + "src": "8651:158:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 1601, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1596, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1590, + "src": "8665:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 1599, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "8682:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 1598, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "8674:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1597, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8674:7:10", + "typeDescriptions": {} + } + }, + "id": 1600, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "8674:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "8665:19:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1607, + "nodeType": "IfStatement", + "src": "8661:69:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 1603, + "name": "BalanceQueryForZeroAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3440, + "src": "8694:26:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1604, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "8721:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "8694:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 1602, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "8686:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 1605, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "8686:44:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1606, + "nodeType": "ExpressionStatement", + "src": "8686:44:10" + } + }, + { + "expression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1612, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1608, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "8747:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1610, + "indexExpression": { + "id": 1609, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1590, + "src": "8766:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "8747:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 1611, + "name": "_BITMASK_ADDRESS_DATA_ENTRY", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1360, + "src": "8775:27:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "8747:55:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1595, + "id": 1613, + "nodeType": "Return", + "src": "8740:62:10" + } + ] + }, + "documentation": { + "id": 1588, + "nodeType": "StructuredDocumentation", + "src": "8491:74:10", + "text": " @dev Returns the number of tokens in `owner`'s account." + }, + "functionSelector": "70a08231", + "id": 1615, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "balanceOf", + "nameLocation": "8579:9:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1592, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "8624:8:10" + }, + "parameters": { + "id": 1591, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1590, + "mutability": "mutable", + "name": "owner", + "nameLocation": "8597:5:10", + "nodeType": "VariableDeclaration", + "scope": 1615, + "src": "8589:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1589, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8589:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "8588:15:10" + }, + "returnParameters": { + "id": 1595, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1594, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1615, + "src": "8642:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1593, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "8642:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "8641:9:10" + }, + "scope": 3428, + "src": "8570:239:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 1632, + "nodeType": "Block", + "src": "8956:106:10", + "statements": [ + { + "expression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1630, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1627, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1623, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "8974:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1625, + "indexExpression": { + "id": 1624, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1618, + "src": "8993:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "8974:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">>", + "rightExpression": { + "id": 1626, + "name": "_BITPOS_NUMBER_MINTED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1363, + "src": "9003:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "8974:50:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1628, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "8973:52:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 1629, + "name": "_BITMASK_ADDRESS_DATA_ENTRY", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1360, + "src": "9028:27:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "8973:82:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1622, + "id": 1631, + "nodeType": "Return", + "src": "8966:89:10" + } + ] + }, + "documentation": { + "id": 1616, + "nodeType": "StructuredDocumentation", + "src": "8815:66:10", + "text": " Returns the number of tokens minted by `owner`." + }, + "id": 1633, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_numberMinted", + "nameLocation": "8895:13:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1619, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1618, + "mutability": "mutable", + "name": "owner", + "nameLocation": "8917:5:10", + "nodeType": "VariableDeclaration", + "scope": 1633, + "src": "8909:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1617, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8909:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "8908:15:10" + }, + "returnParameters": { + "id": 1622, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1621, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1633, + "src": "8947:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1620, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "8947:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "8946:9:10" + }, + "scope": 3428, + "src": "8886:176:10", + "stateMutability": "view", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 1650, + "nodeType": "Block", + "src": "9225:106:10", + "statements": [ + { + "expression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1648, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1645, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1641, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "9243:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1643, + "indexExpression": { + "id": 1642, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1636, + "src": "9262:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "9243:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">>", + "rightExpression": { + "id": 1644, + "name": "_BITPOS_NUMBER_BURNED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1366, + "src": "9272:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "9243:50:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1646, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "9242:52:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 1647, + "name": "_BITMASK_ADDRESS_DATA_ENTRY", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1360, + "src": "9297:27:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "9242:82:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1640, + "id": 1649, + "nodeType": "Return", + "src": "9235:89:10" + } + ] + }, + "documentation": { + "id": 1634, + "nodeType": "StructuredDocumentation", + "src": "9068:82:10", + "text": " Returns the number of tokens burned by or on behalf of `owner`." + }, + "id": 1651, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_numberBurned", + "nameLocation": "9164:13:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1637, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1636, + "mutability": "mutable", + "name": "owner", + "nameLocation": "9186:5:10", + "nodeType": "VariableDeclaration", + "scope": 1651, + "src": "9178:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1635, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "9178:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "9177:15:10" + }, + "returnParameters": { + "id": 1640, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1639, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1651, + "src": "9216:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1638, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "9216:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "9215:9:10" + }, + "scope": 3428, + "src": "9155:176:10", + "stateMutability": "view", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 1668, + "nodeType": "Block", + "src": "9507:72:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1665, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1661, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "9531:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1663, + "indexExpression": { + "id": 1662, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1654, + "src": "9550:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "9531:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">>", + "rightExpression": { + "id": 1664, + "name": "_BITPOS_AUX", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1369, + "src": "9560:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "9531:40:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1660, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "9524:6:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint64_$", + "typeString": "type(uint64)" + }, + "typeName": { + "id": 1659, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "9524:6:10", + "typeDescriptions": {} + } + }, + "id": 1666, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "9524:48:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "functionReturnParameters": 1658, + "id": 1667, + "nodeType": "Return", + "src": "9517:55:10" + } + ] + }, + "documentation": { + "id": 1652, + "nodeType": "StructuredDocumentation", + "src": "9337:102:10", + "text": " Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used)." + }, + "id": 1669, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_getAux", + "nameLocation": "9453:7:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1655, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1654, + "mutability": "mutable", + "name": "owner", + "nameLocation": "9469:5:10", + "nodeType": "VariableDeclaration", + "scope": 1669, + "src": "9461:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1653, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "9461:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "9460:15:10" + }, + "returnParameters": { + "id": 1658, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1657, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1669, + "src": "9499:6:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 1656, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "9499:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "9498:8:10" + }, + "scope": 3428, + "src": "9444:135:10", + "stateMutability": "view", + "virtual": false, + "visibility": "internal" + }, + { + "body": { + "id": 1705, + "nodeType": "Block", + "src": "9822:334:10", + "statements": [ + { + "assignments": [ + 1678 + ], + "declarations": [ + { + "constant": false, + "id": 1678, + "mutability": "mutable", + "name": "packed", + "nameLocation": "9840:6:10", + "nodeType": "VariableDeclaration", + "scope": 1705, + "src": "9832:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1677, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "9832:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1682, + "initialValue": { + "baseExpression": { + "id": 1679, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "9849:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1681, + "indexExpression": { + "id": 1680, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1672, + "src": "9868:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "9849:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "9832:42:10" + }, + { + "assignments": [ + 1684 + ], + "declarations": [ + { + "constant": false, + "id": 1684, + "mutability": "mutable", + "name": "auxCasted", + "nameLocation": "9892:9:10", + "nodeType": "VariableDeclaration", + "scope": 1705, + "src": "9884:17:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1683, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "9884:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1685, + "nodeType": "VariableDeclarationStatement", + "src": "9884:17:10" + }, + { + "AST": { + "nativeSrc": "9984:40:10", + "nodeType": "YulBlock", + "src": "9984:40:10", + "statements": [ + { + "nativeSrc": "9998:16:10", + "nodeType": "YulAssignment", + "src": "9998:16:10", + "value": { + "name": "aux", + "nativeSrc": "10011:3:10", + "nodeType": "YulIdentifier", + "src": "10011:3:10" + }, + "variableNames": [ + { + "name": "auxCasted", + "nativeSrc": "9998:9:10", + "nodeType": "YulIdentifier", + "src": "9998:9:10" + } + ] + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1674, + "isOffset": false, + "isSlot": false, + "src": "10011:3:10", + "valueSize": 1 + }, + { + "declaration": 1684, + "isOffset": false, + "isSlot": false, + "src": "9998:9:10", + "valueSize": 1 + } + ], + "id": 1686, + "nodeType": "InlineAssembly", + "src": "9975:49:10" + }, + { + "expression": { + "id": 1697, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1687, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1678, + "src": "10033:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1696, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1690, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1688, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1678, + "src": "10043:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 1689, + "name": "_BITMASK_AUX_COMPLEMENT", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1377, + "src": "10052:23:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "10043:32:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1691, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "10042:34:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1694, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1692, + "name": "auxCasted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1684, + "src": "10080:9:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "id": 1693, + "name": "_BITPOS_AUX", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1369, + "src": "10093:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "10080:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1695, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "10079:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "10042:63:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "10033:72:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1698, + "nodeType": "ExpressionStatement", + "src": "10033:72:10" + }, + { + "expression": { + "id": 1703, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1699, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "10115:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1701, + "indexExpression": { + "id": 1700, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1672, + "src": "10134:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "10115:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1702, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1678, + "src": "10143:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "10115:34:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1704, + "nodeType": "ExpressionStatement", + "src": "10115:34:10" + } + ] + }, + "documentation": { + "id": 1670, + "nodeType": "StructuredDocumentation", + "src": "9585:171:10", + "text": " Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).\n If there are multiple variables, please pack them into a uint64." + }, + "id": 1706, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_setAux", + "nameLocation": "9770:7:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1675, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1672, + "mutability": "mutable", + "name": "owner", + "nameLocation": "9786:5:10", + "nodeType": "VariableDeclaration", + "scope": 1706, + "src": "9778:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1671, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "9778:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1674, + "mutability": "mutable", + "name": "aux", + "nameLocation": "9800:3:10", + "nodeType": "VariableDeclaration", + "scope": 1706, + "src": "9793:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 1673, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "9793:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + } + ], + "src": "9777:27:10" + }, + "returnParameters": { + "id": 1676, + "nodeType": "ParameterList", + "parameters": [], + "src": "9822:0:10" + }, + "scope": 3428, + "src": "9761:395:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "baseFunctions": [ + 3508 + ], + "body": { + "id": 1727, + "nodeType": "Block", + "src": "10780:539:10", + "statements": [ + { + "expression": { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 1725, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 1721, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "id": 1717, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1715, + "name": "interfaceId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1709, + "src": "11092:11:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30783031666663396137", + "id": 1716, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "11107:10:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_33540519_by_1", + "typeString": "int_const 33540519" + }, + "value": "0x01ffc9a7" + }, + "src": "11092:25:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "||", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "id": 1720, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1718, + "name": "interfaceId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1709, + "src": "11168:11:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30783830616335386364", + "id": 1719, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "11183:10:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_2158778573_by_1", + "typeString": "int_const 2158778573" + }, + "value": "0x80ac58cd" + }, + "src": "11168:25:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "11092:101:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "||", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "id": 1724, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1722, + "name": "interfaceId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1709, + "src": "11244:11:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30783562356531333966", + "id": 1723, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "11259:10:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1532892063_by_1", + "typeString": "int_const 1532892063" + }, + "value": "0x5b5e139f" + }, + "src": "11244:25:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "11092:177:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 1714, + "id": 1726, + "nodeType": "Return", + "src": "11073:196:10" + } + ] + }, + "documentation": { + "id": 1707, + "nodeType": "StructuredDocumentation", + "src": "10343:341:10", + "text": " @dev Returns true if this contract implements the interface defined by\n `interfaceId`. See the corresponding\n [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)\n to learn more about how these ids are created.\n This function call must use less than 30000 gas." + }, + "functionSelector": "01ffc9a7", + "id": 1728, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "supportsInterface", + "nameLocation": "10698:17:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1711, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "10756:8:10" + }, + "parameters": { + "id": 1710, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1709, + "mutability": "mutable", + "name": "interfaceId", + "nameLocation": "10723:11:10", + "nodeType": "VariableDeclaration", + "scope": 1728, + "src": "10716:18:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "typeName": { + "id": 1708, + "name": "bytes4", + "nodeType": "ElementaryTypeName", + "src": "10716:6:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "visibility": "internal" + } + ], + "src": "10715:20:10" + }, + "returnParameters": { + "id": 1714, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1713, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1728, + "src": "10774:4:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 1712, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "10774:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "10773:6:10" + }, + "scope": 3428, + "src": "10689:630:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3623 + ], + "body": { + "id": 1737, + "nodeType": "Block", + "src": "11642:29:10", + "statements": [ + { + "expression": { + "id": 1735, + "name": "_name", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1424, + "src": "11659:5:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "functionReturnParameters": 1734, + "id": 1736, + "nodeType": "Return", + "src": "11652:12:10" + } + ] + }, + "documentation": { + "id": 1729, + "nodeType": "StructuredDocumentation", + "src": "11510:58:10", + "text": " @dev Returns the token collection name." + }, + "functionSelector": "06fdde03", + "id": 1738, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "name", + "nameLocation": "11582:4:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1731, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "11609:8:10" + }, + "parameters": { + "id": 1730, + "nodeType": "ParameterList", + "parameters": [], + "src": "11586:2:10" + }, + "returnParameters": { + "id": 1734, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1733, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1738, + "src": "11627:13:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 1732, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "11627:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "11626:15:10" + }, + "scope": 3428, + "src": "11573:98:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3629 + ], + "body": { + "id": 1747, + "nodeType": "Block", + "src": "11813:31:10", + "statements": [ + { + "expression": { + "id": 1745, + "name": "_symbol", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1426, + "src": "11830:7:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "functionReturnParameters": 1744, + "id": 1746, + "nodeType": "Return", + "src": "11823:14:10" + } + ] + }, + "documentation": { + "id": 1739, + "nodeType": "StructuredDocumentation", + "src": "11677:60:10", + "text": " @dev Returns the token collection symbol." + }, + "functionSelector": "95d89b41", + "id": 1748, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "symbol", + "nameLocation": "11751:6:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1741, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "11780:8:10" + }, + "parameters": { + "id": 1740, + "nodeType": "ParameterList", + "parameters": [], + "src": "11757:2:10" + }, + "returnParameters": { + "id": 1744, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1743, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1748, + "src": "11798:13:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 1742, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "11798:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "11797:15:10" + }, + "scope": 3428, + "src": "11742:102:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3637 + ], + "body": { + "id": 1792, + "nodeType": "Block", + "src": "12033:234:10", + "statements": [ + { + "condition": { + "id": 1760, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "12047:17:10", + "subExpression": { + "arguments": [ + { + "id": 1758, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1751, + "src": "12056:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1757, + "name": "_exists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2199, + "src": "12048:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 1759, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "12048:16:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1766, + "nodeType": "IfStatement", + "src": "12043:68:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 1762, + "name": "URIQueryForNonexistentToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3464, + "src": "12074:27:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1763, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "12102:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "12074:36:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 1761, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "12066:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 1764, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "12066:45:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1765, + "nodeType": "ExpressionStatement", + "src": "12066:45:10" + } + }, + { + "assignments": [ + 1768 + ], + "declarations": [ + { + "constant": false, + "id": 1768, + "mutability": "mutable", + "name": "baseURI", + "nameLocation": "12136:7:10", + "nodeType": "VariableDeclaration", + "scope": 1792, + "src": "12122:21:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 1767, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "12122:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "id": 1771, + "initialValue": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1769, + "name": "_baseURI", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1802, + "src": "12146:8:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_string_memory_ptr_$", + "typeString": "function () view returns (string memory)" + } + }, + "id": 1770, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "12146:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "12122:34:10" + }, + { + "expression": { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1778, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "arguments": [ + { + "id": 1774, + "name": "baseURI", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1768, + "src": "12179:7:10", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 1773, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "12173:5:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": { + "id": 1772, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "12173:5:10", + "typeDescriptions": {} + } + }, + "id": 1775, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "12173:14:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + }, + "id": 1776, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "12188:6:10", + "memberName": "length", + "nodeType": "MemberAccess", + "src": "12173:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1777, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "12198:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "12173:26:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseExpression": { + "hexValue": "", + "id": 1789, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "12258:2:10", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + }, + "id": 1790, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "Conditional", + "src": "12173:87:10", + "trueExpression": { + "arguments": [ + { + "arguments": [ + { + "id": 1783, + "name": "baseURI", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1768, + "src": "12226:7:10", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + { + "arguments": [ + { + "id": 1785, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1751, + "src": "12245:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1784, + "name": "_toString", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3419, + "src": "12235:9:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_string_memory_ptr_$", + "typeString": "function (uint256) pure returns (string memory)" + } + }, + "id": 1786, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "12235:18:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + }, + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "expression": { + "id": 1781, + "name": "abi", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -1, + "src": "12209:3:10", + "typeDescriptions": { + "typeIdentifier": "t_magic_abi", + "typeString": "abi" + } + }, + "id": 1782, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "memberLocation": "12213:12:10", + "memberName": "encodePacked", + "nodeType": "MemberAccess", + "src": "12209:16:10", + "typeDescriptions": { + "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", + "typeString": "function () pure returns (bytes memory)" + } + }, + "id": 1787, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "12209:45:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + ], + "id": 1780, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "12202:6:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_string_storage_ptr_$", + "typeString": "type(string storage pointer)" + }, + "typeName": { + "id": 1779, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "12202:6:10", + "typeDescriptions": {} + } + }, + "id": 1788, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "12202:53:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "functionReturnParameters": 1756, + "id": 1791, + "nodeType": "Return", + "src": "12166:94:10" + } + ] + }, + "documentation": { + "id": 1749, + "nodeType": "StructuredDocumentation", + "src": "11850:90:10", + "text": " @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token." + }, + "functionSelector": "c87b56dd", + "id": 1793, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "tokenURI", + "nameLocation": "11954:8:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1753, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "12000:8:10" + }, + "parameters": { + "id": 1752, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1751, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "11971:7:10", + "nodeType": "VariableDeclaration", + "scope": 1793, + "src": "11963:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1750, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "11963:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "11962:17:10" + }, + "returnParameters": { + "id": 1756, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1755, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1793, + "src": "12018:13:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 1754, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "12018:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "12017:15:10" + }, + "scope": 3428, + "src": "11945:322:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 1801, + "nodeType": "Block", + "src": "12578:26:10", + "statements": [ + { + "expression": { + "hexValue": "", + "id": 1799, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "12595:2:10", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + }, + "functionReturnParameters": 1798, + "id": 1800, + "nodeType": "Return", + "src": "12588:9:10" + } + ] + }, + "documentation": { + "id": 1794, + "nodeType": "StructuredDocumentation", + "src": "12273:234:10", + "text": " @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n by default, it can be overridden in child contracts." + }, + "id": 1802, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_baseURI", + "nameLocation": "12521:8:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1795, + "nodeType": "ParameterList", + "parameters": [], + "src": "12529:2:10" + }, + "returnParameters": { + "id": 1798, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1797, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1802, + "src": "12563:13:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 1796, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "12563:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "12562:15:10" + }, + "scope": 3428, + "src": "12512:92:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "baseFunctions": [ + 3551 + ], + "body": { + "id": 1821, + "nodeType": "Block", + "src": "13015:69:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "arguments": [ + { + "id": 1816, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1805, + "src": "13067:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1815, + "name": "_packedOwnershipOf", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1984, + "src": "13048:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) view returns (uint256)" + } + }, + "id": 1817, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "13048:27:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1814, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "13040:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 1813, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "13040:7:10", + "typeDescriptions": {} + } + }, + "id": 1818, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "13040:36:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 1812, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "13032:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1811, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "13032:7:10", + "typeDescriptions": {} + } + }, + "id": 1819, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "13032:45:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 1810, + "id": 1820, + "nodeType": "Return", + "src": "13025:52:10" + } + ] + }, + "documentation": { + "id": 1803, + "nodeType": "StructuredDocumentation", + "src": "12798:131:10", + "text": " @dev Returns the owner of the `tokenId` token.\n Requirements:\n - `tokenId` must exist." + }, + "functionSelector": "6352211e", + "id": 1822, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "ownerOf", + "nameLocation": "12943:7:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 1807, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "12988:8:10" + }, + "parameters": { + "id": 1806, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1805, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "12959:7:10", + "nodeType": "VariableDeclaration", + "scope": 1822, + "src": "12951:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1804, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "12951:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "12950:17:10" + }, + "returnParameters": { + "id": 1810, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1809, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1822, + "src": "13006:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1808, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "13006:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "13005:9:10" + }, + "scope": 3428, + "src": "12934:150:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 1837, + "nodeType": "Block", + "src": "13360:71:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 1833, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1825, + "src": "13415:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1832, + "name": "_packedOwnershipOf", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1984, + "src": "13396:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) view returns (uint256)" + } + }, + "id": 1834, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "13396:27:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1831, + "name": "_unpackedOwnership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2038, + "src": "13377:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_struct$_TokenOwnership_$3494_memory_ptr_$", + "typeString": "function (uint256) pure returns (struct IERC721A.TokenOwnership memory)" + } + }, + "id": 1835, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "13377:47:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "functionReturnParameters": 1830, + "id": 1836, + "nodeType": "Return", + "src": "13370:54:10" + } + ] + }, + "documentation": { + "id": 1823, + "nodeType": "StructuredDocumentation", + "src": "13090:172:10", + "text": " @dev Gas spent here starts off proportional to the maximum mint batch size.\n It gradually moves to O(1) as tokens get transferred around over time." + }, + "id": 1838, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_ownershipOf", + "nameLocation": "13276:12:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1826, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1825, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "13297:7:10", + "nodeType": "VariableDeclaration", + "scope": 1838, + "src": "13289:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1824, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "13289:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "13288:17:10" + }, + "returnParameters": { + "id": 1830, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1829, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1838, + "src": "13337:21:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership" + }, + "typeName": { + "id": 1828, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1827, + "name": "TokenOwnership", + "nameLocations": [ + "13337:14:10" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 3494, + "src": "13337:14:10" + }, + "referencedDeclaration": 3494, + "src": "13337:14:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_storage_ptr", + "typeString": "struct IERC721A.TokenOwnership" + } + }, + "visibility": "internal" + } + ], + "src": "13336:23:10" + }, + "scope": 3428, + "src": "13267:164:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1853, + "nodeType": "Block", + "src": "13613:68:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "baseExpression": { + "id": 1848, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "13649:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 1850, + "indexExpression": { + "id": 1849, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1841, + "src": "13667:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "13649:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1847, + "name": "_unpackedOwnership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2038, + "src": "13630:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_struct$_TokenOwnership_$3494_memory_ptr_$", + "typeString": "function (uint256) pure returns (struct IERC721A.TokenOwnership memory)" + } + }, + "id": 1851, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "13630:44:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "functionReturnParameters": 1846, + "id": 1852, + "nodeType": "Return", + "src": "13623:51:10" + } + ] + }, + "documentation": { + "id": 1839, + "nodeType": "StructuredDocumentation", + "src": "13437:80:10", + "text": " @dev Returns the unpacked `TokenOwnership` struct at `index`." + }, + "id": 1854, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_ownershipAt", + "nameLocation": "13531:12:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1842, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1841, + "mutability": "mutable", + "name": "index", + "nameLocation": "13552:5:10", + "nodeType": "VariableDeclaration", + "scope": 1854, + "src": "13544:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1840, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "13544:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "13543:15:10" + }, + "returnParameters": { + "id": 1846, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1845, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1854, + "src": "13590:21:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership" + }, + "typeName": { + "id": 1844, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1843, + "name": "TokenOwnership", + "nameLocations": [ + "13590:14:10" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 3494, + "src": "13590:14:10" + }, + "referencedDeclaration": 3494, + "src": "13590:14:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_storage_ptr", + "typeString": "struct IERC721A.TokenOwnership" + } + }, + "visibility": "internal" + } + ], + "src": "13589:23:10" + }, + "scope": 3428, + "src": "13522:159:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1868, + "nodeType": "Block", + "src": "13945:53:10", + "statements": [ + { + "expression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1866, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1862, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "13962:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 1864, + "indexExpression": { + "id": 1863, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1857, + "src": "13980:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "13962:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1865, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "13990:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "13962:29:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 1861, + "id": 1867, + "nodeType": "Return", + "src": "13955:36:10" + } + ] + }, + "documentation": { + "id": 1855, + "nodeType": "StructuredDocumentation", + "src": "13687:168:10", + "text": " @dev Returns whether the ownership slot at `index` is initialized.\n An uninitialized slot does not necessarily mean that the slot has no owner." + }, + "id": 1869, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_ownershipIsInitialized", + "nameLocation": "13869:23:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1858, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1857, + "mutability": "mutable", + "name": "index", + "nameLocation": "13901:5:10", + "nodeType": "VariableDeclaration", + "scope": 1869, + "src": "13893:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1856, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "13893:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "13892:15:10" + }, + "returnParameters": { + "id": 1861, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1860, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 1869, + "src": "13939:4:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 1859, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "13939:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "13938:6:10" + }, + "scope": 3428, + "src": "13860:138:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1890, + "nodeType": "Block", + "src": "14170:128:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1879, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1875, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "14184:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 1877, + "indexExpression": { + "id": 1876, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1872, + "src": "14202:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "14184:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 1878, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "14212:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "14184:29:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1889, + "nodeType": "IfStatement", + "src": "14180:112:10", + "trueBody": { + "id": 1888, + "nodeType": "Block", + "src": "14215:77:10", + "statements": [ + { + "expression": { + "id": 1886, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1880, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "14229:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 1882, + "indexExpression": { + "id": 1881, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1872, + "src": "14247:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "14229:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 1884, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1872, + "src": "14275:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1883, + "name": "_packedOwnershipOf", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1984, + "src": "14256:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) view returns (uint256)" + } + }, + "id": 1885, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "14256:25:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "14229:52:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1887, + "nodeType": "ExpressionStatement", + "src": "14229:52:10" + } + ] + } + } + ] + }, + "documentation": { + "id": 1870, + "nodeType": "StructuredDocumentation", + "src": "14004:97:10", + "text": " @dev Initializes the ownership slot minted at `index` for efficiency purposes." + }, + "id": 1891, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_initializeOwnershipAt", + "nameLocation": "14115:22:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1873, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1872, + "mutability": "mutable", + "name": "index", + "nameLocation": "14146:5:10", + "nodeType": "VariableDeclaration", + "scope": 1891, + "src": "14138:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1871, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "14138:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "14137:15:10" + }, + "returnParameters": { + "id": 1874, + "nodeType": "ParameterList", + "parameters": [], + "src": "14170:0:10" + }, + "scope": 3428, + "src": "14106:192:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 1983, + "nodeType": "Block", + "src": "14463:2090:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1902, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1899, + "name": "_startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1488, + "src": "14477:13:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1900, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "14477:15:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "id": 1901, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1894, + "src": "14496:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "14477:26:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1977, + "nodeType": "IfStatement", + "src": "14473:2017:10", + "trueBody": { + "id": 1976, + "nodeType": "Block", + "src": "14505:1985:10", + "statements": [ + { + "expression": { + "id": 1907, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1903, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "14519:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "baseExpression": { + "id": 1904, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "14528:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 1906, + "indexExpression": { + "id": 1905, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1894, + "src": "14546:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "14528:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "14519:35:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1908, + "nodeType": "ExpressionStatement", + "src": "14519:35:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1912, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1909, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1894, + "src": "14573:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 1910, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "14583:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 1911, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "14583:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "14573:27:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1925, + "nodeType": "IfStatement", + "src": "14569:180:10", + "trueBody": { + "id": 1924, + "nodeType": "Block", + "src": "14602:147:10", + "statements": [ + { + "condition": { + "arguments": [ + { + "id": 1914, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "14647:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1913, + "name": "_packedOwnershipExists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2209, + "src": "14624:22:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) pure returns (bool)" + } + }, + "id": 1915, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "14624:30:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1918, + "nodeType": "IfStatement", + "src": "14620:49:10", + "trueBody": { + "expression": { + "id": 1916, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "14663:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1898, + "id": 1917, + "nodeType": "Return", + "src": "14656:13:10" + } + }, + { + "expression": { + "arguments": [ + { + "expression": { + "id": 1920, + "name": "OwnerQueryForNonexistentToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3449, + "src": "14695:29:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1921, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "14725:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "14695:38:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 1919, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "14687:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 1922, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "14687:47:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1923, + "nodeType": "ExpressionStatement", + "src": "14687:47:10" + } + ] + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1928, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1926, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "14847:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 1927, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "14857:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "14847:11:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1967, + "nodeType": "IfStatement", + "src": "14843:1270:10", + "trueBody": { + "id": 1966, + "nodeType": "Block", + "src": "14860:1253:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1931, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1929, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1894, + "src": "14882:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">=", + "rightExpression": { + "id": 1930, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "14893:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "14882:24:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1937, + "nodeType": "IfStatement", + "src": "14878:77:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 1933, + "name": "OwnerQueryForNonexistentToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3449, + "src": "14916:29:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1934, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "14946:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "14916:38:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 1932, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "14908:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 1935, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "14908:47:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1936, + "nodeType": "ExpressionStatement", + "src": "14908:47:10" + } + }, + { + "body": { + "id": 1964, + "nodeType": "Block", + "src": "15511:588:10", + "statements": [ + { + "id": 1945, + "nodeType": "UncheckedBlock", + "src": "15533:96:10", + "statements": [ + { + "expression": { + "id": 1943, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1938, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "15569:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "baseExpression": { + "id": 1939, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "15578:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 1942, + "indexExpression": { + "id": 1941, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "--", + "prefix": true, + "src": "15596:9:10", + "subExpression": { + "id": 1940, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1894, + "src": "15598:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "15578:28:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "15569:37:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1944, + "nodeType": "ExpressionStatement", + "src": "15569:37:10" + } + ] + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1948, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1946, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "15654:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 1947, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "15664:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "15654:11:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1950, + "nodeType": "IfStatement", + "src": "15650:25:10", + "trueBody": { + "id": 1949, + "nodeType": "Continue", + "src": "15667:8:10" + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1955, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1953, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1951, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "15701:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 1952, + "name": "_BITMASK_BURNED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1385, + "src": "15710:15:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "15701:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 1954, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "15729:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "15701:29:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1958, + "nodeType": "IfStatement", + "src": "15697:48:10", + "trueBody": { + "expression": { + "id": 1956, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "15739:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1898, + "id": 1957, + "nodeType": "Return", + "src": "15732:13:10" + } + }, + { + "expression": { + "arguments": [ + { + "expression": { + "id": 1960, + "name": "OwnerQueryForNonexistentToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3449, + "src": "16041:29:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1961, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "16071:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "16041:38:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 1959, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "16033:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 1962, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "16033:47:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1963, + "nodeType": "ExpressionStatement", + "src": "16033:47:10" + } + ] + }, + "id": 1965, + "isSimpleCounterLoop": false, + "nodeType": "ForStatement", + "src": "15502:597:10" + } + ] + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1972, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1970, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1968, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "16435:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 1969, + "name": "_BITMASK_BURNED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1385, + "src": "16444:15:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "16435:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 1971, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "16463:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "16435:29:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1975, + "nodeType": "IfStatement", + "src": "16431:48:10", + "trueBody": { + "expression": { + "id": 1973, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1897, + "src": "16473:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 1898, + "id": 1974, + "nodeType": "Return", + "src": "16466:13:10" + } + } + ] + } + }, + { + "expression": { + "arguments": [ + { + "expression": { + "id": 1979, + "name": "OwnerQueryForNonexistentToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3449, + "src": "16507:29:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 1980, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "16537:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "16507:38:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 1978, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "16499:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 1981, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "16499:47:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1982, + "nodeType": "ExpressionStatement", + "src": "16499:47:10" + } + ] + }, + "documentation": { + "id": 1892, + "nodeType": "StructuredDocumentation", + "src": "14304:71:10", + "text": " @dev Returns the packed ownership data of `tokenId`." + }, + "id": 1984, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_packedOwnershipOf", + "nameLocation": "14389:18:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1895, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1894, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "14416:7:10", + "nodeType": "VariableDeclaration", + "scope": 1984, + "src": "14408:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1893, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "14408:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "14407:17:10" + }, + "returnParameters": { + "id": 1898, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1897, + "mutability": "mutable", + "name": "packed", + "nameLocation": "14455:6:10", + "nodeType": "VariableDeclaration", + "scope": 1984, + "src": "14447:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1896, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "14447:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "14446:16:10" + }, + "scope": 3428, + "src": "14380:2173:10", + "stateMutability": "view", + "virtual": false, + "visibility": "private" + }, + { + "body": { + "id": 2037, + "nodeType": "Block", + "src": "16746:262:10", + "statements": [ + { + "expression": { + "id": 2003, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1993, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1991, + "src": "16756:9:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 1995, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "16766:4:10", + "memberName": "addr", + "nodeType": "MemberAccess", + "referencedDeclaration": 3487, + "src": "16756:14:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "arguments": [ + { + "id": 2000, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1987, + "src": "16789:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1999, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "16781:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 1998, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "16781:7:10", + "typeDescriptions": {} + } + }, + "id": 2001, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "16781:15:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 1997, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "16773:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1996, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "16773:7:10", + "typeDescriptions": {} + } + }, + "id": 2002, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "16773:24:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "16756:41:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 2004, + "nodeType": "ExpressionStatement", + "src": "16756:41:10" + }, + { + "expression": { + "id": 2014, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 2005, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1991, + "src": "16807:9:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 2007, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "16817:14:10", + "memberName": "startTimestamp", + "nodeType": "MemberAccess", + "referencedDeclaration": 3489, + "src": "16807:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2012, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2010, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1987, + "src": "16841:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">>", + "rightExpression": { + "id": 2011, + "name": "_BITPOS_START_TIMESTAMP", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1380, + "src": "16851:23:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "16841:33:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2009, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "16834:6:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint64_$", + "typeString": "type(uint64)" + }, + "typeName": { + "id": 2008, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "16834:6:10", + "typeDescriptions": {} + } + }, + "id": 2013, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "16834:41:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "src": "16807:68:10", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "id": 2015, + "nodeType": "ExpressionStatement", + "src": "16807:68:10" + }, + { + "expression": { + "id": 2024, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 2016, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1991, + "src": "16885:9:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 2018, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "16895:6:10", + "memberName": "burned", + "nodeType": "MemberAccess", + "referencedDeclaration": 3491, + "src": "16885:16:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2023, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2021, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2019, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1987, + "src": "16904:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 2020, + "name": "_BITMASK_BURNED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1385, + "src": "16913:15:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "16904:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 2022, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "16932:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "16904:29:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "16885:48:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2025, + "nodeType": "ExpressionStatement", + "src": "16885:48:10" + }, + { + "expression": { + "id": 2035, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 2026, + "name": "ownership", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1991, + "src": "16943:9:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership memory" + } + }, + "id": 2028, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "16953:9:10", + "memberName": "extraData", + "nodeType": "MemberAccess", + "referencedDeclaration": 3493, + "src": "16943:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2033, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2031, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1987, + "src": "16972:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">>", + "rightExpression": { + "id": 2032, + "name": "_BITPOS_EXTRA_DATA", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1396, + "src": "16982:18:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "16972:28:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2030, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "16965:6:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint24_$", + "typeString": "type(uint24)" + }, + "typeName": { + "id": 2029, + "name": "uint24", + "nodeType": "ElementaryTypeName", + "src": "16965:6:10", + "typeDescriptions": {} + } + }, + "id": 2034, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "16965:36:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "src": "16943:58:10", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "id": 2036, + "nodeType": "ExpressionStatement", + "src": "16943:58:10" + } + ] + }, + "documentation": { + "id": 1985, + "nodeType": "StructuredDocumentation", + "src": "16559:83:10", + "text": " @dev Returns the unpacked `TokenOwnership` struct from `packed`." + }, + "id": 2038, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_unpackedOwnership", + "nameLocation": "16656:18:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1988, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1987, + "mutability": "mutable", + "name": "packed", + "nameLocation": "16683:6:10", + "nodeType": "VariableDeclaration", + "scope": 2038, + "src": "16675:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1986, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "16675:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "16674:16:10" + }, + "returnParameters": { + "id": 1992, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1991, + "mutability": "mutable", + "name": "ownership", + "nameLocation": "16735:9:10", + "nodeType": "VariableDeclaration", + "scope": 2038, + "src": "16713:31:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_memory_ptr", + "typeString": "struct IERC721A.TokenOwnership" + }, + "typeName": { + "id": 1990, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1989, + "name": "TokenOwnership", + "nameLocations": [ + "16713:14:10" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 3494, + "src": "16713:14:10" + }, + "referencedDeclaration": 3494, + "src": "16713:14:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenOwnership_$3494_storage_ptr", + "typeString": "struct IERC721A.TokenOwnership" + } + }, + "visibility": "internal" + } + ], + "src": "16712:33:10" + }, + "scope": 3428, + "src": "16647:361:10", + "stateMutability": "pure", + "virtual": false, + "visibility": "private" + }, + { + "body": { + "id": 2049, + "nodeType": "Block", + "src": "17182:347:10", + "statements": [ + { + "AST": { + "nativeSrc": "17201:322:10", + "nodeType": "YulBlock", + "src": "17201:322:10", + "statements": [ + { + "nativeSrc": "17311:37:10", + "nodeType": "YulAssignment", + "src": "17311:37:10", + "value": { + "arguments": [ + { + "name": "owner", + "nativeSrc": "17324:5:10", + "nodeType": "YulIdentifier", + "src": "17324:5:10" + }, + { + "name": "_BITMASK_ADDRESS", + "nativeSrc": "17331:16:10", + "nodeType": "YulIdentifier", + "src": "17331:16:10" + } + ], + "functionName": { + "name": "and", + "nativeSrc": "17320:3:10", + "nodeType": "YulIdentifier", + "src": "17320:3:10" + }, + "nativeSrc": "17320:28:10", + "nodeType": "YulFunctionCall", + "src": "17320:28:10" + }, + "variableNames": [ + { + "name": "owner", + "nativeSrc": "17311:5:10", + "nodeType": "YulIdentifier", + "src": "17311:5:10" + } + ] + }, + { + "nativeSrc": "17440:73:10", + "nodeType": "YulAssignment", + "src": "17440:73:10", + "value": { + "arguments": [ + { + "name": "owner", + "nativeSrc": "17453:5:10", + "nodeType": "YulIdentifier", + "src": "17453:5:10" + }, + { + "arguments": [ + { + "arguments": [ + { + "name": "_BITPOS_START_TIMESTAMP", + "nativeSrc": "17467:23:10", + "nodeType": "YulIdentifier", + "src": "17467:23:10" + }, + { + "arguments": [], + "functionName": { + "name": "timestamp", + "nativeSrc": "17492:9:10", + "nodeType": "YulIdentifier", + "src": "17492:9:10" + }, + "nativeSrc": "17492:11:10", + "nodeType": "YulFunctionCall", + "src": "17492:11:10" + } + ], + "functionName": { + "name": "shl", + "nativeSrc": "17463:3:10", + "nodeType": "YulIdentifier", + "src": "17463:3:10" + }, + "nativeSrc": "17463:41:10", + "nodeType": "YulFunctionCall", + "src": "17463:41:10" + }, + { + "name": "flags", + "nativeSrc": "17506:5:10", + "nodeType": "YulIdentifier", + "src": "17506:5:10" + } + ], + "functionName": { + "name": "or", + "nativeSrc": "17460:2:10", + "nodeType": "YulIdentifier", + "src": "17460:2:10" + }, + "nativeSrc": "17460:52:10", + "nodeType": "YulFunctionCall", + "src": "17460:52:10" + } + ], + "functionName": { + "name": "or", + "nativeSrc": "17450:2:10", + "nodeType": "YulIdentifier", + "src": "17450:2:10" + }, + "nativeSrc": "17450:63:10", + "nodeType": "YulFunctionCall", + "src": "17450:63:10" + }, + "variableNames": [ + { + "name": "result", + "nativeSrc": "17440:6:10", + "nodeType": "YulIdentifier", + "src": "17440:6:10" + } + ] + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1412, + "isOffset": false, + "isSlot": false, + "src": "17331:16:10", + "valueSize": 1 + }, + { + "declaration": 1380, + "isOffset": false, + "isSlot": false, + "src": "17467:23:10", + "valueSize": 1 + }, + { + "declaration": 2043, + "isOffset": false, + "isSlot": false, + "src": "17506:5:10", + "valueSize": 1 + }, + { + "declaration": 2041, + "isOffset": false, + "isSlot": false, + "src": "17311:5:10", + "valueSize": 1 + }, + { + "declaration": 2041, + "isOffset": false, + "isSlot": false, + "src": "17324:5:10", + "valueSize": 1 + }, + { + "declaration": 2041, + "isOffset": false, + "isSlot": false, + "src": "17453:5:10", + "valueSize": 1 + }, + { + "declaration": 2046, + "isOffset": false, + "isSlot": false, + "src": "17440:6:10", + "valueSize": 1 + } + ], + "id": 2048, + "nodeType": "InlineAssembly", + "src": "17192:331:10" + } + ] + }, + "documentation": { + "id": 2039, + "nodeType": "StructuredDocumentation", + "src": "17014:67:10", + "text": " @dev Packs ownership data into a single uint256." + }, + "id": 2050, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_packOwnershipData", + "nameLocation": "17095:18:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2044, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2041, + "mutability": "mutable", + "name": "owner", + "nameLocation": "17122:5:10", + "nodeType": "VariableDeclaration", + "scope": 2050, + "src": "17114:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2040, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "17114:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2043, + "mutability": "mutable", + "name": "flags", + "nameLocation": "17137:5:10", + "nodeType": "VariableDeclaration", + "scope": 2050, + "src": "17129:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2042, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "17129:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "17113:30:10" + }, + "returnParameters": { + "id": 2047, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2046, + "mutability": "mutable", + "name": "result", + "nameLocation": "17174:6:10", + "nodeType": "VariableDeclaration", + "scope": 2050, + "src": "17166:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2045, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "17166:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "17165:16:10" + }, + "scope": 3428, + "src": "17086:443:10", + "stateMutability": "view", + "virtual": false, + "visibility": "private" + }, + { + "body": { + "id": 2059, + "nodeType": "Block", + "src": "17712:232:10", + "statements": [ + { + "AST": { + "nativeSrc": "17796:142:10", + "nodeType": "YulBlock", + "src": "17796:142:10", + "statements": [ + { + "nativeSrc": "17872:56:10", + "nodeType": "YulAssignment", + "src": "17872:56:10", + "value": { + "arguments": [ + { + "name": "_BITPOS_NEXT_INITIALIZED", + "nativeSrc": "17886:24:10", + "nodeType": "YulIdentifier", + "src": "17886:24:10" + }, + { + "arguments": [ + { + "name": "quantity", + "nativeSrc": "17915:8:10", + "nodeType": "YulIdentifier", + "src": "17915:8:10" + }, + { + "kind": "number", + "nativeSrc": "17925:1:10", + "nodeType": "YulLiteral", + "src": "17925:1:10", + "type": "", + "value": "1" + } + ], + "functionName": { + "name": "eq", + "nativeSrc": "17912:2:10", + "nodeType": "YulIdentifier", + "src": "17912:2:10" + }, + "nativeSrc": "17912:15:10", + "nodeType": "YulFunctionCall", + "src": "17912:15:10" + } + ], + "functionName": { + "name": "shl", + "nativeSrc": "17882:3:10", + "nodeType": "YulIdentifier", + "src": "17882:3:10" + }, + "nativeSrc": "17882:46:10", + "nodeType": "YulFunctionCall", + "src": "17882:46:10" + }, + "variableNames": [ + { + "name": "result", + "nativeSrc": "17872:6:10", + "nodeType": "YulIdentifier", + "src": "17872:6:10" + } + ] + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1388, + "isOffset": false, + "isSlot": false, + "src": "17886:24:10", + "valueSize": 1 + }, + { + "declaration": 2053, + "isOffset": false, + "isSlot": false, + "src": "17915:8:10", + "valueSize": 1 + }, + { + "declaration": 2056, + "isOffset": false, + "isSlot": false, + "src": "17872:6:10", + "valueSize": 1 + } + ], + "id": 2058, + "nodeType": "InlineAssembly", + "src": "17787:151:10" + } + ] + }, + "documentation": { + "id": 2051, + "nodeType": "StructuredDocumentation", + "src": "17535:86:10", + "text": " @dev Returns the `nextInitialized` flag set if `quantity` equals 1." + }, + "id": 2060, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_nextInitializedFlag", + "nameLocation": "17635:20:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2054, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2053, + "mutability": "mutable", + "name": "quantity", + "nameLocation": "17664:8:10", + "nodeType": "VariableDeclaration", + "scope": 2060, + "src": "17656:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2052, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "17656:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "17655:18:10" + }, + "returnParameters": { + "id": 2057, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2056, + "mutability": "mutable", + "name": "result", + "nameLocation": "17704:6:10", + "nodeType": "VariableDeclaration", + "scope": 2060, + "src": "17696:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2055, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "17696:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "17695:16:10" + }, + "scope": 3428, + "src": "17626:318:10", + "stateMutability": "pure", + "virtual": false, + "visibility": "private" + }, + { + "baseFunctions": [ + 3591 + ], + "body": { + "id": 2075, + "nodeType": "Block", + "src": "18442:44:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 2070, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2063, + "src": "18461:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2071, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2065, + "src": "18465:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "74727565", + "id": 2072, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "18474:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 2069, + "name": "_approve", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 3091, + 3141 + ], + "referencedDeclaration": 3141, + "src": "18452:8:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bool_$returns$__$", + "typeString": "function (address,uint256,bool)" + } + }, + "id": 2073, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "18452:27:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2074, + "nodeType": "ExpressionStatement", + "src": "18452:27:10" + } + ] + }, + "documentation": { + "id": 2061, + "nodeType": "StructuredDocumentation", + "src": "18137:222:10", + "text": " @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}.\n Requirements:\n - The caller must own the token or be an approved operator." + }, + "functionSelector": "095ea7b3", + "id": 2076, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "approve", + "nameLocation": "18373:7:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 2067, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "18433:8:10" + }, + "parameters": { + "id": 2066, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2063, + "mutability": "mutable", + "name": "to", + "nameLocation": "18389:2:10", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "18381:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2062, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "18381:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2065, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "18401:7:10", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "18393:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2064, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "18393:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "18380:29:10" + }, + "returnParameters": { + "id": 2068, + "nodeType": "ParameterList", + "parameters": [], + "src": "18442:0:10" + }, + "scope": 3428, + "src": "18364:122:10", + "stateMutability": "payable", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3607 + ], + "body": { + "id": 2100, + "nodeType": "Block", + "src": "18721:138:10", + "statements": [ + { + "condition": { + "id": 2088, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "18735:17:10", + "subExpression": { + "arguments": [ + { + "id": 2086, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2079, + "src": "18744:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2085, + "name": "_exists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2199, + "src": "18736:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 2087, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "18736:16:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2094, + "nodeType": "IfStatement", + "src": "18731:73:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2090, + "name": "ApprovalQueryForNonexistentToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3437, + "src": "18762:32:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2091, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "18795:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "18762:41:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2089, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "18754:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2092, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "18754:50:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2093, + "nodeType": "ExpressionStatement", + "src": "18754:50:10" + } + }, + { + "expression": { + "expression": { + "baseExpression": { + "id": 2095, + "name": "_tokenApprovals", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1439, + "src": "18822:15:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_TokenApprovalRef_$1352_storage_$", + "typeString": "mapping(uint256 => struct ERC721A.TokenApprovalRef storage ref)" + } + }, + "id": 2097, + "indexExpression": { + "id": 2096, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2079, + "src": "18838:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "18822:24:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenApprovalRef_$1352_storage", + "typeString": "struct ERC721A.TokenApprovalRef storage ref" + } + }, + "id": 2098, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberLocation": "18847:5:10", + "memberName": "value", + "nodeType": "MemberAccess", + "referencedDeclaration": 1351, + "src": "18822:30:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 2084, + "id": 2099, + "nodeType": "Return", + "src": "18815:37:10" + } + ] + }, + "documentation": { + "id": 2077, + "nodeType": "StructuredDocumentation", + "src": "18492:139:10", + "text": " @dev Returns the account approved for `tokenId` token.\n Requirements:\n - `tokenId` must exist." + }, + "functionSelector": "081812fc", + "id": 2101, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "getApproved", + "nameLocation": "18645:11:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 2081, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "18694:8:10" + }, + "parameters": { + "id": 2080, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2079, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "18665:7:10", + "nodeType": "VariableDeclaration", + "scope": 2101, + "src": "18657:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2078, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "18657:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "18656:17:10" + }, + "returnParameters": { + "id": 2084, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2083, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 2101, + "src": "18712:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2082, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "18712:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "18711:9:10" + }, + "scope": 3428, + "src": "18636:223:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3599 + ], + "body": { + "id": 2126, + "nodeType": "Block", + "src": "19270:147:10", + "statements": [ + { + "expression": { + "id": 2117, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "baseExpression": { + "id": 2110, + "name": "_operatorApprovals", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "19280:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", + "typeString": "mapping(address => mapping(address => bool))" + } + }, + "id": 2114, + "indexExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2111, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "19299:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 2112, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "19299:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "19280:39:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 2115, + "indexExpression": { + "id": 2113, + "name": "operator", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2104, + "src": "19320:8:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "19280:49:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 2116, + "name": "approved", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2106, + "src": "19332:8:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "19280:60:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2118, + "nodeType": "ExpressionStatement", + "src": "19280:60:10" + }, + { + "eventCall": { + "arguments": [ + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2120, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "19370:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 2121, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "19370:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2122, + "name": "operator", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2104, + "src": "19391:8:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2123, + "name": "approved", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2106, + "src": "19401:8:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 2119, + "name": "ApprovalForAll", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3535, + "src": "19355:14:10", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_bool_$returns$__$", + "typeString": "function (address,address,bool)" + } + }, + "id": 2124, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "19355:55:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2125, + "nodeType": "EmitStatement", + "src": "19350:60:10" + } + ] + }, + "documentation": { + "id": 2102, + "nodeType": "StructuredDocumentation", + "src": "18865:316:10", + "text": " @dev Approve or remove `operator` as an operator for the caller.\n Operators can call {transferFrom} or {safeTransferFrom}\n for any token owned by the caller.\n Requirements:\n - The `operator` cannot be the caller.\n Emits an {ApprovalForAll} event." + }, + "functionSelector": "a22cb465", + "id": 2127, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "setApprovalForAll", + "nameLocation": "19195:17:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 2108, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "19261:8:10" + }, + "parameters": { + "id": 2107, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2104, + "mutability": "mutable", + "name": "operator", + "nameLocation": "19221:8:10", + "nodeType": "VariableDeclaration", + "scope": 2127, + "src": "19213:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2103, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "19213:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2106, + "mutability": "mutable", + "name": "approved", + "nameLocation": "19236:8:10", + "nodeType": "VariableDeclaration", + "scope": 2127, + "src": "19231:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 2105, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "19231:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "19212:33:10" + }, + "returnParameters": { + "id": 2109, + "nodeType": "ParameterList", + "parameters": [], + "src": "19270:0:10" + }, + "scope": 3428, + "src": "19186:231:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3617 + ], + "body": { + "id": 2144, + "nodeType": "Block", + "src": "19670:59:10", + "statements": [ + { + "expression": { + "baseExpression": { + "baseExpression": { + "id": 2138, + "name": "_operatorApprovals", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "19687:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", + "typeString": "mapping(address => mapping(address => bool))" + } + }, + "id": 2140, + "indexExpression": { + "id": 2139, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2130, + "src": "19706:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "19687:25:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 2142, + "indexExpression": { + "id": 2141, + "name": "operator", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2132, + "src": "19713:8:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "19687:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 2137, + "id": 2143, + "nodeType": "Return", + "src": "19680:42:10" + } + ] + }, + "documentation": { + "id": 2128, + "nodeType": "StructuredDocumentation", + "src": "19423:139:10", + "text": " @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n See {setApprovalForAll}." + }, + "functionSelector": "e985e9c5", + "id": 2145, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "isApprovedForAll", + "nameLocation": "19576:16:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 2134, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "19646:8:10" + }, + "parameters": { + "id": 2133, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2130, + "mutability": "mutable", + "name": "owner", + "nameLocation": "19601:5:10", + "nodeType": "VariableDeclaration", + "scope": 2145, + "src": "19593:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2129, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "19593:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2132, + "mutability": "mutable", + "name": "operator", + "nameLocation": "19616:8:10", + "nodeType": "VariableDeclaration", + "scope": 2145, + "src": "19608:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2131, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "19608:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "19592:33:10" + }, + "returnParameters": { + "id": 2137, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2136, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 2145, + "src": "19664:4:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 2135, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "19664:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "19663:6:10" + }, + "scope": 3428, + "src": "19567:162:10", + "stateMutability": "view", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 2198, + "nodeType": "Block", + "src": "20056:387:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2156, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2153, + "name": "_startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1488, + "src": "20070:13:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 2154, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "20070:15:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "id": 2155, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2148, + "src": "20089:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "20070:26:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2197, + "nodeType": "IfStatement", + "src": "20066:371:10", + "trueBody": { + "id": 2196, + "nodeType": "Block", + "src": "20098:339:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2160, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2157, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2148, + "src": "20116:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2158, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "20126:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 2159, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "20126:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "20116:27:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2167, + "nodeType": "IfStatement", + "src": "20112:90:10", + "trueBody": { + "expression": { + "arguments": [ + { + "baseExpression": { + "id": 2162, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "20175:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2164, + "indexExpression": { + "id": 2163, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2148, + "src": "20193:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "20175:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2161, + "name": "_packedOwnershipExists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2209, + "src": "20152:22:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) pure returns (bool)" + } + }, + "id": 2165, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "20152:50:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 2152, + "id": 2166, + "nodeType": "Return", + "src": "20145:57:10" + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2170, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2168, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2148, + "src": "20221:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "id": 2169, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "20231:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "20221:23:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2195, + "nodeType": "IfStatement", + "src": "20217:210:10", + "trueBody": { + "id": 2194, + "nodeType": "Block", + "src": "20246:181:10", + "statements": [ + { + "assignments": [ + 2172 + ], + "declarations": [ + { + "constant": false, + "id": 2172, + "mutability": "mutable", + "name": "packed", + "nameLocation": "20272:6:10", + "nodeType": "VariableDeclaration", + "scope": 2194, + "src": "20264:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2171, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "20264:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2173, + "nodeType": "VariableDeclarationStatement", + "src": "20264:14:10" + }, + { + "body": { + "expression": { + "id": 2183, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "--", + "prefix": true, + "src": "20347:9:10", + "subExpression": { + "id": 2182, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2148, + "src": "20349:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2184, + "nodeType": "ExpressionStatement", + "src": "20347:9:10" + }, + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2181, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "id": 2178, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 2174, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2172, + "src": "20304:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "baseExpression": { + "id": 2175, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "20313:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2177, + "indexExpression": { + "id": 2176, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2148, + "src": "20331:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "20313:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "20304:35:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 2179, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "20303:37:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2180, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "20344:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "20303:42:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2185, + "nodeType": "WhileStatement", + "src": "20296:60:10" + }, + { + "expression": { + "id": 2192, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 2186, + "name": "result", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2151, + "src": "20374:6:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2191, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2189, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2187, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2172, + "src": "20383:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 2188, + "name": "_BITMASK_BURNED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1385, + "src": "20392:15:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "20383:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2190, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "20411:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "20383:29:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "20374:38:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2193, + "nodeType": "ExpressionStatement", + "src": "20374:38:10" + } + ] + } + } + ] + } + } + ] + }, + "documentation": { + "id": 2146, + "nodeType": "StructuredDocumentation", + "src": "19735:238:10", + "text": " @dev Returns whether `tokenId` exists.\n Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n Tokens start existing when they are minted. See {_mint}." + }, + "id": 2199, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_exists", + "nameLocation": "19987:7:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2149, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2148, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "20003:7:10", + "nodeType": "VariableDeclaration", + "scope": 2199, + "src": "19995:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2147, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "19995:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "19994:17:10" + }, + "returnParameters": { + "id": 2152, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2151, + "mutability": "mutable", + "name": "result", + "nameLocation": "20048:6:10", + "nodeType": "VariableDeclaration", + "scope": 2199, + "src": "20043:11:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 2150, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "20043:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "20042:13:10" + }, + "scope": 3428, + "src": "19978:465:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 2208, + "nodeType": "Block", + "src": "20617:246:10", + "statements": [ + { + "AST": { + "nativeSrc": "20636:221:10", + "nodeType": "YulBlock", + "src": "20636:221:10", + "statements": [ + { + "nativeSrc": "20774:73:10", + "nodeType": "YulAssignment", + "src": "20774:73:10", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "packed", + "nativeSrc": "20791:6:10", + "nodeType": "YulIdentifier", + "src": "20791:6:10" + }, + { + "name": "_BITMASK_ADDRESS", + "nativeSrc": "20799:16:10", + "nodeType": "YulIdentifier", + "src": "20799:16:10" + } + ], + "functionName": { + "name": "and", + "nativeSrc": "20787:3:10", + "nodeType": "YulIdentifier", + "src": "20787:3:10" + }, + "nativeSrc": "20787:29:10", + "nodeType": "YulFunctionCall", + "src": "20787:29:10" + }, + { + "arguments": [ + { + "name": "packed", + "nativeSrc": "20822:6:10", + "nodeType": "YulIdentifier", + "src": "20822:6:10" + }, + { + "name": "_BITMASK_BURNED", + "nativeSrc": "20830:15:10", + "nodeType": "YulIdentifier", + "src": "20830:15:10" + } + ], + "functionName": { + "name": "and", + "nativeSrc": "20818:3:10", + "nodeType": "YulIdentifier", + "src": "20818:3:10" + }, + "nativeSrc": "20818:28:10", + "nodeType": "YulFunctionCall", + "src": "20818:28:10" + } + ], + "functionName": { + "name": "gt", + "nativeSrc": "20784:2:10", + "nodeType": "YulIdentifier", + "src": "20784:2:10" + }, + "nativeSrc": "20784:63:10", + "nodeType": "YulFunctionCall", + "src": "20784:63:10" + }, + "variableNames": [ + { + "name": "result", + "nativeSrc": "20774:6:10", + "nodeType": "YulIdentifier", + "src": "20774:6:10" + } + ] + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1412, + "isOffset": false, + "isSlot": false, + "src": "20799:16:10", + "valueSize": 1 + }, + { + "declaration": 1385, + "isOffset": false, + "isSlot": false, + "src": "20830:15:10", + "valueSize": 1 + }, + { + "declaration": 2202, + "isOffset": false, + "isSlot": false, + "src": "20791:6:10", + "valueSize": 1 + }, + { + "declaration": 2202, + "isOffset": false, + "isSlot": false, + "src": "20822:6:10", + "valueSize": 1 + }, + { + "declaration": 2205, + "isOffset": false, + "isSlot": false, + "src": "20774:6:10", + "valueSize": 1 + } + ], + "id": 2207, + "nodeType": "InlineAssembly", + "src": "20627:230:10" + } + ] + }, + "documentation": { + "id": 2200, + "nodeType": "StructuredDocumentation", + "src": "20449:80:10", + "text": " @dev Returns whether `packed` represents a token that exists." + }, + "id": 2209, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_packedOwnershipExists", + "nameLocation": "20543:22:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2203, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2202, + "mutability": "mutable", + "name": "packed", + "nameLocation": "20574:6:10", + "nodeType": "VariableDeclaration", + "scope": 2209, + "src": "20566:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2201, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "20566:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "20565:16:10" + }, + "returnParameters": { + "id": 2206, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2205, + "mutability": "mutable", + "name": "result", + "nameLocation": "20609:6:10", + "nodeType": "VariableDeclaration", + "scope": 2209, + "src": "20604:11:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 2204, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "20604:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "20603:13:10" + }, + "scope": 3428, + "src": "20534:329:10", + "stateMutability": "pure", + "virtual": false, + "visibility": "private" + }, + { + "body": { + "id": 2222, + "nodeType": "Block", + "src": "21125:488:10", + "statements": [ + { + "AST": { + "nativeSrc": "21144:463:10", + "nodeType": "YulBlock", + "src": "21144:463:10", + "statements": [ + { + "nativeSrc": "21254:37:10", + "nodeType": "YulAssignment", + "src": "21254:37:10", + "value": { + "arguments": [ + { + "name": "owner", + "nativeSrc": "21267:5:10", + "nodeType": "YulIdentifier", + "src": "21267:5:10" + }, + { + "name": "_BITMASK_ADDRESS", + "nativeSrc": "21274:16:10", + "nodeType": "YulIdentifier", + "src": "21274:16:10" + } + ], + "functionName": { + "name": "and", + "nativeSrc": "21263:3:10", + "nodeType": "YulIdentifier", + "src": "21263:3:10" + }, + "nativeSrc": "21263:28:10", + "nodeType": "YulFunctionCall", + "src": "21263:28:10" + }, + "variableNames": [ + { + "name": "owner", + "nativeSrc": "21254:5:10", + "nodeType": "YulIdentifier", + "src": "21254:5:10" + } + ] + }, + { + "nativeSrc": "21404:45:10", + "nodeType": "YulAssignment", + "src": "21404:45:10", + "value": { + "arguments": [ + { + "name": "msgSender", + "nativeSrc": "21421:9:10", + "nodeType": "YulIdentifier", + "src": "21421:9:10" + }, + { + "name": "_BITMASK_ADDRESS", + "nativeSrc": "21432:16:10", + "nodeType": "YulIdentifier", + "src": "21432:16:10" + } + ], + "functionName": { + "name": "and", + "nativeSrc": "21417:3:10", + "nodeType": "YulIdentifier", + "src": "21417:3:10" + }, + "nativeSrc": "21417:32:10", + "nodeType": "YulFunctionCall", + "src": "21417:32:10" + }, + "variableNames": [ + { + "name": "msgSender", + "nativeSrc": "21404:9:10", + "nodeType": "YulIdentifier", + "src": "21404:9:10" + } + ] + }, + { + "nativeSrc": "21531:66:10", + "nodeType": "YulAssignment", + "src": "21531:66:10", + "value": { + "arguments": [ + { + "arguments": [ + { + "name": "msgSender", + "nativeSrc": "21547:9:10", + "nodeType": "YulIdentifier", + "src": "21547:9:10" + }, + { + "name": "owner", + "nativeSrc": "21558:5:10", + "nodeType": "YulIdentifier", + "src": "21558:5:10" + } + ], + "functionName": { + "name": "eq", + "nativeSrc": "21544:2:10", + "nodeType": "YulIdentifier", + "src": "21544:2:10" + }, + "nativeSrc": "21544:20:10", + "nodeType": "YulFunctionCall", + "src": "21544:20:10" + }, + { + "arguments": [ + { + "name": "msgSender", + "nativeSrc": "21569:9:10", + "nodeType": "YulIdentifier", + "src": "21569:9:10" + }, + { + "name": "approvedAddress", + "nativeSrc": "21580:15:10", + "nodeType": "YulIdentifier", + "src": "21580:15:10" + } + ], + "functionName": { + "name": "eq", + "nativeSrc": "21566:2:10", + "nodeType": "YulIdentifier", + "src": "21566:2:10" + }, + "nativeSrc": "21566:30:10", + "nodeType": "YulFunctionCall", + "src": "21566:30:10" + } + ], + "functionName": { + "name": "or", + "nativeSrc": "21541:2:10", + "nodeType": "YulIdentifier", + "src": "21541:2:10" + }, + "nativeSrc": "21541:56:10", + "nodeType": "YulFunctionCall", + "src": "21541:56:10" + }, + "variableNames": [ + { + "name": "result", + "nativeSrc": "21531:6:10", + "nodeType": "YulIdentifier", + "src": "21531:6:10" + } + ] + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1412, + "isOffset": false, + "isSlot": false, + "src": "21274:16:10", + "valueSize": 1 + }, + { + "declaration": 1412, + "isOffset": false, + "isSlot": false, + "src": "21432:16:10", + "valueSize": 1 + }, + { + "declaration": 2212, + "isOffset": false, + "isSlot": false, + "src": "21580:15:10", + "valueSize": 1 + }, + { + "declaration": 2216, + "isOffset": false, + "isSlot": false, + "src": "21404:9:10", + "valueSize": 1 + }, + { + "declaration": 2216, + "isOffset": false, + "isSlot": false, + "src": "21421:9:10", + "valueSize": 1 + }, + { + "declaration": 2216, + "isOffset": false, + "isSlot": false, + "src": "21547:9:10", + "valueSize": 1 + }, + { + "declaration": 2216, + "isOffset": false, + "isSlot": false, + "src": "21569:9:10", + "valueSize": 1 + }, + { + "declaration": 2214, + "isOffset": false, + "isSlot": false, + "src": "21254:5:10", + "valueSize": 1 + }, + { + "declaration": 2214, + "isOffset": false, + "isSlot": false, + "src": "21267:5:10", + "valueSize": 1 + }, + { + "declaration": 2214, + "isOffset": false, + "isSlot": false, + "src": "21558:5:10", + "valueSize": 1 + }, + { + "declaration": 2219, + "isOffset": false, + "isSlot": false, + "src": "21531:6:10", + "valueSize": 1 + } + ], + "id": 2221, + "nodeType": "InlineAssembly", + "src": "21135:472:10" + } + ] + }, + "documentation": { + "id": 2210, + "nodeType": "StructuredDocumentation", + "src": "20869:93:10", + "text": " @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`." + }, + "id": 2223, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_isSenderApprovedOrOwner", + "nameLocation": "20976:24:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2217, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2212, + "mutability": "mutable", + "name": "approvedAddress", + "nameLocation": "21018:15:10", + "nodeType": "VariableDeclaration", + "scope": 2223, + "src": "21010:23:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2211, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "21010:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2214, + "mutability": "mutable", + "name": "owner", + "nameLocation": "21051:5:10", + "nodeType": "VariableDeclaration", + "scope": 2223, + "src": "21043:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2213, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "21043:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2216, + "mutability": "mutable", + "name": "msgSender", + "nameLocation": "21074:9:10", + "nodeType": "VariableDeclaration", + "scope": 2223, + "src": "21066:17:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2215, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "21066:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "21000:89:10" + }, + "returnParameters": { + "id": 2220, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2219, + "mutability": "mutable", + "name": "result", + "nameLocation": "21117:6:10", + "nodeType": "VariableDeclaration", + "scope": 2223, + "src": "21112:11:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 2218, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "21112:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "21111:13:10" + }, + "scope": 3428, + "src": "20967:646:10", + "stateMutability": "pure", + "virtual": false, + "visibility": "private" + }, + { + "body": { + "id": 2241, + "nodeType": "Block", + "src": "21878:317:10", + "statements": [ + { + "assignments": [ + 2235 + ], + "declarations": [ + { + "constant": false, + "id": 2235, + "mutability": "mutable", + "name": "tokenApproval", + "nameLocation": "21913:13:10", + "nodeType": "VariableDeclaration", + "scope": 2241, + "src": "21888:38:10", + "stateVariable": false, + "storageLocation": "storage", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenApprovalRef_$1352_storage_ptr", + "typeString": "struct ERC721A.TokenApprovalRef" + }, + "typeName": { + "id": 2234, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 2233, + "name": "TokenApprovalRef", + "nameLocations": [ + "21888:16:10" + ], + "nodeType": "IdentifierPath", + "referencedDeclaration": 1352, + "src": "21888:16:10" + }, + "referencedDeclaration": 1352, + "src": "21888:16:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenApprovalRef_$1352_storage_ptr", + "typeString": "struct ERC721A.TokenApprovalRef" + } + }, + "visibility": "internal" + } + ], + "id": 2239, + "initialValue": { + "baseExpression": { + "id": 2236, + "name": "_tokenApprovals", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1439, + "src": "21929:15:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_TokenApprovalRef_$1352_storage_$", + "typeString": "mapping(uint256 => struct ERC721A.TokenApprovalRef storage ref)" + } + }, + "id": 2238, + "indexExpression": { + "id": 2237, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2226, + "src": "21945:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "21929:24:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenApprovalRef_$1352_storage", + "typeString": "struct ERC721A.TokenApprovalRef storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "21888:65:10" + }, + { + "AST": { + "nativeSrc": "22066:123:10", + "nodeType": "YulBlock", + "src": "22066:123:10", + "statements": [ + { + "nativeSrc": "22080:41:10", + "nodeType": "YulAssignment", + "src": "22080:41:10", + "value": { + "name": "tokenApproval.slot", + "nativeSrc": "22103:18:10", + "nodeType": "YulIdentifier", + "src": "22103:18:10" + }, + "variableNames": [ + { + "name": "approvedAddressSlot", + "nativeSrc": "22080:19:10", + "nodeType": "YulIdentifier", + "src": "22080:19:10" + } + ] + }, + { + "nativeSrc": "22134:45:10", + "nodeType": "YulAssignment", + "src": "22134:45:10", + "value": { + "arguments": [ + { + "name": "approvedAddressSlot", + "nativeSrc": "22159:19:10", + "nodeType": "YulIdentifier", + "src": "22159:19:10" + } + ], + "functionName": { + "name": "sload", + "nativeSrc": "22153:5:10", + "nodeType": "YulIdentifier", + "src": "22153:5:10" + }, + "nativeSrc": "22153:26:10", + "nodeType": "YulFunctionCall", + "src": "22153:26:10" + }, + "variableNames": [ + { + "name": "approvedAddress", + "nativeSrc": "22134:15:10", + "nodeType": "YulIdentifier", + "src": "22134:15:10" + } + ] + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 2231, + "isOffset": false, + "isSlot": false, + "src": "22134:15:10", + "valueSize": 1 + }, + { + "declaration": 2229, + "isOffset": false, + "isSlot": false, + "src": "22080:19:10", + "valueSize": 1 + }, + { + "declaration": 2229, + "isOffset": false, + "isSlot": false, + "src": "22159:19:10", + "valueSize": 1 + }, + { + "declaration": 2235, + "isOffset": false, + "isSlot": true, + "src": "22103:18:10", + "suffix": "slot", + "valueSize": 1 + } + ], + "id": 2240, + "nodeType": "InlineAssembly", + "src": "22057:132:10" + } + ] + }, + "documentation": { + "id": 2224, + "nodeType": "StructuredDocumentation", + "src": "21619:97:10", + "text": " @dev Returns the storage slot and value for the approved address of `tokenId`." + }, + "id": 2242, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_getApprovedSlotAndAddress", + "nameLocation": "21730:26:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2227, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2226, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "21765:7:10", + "nodeType": "VariableDeclaration", + "scope": 2242, + "src": "21757:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2225, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "21757:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "21756:17:10" + }, + "returnParameters": { + "id": 2232, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2229, + "mutability": "mutable", + "name": "approvedAddressSlot", + "nameLocation": "21828:19:10", + "nodeType": "VariableDeclaration", + "scope": 2242, + "src": "21820:27:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2228, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "21820:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2231, + "mutability": "mutable", + "name": "approvedAddress", + "nameLocation": "21857:15:10", + "nodeType": "VariableDeclaration", + "scope": 2242, + "src": "21849:23:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2230, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "21849:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "21819:54:10" + }, + "scope": 3428, + "src": "21721:474:10", + "stateMutability": "view", + "virtual": false, + "visibility": "private" + }, + { + "baseFunctions": [ + 3583 + ], + "body": { + "id": 2414, + "nodeType": "Block", + "src": "22923:3320:10", + "statements": [ + { + "assignments": [ + 2254 + ], + "declarations": [ + { + "constant": false, + "id": 2254, + "mutability": "mutable", + "name": "prevOwnershipPacked", + "nameLocation": "22941:19:10", + "nodeType": "VariableDeclaration", + "scope": 2414, + "src": "22933:27:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2253, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "22933:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2258, + "initialValue": { + "arguments": [ + { + "id": 2256, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2249, + "src": "22982:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2255, + "name": "_packedOwnershipOf", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1984, + "src": "22963:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) view returns (uint256)" + } + }, + "id": 2257, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "22963:27:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "22933:57:10" + }, + { + "expression": { + "id": 2275, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 2259, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "23092:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2272, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "arguments": [ + { + "id": 2268, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "23131:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2267, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "23123:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 2266, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "23123:7:10", + "typeDescriptions": {} + } + }, + "id": 2269, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23123:13:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 2265, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "23115:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 2264, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "23115:7:10", + "typeDescriptions": {} + } + }, + "id": 2270, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23115:22:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 2271, + "name": "_BITMASK_ADDRESS", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1412, + "src": "23140:16:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "23115:41:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2263, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "23107:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 2262, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "23107:7:10", + "typeDescriptions": {} + } + }, + "id": 2273, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23107:50:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 2261, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "23099:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2260, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "23099:7:10", + "typeDescriptions": {} + } + }, + "id": 2274, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23099:59:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "23092:66:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 2276, + "nodeType": "ExpressionStatement", + "src": "23092:66:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 2285, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "arguments": [ + { + "id": 2281, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2254, + "src": "23189:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2280, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "23181:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 2279, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "23181:7:10", + "typeDescriptions": {} + } + }, + "id": 2282, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23181:28:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 2278, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "23173:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2277, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "23173:7:10", + "typeDescriptions": {} + } + }, + "id": 2283, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23173:37:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 2284, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "23214:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "23173:45:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2291, + "nodeType": "IfStatement", + "src": "23169:95:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2287, + "name": "TransferFromIncorrectOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3455, + "src": "23228:26:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2288, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "23255:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "23228:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2286, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "23220:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2289, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23220:44:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2290, + "nodeType": "ExpressionStatement", + "src": "23220:44:10" + } + }, + { + "assignments": [ + 2293, + 2295 + ], + "declarations": [ + { + "constant": false, + "id": 2293, + "mutability": "mutable", + "name": "approvedAddressSlot", + "nameLocation": "23284:19:10", + "nodeType": "VariableDeclaration", + "scope": 2414, + "src": "23276:27:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2292, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "23276:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2295, + "mutability": "mutable", + "name": "approvedAddress", + "nameLocation": "23313:15:10", + "nodeType": "VariableDeclaration", + "scope": 2414, + "src": "23305:23:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2294, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "23305:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 2299, + "initialValue": { + "arguments": [ + { + "id": 2297, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2249, + "src": "23359:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2296, + "name": "_getApprovedSlotAndAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2242, + "src": "23332:26:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$_t_address_$", + "typeString": "function (uint256) view returns (uint256,address)" + } + }, + "id": 2298, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23332:35:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$_t_uint256_$_t_address_$", + "typeString": "tuple(uint256,address)" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "23275:92:10" + }, + { + "condition": { + "id": 2306, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "23463:69:10", + "subExpression": { + "arguments": [ + { + "id": 2301, + "name": "approvedAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2295, + "src": "23489:15:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2302, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "23506:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2303, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "23512:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 2304, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23512:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2300, + "name": "_isSenderApprovedOrOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2223, + "src": "23464:24:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_address_$_t_address_$_t_address_$returns$_t_bool_$", + "typeString": "function (address,address,address) pure returns (bool)" + } + }, + "id": 2305, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23464:68:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2319, + "nodeType": "IfStatement", + "src": "23459:188:10", + "trueBody": { + "condition": { + "id": 2312, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "23550:44:10", + "subExpression": { + "arguments": [ + { + "id": 2308, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "23568:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2309, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "23574:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 2310, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23574:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2307, + "name": "isApprovedForAll", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2145, + "src": "23551:16:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_bool_$", + "typeString": "function (address,address) view returns (bool)" + } + }, + "id": 2311, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23551:43:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2318, + "nodeType": "IfStatement", + "src": "23546:101:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2314, + "name": "TransferCallerNotOwnerNorApproved", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3452, + "src": "23604:33:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2315, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "23638:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "23604:42:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2313, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "23596:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2316, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23596:51:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2317, + "nodeType": "ExpressionStatement", + "src": "23596:51:10" + } + } + }, + { + "expression": { + "arguments": [ + { + "id": 2321, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "23680:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2322, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2247, + "src": "23686:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2323, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2249, + "src": "23690:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "31", + "id": 2324, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "23699:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 2320, + "name": "_beforeTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2487, + "src": "23658:21:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 2325, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "23658:43:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2326, + "nodeType": "ExpressionStatement", + "src": "23658:43:10" + }, + { + "AST": { + "nativeSrc": "23773:181:10", + "nodeType": "YulBlock", + "src": "23773:181:10", + "statements": [ + { + "body": { + "nativeSrc": "23806:138:10", + "nodeType": "YulBlock", + "src": "23806:138:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "approvedAddressSlot", + "nativeSrc": "23907:19:10", + "nodeType": "YulIdentifier", + "src": "23907:19:10" + }, + { + "kind": "number", + "nativeSrc": "23928:1:10", + "nodeType": "YulLiteral", + "src": "23928:1:10", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "sstore", + "nativeSrc": "23900:6:10", + "nodeType": "YulIdentifier", + "src": "23900:6:10" + }, + "nativeSrc": "23900:30:10", + "nodeType": "YulFunctionCall", + "src": "23900:30:10" + }, + "nativeSrc": "23900:30:10", + "nodeType": "YulExpressionStatement", + "src": "23900:30:10" + } + ] + }, + "condition": { + "name": "approvedAddress", + "nativeSrc": "23790:15:10", + "nodeType": "YulIdentifier", + "src": "23790:15:10" + }, + "nativeSrc": "23787:157:10", + "nodeType": "YulIf", + "src": "23787:157:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 2295, + "isOffset": false, + "isSlot": false, + "src": "23790:15:10", + "valueSize": 1 + }, + { + "declaration": 2293, + "isOffset": false, + "isSlot": false, + "src": "23907:19:10", + "valueSize": 1 + } + ], + "id": 2327, + "nodeType": "InlineAssembly", + "src": "23764:190:10" + }, + { + "id": 2384, + "nodeType": "UncheckedBlock", + "src": "24221:1361:10", + "statements": [ + { + "expression": { + "id": 2331, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "--", + "prefix": true, + "src": "24314:26:10", + "subExpression": { + "baseExpression": { + "id": 2328, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "24316:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2330, + "indexExpression": { + "id": 2329, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "24335:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "24316:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2332, + "nodeType": "ExpressionStatement", + "src": "24314:26:10" + }, + { + "expression": { + "id": 2336, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": true, + "src": "24382:24:10", + "subExpression": { + "baseExpression": { + "id": 2333, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "24384:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2335, + "indexExpression": { + "id": 2334, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2247, + "src": "24403:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "24384:22:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2337, + "nodeType": "ExpressionStatement", + "src": "24382:24:10" + }, + { + "expression": { + "id": 2351, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2338, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "24670:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2340, + "indexExpression": { + "id": 2339, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2249, + "src": "24688:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "24670:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 2342, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2247, + "src": "24735:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2349, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2343, + "name": "_BITMASK_NEXT_INITIALIZED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1393, + "src": "24755:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "arguments": [ + { + "id": 2345, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "24798:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2346, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2247, + "src": "24804:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2347, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2254, + "src": "24808:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2344, + "name": "_nextExtraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3399, + "src": "24783:14:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,address,uint256) view returns (uint256)" + } + }, + "id": 2348, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "24783:45:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "24755:73:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2341, + "name": "_packOwnershipData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2050, + "src": "24699:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,uint256) view returns (uint256)" + } + }, + "id": 2350, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "24699:143:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "24670:172:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2352, + "nodeType": "ExpressionStatement", + "src": "24670:172:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2357, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2355, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2353, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2254, + "src": "24959:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 2354, + "name": "_BITMASK_NEXT_INITIALIZED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1393, + "src": "24981:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "24959:47:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2356, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "25010:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "24959:52:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2383, + "nodeType": "IfStatement", + "src": "24955:617:10", + "trueBody": { + "id": 2382, + "nodeType": "Block", + "src": "25013:559:10", + "statements": [ + { + "assignments": [ + 2359 + ], + "declarations": [ + { + "constant": false, + "id": 2359, + "mutability": "mutable", + "name": "nextTokenId", + "nameLocation": "25039:11:10", + "nodeType": "VariableDeclaration", + "scope": 2382, + "src": "25031:19:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2358, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "25031:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2363, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2362, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2360, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2249, + "src": "25053:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "hexValue": "31", + "id": 2361, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "25063:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "25053:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "25031:33:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2368, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 2364, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "25184:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2366, + "indexExpression": { + "id": 2365, + "name": "nextTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2359, + "src": "25202:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "25184:30:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2367, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "25218:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "25184:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2381, + "nodeType": "IfStatement", + "src": "25180:378:10", + "trueBody": { + "id": 2380, + "nodeType": "Block", + "src": "25221:337:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2371, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2369, + "name": "nextTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2359, + "src": "25305:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 2370, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "25320:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "25305:28:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2379, + "nodeType": "IfStatement", + "src": "25301:239:10", + "trueBody": { + "id": 2378, + "nodeType": "Block", + "src": "25335:205:10", + "statements": [ + { + "expression": { + "id": 2376, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2372, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "25465:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2374, + "indexExpression": { + "id": 2373, + "name": "nextTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2359, + "src": "25483:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "25465:30:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 2375, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2254, + "src": "25498:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "25465:52:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2377, + "nodeType": "ExpressionStatement", + "src": "25465:52:10" + } + ] + } + } + ] + } + } + ] + } + } + ] + }, + { + "assignments": [ + 2386 + ], + "declarations": [ + { + "constant": false, + "id": 2386, + "mutability": "mutable", + "name": "toMasked", + "nameLocation": "25689:8:10", + "nodeType": "VariableDeclaration", + "scope": 2414, + "src": "25681:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2385, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "25681:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2396, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2395, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "arguments": [ + { + "id": 2391, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2247, + "src": "25716:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2390, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "25708:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 2389, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "25708:7:10", + "typeDescriptions": {} + } + }, + "id": 2392, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "25708:11:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 2388, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "25700:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 2387, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "25700:7:10", + "typeDescriptions": {} + } + }, + "id": 2393, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "25700:20:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 2394, + "name": "_BITMASK_ADDRESS", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1412, + "src": "25723:16:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "25700:39:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "25681:58:10" + }, + { + "AST": { + "nativeSrc": "25758:358:10", + "nodeType": "YulBlock", + "src": "25758:358:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nativeSrc": "25836:1:10", + "nodeType": "YulLiteral", + "src": "25836:1:10", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nativeSrc": "25892:1:10", + "nodeType": "YulLiteral", + "src": "25892:1:10", + "type": "", + "value": "0" + }, + { + "name": "_TRANSFER_EVENT_SIGNATURE", + "nativeSrc": "25946:25:10", + "nodeType": "YulIdentifier", + "src": "25946:25:10" + }, + { + "name": "from", + "nativeSrc": "26003:4:10", + "nodeType": "YulIdentifier", + "src": "26003:4:10" + }, + { + "name": "toMasked", + "nativeSrc": "26036:8:10", + "nodeType": "YulIdentifier", + "src": "26036:8:10" + }, + { + "name": "tokenId", + "nativeSrc": "26071:7:10", + "nodeType": "YulIdentifier", + "src": "26071:7:10" + } + ], + "functionName": { + "name": "log4", + "nativeSrc": "25814:4:10", + "nodeType": "YulIdentifier", + "src": "25814:4:10" + }, + "nativeSrc": "25814:292:10", + "nodeType": "YulFunctionCall", + "src": "25814:292:10" + }, + "nativeSrc": "25814:292:10", + "nodeType": "YulExpressionStatement", + "src": "25814:292:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1418, + "isOffset": false, + "isSlot": false, + "src": "25946:25:10", + "valueSize": 1 + }, + { + "declaration": 2245, + "isOffset": false, + "isSlot": false, + "src": "26003:4:10", + "valueSize": 1 + }, + { + "declaration": 2386, + "isOffset": false, + "isSlot": false, + "src": "26036:8:10", + "valueSize": 1 + }, + { + "declaration": 2249, + "isOffset": false, + "isSlot": false, + "src": "26071:7:10", + "valueSize": 1 + } + ], + "id": 2397, + "nodeType": "InlineAssembly", + "src": "25749:367:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2400, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2398, + "name": "toMasked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2386, + "src": "26129:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2399, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "26141:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "26129:13:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2406, + "nodeType": "IfStatement", + "src": "26125:58:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2402, + "name": "TransferToZeroAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3461, + "src": "26152:21:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2403, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "26174:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "26152:30:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2401, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "26144:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2404, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "26144:39:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2405, + "nodeType": "ExpressionStatement", + "src": "26144:39:10" + } + }, + { + "expression": { + "arguments": [ + { + "id": 2408, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2245, + "src": "26215:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2409, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2247, + "src": "26221:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2410, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2249, + "src": "26225:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "31", + "id": 2411, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "26234:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 2407, + "name": "_afterTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2500, + "src": "26194:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 2412, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "26194:42:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2413, + "nodeType": "ExpressionStatement", + "src": "26194:42:10" + } + ] + }, + "documentation": { + "id": 2243, + "nodeType": "StructuredDocumentation", + "src": "22388:403:10", + "text": " @dev Transfers `tokenId` from `from` to `to`.\n Requirements:\n - `from` cannot be the zero address.\n - `to` cannot be the zero address.\n - `tokenId` token must be owned by `from`.\n - If the caller is not `from`, it must be approved to move this token\n by either {approve} or {setApprovalForAll}.\n Emits a {Transfer} event." + }, + "functionSelector": "23b872dd", + "id": 2415, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "transferFrom", + "nameLocation": "22805:12:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 2251, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "22914:8:10" + }, + "parameters": { + "id": 2250, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2245, + "mutability": "mutable", + "name": "from", + "nameLocation": "22835:4:10", + "nodeType": "VariableDeclaration", + "scope": 2415, + "src": "22827:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2244, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "22827:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2247, + "mutability": "mutable", + "name": "to", + "nameLocation": "22857:2:10", + "nodeType": "VariableDeclaration", + "scope": 2415, + "src": "22849:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2246, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "22849:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2249, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "22877:7:10", + "nodeType": "VariableDeclaration", + "scope": 2415, + "src": "22869:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2248, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "22869:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "22817:73:10" + }, + "returnParameters": { + "id": 2252, + "nodeType": "ParameterList", + "parameters": [], + "src": "22923:0:10" + }, + "scope": 3428, + "src": "22796:3447:10", + "stateMutability": "payable", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3573 + ], + "body": { + "id": 2433, + "nodeType": "Block", + "src": "26465:56:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 2427, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2418, + "src": "26492:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2428, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2420, + "src": "26498:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2429, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2422, + "src": "26502:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "", + "id": 2430, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "26511:2:10", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + } + ], + "id": 2426, + "name": "safeTransferFrom", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 2434, + 2474 + ], + "referencedDeclaration": 2474, + "src": "26475:16:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$__$", + "typeString": "function (address,address,uint256,bytes memory)" + } + }, + "id": 2431, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "26475:39:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2432, + "nodeType": "ExpressionStatement", + "src": "26475:39:10" + } + ] + }, + "documentation": { + "id": 2416, + "nodeType": "StructuredDocumentation", + "src": "26249:80:10", + "text": " @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`." + }, + "functionSelector": "42842e0e", + "id": 2434, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "safeTransferFrom", + "nameLocation": "26343:16:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 2424, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "26456:8:10" + }, + "parameters": { + "id": 2423, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2418, + "mutability": "mutable", + "name": "from", + "nameLocation": "26377:4:10", + "nodeType": "VariableDeclaration", + "scope": 2434, + "src": "26369:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2417, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "26369:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2420, + "mutability": "mutable", + "name": "to", + "nameLocation": "26399:2:10", + "nodeType": "VariableDeclaration", + "scope": 2434, + "src": "26391:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2419, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "26391:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2422, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "26419:7:10", + "nodeType": "VariableDeclaration", + "scope": 2434, + "src": "26411:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2421, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "26411:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "26359:73:10" + }, + "returnParameters": { + "id": 2425, + "nodeType": "ParameterList", + "parameters": [], + "src": "26465:0:10" + }, + "scope": 3428, + "src": "26334:187:10", + "stateMutability": "payable", + "virtual": true, + "visibility": "public" + }, + { + "baseFunctions": [ + 3563 + ], + "body": { + "id": 2473, + "nodeType": "Block", + "src": "27261:246:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 2448, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2437, + "src": "27284:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2449, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2439, + "src": "27290:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2450, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2441, + "src": "27294:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2447, + "name": "transferFrom", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2415, + "src": "27271:12:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256)" + } + }, + "id": 2451, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "27271:31:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2452, + "nodeType": "ExpressionStatement", + "src": "27271:31:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2457, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "expression": { + "id": 2453, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2439, + "src": "27316:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 2454, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "27319:4:10", + "memberName": "code", + "nodeType": "MemberAccess", + "src": "27316:7:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + }, + "id": 2455, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "27324:6:10", + "memberName": "length", + "nodeType": "MemberAccess", + "src": "27316:14:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 2456, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "27334:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "27316:19:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2472, + "nodeType": "IfStatement", + "src": "27312:189:10", + "trueBody": { + "condition": { + "id": 2464, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "27353:57:10", + "subExpression": { + "arguments": [ + { + "id": 2459, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2437, + "src": "27385:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2460, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2439, + "src": "27391:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2461, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2441, + "src": "27395:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 2462, + "name": "_data", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2443, + "src": "27404:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + ], + "id": 2458, + "name": "_checkContractOnERC721Received", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2556, + "src": "27354:30:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bool_$", + "typeString": "function (address,address,uint256,bytes memory) returns (bool)" + } + }, + "id": 2463, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "27354:56:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2471, + "nodeType": "IfStatement", + "src": "27349:152:10", + "trueBody": { + "id": 2470, + "nodeType": "Block", + "src": "27412:89:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "expression": { + "id": 2466, + "name": "TransferToNonERC721ReceiverImplementer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3458, + "src": "27438:38:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2467, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "27477:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "27438:47:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2465, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "27430:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2468, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "27430:56:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2469, + "nodeType": "ExpressionStatement", + "src": "27430:56:10" + } + ] + } + } + } + ] + }, + "documentation": { + "id": 2435, + "nodeType": "StructuredDocumentation", + "src": "26527:570:10", + "text": " @dev Safely transfers `tokenId` token from `from` to `to`.\n Requirements:\n - `from` cannot be the zero address.\n - `to` cannot be the zero address.\n - `tokenId` token must exist and be owned by `from`.\n - If the caller is not `from`, it must be approved to move this token\n by either {approve} or {setApprovalForAll}.\n - If `to` refers to a smart contract, it must implement\n {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n Emits a {Transfer} event." + }, + "functionSelector": "b88d4fde", + "id": 2474, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "safeTransferFrom", + "nameLocation": "27111:16:10", + "nodeType": "FunctionDefinition", + "overrides": { + "id": 2445, + "nodeType": "OverrideSpecifier", + "overrides": [], + "src": "27252:8:10" + }, + "parameters": { + "id": 2444, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2437, + "mutability": "mutable", + "name": "from", + "nameLocation": "27145:4:10", + "nodeType": "VariableDeclaration", + "scope": 2474, + "src": "27137:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2436, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "27137:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2439, + "mutability": "mutable", + "name": "to", + "nameLocation": "27167:2:10", + "nodeType": "VariableDeclaration", + "scope": 2474, + "src": "27159:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2438, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "27159:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2441, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "27187:7:10", + "nodeType": "VariableDeclaration", + "scope": 2474, + "src": "27179:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2440, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "27179:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2443, + "mutability": "mutable", + "name": "_data", + "nameLocation": "27217:5:10", + "nodeType": "VariableDeclaration", + "scope": 2474, + "src": "27204:18:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 2442, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "27204:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "27127:101:10" + }, + "returnParameters": { + "id": 2446, + "nodeType": "ParameterList", + "parameters": [], + "src": "27261:0:10" + }, + "scope": 3428, + "src": "27102:405:10", + "stateMutability": "payable", + "virtual": true, + "visibility": "public" + }, + { + "body": { + "id": 2486, + "nodeType": "Block", + "src": "28303:2:10", + "statements": [] + }, + "documentation": { + "id": 2475, + "nodeType": "StructuredDocumentation", + "src": "27513:633:10", + "text": " @dev Hook that is called before a set of serially-ordered token IDs\n are about to be transferred. This includes minting.\n And also called before burning one token.\n `startTokenId` - the first token ID to be transferred.\n `quantity` - the amount to be transferred.\n Calling conditions:\n - When `from` and `to` are both non-zero, `from`'s `tokenId` will be\n transferred to `to`.\n - When `from` is zero, `tokenId` will be minted for `to`.\n - When `to` is zero, `tokenId` will be burned by `from`.\n - `from` and `to` are never both zero." + }, + "id": 2487, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_beforeTokenTransfers", + "nameLocation": "28160:21:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2484, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2477, + "mutability": "mutable", + "name": "from", + "nameLocation": "28199:4:10", + "nodeType": "VariableDeclaration", + "scope": 2487, + "src": "28191:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2476, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "28191:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2479, + "mutability": "mutable", + "name": "to", + "nameLocation": "28221:2:10", + "nodeType": "VariableDeclaration", + "scope": 2487, + "src": "28213:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2478, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "28213:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2481, + "mutability": "mutable", + "name": "startTokenId", + "nameLocation": "28241:12:10", + "nodeType": "VariableDeclaration", + "scope": 2487, + "src": "28233:20:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2480, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "28233:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2483, + "mutability": "mutable", + "name": "quantity", + "nameLocation": "28271:8:10", + "nodeType": "VariableDeclaration", + "scope": 2487, + "src": "28263:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2482, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "28263:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "28181:104:10" + }, + "returnParameters": { + "id": 2485, + "nodeType": "ParameterList", + "parameters": [], + "src": "28303:0:10" + }, + "scope": 3428, + "src": "28151:154:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 2499, + "nodeType": "Block", + "src": "29103:2:10", + "statements": [] + }, + "documentation": { + "id": 2488, + "nodeType": "StructuredDocumentation", + "src": "28311:636:10", + "text": " @dev Hook that is called after a set of serially-ordered token IDs\n have been transferred. This includes minting.\n And also called after one token has been burned.\n `startTokenId` - the first token ID to be transferred.\n `quantity` - the amount to be transferred.\n Calling conditions:\n - When `from` and `to` are both non-zero, `from`'s `tokenId` has been\n transferred to `to`.\n - When `from` is zero, `tokenId` has been minted for `to`.\n - When `to` is zero, `tokenId` has been burned by `from`.\n - `from` and `to` are never both zero." + }, + "id": 2500, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_afterTokenTransfers", + "nameLocation": "28961:20:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2497, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2490, + "mutability": "mutable", + "name": "from", + "nameLocation": "28999:4:10", + "nodeType": "VariableDeclaration", + "scope": 2500, + "src": "28991:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2489, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "28991:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2492, + "mutability": "mutable", + "name": "to", + "nameLocation": "29021:2:10", + "nodeType": "VariableDeclaration", + "scope": 2500, + "src": "29013:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2491, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "29013:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2494, + "mutability": "mutable", + "name": "startTokenId", + "nameLocation": "29041:12:10", + "nodeType": "VariableDeclaration", + "scope": 2500, + "src": "29033:20:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2493, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "29033:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2496, + "mutability": "mutable", + "name": "quantity", + "nameLocation": "29071:8:10", + "nodeType": "VariableDeclaration", + "scope": 2500, + "src": "29063:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2495, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "29063:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "28981:104:10" + }, + "returnParameters": { + "id": 2498, + "nodeType": "ParameterList", + "parameters": [], + "src": "29103:0:10" + }, + "scope": 3428, + "src": "28952:153:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 2555, + "nodeType": "Block", + "src": "29697:509:10", + "statements": [ + { + "clauses": [ + { + "block": { + "id": 2535, + "nodeType": "Block", + "src": "29846:96:10", + "statements": [ + { + "expression": { + "commonType": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "id": 2533, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2527, + "name": "retval", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2525, + "src": "29867:6:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "expression": { + "expression": { + "arguments": [ + { + "id": 2529, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2505, + "src": "29902:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2528, + "name": "ERC721A__IERC721Receiver", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1346, + "src": "29877:24:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_ERC721A__IERC721Receiver_$1346_$", + "typeString": "type(contract ERC721A__IERC721Receiver)" + } + }, + "id": 2530, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "29877:28:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_ERC721A__IERC721Receiver_$1346", + "typeString": "contract ERC721A__IERC721Receiver" + } + }, + "id": 2531, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "29906:16:10", + "memberName": "onERC721Received", + "nodeType": "MemberAccess", + "referencedDeclaration": 1345, + "src": "29877:45:10", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$", + "typeString": "function (address,address,uint256,bytes memory) external returns (bytes4)" + } + }, + "id": 2532, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "29923:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "29877:54:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "src": "29867:64:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 2513, + "id": 2534, + "nodeType": "Return", + "src": "29860:71:10" + } + ] + }, + "errorName": "", + "id": 2536, + "nodeType": "TryCatchClause", + "parameters": { + "id": 2526, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2525, + "mutability": "mutable", + "name": "retval", + "nameLocation": "29829:6:10", + "nodeType": "VariableDeclaration", + "scope": 2536, + "src": "29822:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "typeName": { + "id": 2524, + "name": "bytes4", + "nodeType": "ElementaryTypeName", + "src": "29822:6:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "visibility": "internal" + } + ], + "src": "29808:37:10" + }, + "src": "29800:142:10" + }, + { + "block": { + "id": 2552, + "nodeType": "Block", + "src": "29971:229:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2543, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 2540, + "name": "reason", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2538, + "src": "29989:6:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + }, + "id": 2541, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "29996:6:10", + "memberName": "length", + "nodeType": "MemberAccess", + "src": "29989:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2542, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "30006:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "29989:18:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2550, + "nodeType": "IfStatement", + "src": "29985:113:10", + "trueBody": { + "id": 2549, + "nodeType": "Block", + "src": "30009:89:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "expression": { + "id": 2545, + "name": "TransferToNonERC721ReceiverImplementer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3458, + "src": "30035:38:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2546, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "30074:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "30035:47:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2544, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "30027:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2547, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "30027:56:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2548, + "nodeType": "ExpressionStatement", + "src": "30027:56:10" + } + ] + } + }, + { + "AST": { + "nativeSrc": "30120:70:10", + "nodeType": "YulBlock", + "src": "30120:70:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "kind": "number", + "nativeSrc": "30149:2:10", + "nodeType": "YulLiteral", + "src": "30149:2:10", + "type": "", + "value": "32" + }, + { + "name": "reason", + "nativeSrc": "30153:6:10", + "nodeType": "YulIdentifier", + "src": "30153:6:10" + } + ], + "functionName": { + "name": "add", + "nativeSrc": "30145:3:10", + "nodeType": "YulIdentifier", + "src": "30145:3:10" + }, + "nativeSrc": "30145:15:10", + "nodeType": "YulFunctionCall", + "src": "30145:15:10" + }, + { + "arguments": [ + { + "name": "reason", + "nativeSrc": "30168:6:10", + "nodeType": "YulIdentifier", + "src": "30168:6:10" + } + ], + "functionName": { + "name": "mload", + "nativeSrc": "30162:5:10", + "nodeType": "YulIdentifier", + "src": "30162:5:10" + }, + "nativeSrc": "30162:13:10", + "nodeType": "YulFunctionCall", + "src": "30162:13:10" + } + ], + "functionName": { + "name": "revert", + "nativeSrc": "30138:6:10", + "nodeType": "YulIdentifier", + "src": "30138:6:10" + }, + "nativeSrc": "30138:38:10", + "nodeType": "YulFunctionCall", + "src": "30138:38:10" + }, + "nativeSrc": "30138:38:10", + "nodeType": "YulExpressionStatement", + "src": "30138:38:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 2538, + "isOffset": false, + "isSlot": false, + "src": "30153:6:10", + "valueSize": 1 + }, + { + "declaration": 2538, + "isOffset": false, + "isSlot": false, + "src": "30168:6:10", + "valueSize": 1 + } + ], + "id": 2551, + "nodeType": "InlineAssembly", + "src": "30111:79:10" + } + ] + }, + "errorName": "", + "id": 2553, + "nodeType": "TryCatchClause", + "parameters": { + "id": 2539, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2538, + "mutability": "mutable", + "name": "reason", + "nameLocation": "29963:6:10", + "nodeType": "VariableDeclaration", + "scope": 2553, + "src": "29950:19:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 2537, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "29950:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "29949:21:10" + }, + "src": "29943:257:10" + } + ], + "externalCall": { + "arguments": [ + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2518, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "29757:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 2519, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "29757:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2520, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2503, + "src": "29778:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2521, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2507, + "src": "29784:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 2522, + "name": "_data", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2509, + "src": "29793:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + ], + "expression": { + "arguments": [ + { + "id": 2515, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2505, + "src": "29736:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2514, + "name": "ERC721A__IERC721Receiver", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1346, + "src": "29711:24:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_ERC721A__IERC721Receiver_$1346_$", + "typeString": "type(contract ERC721A__IERC721Receiver)" + } + }, + "id": 2516, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "29711:28:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_ERC721A__IERC721Receiver_$1346", + "typeString": "contract ERC721A__IERC721Receiver" + } + }, + "id": 2517, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "29740:16:10", + "memberName": "onERC721Received", + "nodeType": "MemberAccess", + "referencedDeclaration": 1345, + "src": "29711:45:10", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$", + "typeString": "function (address,address,uint256,bytes memory) external returns (bytes4)" + } + }, + "id": 2523, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "29711:88:10", + "tryCall": true, + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "id": 2554, + "nodeType": "TryStatement", + "src": "29707:493:10" + } + ] + }, + "documentation": { + "id": 2501, + "nodeType": "StructuredDocumentation", + "src": "29111:417:10", + "text": " @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.\n `from` - Previous owner of the given token ID.\n `to` - Target address that will receive the token.\n `tokenId` - Token ID to be transferred.\n `_data` - Optional data to send along with the call.\n Returns whether the call correctly returned the expected magic value." + }, + "id": 2556, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_checkContractOnERC721Received", + "nameLocation": "29542:30:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2510, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2503, + "mutability": "mutable", + "name": "from", + "nameLocation": "29590:4:10", + "nodeType": "VariableDeclaration", + "scope": 2556, + "src": "29582:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2502, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "29582:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2505, + "mutability": "mutable", + "name": "to", + "nameLocation": "29612:2:10", + "nodeType": "VariableDeclaration", + "scope": 2556, + "src": "29604:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2504, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "29604:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2507, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "29632:7:10", + "nodeType": "VariableDeclaration", + "scope": 2556, + "src": "29624:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2506, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "29624:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2509, + "mutability": "mutable", + "name": "_data", + "nameLocation": "29662:5:10", + "nodeType": "VariableDeclaration", + "scope": 2556, + "src": "29649:18:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 2508, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "29649:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "29572:101:10" + }, + "returnParameters": { + "id": 2513, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2512, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 2556, + "src": "29691:4:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 2511, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "29691:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "29690:6:10" + }, + "scope": 3428, + "src": "29533:673:10", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "private" + }, + { + "body": { + "id": 2686, + "nodeType": "Block", + "src": "30714:2281:10", + "statements": [ + { + "assignments": [ + 2565 + ], + "declarations": [ + { + "constant": false, + "id": 2565, + "mutability": "mutable", + "name": "startTokenId", + "nameLocation": "30732:12:10", + "nodeType": "VariableDeclaration", + "scope": 2686, + "src": "30724:20:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2564, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "30724:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2567, + "initialValue": { + "id": 2566, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "30747:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "30724:36:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2570, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2568, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2561, + "src": "30774:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2569, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "30786:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "30774:13:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2576, + "nodeType": "IfStatement", + "src": "30770:53:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2572, + "name": "MintZeroQuantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3446, + "src": "30797:16:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2573, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "30814:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "30797:25:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2571, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "30789:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2574, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "30789:34:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2575, + "nodeType": "ExpressionStatement", + "src": "30789:34:10" + } + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2580, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "30864:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2579, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "30856:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2578, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "30856:7:10", + "typeDescriptions": {} + } + }, + "id": 2581, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "30856:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2582, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2559, + "src": "30868:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2583, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2565, + "src": "30872:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 2584, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2561, + "src": "30886:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2577, + "name": "_beforeTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2487, + "src": "30834:21:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 2585, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "30834:61:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2586, + "nodeType": "ExpressionStatement", + "src": "30834:61:10" + }, + { + "id": 2675, + "nodeType": "UncheckedBlock", + "src": "31078:1841:10", + "statements": [ + { + "expression": { + "id": 2605, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2587, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "31323:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2589, + "indexExpression": { + "id": 2588, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2565, + "src": "31341:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "31323:31:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 2591, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2559, + "src": "31393:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2603, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "id": 2593, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2561, + "src": "31434:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2592, + "name": "_nextInitializedFlag", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2060, + "src": "31413:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) pure returns (uint256)" + } + }, + "id": 2594, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "31413:30:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2598, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "31469:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2597, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "31461:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2596, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "31461:7:10", + "typeDescriptions": {} + } + }, + "id": 2599, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "31461:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2600, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2559, + "src": "31473:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "hexValue": "30", + "id": 2601, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "31477:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2595, + "name": "_nextExtraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3399, + "src": "31446:14:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,address,uint256) view returns (uint256)" + } + }, + "id": 2602, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "31446:33:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "31413:66:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2590, + "name": "_packOwnershipData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2050, + "src": "31357:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,uint256) view returns (uint256)" + } + }, + "id": 2604, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "31357:136:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "31323:170:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2606, + "nodeType": "ExpressionStatement", + "src": "31323:170:10" + }, + { + "expression": { + "id": 2619, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2607, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "31704:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2609, + "indexExpression": { + "id": 2608, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2559, + "src": "31723:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "31704:22:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2618, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2610, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2561, + "src": "31730:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "*", + "rightExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2616, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2613, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 2611, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "31743:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "id": 2612, + "name": "_BITPOS_NUMBER_MINTED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1363, + "src": "31748:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "31743:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 2614, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "31742:28:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "hexValue": "31", + "id": 2615, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "31773:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "31742:32:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 2617, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "31741:34:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "31730:45:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "31704:71:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2620, + "nodeType": "ExpressionStatement", + "src": "31704:71:10" + }, + { + "assignments": [ + 2622 + ], + "declarations": [ + { + "constant": false, + "id": 2622, + "mutability": "mutable", + "name": "toMasked", + "nameLocation": "31891:8:10", + "nodeType": "VariableDeclaration", + "scope": 2675, + "src": "31883:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2621, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "31883:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2632, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2631, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "arguments": [ + { + "id": 2627, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2559, + "src": "31918:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2626, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "31910:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 2625, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "31910:7:10", + "typeDescriptions": {} + } + }, + "id": 2628, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "31910:11:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 2624, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "31902:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 2623, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "31902:7:10", + "typeDescriptions": {} + } + }, + "id": 2629, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "31902:20:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 2630, + "name": "_BITMASK_ADDRESS", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1412, + "src": "31925:16:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "31902:39:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "31883:58:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2635, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2633, + "name": "toMasked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2622, + "src": "31960:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2634, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "31972:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "31960:13:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2641, + "nodeType": "IfStatement", + "src": "31956:54:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2637, + "name": "MintToZeroAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3443, + "src": "31983:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2638, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "32001:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "31983:26:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2636, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "31975:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2639, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "31975:35:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2640, + "nodeType": "ExpressionStatement", + "src": "31975:35:10" + } + }, + { + "assignments": [ + 2643 + ], + "declarations": [ + { + "constant": false, + "id": 2643, + "mutability": "mutable", + "name": "end", + "nameLocation": "32033:3:10", + "nodeType": "VariableDeclaration", + "scope": 2675, + "src": "32025:11:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2642, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "32025:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2647, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2646, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2644, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2565, + "src": "32039:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "id": 2645, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2561, + "src": "32054:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "32039:23:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "32025:37:10" + }, + { + "assignments": [ + 2649 + ], + "declarations": [ + { + "constant": false, + "id": 2649, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "32084:7:10", + "nodeType": "VariableDeclaration", + "scope": 2675, + "src": "32076:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2648, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "32076:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2651, + "initialValue": { + "id": 2650, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2565, + "src": "32094:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "32076:30:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2657, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2654, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2652, + "name": "end", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2643, + "src": "32125:3:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 2653, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "32131:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "32125:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2655, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "32135:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 2656, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "32135:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "32125:27:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2663, + "nodeType": "IfStatement", + "src": "32121:77:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2659, + "name": "SequentialMintExceedsLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3476, + "src": "32162:26:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2660, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "32189:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "32162:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2658, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "32154:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2661, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "32154:44:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2662, + "nodeType": "ExpressionStatement", + "src": "32154:44:10" + } + }, + { + "body": { + "id": 2665, + "nodeType": "Block", + "src": "32216:633:10", + "statements": [ + { + "AST": { + "nativeSrc": "32243:441:10", + "nodeType": "YulBlock", + "src": "32243:441:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nativeSrc": "32345:1:10", + "nodeType": "YulLiteral", + "src": "32345:1:10", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nativeSrc": "32409:1:10", + "nodeType": "YulLiteral", + "src": "32409:1:10", + "type": "", + "value": "0" + }, + { + "name": "_TRANSFER_EVENT_SIGNATURE", + "nativeSrc": "32471:25:10", + "nodeType": "YulIdentifier", + "src": "32471:25:10" + }, + { + "kind": "number", + "nativeSrc": "32536:1:10", + "nodeType": "YulLiteral", + "src": "32536:1:10", + "type": "", + "value": "0" + }, + { + "name": "toMasked", + "nativeSrc": "32580:8:10", + "nodeType": "YulIdentifier", + "src": "32580:8:10" + }, + { + "name": "tokenId", + "nativeSrc": "32623:7:10", + "nodeType": "YulIdentifier", + "src": "32623:7:10" + } + ], + "functionName": { + "name": "log4", + "nativeSrc": "32315:4:10", + "nodeType": "YulIdentifier", + "src": "32315:4:10" + }, + "nativeSrc": "32315:351:10", + "nodeType": "YulFunctionCall", + "src": "32315:351:10" + }, + "nativeSrc": "32315:351:10", + "nodeType": "YulExpressionStatement", + "src": "32315:351:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1418, + "isOffset": false, + "isSlot": false, + "src": "32471:25:10", + "valueSize": 1 + }, + { + "declaration": 2622, + "isOffset": false, + "isSlot": false, + "src": "32580:8:10", + "valueSize": 1 + }, + { + "declaration": 2649, + "isOffset": false, + "isSlot": false, + "src": "32623:7:10", + "valueSize": 1 + } + ], + "id": 2664, + "nodeType": "InlineAssembly", + "src": "32234:450:10" + } + ] + }, + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2669, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2667, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": true, + "src": "32857:9:10", + "subExpression": { + "id": 2666, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2649, + "src": "32859:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 2668, + "name": "end", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2643, + "src": "32870:3:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "32857:16:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2670, + "nodeType": "DoWhileStatement", + "src": "32213:662:10" + }, + { + "expression": { + "id": 2673, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 2671, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "32889:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 2672, + "name": "end", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2643, + "src": "32905:3:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "32889:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2674, + "nodeType": "ExpressionStatement", + "src": "32889:19:10" + } + ] + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2679, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "32957:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2678, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "32949:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2677, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "32949:7:10", + "typeDescriptions": {} + } + }, + "id": 2680, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "32949:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2681, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2559, + "src": "32961:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2682, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2565, + "src": "32965:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 2683, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2561, + "src": "32979:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2676, + "name": "_afterTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2500, + "src": "32928:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 2684, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "32928:60:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2685, + "nodeType": "ExpressionStatement", + "src": "32928:60:10" + } + ] + }, + "documentation": { + "id": 2557, + "nodeType": "StructuredDocumentation", + "src": "30397:250:10", + "text": " @dev Mints `quantity` tokens and transfers them to `to`.\n Requirements:\n - `to` cannot be the zero address.\n - `quantity` must be greater than 0.\n Emits a {Transfer} event for each mint." + }, + "id": 2687, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_mint", + "nameLocation": "30661:5:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2562, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2559, + "mutability": "mutable", + "name": "to", + "nameLocation": "30675:2:10", + "nodeType": "VariableDeclaration", + "scope": 2687, + "src": "30667:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2558, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "30667:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2561, + "mutability": "mutable", + "name": "quantity", + "nameLocation": "30687:8:10", + "nodeType": "VariableDeclaration", + "scope": 2687, + "src": "30679:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2560, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "30679:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "30666:30:10" + }, + "returnParameters": { + "id": 2563, + "nodeType": "ParameterList", + "parameters": [], + "src": "30714:0:10" + }, + "scope": 3428, + "src": "30652:2343:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 2818, + "nodeType": "Block", + "src": "33904:1513:10", + "statements": [ + { + "assignments": [ + 2696 + ], + "declarations": [ + { + "constant": false, + "id": 2696, + "mutability": "mutable", + "name": "startTokenId", + "nameLocation": "33922:12:10", + "nodeType": "VariableDeclaration", + "scope": 2818, + "src": "33914:20:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2695, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "33914:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2698, + "initialValue": { + "id": 2697, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "33937:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "33914:36:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 2704, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2699, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2690, + "src": "33964:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 2702, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "33978:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2701, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "33970:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2700, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "33970:7:10", + "typeDescriptions": {} + } + }, + "id": 2703, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "33970:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "33964:16:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2710, + "nodeType": "IfStatement", + "src": "33960:57:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2706, + "name": "MintToZeroAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3443, + "src": "33990:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2707, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "34008:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "33990:26:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2705, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "33982:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2708, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "33982:35:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2709, + "nodeType": "ExpressionStatement", + "src": "33982:35:10" + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2713, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2711, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "34031:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2712, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "34043:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "34031:13:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2719, + "nodeType": "IfStatement", + "src": "34027:53:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2715, + "name": "MintZeroQuantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3446, + "src": "34054:16:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2716, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "34071:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "34054:25:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2714, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "34046:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2717, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "34046:34:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2718, + "nodeType": "ExpressionStatement", + "src": "34046:34:10" + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2722, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2720, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "34094:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">", + "rightExpression": { + "id": 2721, + "name": "_MAX_MINT_ERC2309_QUANTITY_LIMIT", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1415, + "src": "34105:32:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "34094:43:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2728, + "nodeType": "IfStatement", + "src": "34090:98:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2724, + "name": "MintERC2309QuantityExceedsLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3467, + "src": "34147:31:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2725, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "34179:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "34147:40:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2723, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "34139:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2726, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "34139:49:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2727, + "nodeType": "ExpressionStatement", + "src": "34139:49:10" + } + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2732, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "34229:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2731, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "34221:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2730, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "34221:7:10", + "typeDescriptions": {} + } + }, + "id": 2733, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "34221:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2734, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2690, + "src": "34233:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2735, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2696, + "src": "34237:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 2736, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "34251:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2729, + "name": "_beforeTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2487, + "src": "34199:21:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 2737, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "34199:61:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2738, + "nodeType": "ExpressionStatement", + "src": "34199:61:10" + }, + { + "id": 2807, + "nodeType": "UncheckedBlock", + "src": "34369:972:10", + "statements": [ + { + "expression": { + "id": 2751, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2739, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "34589:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2741, + "indexExpression": { + "id": 2740, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2690, + "src": "34608:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "34589:22:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2750, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2742, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "34615:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "*", + "rightExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2748, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2745, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 2743, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "34628:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "id": 2744, + "name": "_BITPOS_NUMBER_MINTED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1363, + "src": "34633:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "34628:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 2746, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "34627:28:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "hexValue": "31", + "id": 2747, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "34658:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "34627:32:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 2749, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "34626:34:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "34615:45:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "34589:71:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2752, + "nodeType": "ExpressionStatement", + "src": "34589:71:10" + }, + { + "expression": { + "id": 2771, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2753, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "34896:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2755, + "indexExpression": { + "id": 2754, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2696, + "src": "34914:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "34896:31:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 2757, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2690, + "src": "34966:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2769, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "id": 2759, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "35007:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2758, + "name": "_nextInitializedFlag", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2060, + "src": "34986:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) pure returns (uint256)" + } + }, + "id": 2760, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "34986:30:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2764, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "35042:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2763, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "35034:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2762, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "35034:7:10", + "typeDescriptions": {} + } + }, + "id": 2765, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35034:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2766, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2690, + "src": "35046:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "hexValue": "30", + "id": 2767, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "35050:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2761, + "name": "_nextExtraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3399, + "src": "35019:14:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,address,uint256) view returns (uint256)" + } + }, + "id": 2768, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35019:33:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "34986:66:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2756, + "name": "_packOwnershipData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2050, + "src": "34930:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,uint256) view returns (uint256)" + } + }, + "id": 2770, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "34930:136:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "34896:170:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2772, + "nodeType": "ExpressionStatement", + "src": "34896:170:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2780, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2777, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2775, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2773, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2696, + "src": "35085:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "id": 2774, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "35100:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "35085:23:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 2776, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "35111:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "35085:27:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2778, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "35115:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 2779, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35115:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "35085:47:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2786, + "nodeType": "IfStatement", + "src": "35081:97:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2782, + "name": "SequentialMintExceedsLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3476, + "src": "35142:26:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2783, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "35169:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "35142:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2781, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "35134:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2784, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35134:44:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2785, + "nodeType": "ExpressionStatement", + "src": "35134:44:10" + } + }, + { + "eventCall": { + "arguments": [ + { + "id": 2788, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2696, + "src": "35218:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2793, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2791, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2789, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2696, + "src": "35232:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "id": 2790, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "35247:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "35232:23:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 2792, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "35258:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "35232:27:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "arguments": [ + { + "hexValue": "30", + "id": 2796, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "35269:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2795, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "35261:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2794, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "35261:7:10", + "typeDescriptions": {} + } + }, + "id": 2797, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35261:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2798, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2690, + "src": "35273:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2787, + "name": "ConsecutiveTransfer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3648, + "src": "35198:19:10", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_address_$_t_address_$returns$__$", + "typeString": "function (uint256,uint256,address,address)" + } + }, + "id": 2799, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35198:78:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2800, + "nodeType": "EmitStatement", + "src": "35193:83:10" + }, + { + "expression": { + "id": 2805, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 2801, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "35291:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2804, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2802, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2696, + "src": "35307:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "id": 2803, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "35322:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "35307:23:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "35291:39:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2806, + "nodeType": "ExpressionStatement", + "src": "35291:39:10" + } + ] + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2811, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "35379:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2810, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "35371:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2809, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "35371:7:10", + "typeDescriptions": {} + } + }, + "id": 2812, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35371:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2813, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2690, + "src": "35383:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2814, + "name": "startTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2696, + "src": "35387:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 2815, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2692, + "src": "35401:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2808, + "name": "_afterTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2500, + "src": "35350:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 2816, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35350:60:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2817, + "nodeType": "ExpressionStatement", + "src": "35350:60:10" + } + ] + }, + "documentation": { + "id": 2688, + "nodeType": "StructuredDocumentation", + "src": "33001:829:10", + "text": " @dev Mints `quantity` tokens and transfers them to `to`.\n This function is intended for efficient minting only during contract creation.\n It emits only one {ConsecutiveTransfer} as defined in\n [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),\n instead of a sequence of {Transfer} event(s).\n Calling this function outside of contract creation WILL make your contract\n non-compliant with the ERC721 standard.\n For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309\n {ConsecutiveTransfer} event is only permissible during contract creation.\n Requirements:\n - `to` cannot be the zero address.\n - `quantity` must be greater than 0.\n Emits a {ConsecutiveTransfer} event." + }, + "id": 2819, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_mintERC2309", + "nameLocation": "33844:12:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2693, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2690, + "mutability": "mutable", + "name": "to", + "nameLocation": "33865:2:10", + "nodeType": "VariableDeclaration", + "scope": 2819, + "src": "33857:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2689, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "33857:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2692, + "mutability": "mutable", + "name": "quantity", + "nameLocation": "33877:8:10", + "nodeType": "VariableDeclaration", + "scope": 2819, + "src": "33869:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2691, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "33869:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "33856:30:10" + }, + "returnParameters": { + "id": 2694, + "nodeType": "ParameterList", + "parameters": [], + "src": "33904:0:10" + }, + "scope": 3428, + "src": "33835:1582:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 2882, + "nodeType": "Block", + "src": "35932:650:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 2830, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2822, + "src": "35948:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2831, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2824, + "src": "35952:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2829, + "name": "_mint", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2687, + "src": "35942:5:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,uint256)" + } + }, + "id": 2832, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "35942:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2833, + "nodeType": "ExpressionStatement", + "src": "35942:19:10" + }, + { + "id": 2881, + "nodeType": "UncheckedBlock", + "src": "35972:604:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2838, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "expression": { + "id": 2834, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2822, + "src": "36000:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 2835, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "36003:4:10", + "memberName": "code", + "nodeType": "MemberAccess", + "src": "36000:7:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + }, + "id": 2836, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "36008:6:10", + "memberName": "length", + "nodeType": "MemberAccess", + "src": "36000:14:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 2837, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "36018:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "36000:19:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2880, + "nodeType": "IfStatement", + "src": "35996:570:10", + "trueBody": { + "id": 2879, + "nodeType": "Block", + "src": "36021:545:10", + "statements": [ + { + "assignments": [ + 2840 + ], + "declarations": [ + { + "constant": false, + "id": 2840, + "mutability": "mutable", + "name": "end", + "nameLocation": "36047:3:10", + "nodeType": "VariableDeclaration", + "scope": 2879, + "src": "36039:11:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2839, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "36039:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2842, + "initialValue": { + "id": 2841, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "36053:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "36039:27:10" + }, + { + "assignments": [ + 2844 + ], + "declarations": [ + { + "constant": false, + "id": 2844, + "mutability": "mutable", + "name": "index", + "nameLocation": "36092:5:10", + "nodeType": "VariableDeclaration", + "scope": 2879, + "src": "36084:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2843, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "36084:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2848, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2847, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2845, + "name": "end", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2840, + "src": "36100:3:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "id": 2846, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2824, + "src": "36106:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "36100:14:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "36084:30:10" + }, + { + "body": { + "id": 2867, + "nodeType": "Block", + "src": "36135:214:10", + "statements": [ + { + "condition": { + "id": 2859, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "36161:63:10", + "subExpression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2852, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "36201:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2851, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "36193:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2850, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "36193:7:10", + "typeDescriptions": {} + } + }, + "id": 2853, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "36193:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2854, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2822, + "src": "36205:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2856, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": false, + "src": "36209:7:10", + "subExpression": { + "id": 2855, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2844, + "src": "36209:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 2857, + "name": "_data", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2826, + "src": "36218:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + ], + "id": 2849, + "name": "_checkContractOnERC721Received", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2556, + "src": "36162:30:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bool_$", + "typeString": "function (address,address,uint256,bytes memory) returns (bool)" + } + }, + "id": 2858, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "36162:62:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2866, + "nodeType": "IfStatement", + "src": "36157:174:10", + "trueBody": { + "id": 2865, + "nodeType": "Block", + "src": "36226:105:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "expression": { + "id": 2861, + "name": "TransferToNonERC721ReceiverImplementer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3458, + "src": "36260:38:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2862, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "36299:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "36260:47:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2860, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "36252:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2863, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "36252:56:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2864, + "nodeType": "ExpressionStatement", + "src": "36252:56:10" + } + ] + } + } + ] + }, + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2870, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2868, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2844, + "src": "36357:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "id": 2869, + "name": "end", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2840, + "src": "36365:3:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "36357:11:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2871, + "nodeType": "DoWhileStatement", + "src": "36132:238:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2874, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2872, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "36521:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 2873, + "name": "end", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2840, + "src": "36538:3:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "36521:20:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2878, + "nodeType": "IfStatement", + "src": "36517:34:10", + "trueBody": { + "expression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2875, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -19, + -19 + ], + "referencedDeclaration": -19, + "src": "36543:6:10", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2876, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "36543:8:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2877, + "nodeType": "ExpressionStatement", + "src": "36543:8:10" + } + } + ] + } + } + ] + } + ] + }, + "documentation": { + "id": 2820, + "nodeType": "StructuredDocumentation", + "src": "35423:388:10", + "text": " @dev Safely mints `quantity` tokens and transfers them to `to`.\n Requirements:\n - If `to` refers to a smart contract, it must implement\n {IERC721Receiver-onERC721Received}, which is called for each safe transfer.\n - `quantity` must be greater than 0.\n See {_mint}.\n Emits a {Transfer} event for each mint." + }, + "id": 2883, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_safeMint", + "nameLocation": "35825:9:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2827, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2822, + "mutability": "mutable", + "name": "to", + "nameLocation": "35852:2:10", + "nodeType": "VariableDeclaration", + "scope": 2883, + "src": "35844:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2821, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "35844:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2824, + "mutability": "mutable", + "name": "quantity", + "nameLocation": "35872:8:10", + "nodeType": "VariableDeclaration", + "scope": 2883, + "src": "35864:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2823, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "35864:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2826, + "mutability": "mutable", + "name": "_data", + "nameLocation": "35903:5:10", + "nodeType": "VariableDeclaration", + "scope": 2883, + "src": "35890:18:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 2825, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "35890:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "35834:80:10" + }, + "returnParameters": { + "id": 2828, + "nodeType": "ParameterList", + "parameters": [], + "src": "35932:0:10" + }, + "scope": 3428, + "src": "35816:766:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 2897, + "nodeType": "Block", + "src": "36727:44:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 2892, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2886, + "src": "36747:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2893, + "name": "quantity", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2888, + "src": "36751:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "", + "id": 2894, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "36761:2:10", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + } + ], + "id": 2891, + "name": "_safeMint", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 2883, + 2898 + ], + "referencedDeclaration": 2883, + "src": "36737:9:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$__$", + "typeString": "function (address,uint256,bytes memory)" + } + }, + "id": 2895, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "36737:27:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2896, + "nodeType": "ExpressionStatement", + "src": "36737:27:10" + } + ] + }, + "documentation": { + "id": 2884, + "nodeType": "StructuredDocumentation", + "src": "36588:68:10", + "text": " @dev Equivalent to `_safeMint(to, quantity, '')`." + }, + "id": 2898, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_safeMint", + "nameLocation": "36670:9:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2889, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2886, + "mutability": "mutable", + "name": "to", + "nameLocation": "36688:2:10", + "nodeType": "VariableDeclaration", + "scope": 2898, + "src": "36680:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2885, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "36680:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2888, + "mutability": "mutable", + "name": "quantity", + "nameLocation": "36700:8:10", + "nodeType": "VariableDeclaration", + "scope": 2898, + "src": "36692:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2887, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "36692:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "36679:30:10" + }, + "returnParameters": { + "id": 2890, + "nodeType": "ParameterList", + "parameters": [], + "src": "36727:0:10" + }, + "scope": 3428, + "src": "36661:110:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3008, + "nodeType": "Block", + "src": "37221:1992:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2909, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2906, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2903, + "src": "37235:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 2907, + "name": "_sequentialUpTo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1501, + "src": "37246:15:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 2908, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "37246:17:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "37235:28:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2915, + "nodeType": "IfStatement", + "src": "37231:75:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2911, + "name": "SpotMintTokenIdTooSmall", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3479, + "src": "37273:23:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2912, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "37297:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "37273:32:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2910, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "37265:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2913, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "37265:41:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2914, + "nodeType": "ExpressionStatement", + "src": "37265:41:10" + } + }, + { + "assignments": [ + 2917 + ], + "declarations": [ + { + "constant": false, + "id": 2917, + "mutability": "mutable", + "name": "prevOwnershipPacked", + "nameLocation": "37324:19:10", + "nodeType": "VariableDeclaration", + "scope": 3008, + "src": "37316:27:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2916, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "37316:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2921, + "initialValue": { + "baseExpression": { + "id": 2918, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "37346:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2920, + "indexExpression": { + "id": 2919, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2903, + "src": "37364:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "37346:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "37316:56:10" + }, + { + "condition": { + "arguments": [ + { + "id": 2923, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2917, + "src": "37409:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2922, + "name": "_packedOwnershipExists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2209, + "src": "37386:22:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) pure returns (bool)" + } + }, + "id": 2924, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "37386:43:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2930, + "nodeType": "IfStatement", + "src": "37382:85:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2926, + "name": "TokenAlreadyExists", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3482, + "src": "37439:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2927, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "37458:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "37439:27:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2925, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "37431:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2928, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "37431:36:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2929, + "nodeType": "ExpressionStatement", + "src": "37431:36:10" + } + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2934, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "37508:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2933, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "37500:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2932, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "37500:7:10", + "typeDescriptions": {} + } + }, + "id": 2935, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "37500:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2936, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2901, + "src": "37512:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2937, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2903, + "src": "37516:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "31", + "id": 2938, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "37525:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 2931, + "name": "_beforeTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2487, + "src": "37478:21:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 2939, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "37478:49:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2940, + "nodeType": "ExpressionStatement", + "src": "37478:49:10" + }, + { + "id": 2997, + "nodeType": "UncheckedBlock", + "src": "37762:1386:10", + "statements": [ + { + "expression": { + "id": 2959, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2941, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "38019:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 2943, + "indexExpression": { + "id": 2942, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2903, + "src": "38037:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "38019:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 2945, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2901, + "src": "38084:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2957, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "hexValue": "31", + "id": 2947, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "38125:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 2946, + "name": "_nextInitializedFlag", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2060, + "src": "38104:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) pure returns (uint256)" + } + }, + "id": 2948, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "38104:23:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 2952, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "38153:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2951, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "38145:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2950, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "38145:7:10", + "typeDescriptions": {} + } + }, + "id": 2953, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "38145:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2954, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2901, + "src": "38157:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 2955, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2917, + "src": "38161:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2949, + "name": "_nextExtraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3399, + "src": "38130:14:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,address,uint256) view returns (uint256)" + } + }, + "id": 2956, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "38130:51:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "38104:77:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 2944, + "name": "_packOwnershipData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2050, + "src": "38048:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,uint256) view returns (uint256)" + } + }, + "id": 2958, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "38048:147:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "38019:176:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2960, + "nodeType": "ExpressionStatement", + "src": "38019:176:10" + }, + { + "expression": { + "id": 2970, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2961, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "38392:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2963, + "indexExpression": { + "id": 2962, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2901, + "src": "38411:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "38392:22:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2969, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2966, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 2964, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "38419:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "id": 2965, + "name": "_BITPOS_NUMBER_MINTED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1363, + "src": "38424:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "38419:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 2967, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "38418:28:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "hexValue": "31", + "id": 2968, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "38449:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "38418:32:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "38392:58:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2971, + "nodeType": "ExpressionStatement", + "src": "38392:58:10" + }, + { + "assignments": [ + 2973 + ], + "declarations": [ + { + "constant": false, + "id": 2973, + "mutability": "mutable", + "name": "toMasked", + "nameLocation": "38566:8:10", + "nodeType": "VariableDeclaration", + "scope": 2997, + "src": "38558:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2972, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "38558:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 2983, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2982, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "arguments": [ + { + "id": 2978, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2901, + "src": "38593:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 2977, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "38585:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 2976, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "38585:7:10", + "typeDescriptions": {} + } + }, + "id": 2979, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "38585:11:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 2975, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "38577:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 2974, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "38577:7:10", + "typeDescriptions": {} + } + }, + "id": 2980, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "38577:20:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 2981, + "name": "_BITMASK_ADDRESS", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1412, + "src": "38600:16:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "38577:39:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "38558:58:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2986, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2984, + "name": "toMasked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2973, + "src": "38635:8:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 2985, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "38647:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "38635:13:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2992, + "nodeType": "IfStatement", + "src": "38631:54:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 2988, + "name": "MintToZeroAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3443, + "src": "38658:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 2989, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "38676:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "38658:26:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 2987, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "38650:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 2990, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "38650:35:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2991, + "nodeType": "ExpressionStatement", + "src": "38650:35:10" + } + }, + { + "AST": { + "nativeSrc": "38709:401:10", + "nodeType": "YulBlock", + "src": "38709:401:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nativeSrc": "38799:1:10", + "nodeType": "YulLiteral", + "src": "38799:1:10", + "type": "", + "value": "0" + }, + { + "kind": "number", + "nativeSrc": "38859:1:10", + "nodeType": "YulLiteral", + "src": "38859:1:10", + "type": "", + "value": "0" + }, + { + "name": "_TRANSFER_EVENT_SIGNATURE", + "nativeSrc": "38917:25:10", + "nodeType": "YulIdentifier", + "src": "38917:25:10" + }, + { + "kind": "number", + "nativeSrc": "38978:1:10", + "nodeType": "YulLiteral", + "src": "38978:1:10", + "type": "", + "value": "0" + }, + { + "name": "toMasked", + "nativeSrc": "39018:8:10", + "nodeType": "YulIdentifier", + "src": "39018:8:10" + }, + { + "name": "tokenId", + "nativeSrc": "39057:7:10", + "nodeType": "YulIdentifier", + "src": "39057:7:10" + } + ], + "functionName": { + "name": "log4", + "nativeSrc": "38773:4:10", + "nodeType": "YulIdentifier", + "src": "38773:4:10" + }, + "nativeSrc": "38773:323:10", + "nodeType": "YulFunctionCall", + "src": "38773:323:10" + }, + "nativeSrc": "38773:323:10", + "nodeType": "YulExpressionStatement", + "src": "38773:323:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 1418, + "isOffset": false, + "isSlot": false, + "src": "38917:25:10", + "valueSize": 1 + }, + { + "declaration": 2973, + "isOffset": false, + "isSlot": false, + "src": "39018:8:10", + "valueSize": 1 + }, + { + "declaration": 2903, + "isOffset": false, + "isSlot": false, + "src": "39057:7:10", + "valueSize": 1 + } + ], + "id": 2993, + "nodeType": "InlineAssembly", + "src": "38700:410:10" + }, + { + "expression": { + "id": 2995, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": true, + "src": "39124:13:10", + "subExpression": { + "id": 2994, + "name": "_spotMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1447, + "src": "39126:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2996, + "nodeType": "ExpressionStatement", + "src": "39124:13:10" + } + ] + }, + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 3001, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "39187:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 3000, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "39179:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2999, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "39179:7:10", + "typeDescriptions": {} + } + }, + "id": 3002, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "39179:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3003, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2901, + "src": "39191:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3004, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2903, + "src": "39195:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "31", + "id": 3005, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "39204:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 2998, + "name": "_afterTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2500, + "src": "39158:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 3006, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "39158:48:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3007, + "nodeType": "ExpressionStatement", + "src": "39158:48:10" + } + ] + }, + "documentation": { + "id": 2899, + "nodeType": "StructuredDocumentation", + "src": "36777:374:10", + "text": " @dev Mints a single token at `tokenId`.\n Note: A spot-minted `tokenId` that has been burned can be re-minted again.\n Requirements:\n - `to` cannot be the zero address.\n - `tokenId` must be greater than `_sequentialUpTo()`.\n - `tokenId` must not exist.\n Emits a {Transfer} event for each mint." + }, + "id": 3009, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_mintSpot", + "nameLocation": "37165:9:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2904, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2901, + "mutability": "mutable", + "name": "to", + "nameLocation": "37183:2:10", + "nodeType": "VariableDeclaration", + "scope": 3009, + "src": "37175:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2900, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "37175:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2903, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "37195:7:10", + "nodeType": "VariableDeclaration", + "scope": 3009, + "src": "37187:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2902, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "37187:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "37174:29:10" + }, + "returnParameters": { + "id": 2905, + "nodeType": "ParameterList", + "parameters": [], + "src": "37221:0:10" + }, + "scope": 3428, + "src": "37156:2057:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3060, + "nodeType": "Block", + "src": "39798:557:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 3020, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3012, + "src": "39818:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3021, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3014, + "src": "39822:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3019, + "name": "_mintSpot", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3009, + "src": "39808:9:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,uint256)" + } + }, + "id": 3022, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "39808:22:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3023, + "nodeType": "ExpressionStatement", + "src": "39808:22:10" + }, + { + "id": 3059, + "nodeType": "UncheckedBlock", + "src": "39841:508:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3028, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "expression": { + "id": 3024, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3012, + "src": "39869:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 3025, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "39872:4:10", + "memberName": "code", + "nodeType": "MemberAccess", + "src": "39869:7:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + }, + "id": 3026, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "39877:6:10", + "memberName": "length", + "nodeType": "MemberAccess", + "src": "39869:14:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 3027, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "39887:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "39869:19:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3058, + "nodeType": "IfStatement", + "src": "39865:474:10", + "trueBody": { + "id": 3057, + "nodeType": "Block", + "src": "39890:449:10", + "statements": [ + { + "assignments": [ + 3030 + ], + "declarations": [ + { + "constant": false, + "id": 3030, + "mutability": "mutable", + "name": "currentSpotMinted", + "nameLocation": "39916:17:10", + "nodeType": "VariableDeclaration", + "scope": 3057, + "src": "39908:25:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3029, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "39908:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 3032, + "initialValue": { + "id": 3031, + "name": "_spotMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1447, + "src": "39936:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "39908:39:10" + }, + { + "condition": { + "id": 3042, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "39969:63:10", + "subExpression": { + "arguments": [ + { + "arguments": [ + { + "hexValue": "30", + "id": 3036, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "40009:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 3035, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "40001:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 3034, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "40001:7:10", + "typeDescriptions": {} + } + }, + "id": 3037, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "40001:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3038, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3012, + "src": "40013:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3039, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3014, + "src": "40017:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 3040, + "name": "_data", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3016, + "src": "40026:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes memory" + } + ], + "id": 3033, + "name": "_checkContractOnERC721Received", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2556, + "src": "39970:30:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bool_$", + "typeString": "function (address,address,uint256,bytes memory) returns (bool)" + } + }, + "id": 3041, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "39970:62:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3049, + "nodeType": "IfStatement", + "src": "39965:166:10", + "trueBody": { + "id": 3048, + "nodeType": "Block", + "src": "40034:97:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "expression": { + "id": 3044, + "name": "TransferToNonERC721ReceiverImplementer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3458, + "src": "40064:38:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 3045, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "40103:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "40064:47:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 3043, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "40056:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 3046, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "40056:56:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3047, + "nodeType": "ExpressionStatement", + "src": "40056:56:10" + } + ] + } + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3052, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3050, + "name": "_spotMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1447, + "src": "40282:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 3051, + "name": "currentSpotMinted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3030, + "src": "40297:17:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "40282:32:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3056, + "nodeType": "IfStatement", + "src": "40278:46:10", + "trueBody": { + "expression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 3053, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + -19, + -19 + ], + "referencedDeclaration": -19, + "src": "40316:6:10", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 3054, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "40316:8:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3055, + "nodeType": "ExpressionStatement", + "src": "40316:8:10" + } + } + ] + } + } + ] + } + ] + }, + "documentation": { + "id": 3010, + "nodeType": "StructuredDocumentation", + "src": "39219:455:10", + "text": " @dev Safely mints a single token at `tokenId`.\n Note: A spot-minted `tokenId` that has been burned can be re-minted again.\n Requirements:\n - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}.\n - `tokenId` must be greater than `_sequentialUpTo()`.\n - `tokenId` must not exist.\n See {_mintSpot}.\n Emits a {Transfer} event." + }, + "id": 3061, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_safeMintSpot", + "nameLocation": "39688:13:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3017, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3012, + "mutability": "mutable", + "name": "to", + "nameLocation": "39719:2:10", + "nodeType": "VariableDeclaration", + "scope": 3061, + "src": "39711:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3011, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "39711:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3014, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "39739:7:10", + "nodeType": "VariableDeclaration", + "scope": 3061, + "src": "39731:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3013, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "39731:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3016, + "mutability": "mutable", + "name": "_data", + "nameLocation": "39769:5:10", + "nodeType": "VariableDeclaration", + "scope": 3061, + "src": "39756:18:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 3015, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "39756:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "39701:79:10" + }, + "returnParameters": { + "id": 3018, + "nodeType": "ParameterList", + "parameters": [], + "src": "39798:0:10" + }, + "scope": 3428, + "src": "39679:676:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3075, + "nodeType": "Block", + "src": "40506:47:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 3070, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3064, + "src": "40530:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3071, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3066, + "src": "40534:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "", + "id": 3072, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "40543:2:10", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + } + ], + "id": 3069, + "name": "_safeMintSpot", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 3061, + 3076 + ], + "referencedDeclaration": 3061, + "src": "40516:13:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$__$", + "typeString": "function (address,uint256,bytes memory)" + } + }, + "id": 3073, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "40516:30:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3074, + "nodeType": "ExpressionStatement", + "src": "40516:30:10" + } + ] + }, + "documentation": { + "id": 3062, + "nodeType": "StructuredDocumentation", + "src": "40361:71:10", + "text": " @dev Equivalent to `_safeMintSpot(to, tokenId, '')`." + }, + "id": 3076, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_safeMintSpot", + "nameLocation": "40446:13:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3067, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3064, + "mutability": "mutable", + "name": "to", + "nameLocation": "40468:2:10", + "nodeType": "VariableDeclaration", + "scope": 3076, + "src": "40460:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3063, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "40460:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3066, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "40480:7:10", + "nodeType": "VariableDeclaration", + "scope": 3076, + "src": "40472:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3065, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "40472:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "40459:29:10" + }, + "returnParameters": { + "id": 3068, + "nodeType": "ParameterList", + "parameters": [], + "src": "40506:0:10" + }, + "scope": 3428, + "src": "40437:116:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3090, + "nodeType": "Block", + "src": "40885:45:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 3085, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3079, + "src": "40904:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3086, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3081, + "src": "40908:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "66616c7365", + "id": 3087, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "40917:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 3084, + "name": "_approve", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 3091, + 3141 + ], + "referencedDeclaration": 3141, + "src": "40895:8:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bool_$returns$__$", + "typeString": "function (address,uint256,bool)" + } + }, + "id": 3088, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "40895:28:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3089, + "nodeType": "ExpressionStatement", + "src": "40895:28:10" + } + ] + }, + "documentation": { + "id": 3077, + "nodeType": "StructuredDocumentation", + "src": "40747:69:10", + "text": " @dev Equivalent to `_approve(to, tokenId, false)`." + }, + "id": 3091, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_approve", + "nameLocation": "40830:8:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3082, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3079, + "mutability": "mutable", + "name": "to", + "nameLocation": "40847:2:10", + "nodeType": "VariableDeclaration", + "scope": 3091, + "src": "40839:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3078, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "40839:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3081, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "40859:7:10", + "nodeType": "VariableDeclaration", + "scope": 3091, + "src": "40851:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3080, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "40851:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "40838:29:10" + }, + "returnParameters": { + "id": 3083, + "nodeType": "ParameterList", + "parameters": [], + "src": "40885:0:10" + }, + "scope": 3428, + "src": "40821:109:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3140, + "nodeType": "Block", + "src": "41447:346:10", + "statements": [ + { + "assignments": [ + 3102 + ], + "declarations": [ + { + "constant": false, + "id": 3102, + "mutability": "mutable", + "name": "owner", + "nameLocation": "41465:5:10", + "nodeType": "VariableDeclaration", + "scope": 3140, + "src": "41457:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3101, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "41457:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 3106, + "initialValue": { + "arguments": [ + { + "id": 3104, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3096, + "src": "41481:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3103, + "name": "ownerOf", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1822, + "src": "41473:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_address_$", + "typeString": "function (uint256) view returns (address)" + } + }, + "id": 3105, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "41473:16:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "41457:32:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 3112, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3107, + "name": "approvalCheck", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3098, + "src": "41504:13:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "&&", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 3111, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 3108, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "41521:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 3109, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "41521:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 3110, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3102, + "src": "41544:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "41521:28:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "41504:45:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3126, + "nodeType": "IfStatement", + "src": "41500:198:10", + "trueBody": { + "condition": { + "id": 3118, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "41567:45:10", + "subExpression": { + "arguments": [ + { + "id": 3114, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3102, + "src": "41585:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 3115, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "41592:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 3116, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "41592:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 3113, + "name": "isApprovedForAll", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2145, + "src": "41568:16:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_bool_$", + "typeString": "function (address,address) view returns (bool)" + } + }, + "id": 3117, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "41568:44:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3125, + "nodeType": "IfStatement", + "src": "41563:135:10", + "trueBody": { + "id": 3124, + "nodeType": "Block", + "src": "41614:84:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "expression": { + "id": 3120, + "name": "ApprovalCallerNotOwnerNorApproved", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3434, + "src": "41640:33:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 3121, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "41674:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "41640:42:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 3119, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "41632:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 3122, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "41632:51:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3123, + "nodeType": "ExpressionStatement", + "src": "41632:51:10" + } + ] + } + } + }, + { + "expression": { + "id": 3132, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "baseExpression": { + "id": 3127, + "name": "_tokenApprovals", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1439, + "src": "41708:15:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_TokenApprovalRef_$1352_storage_$", + "typeString": "mapping(uint256 => struct ERC721A.TokenApprovalRef storage ref)" + } + }, + "id": 3129, + "indexExpression": { + "id": 3128, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3096, + "src": "41724:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "41708:24:10", + "typeDescriptions": { + "typeIdentifier": "t_struct$_TokenApprovalRef_$1352_storage", + "typeString": "struct ERC721A.TokenApprovalRef storage ref" + } + }, + "id": 3130, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberLocation": "41733:5:10", + "memberName": "value", + "nodeType": "MemberAccess", + "referencedDeclaration": 1351, + "src": "41708:30:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 3131, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3094, + "src": "41741:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "41708:35:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 3133, + "nodeType": "ExpressionStatement", + "src": "41708:35:10" + }, + { + "eventCall": { + "arguments": [ + { + "id": 3135, + "name": "owner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3102, + "src": "41767:5:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3136, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3094, + "src": "41774:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3137, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3096, + "src": "41778:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3134, + "name": "Approval", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3526, + "src": "41758:8:10", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256)" + } + }, + "id": 3138, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "41758:28:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3139, + "nodeType": "EmitStatement", + "src": "41753:33:10" + } + ] + }, + "documentation": { + "id": 3092, + "nodeType": "StructuredDocumentation", + "src": "40936:392:10", + "text": " @dev Gives permission to `to` to transfer `tokenId` token to another account.\n The approval is cleared when the token is transferred.\n Only a single account can be approved at a time, so approving the\n zero address clears previous approvals.\n Requirements:\n - `tokenId` must exist.\n Emits an {Approval} event." + }, + "id": 3141, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_approve", + "nameLocation": "41342:8:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3099, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3094, + "mutability": "mutable", + "name": "to", + "nameLocation": "41368:2:10", + "nodeType": "VariableDeclaration", + "scope": 3141, + "src": "41360:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3093, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "41360:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3096, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "41388:7:10", + "nodeType": "VariableDeclaration", + "scope": 3141, + "src": "41380:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3095, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "41380:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3098, + "mutability": "mutable", + "name": "approvalCheck", + "nameLocation": "41410:13:10", + "nodeType": "VariableDeclaration", + "scope": 3141, + "src": "41405:18:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 3097, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "41405:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "41350:79:10" + }, + "returnParameters": { + "id": 3100, + "nodeType": "ParameterList", + "parameters": [], + "src": "41447:0:10" + }, + "scope": 3428, + "src": "41333:460:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3152, + "nodeType": "Block", + "src": "42100:38:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "id": 3148, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3144, + "src": "42116:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "66616c7365", + "id": 3149, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "42125:5:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 3147, + "name": "_burn", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 3153, + 3307 + ], + "referencedDeclaration": 3307, + "src": "42110:5:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_bool_$returns$__$", + "typeString": "function (uint256,bool)" + } + }, + "id": 3150, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42110:21:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3151, + "nodeType": "ExpressionStatement", + "src": "42110:21:10" + } + ] + }, + "documentation": { + "id": 3142, + "nodeType": "StructuredDocumentation", + "src": "41984:62:10", + "text": " @dev Equivalent to `_burn(tokenId, false)`." + }, + "id": 3153, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_burn", + "nameLocation": "42060:5:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3145, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3144, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "42074:7:10", + "nodeType": "VariableDeclaration", + "scope": 3153, + "src": "42066:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3143, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "42066:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "42065:17:10" + }, + "returnParameters": { + "id": 3146, + "nodeType": "ParameterList", + "parameters": [], + "src": "42100:0:10" + }, + "scope": 3428, + "src": "42051:87:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3306, + "nodeType": "Block", + "src": "42424:2973:10", + "statements": [ + { + "assignments": [ + 3162 + ], + "declarations": [ + { + "constant": false, + "id": 3162, + "mutability": "mutable", + "name": "prevOwnershipPacked", + "nameLocation": "42442:19:10", + "nodeType": "VariableDeclaration", + "scope": 3306, + "src": "42434:27:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3161, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "42434:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 3166, + "initialValue": { + "arguments": [ + { + "id": 3164, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3156, + "src": "42483:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3163, + "name": "_packedOwnershipOf", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1984, + "src": "42464:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) view returns (uint256)" + } + }, + "id": 3165, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42464:27:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "42434:57:10" + }, + { + "assignments": [ + 3168 + ], + "declarations": [ + { + "constant": false, + "id": 3168, + "mutability": "mutable", + "name": "from", + "nameLocation": "42510:4:10", + "nodeType": "VariableDeclaration", + "scope": 3306, + "src": "42502:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3167, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "42502:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 3176, + "initialValue": { + "arguments": [ + { + "arguments": [ + { + "id": 3173, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3162, + "src": "42533:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3172, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "42525:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint160_$", + "typeString": "type(uint160)" + }, + "typeName": { + "id": 3171, + "name": "uint160", + "nodeType": "ElementaryTypeName", + "src": "42525:7:10", + "typeDescriptions": {} + } + }, + "id": 3174, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42525:28:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint160", + "typeString": "uint160" + } + ], + "id": 3170, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "42517:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 3169, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "42517:7:10", + "typeDescriptions": {} + } + }, + "id": 3175, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42517:37:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "42502:52:10" + }, + { + "assignments": [ + 3178, + 3180 + ], + "declarations": [ + { + "constant": false, + "id": 3178, + "mutability": "mutable", + "name": "approvedAddressSlot", + "nameLocation": "42574:19:10", + "nodeType": "VariableDeclaration", + "scope": 3306, + "src": "42566:27:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3177, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "42566:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3180, + "mutability": "mutable", + "name": "approvedAddress", + "nameLocation": "42603:15:10", + "nodeType": "VariableDeclaration", + "scope": 3306, + "src": "42595:23:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3179, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "42595:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "id": 3184, + "initialValue": { + "arguments": [ + { + "id": 3182, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3156, + "src": "42649:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3181, + "name": "_getApprovedSlotAndAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2242, + "src": "42622:26:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$_t_address_$", + "typeString": "function (uint256) view returns (uint256,address)" + } + }, + "id": 3183, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42622:35:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$_t_uint256_$_t_address_$", + "typeString": "tuple(uint256,address)" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "42565:92:10" + }, + { + "condition": { + "id": 3185, + "name": "approvalCheck", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3158, + "src": "42672:13:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3207, + "nodeType": "IfStatement", + "src": "42668:321:10", + "trueBody": { + "id": 3206, + "nodeType": "Block", + "src": "42687:302:10", + "statements": [ + { + "condition": { + "id": 3192, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "42790:69:10", + "subExpression": { + "arguments": [ + { + "id": 3187, + "name": "approvedAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3180, + "src": "42816:15:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3188, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "42833:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 3189, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "42839:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 3190, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42839:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 3186, + "name": "_isSenderApprovedOrOwner", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2223, + "src": "42791:24:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_address_$_t_address_$_t_address_$returns$_t_bool_$", + "typeString": "function (address,address,address) pure returns (bool)" + } + }, + "id": 3191, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42791:68:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3205, + "nodeType": "IfStatement", + "src": "42786:192:10", + "trueBody": { + "condition": { + "id": 3198, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "42881:44:10", + "subExpression": { + "arguments": [ + { + "id": 3194, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "42899:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 3195, + "name": "_msgSenderERC721A", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3409, + "src": "42905:17:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", + "typeString": "function () view returns (address)" + } + }, + "id": 3196, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42905:19:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 3193, + "name": "isApprovedForAll", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2145, + "src": "42882:16:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_bool_$", + "typeString": "function (address,address) view returns (bool)" + } + }, + "id": 3197, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42882:43:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3204, + "nodeType": "IfStatement", + "src": "42877:101:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 3200, + "name": "TransferCallerNotOwnerNorApproved", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3452, + "src": "42935:33:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 3201, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "42969:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "42935:42:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 3199, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "42927:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 3202, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42927:51:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3203, + "nodeType": "ExpressionStatement", + "src": "42927:51:10" + } + } + } + ] + } + }, + { + "expression": { + "arguments": [ + { + "id": 3209, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "43021:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [ + { + "hexValue": "30", + "id": 3212, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "43035:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 3211, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "43027:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 3210, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "43027:7:10", + "typeDescriptions": {} + } + }, + "id": 3213, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "43027:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3214, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3156, + "src": "43039:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "31", + "id": 3215, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "43048:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 3208, + "name": "_beforeTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2487, + "src": "42999:21:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 3216, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "42999:51:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3217, + "nodeType": "ExpressionStatement", + "src": "42999:51:10" + }, + { + "AST": { + "nativeSrc": "43122:181:10", + "nodeType": "YulBlock", + "src": "43122:181:10", + "statements": [ + { + "body": { + "nativeSrc": "43155:138:10", + "nodeType": "YulBlock", + "src": "43155:138:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "name": "approvedAddressSlot", + "nativeSrc": "43256:19:10", + "nodeType": "YulIdentifier", + "src": "43256:19:10" + }, + { + "kind": "number", + "nativeSrc": "43277:1:10", + "nodeType": "YulLiteral", + "src": "43277:1:10", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "sstore", + "nativeSrc": "43249:6:10", + "nodeType": "YulIdentifier", + "src": "43249:6:10" + }, + "nativeSrc": "43249:30:10", + "nodeType": "YulFunctionCall", + "src": "43249:30:10" + }, + "nativeSrc": "43249:30:10", + "nodeType": "YulExpressionStatement", + "src": "43249:30:10" + } + ] + }, + "condition": { + "name": "approvedAddress", + "nativeSrc": "43139:15:10", + "nodeType": "YulIdentifier", + "src": "43139:15:10" + }, + "nativeSrc": "43136:157:10", + "nodeType": "YulIf", + "src": "43136:157:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 3180, + "isOffset": false, + "isSlot": false, + "src": "43139:15:10", + "valueSize": 1 + }, + { + "declaration": 3178, + "isOffset": false, + "isSlot": false, + "src": "43256:19:10", + "valueSize": 1 + } + ], + "id": 3218, + "nodeType": "InlineAssembly", + "src": "43113:190:10" + }, + { + "id": 3282, + "nodeType": "UncheckedBlock", + "src": "43570:1545:10", + "statements": [ + { + "expression": { + "id": 3228, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 3219, + "name": "_packedAddressData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1434, + "src": "43882:18:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 3221, + "indexExpression": { + "id": 3220, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "43901:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "43882:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3227, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3224, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "31", + "id": 3222, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "43911:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "id": 3223, + "name": "_BITPOS_NUMBER_BURNED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1366, + "src": "43916:21:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "43911:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 3225, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "43910:28:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "hexValue": "31", + "id": 3226, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "43941:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "43910:32:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "43882:60:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 3229, + "nodeType": "ExpressionStatement", + "src": "43882:60:10" + }, + { + "expression": { + "id": 3249, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 3230, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "44173:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 3232, + "indexExpression": { + "id": 3231, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3156, + "src": "44191:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "44173:26:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "arguments": [ + { + "id": 3234, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "44238:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3247, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3237, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "id": 3235, + "name": "_BITMASK_BURNED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1385, + "src": "44261:15:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "id": 3236, + "name": "_BITMASK_NEXT_INITIALIZED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1393, + "src": "44279:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "44261:43:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 3238, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "44260:45:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "arguments": [ + { + "id": 3240, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "44323:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [ + { + "hexValue": "30", + "id": 3243, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "44337:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 3242, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "44329:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 3241, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "44329:7:10", + "typeDescriptions": {} + } + }, + "id": 3244, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "44329:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3245, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3162, + "src": "44341:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3239, + "name": "_nextExtraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3399, + "src": "44308:14:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,address,uint256) view returns (uint256)" + } + }, + "id": 3246, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "44308:53:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "44260:101:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3233, + "name": "_packOwnershipData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2050, + "src": "44202:18:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (address,uint256) view returns (uint256)" + } + }, + "id": 3248, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "44202:173:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "44173:202:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 3250, + "nodeType": "ExpressionStatement", + "src": "44173:202:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3255, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3253, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3251, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3162, + "src": "44492:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 3252, + "name": "_BITMASK_NEXT_INITIALIZED", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1393, + "src": "44514:25:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "44492:47:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 3254, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "44543:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "44492:52:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3281, + "nodeType": "IfStatement", + "src": "44488:617:10", + "trueBody": { + "id": 3280, + "nodeType": "Block", + "src": "44546:559:10", + "statements": [ + { + "assignments": [ + 3257 + ], + "declarations": [ + { + "constant": false, + "id": 3257, + "mutability": "mutable", + "name": "nextTokenId", + "nameLocation": "44572:11:10", + "nodeType": "VariableDeclaration", + "scope": 3280, + "src": "44564:19:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3256, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "44564:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 3261, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3260, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3258, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3156, + "src": "44586:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "hexValue": "31", + "id": 3259, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "44596:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "44586:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "44564:33:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3266, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 3262, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "44717:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 3264, + "indexExpression": { + "id": 3263, + "name": "nextTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3257, + "src": "44735:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "44717:30:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 3265, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "44751:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "44717:35:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3279, + "nodeType": "IfStatement", + "src": "44713:378:10", + "trueBody": { + "id": 3278, + "nodeType": "Block", + "src": "44754:337:10", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3269, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3267, + "name": "nextTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3257, + "src": "44838:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "id": 3268, + "name": "_currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1420, + "src": "44853:13:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "44838:28:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3277, + "nodeType": "IfStatement", + "src": "44834:239:10", + "trueBody": { + "id": 3276, + "nodeType": "Block", + "src": "44868:205:10", + "statements": [ + { + "expression": { + "id": 3274, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 3270, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "44998:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 3272, + "indexExpression": { + "id": 3271, + "name": "nextTokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3257, + "src": "45016:11:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "44998:30:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 3273, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3162, + "src": "45031:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "44998:52:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 3275, + "nodeType": "ExpressionStatement", + "src": "44998:52:10" + } + ] + } + } + ] + } + } + ] + } + } + ] + }, + { + "eventCall": { + "arguments": [ + { + "id": 3284, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "45139:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [ + { + "hexValue": "30", + "id": 3287, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "45153:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 3286, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "45145:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 3285, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "45145:7:10", + "typeDescriptions": {} + } + }, + "id": 3288, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "45145:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3289, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3156, + "src": "45157:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3283, + "name": "Transfer", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3517, + "src": "45130:8:10", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256)" + } + }, + "id": 3290, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "45130:35:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3291, + "nodeType": "EmitStatement", + "src": "45125:40:10" + }, + { + "expression": { + "arguments": [ + { + "id": 3293, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3168, + "src": "45196:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [ + { + "hexValue": "30", + "id": 3296, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "45210:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 3295, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "45202:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 3294, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "45202:7:10", + "typeDescriptions": {} + } + }, + "id": 3297, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "45202:10:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3298, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3156, + "src": "45214:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "31", + "id": 3299, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "45223:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + } + ], + "id": 3292, + "name": "_afterTokenTransfers", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2500, + "src": "45175:20:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256,uint256)" + } + }, + "id": 3300, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "45175:50:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3301, + "nodeType": "ExpressionStatement", + "src": "45175:50:10" + }, + { + "id": 3305, + "nodeType": "UncheckedBlock", + "src": "45342:49:10", + "statements": [ + { + "expression": { + "id": 3303, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": false, + "src": "45366:14:10", + "subExpression": { + "id": 3302, + "name": "_burnCounter", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1422, + "src": "45366:12:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 3304, + "nodeType": "ExpressionStatement", + "src": "45366:14:10" + } + ] + } + ] + }, + "documentation": { + "id": 3154, + "nodeType": "StructuredDocumentation", + "src": "42144:206:10", + "text": " @dev Destroys `tokenId`.\n The approval is cleared when the token is burned.\n Requirements:\n - `tokenId` must exist.\n Emits a {Transfer} event." + }, + "id": 3307, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_burn", + "nameLocation": "42364:5:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3159, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3156, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "42378:7:10", + "nodeType": "VariableDeclaration", + "scope": 3307, + "src": "42370:15:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3155, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "42370:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3158, + "mutability": "mutable", + "name": "approvalCheck", + "nameLocation": "42392:13:10", + "nodeType": "VariableDeclaration", + "scope": 3307, + "src": "42387:18:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 3157, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "42387:4:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "42369:37:10" + }, + "returnParameters": { + "id": 3160, + "nodeType": "ParameterList", + "parameters": [], + "src": "42424:0:10" + }, + "scope": 3428, + "src": "42355:3042:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3352, + "nodeType": "Block", + "src": "45755:456:10", + "statements": [ + { + "assignments": [ + 3316 + ], + "declarations": [ + { + "constant": false, + "id": 3316, + "mutability": "mutable", + "name": "packed", + "nameLocation": "45773:6:10", + "nodeType": "VariableDeclaration", + "scope": 3352, + "src": "45765:14:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3315, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "45765:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 3320, + "initialValue": { + "baseExpression": { + "id": 3317, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "45782:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 3319, + "indexExpression": { + "id": 3318, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3310, + "src": "45800:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "45782:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "45765:41:10" + }, + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3323, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3321, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3316, + "src": "45820:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 3322, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "45830:1:10", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "45820:11:10", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 3329, + "nodeType": "IfStatement", + "src": "45816:70:10", + "trueBody": { + "expression": { + "arguments": [ + { + "expression": { + "id": 3325, + "name": "OwnershipNotInitializedForExtraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3470, + "src": "45841:35:10", + "typeDescriptions": { + "typeIdentifier": "t_function_error_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 3326, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "45877:8:10", + "memberName": "selector", + "nodeType": "MemberAccess", + "src": "45841:44:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + ], + "id": 3324, + "name": "_revert", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3427, + "src": "45833:7:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_pure$_t_bytes4_$returns$__$", + "typeString": "function (bytes4) pure" + } + }, + "id": 3327, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "45833:53:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 3328, + "nodeType": "ExpressionStatement", + "src": "45833:53:10" + } + }, + { + "assignments": [ + 3331 + ], + "declarations": [ + { + "constant": false, + "id": 3331, + "mutability": "mutable", + "name": "extraDataCasted", + "nameLocation": "45904:15:10", + "nodeType": "VariableDeclaration", + "scope": 3352, + "src": "45896:23:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3330, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "45896:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 3332, + "nodeType": "VariableDeclarationStatement", + "src": "45896:23:10" + }, + { + "AST": { + "nativeSrc": "46008:52:10", + "nodeType": "YulBlock", + "src": "46008:52:10", + "statements": [ + { + "nativeSrc": "46022:28:10", + "nodeType": "YulAssignment", + "src": "46022:28:10", + "value": { + "name": "extraData", + "nativeSrc": "46041:9:10", + "nodeType": "YulIdentifier", + "src": "46041:9:10" + }, + "variableNames": [ + { + "name": "extraDataCasted", + "nativeSrc": "46022:15:10", + "nodeType": "YulIdentifier", + "src": "46022:15:10" + } + ] + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 3312, + "isOffset": false, + "isSlot": false, + "src": "46041:9:10", + "valueSize": 1 + }, + { + "declaration": 3331, + "isOffset": false, + "isSlot": false, + "src": "46022:15:10", + "valueSize": 1 + } + ], + "id": 3333, + "nodeType": "InlineAssembly", + "src": "45999:61:10" + }, + { + "expression": { + "id": 3344, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 3334, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3316, + "src": "46069:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3343, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3337, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3335, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3316, + "src": "46079:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "&", + "rightExpression": { + "id": 3336, + "name": "_BITMASK_EXTRA_DATA_COMPLEMENT", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1404, + "src": "46088:30:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "46079:39:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 3338, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "46078:41:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "|", + "rightExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3341, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3339, + "name": "extraDataCasted", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3331, + "src": "46123:15:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "id": 3340, + "name": "_BITPOS_EXTRA_DATA", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1396, + "src": "46142:18:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "46123:37:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 3342, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "46122:39:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "46078:83:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "46069:92:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 3345, + "nodeType": "ExpressionStatement", + "src": "46069:92:10" + }, + { + "expression": { + "id": 3350, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 3346, + "name": "_packedOwnerships", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1430, + "src": "46171:17:10", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", + "typeString": "mapping(uint256 => uint256)" + } + }, + "id": 3348, + "indexExpression": { + "id": 3347, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3310, + "src": "46189:5:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "46171:24:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 3349, + "name": "packed", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3316, + "src": "46198:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "46171:33:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 3351, + "nodeType": "ExpressionStatement", + "src": "46171:33:10" + } + ] + }, + "documentation": { + "id": 3308, + "nodeType": "StructuredDocumentation", + "src": "45591:84:10", + "text": " @dev Directly sets the extra data for the ownership data `index`." + }, + "id": 3353, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_setExtraDataAt", + "nameLocation": "45689:15:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3313, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3310, + "mutability": "mutable", + "name": "index", + "nameLocation": "45713:5:10", + "nodeType": "VariableDeclaration", + "scope": 3353, + "src": "45705:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3309, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "45705:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3312, + "mutability": "mutable", + "name": "extraData", + "nameLocation": "45727:9:10", + "nodeType": "VariableDeclaration", + "scope": 3353, + "src": "45720:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + }, + "typeName": { + "id": 3311, + "name": "uint24", + "nodeType": "ElementaryTypeName", + "src": "45720:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "visibility": "internal" + } + ], + "src": "45704:33:10" + }, + "returnParameters": { + "id": 3314, + "nodeType": "ParameterList", + "parameters": [], + "src": "45755:0:10" + }, + "scope": 3428, + "src": "45680:531:10", + "stateMutability": "nonpayable", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3365, + "nodeType": "Block", + "src": "46912:2:10", + "statements": [] + }, + "documentation": { + "id": 3354, + "nodeType": "StructuredDocumentation", + "src": "46217:549:10", + "text": " @dev Called during each token transfer to set the 24bit `extraData` field.\n Intended to be overridden by the cosumer contract.\n `previousExtraData` - the value of `extraData` before transfer.\n Calling conditions:\n - When `from` and `to` are both non-zero, `from`'s `tokenId` will be\n transferred to `to`.\n - When `from` is zero, `tokenId` will be minted for `to`.\n - When `to` is zero, `tokenId` will be burned by `from`.\n - `from` and `to` are never both zero." + }, + "id": 3366, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_extraData", + "nameLocation": "46780:10:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3361, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3356, + "mutability": "mutable", + "name": "from", + "nameLocation": "46808:4:10", + "nodeType": "VariableDeclaration", + "scope": 3366, + "src": "46800:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3355, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "46800:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3358, + "mutability": "mutable", + "name": "to", + "nameLocation": "46830:2:10", + "nodeType": "VariableDeclaration", + "scope": 3366, + "src": "46822:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3357, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "46822:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3360, + "mutability": "mutable", + "name": "previousExtraData", + "nameLocation": "46849:17:10", + "nodeType": "VariableDeclaration", + "scope": 3366, + "src": "46842:24:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + }, + "typeName": { + "id": 3359, + "name": "uint24", + "nodeType": "ElementaryTypeName", + "src": "46842:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "visibility": "internal" + } + ], + "src": "46790:82:10" + }, + "returnParameters": { + "id": 3364, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3363, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3366, + "src": "46904:6:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + }, + "typeName": { + "id": 3362, + "name": "uint24", + "nodeType": "ElementaryTypeName", + "src": "46904:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "visibility": "internal" + } + ], + "src": "46903:8:10" + }, + "scope": 3428, + "src": "46771:143:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3398, + "nodeType": "Block", + "src": "47200:164:10", + "statements": [ + { + "assignments": [ + 3379 + ], + "declarations": [ + { + "constant": false, + "id": 3379, + "mutability": "mutable", + "name": "extraData", + "nameLocation": "47217:9:10", + "nodeType": "VariableDeclaration", + "scope": 3398, + "src": "47210:16:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + }, + "typeName": { + "id": 3378, + "name": "uint24", + "nodeType": "ElementaryTypeName", + "src": "47210:6:10", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "visibility": "internal" + } + ], + "id": 3386, + "initialValue": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3384, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 3382, + "name": "prevOwnershipPacked", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3373, + "src": "47236:19:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">>", + "rightExpression": { + "id": 3383, + "name": "_BITPOS_EXTRA_DATA", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1396, + "src": "47259:18:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "47236:41:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 3381, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "47229:6:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint24_$", + "typeString": "type(uint24)" + }, + "typeName": { + "id": 3380, + "name": "uint24", + "nodeType": "ElementaryTypeName", + "src": "47229:6:10", + "typeDescriptions": {} + } + }, + "id": 3385, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "47229:49:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "47210:68:10" + }, + { + "expression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 3396, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "arguments": [ + { + "arguments": [ + { + "id": 3390, + "name": "from", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3369, + "src": "47314:4:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3391, + "name": "to", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3371, + "src": "47320:2:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 3392, + "name": "extraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3379, + "src": "47324:9:10", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + ], + "id": 3389, + "name": "_extraData", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 3366, + "src": "47303:10:10", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$_t_uint24_$returns$_t_uint24_$", + "typeString": "function (address,address,uint24) view returns (uint24)" + } + }, + "id": 3393, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "47303:31:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + ], + "id": 3388, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "47295:7:10", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_uint256_$", + "typeString": "type(uint256)" + }, + "typeName": { + "id": 3387, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "47295:7:10", + "typeDescriptions": {} + } + }, + "id": 3394, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "nameLocations": [], + "names": [], + "nodeType": "FunctionCall", + "src": "47295:40:10", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<<", + "rightExpression": { + "id": 3395, + "name": "_BITPOS_EXTRA_DATA", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1396, + "src": "47339:18:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "47295:62:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 3377, + "id": 3397, + "nodeType": "Return", + "src": "47288:69:10" + } + ] + }, + "documentation": { + "id": 3367, + "nodeType": "StructuredDocumentation", + "src": "46920:135:10", + "text": " @dev Returns the next extra data for the packed ownership data.\n The returned result is shifted into position." + }, + "id": 3399, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_nextExtraData", + "nameLocation": "47069:14:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3374, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3369, + "mutability": "mutable", + "name": "from", + "nameLocation": "47101:4:10", + "nodeType": "VariableDeclaration", + "scope": 3399, + "src": "47093:12:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3368, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "47093:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3371, + "mutability": "mutable", + "name": "to", + "nameLocation": "47123:2:10", + "nodeType": "VariableDeclaration", + "scope": 3399, + "src": "47115:10:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3370, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "47115:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3373, + "mutability": "mutable", + "name": "prevOwnershipPacked", + "nameLocation": "47143:19:10", + "nodeType": "VariableDeclaration", + "scope": 3399, + "src": "47135:27:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3372, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "47135:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "47083:85:10" + }, + "returnParameters": { + "id": 3377, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3376, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3399, + "src": "47191:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3375, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "47191:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "47190:9:10" + }, + "scope": 3428, + "src": "47060:304:10", + "stateMutability": "view", + "virtual": false, + "visibility": "private" + }, + { + "body": { + "id": 3408, + "nodeType": "Block", + "src": "47802:34:10", + "statements": [ + { + "expression": { + "expression": { + "id": 3405, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": -15, + "src": "47819:3:10", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 3406, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberLocation": "47823:6:10", + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "47819:10:10", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 3404, + "id": 3407, + "nodeType": "Return", + "src": "47812:17:10" + } + ] + }, + "documentation": { + "id": 3400, + "nodeType": "StructuredDocumentation", + "src": "47555:173:10", + "text": " @dev Returns the message sender (defaults to `msg.sender`).\n If you are writing GSN compatible contracts, you need to override this function." + }, + "id": 3409, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_msgSenderERC721A", + "nameLocation": "47742:17:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3401, + "nodeType": "ParameterList", + "parameters": [], + "src": "47759:2:10" + }, + "returnParameters": { + "id": 3404, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3403, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3409, + "src": "47793:7:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3402, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "47793:7:10", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "47792:9:10" + }, + "scope": 3428, + "src": "47733:103:10", + "stateMutability": "view", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3418, + "nodeType": "Block", + "src": "48017:1624:10", + "statements": [ + { + "AST": { + "nativeSrc": "48036:1599:10", + "nodeType": "YulBlock", + "src": "48036:1599:10", + "statements": [ + { + "nativeSrc": "48400:31:10", + "nodeType": "YulVariableDeclaration", + "src": "48400:31:10", + "value": { + "arguments": [ + { + "arguments": [ + { + "kind": "number", + "nativeSrc": "48419:4:10", + "nodeType": "YulLiteral", + "src": "48419:4:10", + "type": "", + "value": "0x40" + } + ], + "functionName": { + "name": "mload", + "nativeSrc": "48413:5:10", + "nodeType": "YulIdentifier", + "src": "48413:5:10" + }, + "nativeSrc": "48413:11:10", + "nodeType": "YulFunctionCall", + "src": "48413:11:10" + }, + { + "kind": "number", + "nativeSrc": "48426:4:10", + "nodeType": "YulLiteral", + "src": "48426:4:10", + "type": "", + "value": "0xa0" + } + ], + "functionName": { + "name": "add", + "nativeSrc": "48409:3:10", + "nodeType": "YulIdentifier", + "src": "48409:3:10" + }, + "nativeSrc": "48409:22:10", + "nodeType": "YulFunctionCall", + "src": "48409:22:10" + }, + "variables": [ + { + "name": "m", + "nativeSrc": "48404:1:10", + "nodeType": "YulTypedName", + "src": "48404:1:10", + "type": "" + } + ] + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nativeSrc": "48510:4:10", + "nodeType": "YulLiteral", + "src": "48510:4:10", + "type": "", + "value": "0x40" + }, + { + "name": "m", + "nativeSrc": "48516:1:10", + "nodeType": "YulIdentifier", + "src": "48516:1:10" + } + ], + "functionName": { + "name": "mstore", + "nativeSrc": "48503:6:10", + "nodeType": "YulIdentifier", + "src": "48503:6:10" + }, + "nativeSrc": "48503:15:10", + "nodeType": "YulFunctionCall", + "src": "48503:15:10" + }, + "nativeSrc": "48503:15:10", + "nodeType": "YulExpressionStatement", + "src": "48503:15:10" + }, + { + "nativeSrc": "48575:19:10", + "nodeType": "YulAssignment", + "src": "48575:19:10", + "value": { + "arguments": [ + { + "name": "m", + "nativeSrc": "48586:1:10", + "nodeType": "YulIdentifier", + "src": "48586:1:10" + }, + { + "kind": "number", + "nativeSrc": "48589:4:10", + "nodeType": "YulLiteral", + "src": "48589:4:10", + "type": "", + "value": "0x20" + } + ], + "functionName": { + "name": "sub", + "nativeSrc": "48582:3:10", + "nodeType": "YulIdentifier", + "src": "48582:3:10" + }, + "nativeSrc": "48582:12:10", + "nodeType": "YulFunctionCall", + "src": "48582:12:10" + }, + "variableNames": [ + { + "name": "str", + "nativeSrc": "48575:3:10", + "nodeType": "YulIdentifier", + "src": "48575:3:10" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "str", + "nativeSrc": "48664:3:10", + "nodeType": "YulIdentifier", + "src": "48664:3:10" + }, + { + "kind": "number", + "nativeSrc": "48669:1:10", + "nodeType": "YulLiteral", + "src": "48669:1:10", + "type": "", + "value": "0" + } + ], + "functionName": { + "name": "mstore", + "nativeSrc": "48657:6:10", + "nodeType": "YulIdentifier", + "src": "48657:6:10" + }, + "nativeSrc": "48657:14:10", + "nodeType": "YulFunctionCall", + "src": "48657:14:10" + }, + "nativeSrc": "48657:14:10", + "nodeType": "YulExpressionStatement", + "src": "48657:14:10" + }, + { + "nativeSrc": "48759:14:10", + "nodeType": "YulVariableDeclaration", + "src": "48759:14:10", + "value": { + "name": "str", + "nativeSrc": "48770:3:10", + "nodeType": "YulIdentifier", + "src": "48770:3:10" + }, + "variables": [ + { + "name": "end", + "nativeSrc": "48763:3:10", + "nodeType": "YulTypedName", + "src": "48763:3:10", + "type": "" + } + ] + }, + { + "body": { + "nativeSrc": "49017:388:10", + "nodeType": "YulBlock", + "src": "49017:388:10", + "statements": [ + { + "nativeSrc": "49035:18:10", + "nodeType": "YulAssignment", + "src": "49035:18:10", + "value": { + "arguments": [ + { + "name": "str", + "nativeSrc": "49046:3:10", + "nodeType": "YulIdentifier", + "src": "49046:3:10" + }, + { + "kind": "number", + "nativeSrc": "49051:1:10", + "nodeType": "YulLiteral", + "src": "49051:1:10", + "type": "", + "value": "1" + } + ], + "functionName": { + "name": "sub", + "nativeSrc": "49042:3:10", + "nodeType": "YulIdentifier", + "src": "49042:3:10" + }, + "nativeSrc": "49042:11:10", + "nodeType": "YulFunctionCall", + "src": "49042:11:10" + }, + "variableNames": [ + { + "name": "str", + "nativeSrc": "49035:3:10", + "nodeType": "YulIdentifier", + "src": "49035:3:10" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "str", + "nativeSrc": "49196:3:10", + "nodeType": "YulIdentifier", + "src": "49196:3:10" + }, + { + "arguments": [ + { + "kind": "number", + "nativeSrc": "49205:2:10", + "nodeType": "YulLiteral", + "src": "49205:2:10", + "type": "", + "value": "48" + }, + { + "arguments": [ + { + "name": "temp", + "nativeSrc": "49213:4:10", + "nodeType": "YulIdentifier", + "src": "49213:4:10" + }, + { + "kind": "number", + "nativeSrc": "49219:2:10", + "nodeType": "YulLiteral", + "src": "49219:2:10", + "type": "", + "value": "10" + } + ], + "functionName": { + "name": "mod", + "nativeSrc": "49209:3:10", + "nodeType": "YulIdentifier", + "src": "49209:3:10" + }, + "nativeSrc": "49209:13:10", + "nodeType": "YulFunctionCall", + "src": "49209:13:10" + } + ], + "functionName": { + "name": "add", + "nativeSrc": "49201:3:10", + "nodeType": "YulIdentifier", + "src": "49201:3:10" + }, + "nativeSrc": "49201:22:10", + "nodeType": "YulFunctionCall", + "src": "49201:22:10" + } + ], + "functionName": { + "name": "mstore8", + "nativeSrc": "49188:7:10", + "nodeType": "YulIdentifier", + "src": "49188:7:10" + }, + "nativeSrc": "49188:36:10", + "nodeType": "YulFunctionCall", + "src": "49188:36:10" + }, + "nativeSrc": "49188:36:10", + "nodeType": "YulExpressionStatement", + "src": "49188:36:10" + }, + { + "nativeSrc": "49293:21:10", + "nodeType": "YulAssignment", + "src": "49293:21:10", + "value": { + "arguments": [ + { + "name": "temp", + "nativeSrc": "49305:4:10", + "nodeType": "YulIdentifier", + "src": "49305:4:10" + }, + { + "kind": "number", + "nativeSrc": "49311:2:10", + "nodeType": "YulLiteral", + "src": "49311:2:10", + "type": "", + "value": "10" + } + ], + "functionName": { + "name": "div", + "nativeSrc": "49301:3:10", + "nodeType": "YulIdentifier", + "src": "49301:3:10" + }, + "nativeSrc": "49301:13:10", + "nodeType": "YulFunctionCall", + "src": "49301:13:10" + }, + "variableNames": [ + { + "name": "temp", + "nativeSrc": "49293:4:10", + "nodeType": "YulIdentifier", + "src": "49293:4:10" + } + ] + }, + { + "body": { + "nativeSrc": "49382:9:10", + "nodeType": "YulBlock", + "src": "49382:9:10", + "statements": [ + { + "nativeSrc": "49384:5:10", + "nodeType": "YulBreak", + "src": "49384:5:10" + } + ] + }, + "condition": { + "arguments": [ + { + "name": "temp", + "nativeSrc": "49376:4:10", + "nodeType": "YulIdentifier", + "src": "49376:4:10" + } + ], + "functionName": { + "name": "iszero", + "nativeSrc": "49369:6:10", + "nodeType": "YulIdentifier", + "src": "49369:6:10" + }, + "nativeSrc": "49369:12:10", + "nodeType": "YulFunctionCall", + "src": "49369:12:10" + }, + "nativeSrc": "49366:25:10", + "nodeType": "YulIf", + "src": "49366:25:10" + } + ] + }, + "condition": { + "kind": "number", + "nativeSrc": "49012:1:10", + "nodeType": "YulLiteral", + "src": "49012:1:10", + "type": "", + "value": "1" + }, + "nativeSrc": "48986:419:10", + "nodeType": "YulForLoop", + "post": { + "nativeSrc": "49014:2:10", + "nodeType": "YulBlock", + "src": "49014:2:10", + "statements": [] + }, + "pre": { + "nativeSrc": "48990:21:10", + "nodeType": "YulBlock", + "src": "48990:21:10", + "statements": [ + { + "nativeSrc": "48992:17:10", + "nodeType": "YulVariableDeclaration", + "src": "48992:17:10", + "value": { + "name": "value", + "nativeSrc": "49004:5:10", + "nodeType": "YulIdentifier", + "src": "49004:5:10" + }, + "variables": [ + { + "name": "temp", + "nativeSrc": "48996:4:10", + "nodeType": "YulTypedName", + "src": "48996:4:10", + "type": "" + } + ] + } + ] + }, + "src": "48986:419:10" + }, + { + "nativeSrc": "49419:27:10", + "nodeType": "YulVariableDeclaration", + "src": "49419:27:10", + "value": { + "arguments": [ + { + "name": "end", + "nativeSrc": "49437:3:10", + "nodeType": "YulIdentifier", + "src": "49437:3:10" + }, + { + "name": "str", + "nativeSrc": "49442:3:10", + "nodeType": "YulIdentifier", + "src": "49442:3:10" + } + ], + "functionName": { + "name": "sub", + "nativeSrc": "49433:3:10", + "nodeType": "YulIdentifier", + "src": "49433:3:10" + }, + "nativeSrc": "49433:13:10", + "nodeType": "YulFunctionCall", + "src": "49433:13:10" + }, + "variables": [ + { + "name": "length", + "nativeSrc": "49423:6:10", + "nodeType": "YulTypedName", + "src": "49423:6:10", + "type": "" + } + ] + }, + { + "nativeSrc": "49539:21:10", + "nodeType": "YulAssignment", + "src": "49539:21:10", + "value": { + "arguments": [ + { + "name": "str", + "nativeSrc": "49550:3:10", + "nodeType": "YulIdentifier", + "src": "49550:3:10" + }, + { + "kind": "number", + "nativeSrc": "49555:4:10", + "nodeType": "YulLiteral", + "src": "49555:4:10", + "type": "", + "value": "0x20" + } + ], + "functionName": { + "name": "sub", + "nativeSrc": "49546:3:10", + "nodeType": "YulIdentifier", + "src": "49546:3:10" + }, + "nativeSrc": "49546:14:10", + "nodeType": "YulFunctionCall", + "src": "49546:14:10" + }, + "variableNames": [ + { + "name": "str", + "nativeSrc": "49539:3:10", + "nodeType": "YulIdentifier", + "src": "49539:3:10" + } + ] + }, + { + "expression": { + "arguments": [ + { + "name": "str", + "nativeSrc": "49613:3:10", + "nodeType": "YulIdentifier", + "src": "49613:3:10" + }, + { + "name": "length", + "nativeSrc": "49618:6:10", + "nodeType": "YulIdentifier", + "src": "49618:6:10" + } + ], + "functionName": { + "name": "mstore", + "nativeSrc": "49606:6:10", + "nodeType": "YulIdentifier", + "src": "49606:6:10" + }, + "nativeSrc": "49606:19:10", + "nodeType": "YulFunctionCall", + "src": "49606:19:10" + }, + "nativeSrc": "49606:19:10", + "nodeType": "YulExpressionStatement", + "src": "49606:19:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "48575:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "48664:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "48770:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "49035:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "49046:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "49196:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "49442:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "49539:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "49550:3:10", + "valueSize": 1 + }, + { + "declaration": 3415, + "isOffset": false, + "isSlot": false, + "src": "49613:3:10", + "valueSize": 1 + }, + { + "declaration": 3412, + "isOffset": false, + "isSlot": false, + "src": "49004:5:10", + "valueSize": 1 + } + ], + "id": 3417, + "nodeType": "InlineAssembly", + "src": "48027:1608:10" + } + ] + }, + "documentation": { + "id": 3410, + "nodeType": "StructuredDocumentation", + "src": "47842:86:10", + "text": " @dev Converts a uint256 to its ASCII string decimal representation." + }, + "id": 3419, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_toString", + "nameLocation": "47942:9:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3413, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3412, + "mutability": "mutable", + "name": "value", + "nameLocation": "47960:5:10", + "nodeType": "VariableDeclaration", + "scope": 3419, + "src": "47952:13:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3411, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "47952:7:10", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "47951:15:10" + }, + "returnParameters": { + "id": 3416, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3415, + "mutability": "mutable", + "name": "str", + "nameLocation": "48012:3:10", + "nodeType": "VariableDeclaration", + "scope": 3419, + "src": "47998:17:10", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 3414, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "47998:6:10", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "47997:19:10" + }, + "scope": 3428, + "src": "47933:1708:10", + "stateMutability": "pure", + "virtual": true, + "visibility": "internal" + }, + { + "body": { + "id": 3426, + "nodeType": "Block", + "src": "49756:107:10", + "statements": [ + { + "AST": { + "nativeSrc": "49775:82:10", + "nodeType": "YulBlock", + "src": "49775:82:10", + "statements": [ + { + "expression": { + "arguments": [ + { + "kind": "number", + "nativeSrc": "49796:4:10", + "nodeType": "YulLiteral", + "src": "49796:4:10", + "type": "", + "value": "0x00" + }, + { + "name": "errorSelector", + "nativeSrc": "49802:13:10", + "nodeType": "YulIdentifier", + "src": "49802:13:10" + } + ], + "functionName": { + "name": "mstore", + "nativeSrc": "49789:6:10", + "nodeType": "YulIdentifier", + "src": "49789:6:10" + }, + "nativeSrc": "49789:27:10", + "nodeType": "YulFunctionCall", + "src": "49789:27:10" + }, + "nativeSrc": "49789:27:10", + "nodeType": "YulExpressionStatement", + "src": "49789:27:10" + }, + { + "expression": { + "arguments": [ + { + "kind": "number", + "nativeSrc": "49836:4:10", + "nodeType": "YulLiteral", + "src": "49836:4:10", + "type": "", + "value": "0x00" + }, + { + "kind": "number", + "nativeSrc": "49842:4:10", + "nodeType": "YulLiteral", + "src": "49842:4:10", + "type": "", + "value": "0x04" + } + ], + "functionName": { + "name": "revert", + "nativeSrc": "49829:6:10", + "nodeType": "YulIdentifier", + "src": "49829:6:10" + }, + "nativeSrc": "49829:18:10", + "nodeType": "YulFunctionCall", + "src": "49829:18:10" + }, + "nativeSrc": "49829:18:10", + "nodeType": "YulExpressionStatement", + "src": "49829:18:10" + } + ] + }, + "evmVersion": "paris", + "externalReferences": [ + { + "declaration": 3422, + "isOffset": false, + "isSlot": false, + "src": "49802:13:10", + "valueSize": 1 + } + ], + "id": 3425, + "nodeType": "InlineAssembly", + "src": "49766:91:10" + } + ] + }, + "documentation": { + "id": 3420, + "nodeType": "StructuredDocumentation", + "src": "49647:51:10", + "text": " @dev For more efficient reverts." + }, + "id": 3427, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "_revert", + "nameLocation": "49712:7:10", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3423, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3422, + "mutability": "mutable", + "name": "errorSelector", + "nameLocation": "49727:13:10", + "nodeType": "VariableDeclaration", + "scope": 3427, + "src": "49720:20:10", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "typeName": { + "id": 3421, + "name": "bytes4", + "nodeType": "ElementaryTypeName", + "src": "49720:6:10", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "visibility": "internal" + } + ], + "src": "49719:22:10" + }, + "returnParameters": { + "id": 3424, + "nodeType": "ParameterList", + "parameters": [], + "src": "49756:0:10" + }, + "scope": 3428, + "src": "49703:160:10", + "stateMutability": "pure", + "virtual": false, + "visibility": "internal" + } + ], + "scope": 3429, + "src": "1053:48812:10", + "usedErrors": [ + 3434, + 3437, + 3440, + 3443, + 3446, + 3449, + 3452, + 3455, + 3458, + 3461, + 3464, + 3467, + 3470, + 3473, + 3476, + 3479, + 3482, + 3485 + ], + "usedEvents": [ + 3517, + 3526, + 3535, + 3648 + ] + } + ], + "src": "84:49782:10" + }, + "id": 10 + }, + "erc721a/contracts/IERC721A.sol": { + "ast": { + "absolutePath": "erc721a/contracts/IERC721A.sol", + "exportedSymbols": { + "IERC721A": [ + 3649 + ] + }, + "id": 3650, + "license": "MIT", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 3430, + "literals": [ + "solidity", + "^", + "0.8", + ".4" + ], + "nodeType": "PragmaDirective", + "src": "84:23:11" + }, + { + "abstract": false, + "baseContracts": [], + "canonicalName": "IERC721A", + "contractDependencies": [], + "contractKind": "interface", + "documentation": { + "id": 3431, + "nodeType": "StructuredDocumentation", + "src": "109:37:11", + "text": " @dev Interface of ERC721A." + }, + "fullyImplemented": false, + "id": 3649, + "linearizedBaseContracts": [ + 3649 + ], + "name": "IERC721A", + "nameLocation": "157:8:11", + "nodeType": "ContractDefinition", + "nodes": [ + { + "documentation": { + "id": 3432, + "nodeType": "StructuredDocumentation", + "src": "172:76:11", + "text": " The caller must own the token or be an approved operator." + }, + "errorSelector": "cfb3b942", + "id": 3434, + "name": "ApprovalCallerNotOwnerNorApproved", + "nameLocation": "259:33:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3433, + "nodeType": "ParameterList", + "parameters": [], + "src": "292:2:11" + }, + "src": "253:42:11" + }, + { + "documentation": { + "id": 3435, + "nodeType": "StructuredDocumentation", + "src": "301:44:11", + "text": " The token does not exist." + }, + "errorSelector": "cf4700e4", + "id": 3437, + "name": "ApprovalQueryForNonexistentToken", + "nameLocation": "356:32:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3436, + "nodeType": "ParameterList", + "parameters": [], + "src": "388:2:11" + }, + "src": "350:41:11" + }, + { + "documentation": { + "id": 3438, + "nodeType": "StructuredDocumentation", + "src": "397:65:11", + "text": " Cannot query the balance for the zero address." + }, + "errorSelector": "8f4eb604", + "id": 3440, + "name": "BalanceQueryForZeroAddress", + "nameLocation": "473:26:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3439, + "nodeType": "ParameterList", + "parameters": [], + "src": "499:2:11" + }, + "src": "467:35:11" + }, + { + "documentation": { + "id": 3441, + "nodeType": "StructuredDocumentation", + "src": "508:51:11", + "text": " Cannot mint to the zero address." + }, + "errorSelector": "2e076300", + "id": 3443, + "name": "MintToZeroAddress", + "nameLocation": "570:17:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3442, + "nodeType": "ParameterList", + "parameters": [], + "src": "587:2:11" + }, + "src": "564:26:11" + }, + { + "documentation": { + "id": 3444, + "nodeType": "StructuredDocumentation", + "src": "596:72:11", + "text": " The quantity of tokens minted must be more than zero." + }, + "errorSelector": "b562e8dd", + "id": 3446, + "name": "MintZeroQuantity", + "nameLocation": "679:16:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3445, + "nodeType": "ParameterList", + "parameters": [], + "src": "695:2:11" + }, + "src": "673:25:11" + }, + { + "documentation": { + "id": 3447, + "nodeType": "StructuredDocumentation", + "src": "704:44:11", + "text": " The token does not exist." + }, + "errorSelector": "df2d9b42", + "id": 3449, + "name": "OwnerQueryForNonexistentToken", + "nameLocation": "759:29:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3448, + "nodeType": "ParameterList", + "parameters": [], + "src": "788:2:11" + }, + "src": "753:38:11" + }, + { + "documentation": { + "id": 3450, + "nodeType": "StructuredDocumentation", + "src": "797:76:11", + "text": " The caller must own the token or be an approved operator." + }, + "errorSelector": "59c896be", + "id": 3452, + "name": "TransferCallerNotOwnerNorApproved", + "nameLocation": "884:33:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3451, + "nodeType": "ParameterList", + "parameters": [], + "src": "917:2:11" + }, + "src": "878:42:11" + }, + { + "documentation": { + "id": 3453, + "nodeType": "StructuredDocumentation", + "src": "926:53:11", + "text": " The token must be owned by `from`." + }, + "errorSelector": "a1148100", + "id": 3455, + "name": "TransferFromIncorrectOwner", + "nameLocation": "990:26:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3454, + "nodeType": "ParameterList", + "parameters": [], + "src": "1016:2:11" + }, + "src": "984:35:11" + }, + { + "documentation": { + "id": 3456, + "nodeType": "StructuredDocumentation", + "src": "1025:116:11", + "text": " Cannot safely transfer to a contract that does not implement the\n ERC721Receiver interface." + }, + "errorSelector": "d1a57ed6", + "id": 3458, + "name": "TransferToNonERC721ReceiverImplementer", + "nameLocation": "1152:38:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3457, + "nodeType": "ParameterList", + "parameters": [], + "src": "1190:2:11" + }, + "src": "1146:47:11" + }, + { + "documentation": { + "id": 3459, + "nodeType": "StructuredDocumentation", + "src": "1199:55:11", + "text": " Cannot transfer to the zero address." + }, + "errorSelector": "ea553b34", + "id": 3461, + "name": "TransferToZeroAddress", + "nameLocation": "1265:21:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3460, + "nodeType": "ParameterList", + "parameters": [], + "src": "1286:2:11" + }, + "src": "1259:30:11" + }, + { + "documentation": { + "id": 3462, + "nodeType": "StructuredDocumentation", + "src": "1295:44:11", + "text": " The token does not exist." + }, + "errorSelector": "a14c4b50", + "id": 3464, + "name": "URIQueryForNonexistentToken", + "nameLocation": "1350:27:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3463, + "nodeType": "ParameterList", + "parameters": [], + "src": "1377:2:11" + }, + "src": "1344:36:11" + }, + { + "documentation": { + "id": 3465, + "nodeType": "StructuredDocumentation", + "src": "1386:79:11", + "text": " The `quantity` minted with ERC2309 exceeds the safety limit." + }, + "errorSelector": "3db1f9af", + "id": 3467, + "name": "MintERC2309QuantityExceedsLimit", + "nameLocation": "1476:31:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3466, + "nodeType": "ParameterList", + "parameters": [], + "src": "1507:2:11" + }, + "src": "1470:40:11" + }, + { + "documentation": { + "id": 3468, + "nodeType": "StructuredDocumentation", + "src": "1516:83:11", + "text": " The `extraData` cannot be set on an unintialized ownership slot." + }, + "errorSelector": "00d58153", + "id": 3470, + "name": "OwnershipNotInitializedForExtraData", + "nameLocation": "1610:35:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3469, + "nodeType": "ParameterList", + "parameters": [], + "src": "1645:2:11" + }, + "src": "1604:44:11" + }, + { + "documentation": { + "id": 3471, + "nodeType": "StructuredDocumentation", + "src": "1654:78:11", + "text": " `_sequentialUpTo()` must be greater than `_startTokenId()`." + }, + "errorSelector": "fed8210f", + "id": 3473, + "name": "SequentialUpToTooSmall", + "nameLocation": "1743:22:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3472, + "nodeType": "ParameterList", + "parameters": [], + "src": "1765:2:11" + }, + "src": "1737:31:11" + }, + { + "documentation": { + "id": 3474, + "nodeType": "StructuredDocumentation", + "src": "1774:82:11", + "text": " The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`." + }, + "errorSelector": "81647e3a", + "id": 3476, + "name": "SequentialMintExceedsLimit", + "nameLocation": "1867:26:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3475, + "nodeType": "ParameterList", + "parameters": [], + "src": "1893:2:11" + }, + "src": "1861:35:11" + }, + { + "documentation": { + "id": 3477, + "nodeType": "StructuredDocumentation", + "src": "1902:86:11", + "text": " Spot minting requires a `tokenId` greater than `_sequentialUpTo()`." + }, + "errorSelector": "524a12cc", + "id": 3479, + "name": "SpotMintTokenIdTooSmall", + "nameLocation": "1999:23:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3478, + "nodeType": "ParameterList", + "parameters": [], + "src": "2022:2:11" + }, + "src": "1993:32:11" + }, + { + "documentation": { + "id": 3480, + "nodeType": "StructuredDocumentation", + "src": "2031:64:11", + "text": " Cannot mint over a token that already exists." + }, + "errorSelector": "c991cbb1", + "id": 3482, + "name": "TokenAlreadyExists", + "nameLocation": "2106:18:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3481, + "nodeType": "ParameterList", + "parameters": [], + "src": "2124:2:11" + }, + "src": "2100:27:11" + }, + { + "documentation": { + "id": 3483, + "nodeType": "StructuredDocumentation", + "src": "2133:65:11", + "text": " The feature is not compatible with spot mints." + }, + "errorSelector": "bdba09d7", + "id": 3485, + "name": "NotCompatibleWithSpotMints", + "nameLocation": "2209:26:11", + "nodeType": "ErrorDefinition", + "parameters": { + "id": 3484, + "nodeType": "ParameterList", + "parameters": [], + "src": "2235:2:11" + }, + "src": "2203:35:11" + }, + { + "canonicalName": "IERC721A.TokenOwnership", + "id": 3494, + "members": [ + { + "constant": false, + "id": 3487, + "mutability": "mutable", + "name": "addr", + "nameLocation": "2502:4:11", + "nodeType": "VariableDeclaration", + "scope": 3494, + "src": "2494:12:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3486, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2494:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3489, + "mutability": "mutable", + "name": "startTimestamp", + "nameLocation": "2607:14:11", + "nodeType": "VariableDeclaration", + "scope": 3494, + "src": "2600:21:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + }, + "typeName": { + "id": 3488, + "name": "uint64", + "nodeType": "ElementaryTypeName", + "src": "2600:6:11", + "typeDescriptions": { + "typeIdentifier": "t_uint64", + "typeString": "uint64" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3491, + "mutability": "mutable", + "name": "burned", + "nameLocation": "2682:6:11", + "nodeType": "VariableDeclaration", + "scope": 3494, + "src": "2677:11:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 3490, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2677:4:11", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3493, + "mutability": "mutable", + "name": "extraData", + "nameLocation": "2793:9:11", + "nodeType": "VariableDeclaration", + "scope": 3494, + "src": "2786:16:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + }, + "typeName": { + "id": 3492, + "name": "uint24", + "nodeType": "ElementaryTypeName", + "src": "2786:6:11", + "typeDescriptions": { + "typeIdentifier": "t_uint24", + "typeString": "uint24" + } + }, + "visibility": "internal" + } + ], + "name": "TokenOwnership", + "nameLocation": "2432:14:11", + "nodeType": "StructDefinition", + "scope": 3649, + "src": "2425:384:11", + "visibility": "public" + }, + { + "documentation": { + "id": 3495, + "nodeType": "StructuredDocumentation", + "src": "3000:192:11", + "text": " @dev Returns the total number of tokens in existence.\n Burned tokens will reduce the count.\n To get the total number of tokens minted, please see {_totalMinted}." + }, + "functionSelector": "18160ddd", + "id": 3500, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "totalSupply", + "nameLocation": "3206:11:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3496, + "nodeType": "ParameterList", + "parameters": [], + "src": "3217:2:11" + }, + "returnParameters": { + "id": 3499, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3498, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3500, + "src": "3243:7:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3497, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3243:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "3242:9:11" + }, + "scope": 3649, + "src": "3197:55:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3501, + "nodeType": "StructuredDocumentation", + "src": "3439:341:11", + "text": " @dev Returns true if this contract implements the interface defined by\n `interfaceId`. See the corresponding\n [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)\n to learn more about how these ids are created.\n This function call must use less than 30000 gas." + }, + "functionSelector": "01ffc9a7", + "id": 3508, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "supportsInterface", + "nameLocation": "3794:17:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3504, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3503, + "mutability": "mutable", + "name": "interfaceId", + "nameLocation": "3819:11:11", + "nodeType": "VariableDeclaration", + "scope": 3508, + "src": "3812:18:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + }, + "typeName": { + "id": 3502, + "name": "bytes4", + "nodeType": "ElementaryTypeName", + "src": "3812:6:11", + "typeDescriptions": { + "typeIdentifier": "t_bytes4", + "typeString": "bytes4" + } + }, + "visibility": "internal" + } + ], + "src": "3811:20:11" + }, + "returnParameters": { + "id": 3507, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3506, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3508, + "src": "3855:4:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 3505, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3855:4:11", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "3854:6:11" + }, + "scope": 3649, + "src": "3785:76:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "anonymous": false, + "documentation": { + "id": 3509, + "nodeType": "StructuredDocumentation", + "src": "4048:88:11", + "text": " @dev Emitted when `tokenId` token is transferred from `from` to `to`." + }, + "eventSelector": "ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "id": 3517, + "name": "Transfer", + "nameLocation": "4147:8:11", + "nodeType": "EventDefinition", + "parameters": { + "id": 3516, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3511, + "indexed": true, + "mutability": "mutable", + "name": "from", + "nameLocation": "4172:4:11", + "nodeType": "VariableDeclaration", + "scope": 3517, + "src": "4156:20:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3510, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4156:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3513, + "indexed": true, + "mutability": "mutable", + "name": "to", + "nameLocation": "4194:2:11", + "nodeType": "VariableDeclaration", + "scope": 3517, + "src": "4178:18:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3512, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4178:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3515, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "4214:7:11", + "nodeType": "VariableDeclaration", + "scope": 3517, + "src": "4198:23:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3514, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4198:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "4155:67:11" + }, + "src": "4141:82:11" + }, + { + "anonymous": false, + "documentation": { + "id": 3518, + "nodeType": "StructuredDocumentation", + "src": "4229:94:11", + "text": " @dev Emitted when `owner` enables `approved` to manage the `tokenId` token." + }, + "eventSelector": "8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "id": 3526, + "name": "Approval", + "nameLocation": "4334:8:11", + "nodeType": "EventDefinition", + "parameters": { + "id": 3525, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3520, + "indexed": true, + "mutability": "mutable", + "name": "owner", + "nameLocation": "4359:5:11", + "nodeType": "VariableDeclaration", + "scope": 3526, + "src": "4343:21:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3519, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4343:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3522, + "indexed": true, + "mutability": "mutable", + "name": "approved", + "nameLocation": "4382:8:11", + "nodeType": "VariableDeclaration", + "scope": 3526, + "src": "4366:24:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3521, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4366:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3524, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "4408:7:11", + "nodeType": "VariableDeclaration", + "scope": 3526, + "src": "4392:23:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3523, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4392:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "4342:74:11" + }, + "src": "4328:89:11" + }, + { + "anonymous": false, + "documentation": { + "id": 3527, + "nodeType": "StructuredDocumentation", + "src": "4423:124:11", + "text": " @dev Emitted when `owner` enables or disables\n (`approved`) `operator` to manage all of its assets." + }, + "eventSelector": "17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31", + "id": 3535, + "name": "ApprovalForAll", + "nameLocation": "4558:14:11", + "nodeType": "EventDefinition", + "parameters": { + "id": 3534, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3529, + "indexed": true, + "mutability": "mutable", + "name": "owner", + "nameLocation": "4589:5:11", + "nodeType": "VariableDeclaration", + "scope": 3535, + "src": "4573:21:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3528, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4573:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3531, + "indexed": true, + "mutability": "mutable", + "name": "operator", + "nameLocation": "4612:8:11", + "nodeType": "VariableDeclaration", + "scope": 3535, + "src": "4596:24:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3530, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4596:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3533, + "indexed": false, + "mutability": "mutable", + "name": "approved", + "nameLocation": "4627:8:11", + "nodeType": "VariableDeclaration", + "scope": 3535, + "src": "4622:13:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 3532, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4622:4:11", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "4572:64:11" + }, + "src": "4552:85:11" + }, + { + "documentation": { + "id": 3536, + "nodeType": "StructuredDocumentation", + "src": "4643:74:11", + "text": " @dev Returns the number of tokens in `owner`'s account." + }, + "functionSelector": "70a08231", + "id": 3543, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "balanceOf", + "nameLocation": "4731:9:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3539, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3538, + "mutability": "mutable", + "name": "owner", + "nameLocation": "4749:5:11", + "nodeType": "VariableDeclaration", + "scope": 3543, + "src": "4741:13:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3537, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4741:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "4740:15:11" + }, + "returnParameters": { + "id": 3542, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3541, + "mutability": "mutable", + "name": "balance", + "nameLocation": "4787:7:11", + "nodeType": "VariableDeclaration", + "scope": 3543, + "src": "4779:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3540, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4779:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "4778:17:11" + }, + "scope": 3649, + "src": "4722:74:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3544, + "nodeType": "StructuredDocumentation", + "src": "4802:131:11", + "text": " @dev Returns the owner of the `tokenId` token.\n Requirements:\n - `tokenId` must exist." + }, + "functionSelector": "6352211e", + "id": 3551, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "ownerOf", + "nameLocation": "4947:7:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3547, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3546, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "4963:7:11", + "nodeType": "VariableDeclaration", + "scope": 3551, + "src": "4955:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3545, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4955:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "4954:17:11" + }, + "returnParameters": { + "id": 3550, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3549, + "mutability": "mutable", + "name": "owner", + "nameLocation": "5003:5:11", + "nodeType": "VariableDeclaration", + "scope": 3551, + "src": "4995:13:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3548, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4995:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "4994:15:11" + }, + "scope": 3649, + "src": "4938:72:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3552, + "nodeType": "StructuredDocumentation", + "src": "5016:711:11", + "text": " @dev Safely transfers `tokenId` token from `from` to `to`,\n checking first that contract recipients are aware of the ERC721 protocol\n to prevent tokens from being forever locked.\n Requirements:\n - `from` cannot be the zero address.\n - `to` cannot be the zero address.\n - `tokenId` token must exist and be owned by `from`.\n - If the caller is not `from`, it must be have been allowed to move\n this token by either {approve} or {setApprovalForAll}.\n - If `to` refers to a smart contract, it must implement\n {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n Emits a {Transfer} event." + }, + "functionSelector": "b88d4fde", + "id": 3563, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "safeTransferFrom", + "nameLocation": "5741:16:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3561, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3554, + "mutability": "mutable", + "name": "from", + "nameLocation": "5775:4:11", + "nodeType": "VariableDeclaration", + "scope": 3563, + "src": "5767:12:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3553, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5767:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3556, + "mutability": "mutable", + "name": "to", + "nameLocation": "5797:2:11", + "nodeType": "VariableDeclaration", + "scope": 3563, + "src": "5789:10:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3555, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5789:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3558, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "5817:7:11", + "nodeType": "VariableDeclaration", + "scope": 3563, + "src": "5809:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3557, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5809:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3560, + "mutability": "mutable", + "name": "data", + "nameLocation": "5849:4:11", + "nodeType": "VariableDeclaration", + "scope": 3563, + "src": "5834:19:11", + "stateVariable": false, + "storageLocation": "calldata", + "typeDescriptions": { + "typeIdentifier": "t_bytes_calldata_ptr", + "typeString": "bytes" + }, + "typeName": { + "id": 3559, + "name": "bytes", + "nodeType": "ElementaryTypeName", + "src": "5834:5:11", + "typeDescriptions": { + "typeIdentifier": "t_bytes_storage_ptr", + "typeString": "bytes" + } + }, + "visibility": "internal" + } + ], + "src": "5757:102:11" + }, + "returnParameters": { + "id": 3562, + "nodeType": "ParameterList", + "parameters": [], + "src": "5876:0:11" + }, + "scope": 3649, + "src": "5732:145:11", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3564, + "nodeType": "StructuredDocumentation", + "src": "5883:80:11", + "text": " @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`." + }, + "functionSelector": "42842e0e", + "id": 3573, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "safeTransferFrom", + "nameLocation": "5977:16:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3571, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3566, + "mutability": "mutable", + "name": "from", + "nameLocation": "6011:4:11", + "nodeType": "VariableDeclaration", + "scope": 3573, + "src": "6003:12:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3565, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6003:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3568, + "mutability": "mutable", + "name": "to", + "nameLocation": "6033:2:11", + "nodeType": "VariableDeclaration", + "scope": 3573, + "src": "6025:10:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3567, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6025:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3570, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "6053:7:11", + "nodeType": "VariableDeclaration", + "scope": 3573, + "src": "6045:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3569, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6045:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "5993:73:11" + }, + "returnParameters": { + "id": 3572, + "nodeType": "ParameterList", + "parameters": [], + "src": "6083:0:11" + }, + "scope": 3649, + "src": "5968:116:11", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3574, + "nodeType": "StructuredDocumentation", + "src": "6090:512:11", + "text": " @dev Transfers `tokenId` from `from` to `to`.\n WARNING: Usage of this method is discouraged, use {safeTransferFrom}\n whenever possible.\n Requirements:\n - `from` cannot be the zero address.\n - `to` cannot be the zero address.\n - `tokenId` token must be owned by `from`.\n - If the caller is not `from`, it must be approved to move this token\n by either {approve} or {setApprovalForAll}.\n Emits a {Transfer} event." + }, + "functionSelector": "23b872dd", + "id": 3583, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "transferFrom", + "nameLocation": "6616:12:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3581, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3576, + "mutability": "mutable", + "name": "from", + "nameLocation": "6646:4:11", + "nodeType": "VariableDeclaration", + "scope": 3583, + "src": "6638:12:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3575, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6638:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3578, + "mutability": "mutable", + "name": "to", + "nameLocation": "6668:2:11", + "nodeType": "VariableDeclaration", + "scope": 3583, + "src": "6660:10:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3577, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6660:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3580, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "6688:7:11", + "nodeType": "VariableDeclaration", + "scope": 3583, + "src": "6680:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3579, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6680:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "6628:73:11" + }, + "returnParameters": { + "id": 3582, + "nodeType": "ParameterList", + "parameters": [], + "src": "6718:0:11" + }, + "scope": 3649, + "src": "6607:112:11", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3584, + "nodeType": "StructuredDocumentation", + "src": "6725:459:11", + "text": " @dev Gives permission to `to` to transfer `tokenId` token to another account.\n The approval is cleared when the token is transferred.\n Only a single account can be approved at a time, so approving the\n zero address clears previous approvals.\n Requirements:\n - The caller must own the token or be an approved operator.\n - `tokenId` must exist.\n Emits an {Approval} event." + }, + "functionSelector": "095ea7b3", + "id": 3591, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "approve", + "nameLocation": "7198:7:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3589, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3586, + "mutability": "mutable", + "name": "to", + "nameLocation": "7214:2:11", + "nodeType": "VariableDeclaration", + "scope": 3591, + "src": "7206:10:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3585, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7206:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3588, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "7226:7:11", + "nodeType": "VariableDeclaration", + "scope": 3591, + "src": "7218:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3587, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "7218:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "7205:29:11" + }, + "returnParameters": { + "id": 3590, + "nodeType": "ParameterList", + "parameters": [], + "src": "7251:0:11" + }, + "scope": 3649, + "src": "7189:63:11", + "stateMutability": "payable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3592, + "nodeType": "StructuredDocumentation", + "src": "7258:316:11", + "text": " @dev Approve or remove `operator` as an operator for the caller.\n Operators can call {transferFrom} or {safeTransferFrom}\n for any token owned by the caller.\n Requirements:\n - The `operator` cannot be the caller.\n Emits an {ApprovalForAll} event." + }, + "functionSelector": "a22cb465", + "id": 3599, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "setApprovalForAll", + "nameLocation": "7588:17:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3597, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3594, + "mutability": "mutable", + "name": "operator", + "nameLocation": "7614:8:11", + "nodeType": "VariableDeclaration", + "scope": 3599, + "src": "7606:16:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3593, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7606:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3596, + "mutability": "mutable", + "name": "_approved", + "nameLocation": "7629:9:11", + "nodeType": "VariableDeclaration", + "scope": 3599, + "src": "7624:14:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 3595, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "7624:4:11", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "7605:34:11" + }, + "returnParameters": { + "id": 3598, + "nodeType": "ParameterList", + "parameters": [], + "src": "7648:0:11" + }, + "scope": 3649, + "src": "7579:70:11", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3600, + "nodeType": "StructuredDocumentation", + "src": "7655:139:11", + "text": " @dev Returns the account approved for `tokenId` token.\n Requirements:\n - `tokenId` must exist." + }, + "functionSelector": "081812fc", + "id": 3607, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "getApproved", + "nameLocation": "7808:11:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3603, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3602, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "7828:7:11", + "nodeType": "VariableDeclaration", + "scope": 3607, + "src": "7820:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3601, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "7820:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "7819:17:11" + }, + "returnParameters": { + "id": 3606, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3605, + "mutability": "mutable", + "name": "operator", + "nameLocation": "7868:8:11", + "nodeType": "VariableDeclaration", + "scope": 3607, + "src": "7860:16:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3604, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7860:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "7859:18:11" + }, + "scope": 3649, + "src": "7799:79:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3608, + "nodeType": "StructuredDocumentation", + "src": "7884:139:11", + "text": " @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n See {setApprovalForAll}." + }, + "functionSelector": "e985e9c5", + "id": 3617, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "isApprovedForAll", + "nameLocation": "8037:16:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3613, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3610, + "mutability": "mutable", + "name": "owner", + "nameLocation": "8062:5:11", + "nodeType": "VariableDeclaration", + "scope": 3617, + "src": "8054:13:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3609, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8054:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3612, + "mutability": "mutable", + "name": "operator", + "nameLocation": "8077:8:11", + "nodeType": "VariableDeclaration", + "scope": 3617, + "src": "8069:16:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3611, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8069:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "8053:33:11" + }, + "returnParameters": { + "id": 3616, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3615, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3617, + "src": "8110:4:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 3614, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "8110:4:11", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "visibility": "internal" + } + ], + "src": "8109:6:11" + }, + "scope": 3649, + "src": "8028:88:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3618, + "nodeType": "StructuredDocumentation", + "src": "8307:58:11", + "text": " @dev Returns the token collection name." + }, + "functionSelector": "06fdde03", + "id": 3623, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "name", + "nameLocation": "8379:4:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3619, + "nodeType": "ParameterList", + "parameters": [], + "src": "8383:2:11" + }, + "returnParameters": { + "id": 3622, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3621, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3623, + "src": "8409:13:11", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 3620, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "8409:6:11", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "8408:15:11" + }, + "scope": 3649, + "src": "8370:54:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3624, + "nodeType": "StructuredDocumentation", + "src": "8430:60:11", + "text": " @dev Returns the token collection symbol." + }, + "functionSelector": "95d89b41", + "id": 3629, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "symbol", + "nameLocation": "8504:6:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3625, + "nodeType": "ParameterList", + "parameters": [], + "src": "8510:2:11" + }, + "returnParameters": { + "id": 3628, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3627, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3629, + "src": "8536:13:11", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 3626, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "8536:6:11", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "8535:15:11" + }, + "scope": 3649, + "src": "8495:56:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "documentation": { + "id": 3630, + "nodeType": "StructuredDocumentation", + "src": "8557:90:11", + "text": " @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token." + }, + "functionSelector": "c87b56dd", + "id": 3637, + "implemented": false, + "kind": "function", + "modifiers": [], + "name": "tokenURI", + "nameLocation": "8661:8:11", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 3633, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3632, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "8678:7:11", + "nodeType": "VariableDeclaration", + "scope": 3637, + "src": "8670:15:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3631, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "8670:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "8669:17:11" + }, + "returnParameters": { + "id": 3636, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3635, + "mutability": "mutable", + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "VariableDeclaration", + "scope": 3637, + "src": "8710:13:11", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 3634, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "8710:6:11", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "visibility": "internal" + } + ], + "src": "8709:15:11" + }, + "scope": 3649, + "src": "8652:73:11", + "stateMutability": "view", + "virtual": false, + "visibility": "external" + }, + { + "anonymous": false, + "documentation": { + "id": 3638, + "nodeType": "StructuredDocumentation", + "src": "8912:267:11", + "text": " @dev Emitted when tokens in `fromTokenId` to `toTokenId`\n (inclusive) is transferred from `from` to `to`, as defined in the\n [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.\n See {_mintERC2309} for more details." + }, + "eventSelector": "deaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d", + "id": 3648, + "name": "ConsecutiveTransfer", + "nameLocation": "9190:19:11", + "nodeType": "EventDefinition", + "parameters": { + "id": 3647, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 3640, + "indexed": true, + "mutability": "mutable", + "name": "fromTokenId", + "nameLocation": "9226:11:11", + "nodeType": "VariableDeclaration", + "scope": 3648, + "src": "9210:27:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3639, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "9210:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3642, + "indexed": false, + "mutability": "mutable", + "name": "toTokenId", + "nameLocation": "9247:9:11", + "nodeType": "VariableDeclaration", + "scope": 3648, + "src": "9239:17:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 3641, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "9239:7:11", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3644, + "indexed": true, + "mutability": "mutable", + "name": "from", + "nameLocation": "9274:4:11", + "nodeType": "VariableDeclaration", + "scope": 3648, + "src": "9258:20:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3643, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "9258:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 3646, + "indexed": true, + "mutability": "mutable", + "name": "to", + "nameLocation": "9296:2:11", + "nodeType": "VariableDeclaration", + "scope": 3648, + "src": "9280:18:11", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 3645, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "9280:7:11", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "9209:90:11" + }, + "src": "9184:116:11" + } + ], + "scope": 3650, + "src": "147:9155:11", + "usedErrors": [ + 3434, + 3437, + 3440, + 3443, + 3446, + 3449, + 3452, + 3455, + 3458, + 3461, + 3464, + 3467, + 3470, + 3473, + 3476, + 3479, + 3482, + 3485 + ], + "usedEvents": [ + 3517, + 3526, + 3535, + 3648 + ] + } + ], + "src": "84:9219:11" + }, + "id": 11 + } + }, + "contracts": { + "@openzeppelin/contracts/access/Ownable.sol": { + "Ownable": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "OwnableInvalidOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "OwnableUnauthorizedAccount", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "owner()": "8da5cb5b", + "renounceOwnership()": "715018a6", + "transferOwnership(address)": "f2fde38b" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. The initial owner is set to the address provided by the deployer. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.\",\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"Initializes the contract setting the address provided by the deployer as the initial owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/access/Ownable.sol\":\"Ownable\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6\",\"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]}},\"version\":1}" + } + }, + "@openzeppelin/contracts/utils/Context.sol": { + "Context": { + "abi": [], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/Context.sol\":\"Context\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol": { + "EntropyEvents": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "errorCode", + "type": "bytes" + } + ], + "name": "CallbackFailed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.ProviderInfo", + "name": "provider", + "type": "tuple" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "RequestedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "RevealedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + } + ], + "name": "Withdrawal", + "type": "event" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"errorCode\",\"type\":\"bytes\"}],\"name\":\"CallbackFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.ProviderInfo\",\"name\":\"provider\",\"type\":\"tuple\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"RequestedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"RevealedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"}],\"name\":\"Withdrawal\",\"type\":\"event\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":\"EntropyEvents\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol": { + "EntropyEventsV2": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "callbackFailed", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "callbackReturnValue", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "callbackGasUsed", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Withdrawal", + "type": "event" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"callbackFailed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"callbackReturnValue\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"callbackGasUsed\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Withdrawal\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"This interface is used to emit events that track the lifecycle of random number requests, provider registrations, and system configurations.\",\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newDefaultGasLimit\":\"The new default gas limit\",\"oldDefaultGasLimit\":\"The previous default gas limit\",\"provider\":\"The address of the provider updating their gas limit\"}},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFeeManager\":\"The new fee manager address\",\"oldFeeManager\":\"The previous fee manager address\",\"provider\":\"The address of the provider updating their fee manager\"}},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFee\":\"The new fee amount\",\"oldFee\":\"The previous fee amount\",\"provider\":\"The address of the provider updating their fee\"}},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newMaxNumHashes\":\"The new maximum number of hashes\",\"oldMaxNumHashes\":\"The previous maximum number of hashes\",\"provider\":\"The address of the provider updating their max hashes\"}},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newUri\":\"The new URI\",\"oldUri\":\"The previous URI\",\"provider\":\"The address of the provider updating their URI\"}},\"Registered(address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the registered provider\"}},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"params\":{\"caller\":\"The address of the user requesting the random number\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"gasLimit\":\"The gas limit for the callback.\",\"provider\":\"The address of the provider handling the request\",\"sequenceNumber\":\"A unique identifier for this request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"params\":{\"callbackFailed\":\"Whether the callback to the caller failed\",\"callbackGasUsed\":\"How much gas the callback used.\",\"callbackReturnValue\":\"Return value from the callback. If the callback failed, this field contains the error code and any additional returned data. Note that \\\"\\\" often indicates an out-of-gas error. If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\",\"caller\":\"The address of the user who requested the random number (and who receives a callback)\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider that generated the random number\",\"providerContribution\":\"The provider's contribution to the random number\",\"randomNumber\":\"The generated random number\",\"sequenceNumber\":\"The unique identifier of the request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Withdrawal(address,address,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider withdrawing fees\",\"recipient\":\"The address receiving the withdrawn fees\",\"withdrawnAmount\":\"The amount of fees withdrawn\"}}},\"kind\":\"dev\",\"methods\":{},\"title\":\"EntropyEventsV2\",\"version\":1},\"userdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their default gas limit\"},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"notice\":\"Emitted when a provider updates their fee manager address\"},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"notice\":\"Emitted when a provider updates their fee\"},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their maximum number of hashes that can be advanced\"},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"notice\":\"Emitted when a provider updates their URI\"},\"Registered(address,bytes)\":{\"notice\":\"Emitted when a new provider registers with the Entropy system\"},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"notice\":\"Emitted when a user requests a random number from a provider\"},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"notice\":\"Emitted when a provider reveals the generated random number\"},\"Withdrawal(address,address,uint128,bytes)\":{\"notice\":\"Emitted when a provider withdraws their accumulated fees\"}},\"kind\":\"user\",\"methods\":{},\"notice\":\"Interface defining events for the Entropy V2 system, which handles random number generation and provider management on Ethereum.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":\"EntropyEventsV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol": { + "EntropyStructs": { + "abi": [], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "60808060405234601357603a908160198239f35b600080fdfe600080fdfea2646970667358221220601a77c211c71b4896e8485e621a1a208c32c4e6c6c4abcf73dca6531fa15bd064736f6c63430008180033", + "opcodes": "PUSH1 0x80 DUP1 PUSH1 0x40 MSTORE CALLVALUE PUSH1 0x13 JUMPI PUSH1 0x3A SWAP1 DUP2 PUSH1 0x19 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT INVALID PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH1 0x1A PUSH24 0xC211C71B4896E8485E621A1A208C32C4E6C6C4ABCF73DCA6 MSTORE8 0x1F LOG1 JUMPDEST 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "368:3381:4:-:0;;;;;;;;;;;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "600080fdfea2646970667358221220601a77c211c71b4896e8485e621a1a208c32c4e6c6c4abcf73dca6531fa15bd064736f6c63430008180033", + "opcodes": "PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH1 0x1A PUSH24 0xC211C71B4896E8485E621A1A208C32C4E6C6C4ABCF73DCA6 MSTORE8 0x1F LOG1 JUMPDEST 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "368:3381:4:-:0;;" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":\"EntropyStructs\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol": { + "EntropyStructsV2": { + "abi": [], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "60808060405234601357603a908160198239f35b600080fdfe600080fdfea264697066735822122079d95283c2c574f47633e2e052f262dc01d488dadfcd075d698ae2d717d14c9064736f6c63430008180033", + "opcodes": "PUSH1 0x80 DUP1 PUSH1 0x40 MSTORE CALLVALUE PUSH1 0x13 JUMPI PUSH1 0x3A SWAP1 DUP2 PUSH1 0x19 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x0 DUP1 REVERT INVALID PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH26 0xD95283C2C574F47633E2E052F262DC01D488DADFCD075D698AE2 0xD7 OR 0xD1 0x4C SWAP1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "63:3809:5:-:0;;;;;;;;;;;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "600080fdfea264697066735822122079d95283c2c574f47633e2e052f262dc01d488dadfcd075d698ae2d717d14c9064736f6c63430008180033", + "opcodes": "PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH26 0xD95283C2C574F47633E2E052F262DC01D488DADFCD075D698AE2 0xD7 OR 0xD1 0x4C SWAP1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "63:3809:5:-:0;;" + }, + "methodIdentifiers": {} + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":\"EntropyStructsV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/IEntropy.sol": { + "IEntropy": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "errorCode", + "type": "bytes" + } + ], + "name": "CallbackFailed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.ProviderInfo", + "name": "provider", + "type": "tuple" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "requestor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + } + ], + "name": "RequestedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "callbackFailed", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "callbackReturnValue", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "callbackGasUsed", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct EntropyStructs.Request", + "name": "request", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "RevealedWithCallback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + } + ], + "name": "Withdrawal", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Withdrawal", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "advancedSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + } + ], + "name": "advanceProviderCommitment", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "userRandomness", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "providerRandomness", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + } + ], + "name": "combineRandomValues", + "outputs": [ + { + "internalType": "bytes32", + "name": "combinedRandomness", + "type": "bytes32" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "userRandomness", + "type": "bytes32" + } + ], + "name": "constructUserCommitment", + "outputs": [ + { + "internalType": "bytes32", + "name": "userCommitment", + "type": "bytes32" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "getAccruedPythFees", + "outputs": [ + { + "internalType": "uint128", + "name": "accruedPythFeesInWei", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getDefaultProvider", + "outputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "name": "getFee", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "name": "getProviderInfo", + "outputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + } + ], + "internalType": "struct EntropyStructs.ProviderInfo", + "name": "info", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "name": "getProviderInfoV2", + "outputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "defaultGasLimit", + "type": "uint32" + } + ], + "internalType": "struct EntropyStructsV2.ProviderInfo", + "name": "info", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "getRequest", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isRequestWithCallback", + "type": "bool" + } + ], + "internalType": "struct EntropyStructs.Request", + "name": "req", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "getRequestV2", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "callbackStatus", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "gasLimit10k", + "type": "uint16" + } + ], + "internalType": "struct EntropyStructsV2.Request", + "name": "req", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "chainLength", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + } + ], + "name": "register", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "userCommitment", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "useBlockHash", + "type": "bool" + } + ], + "name": "request", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + } + ], + "name": "requestWithCallback", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "userRevelation", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + } + ], + "name": "reveal", + "outputs": [ + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "providerRevelation", + "type": "bytes32" + } + ], + "name": "revealWithCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "setDefaultGasLimit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "manager", + "type": "address" + } + ], + "name": "setFeeManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + } + ], + "name": "setMaxNumHashes", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint128", + "name": "newFeeInWei", + "type": "uint128" + } + ], + "name": "setProviderFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint128", + "name": "newFeeInWei", + "type": "uint128" + } + ], + "name": "setProviderFeeAsFeeManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + } + ], + "name": "setProviderUri", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint128", + "name": "amount", + "type": "uint128" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint128", + "name": "amount", + "type": "uint128" + } + ], + "name": "withdrawAsFeeManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "advanceProviderCommitment(address,uint64,bytes32)": "96f0d6e4", + "combineRandomValues(bytes32,bytes32,bytes32)": "14e82e8c", + "constructUserCommitment(bytes32)": "c715aa2e", + "getAccruedPythFees()": "c970835c", + "getDefaultProvider()": "82ee990c", + "getFee(address)": "b88c9148", + "getFeeV2()": "8204b67a", + "getFeeV2(address,uint32)": "7ab2ac36", + "getFeeV2(uint32)": "ca1642e1", + "getProviderInfo(address)": "7583902f", + "getProviderInfoV2(address)": "2f9b787b", + "getRequest(address,uint64)": "6151ab1f", + "getRequestV2(address,uint64)": "754a3600", + "register(uint128,bytes32,bytes,uint64,bytes)": "38b049c6", + "request(address,bytes32,bool)": "93cbf217", + "requestV2()": "7b43155d", + "requestV2(address,bytes32,uint32)": "f77b45e1", + "requestV2(address,uint32)": "0e33da29", + "requestV2(uint32)": "0bed189f", + "requestWithCallback(address,bytes32)": "19cb825f", + "reveal(address,uint64,bytes32,bytes32)": "9371df51", + "revealWithCallback(address,uint64,bytes32,bytes32)": "3d30bc0e", + "setDefaultGasLimit(uint32)": "524b6f70", + "setFeeManager(address)": "472d35b9", + "setMaxNumHashes(uint32)": "84a96f7e", + "setProviderFee(uint128)": "ace63a7e", + "setProviderFeeAsFeeManager(address,uint128)": "c03c035d", + "setProviderUri(bytes)": "b469f1c9", + "withdraw(uint128)": "02387a7b", + "withdrawAsFeeManager(address,uint128)": "308fe218" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"errorCode\",\"type\":\"bytes\"}],\"name\":\"CallbackFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.ProviderInfo\",\"name\":\"provider\",\"type\":\"tuple\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requestor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"RequestedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"callbackFailed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"callbackReturnValue\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"callbackGasUsed\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"RevealedWithCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"advancedSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"}],\"name\":\"advanceProviderCommitment\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"userRandomness\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"providerRandomness\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"name\":\"combineRandomValues\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"combinedRandomness\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"userRandomness\",\"type\":\"bytes32\"}],\"name\":\"constructUserCommitment\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"userCommitment\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccruedPythFees\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accruedPythFeesInWei\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDefaultProvider\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getProviderInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"}],\"internalType\":\"struct EntropyStructs.ProviderInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getProviderInfoV2\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"defaultGasLimit\",\"type\":\"uint32\"}],\"internalType\":\"struct EntropyStructsV2.ProviderInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"}],\"name\":\"getRequest\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRequestWithCallback\",\"type\":\"bool\"}],\"internalType\":\"struct EntropyStructs.Request\",\"name\":\"req\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"}],\"name\":\"getRequestV2\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"callbackStatus\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"gasLimit10k\",\"type\":\"uint16\"}],\"internalType\":\"struct EntropyStructsV2.Request\",\"name\":\"req\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"chainLength\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"userCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"useBlockHash\",\"type\":\"bool\"}],\"name\":\"request\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"}],\"name\":\"requestWithCallback\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"userRevelation\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"}],\"name\":\"reveal\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"providerRevelation\",\"type\":\"bytes32\"}],\"name\":\"revealWithCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"setDefaultGasLimit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"setFeeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"}],\"name\":\"setMaxNumHashes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"newFeeInWei\",\"type\":\"uint128\"}],\"name\":\"setProviderFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"newFeeInWei\",\"type\":\"uint128\"}],\"name\":\"setProviderFeeAsFeeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"}],\"name\":\"setProviderUri\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"}],\"name\":\"withdrawAsFeeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newDefaultGasLimit\":\"The new default gas limit\",\"oldDefaultGasLimit\":\"The previous default gas limit\",\"provider\":\"The address of the provider updating their gas limit\"}},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFeeManager\":\"The new fee manager address\",\"oldFeeManager\":\"The previous fee manager address\",\"provider\":\"The address of the provider updating their fee manager\"}},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFee\":\"The new fee amount\",\"oldFee\":\"The previous fee amount\",\"provider\":\"The address of the provider updating their fee\"}},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newMaxNumHashes\":\"The new maximum number of hashes\",\"oldMaxNumHashes\":\"The previous maximum number of hashes\",\"provider\":\"The address of the provider updating their max hashes\"}},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newUri\":\"The new URI\",\"oldUri\":\"The previous URI\",\"provider\":\"The address of the provider updating their URI\"}},\"Registered(address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the registered provider\"}},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"params\":{\"caller\":\"The address of the user requesting the random number\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"gasLimit\":\"The gas limit for the callback.\",\"provider\":\"The address of the provider handling the request\",\"sequenceNumber\":\"A unique identifier for this request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"params\":{\"callbackFailed\":\"Whether the callback to the caller failed\",\"callbackGasUsed\":\"How much gas the callback used.\",\"callbackReturnValue\":\"Return value from the callback. If the callback failed, this field contains the error code and any additional returned data. Note that \\\"\\\" often indicates an out-of-gas error. If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\",\"caller\":\"The address of the user who requested the random number (and who receives a callback)\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider that generated the random number\",\"providerContribution\":\"The provider's contribution to the random number\",\"randomNumber\":\"The generated random number\",\"sequenceNumber\":\"The unique identifier of the request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Withdrawal(address,address,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider withdrawing fees\",\"recipient\":\"The address receiving the withdrawn fees\",\"withdrawnAmount\":\"The amount of fees withdrawn\"}}},\"kind\":\"dev\",\"methods\":{\"getDefaultProvider()\":{\"details\":\"This method returns the address of the provider that will be used when no specific provider is specified in the requestV2 calls. The default provider can be used to get the base fee and gas limit information.\",\"returns\":{\"provider\":\"The address of the default provider\"}},\"getFeeV2()\":{\"details\":\"This method returns the base fee required to make a request using the default provider with the default gas limit. This fee should be passed as msg.value when calling requestV2(). The fee can change over time, so this method should be called before each request.\",\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(address,uint32)\":{\"details\":\"This method returns the fee required to make a request using the specified provider with the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit) or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to query\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(uint32)\":{\"details\":\"This method returns the fee required to make a request using the default provider with the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getProviderInfoV2(address)\":{\"details\":\"This method returns detailed information about a provider's configuration and capabilities. The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits.\",\"params\":{\"provider\":\"The address of the provider to query\"},\"returns\":{\"info\":\"The provider information including configuration, fees, and operational status\"}},\"getRequestV2(address,uint64)\":{\"details\":\"This method allows querying the state of a previously made request. The returned Request struct contains information about whether the request was fulfilled, the generated random number (if available), and other metadata about the request.\",\"params\":{\"provider\":\"The address of the provider that handled the request\",\"sequenceNumber\":\"The unique identifier of the request\"},\"returns\":{\"req\":\"The request information including status, random number, and other metadata\"}},\"requestV2()\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,bytes32,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\",\"provider\":\"The address of the provider to request from\",\"userRandomNumber\":\"A random number provided by the user for additional entropy\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to request from\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function.\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}}},\"version\":1},\"userdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their default gas limit\"},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"notice\":\"Emitted when a provider updates their fee manager address\"},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"notice\":\"Emitted when a provider updates their fee\"},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their maximum number of hashes that can be advanced\"},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"notice\":\"Emitted when a provider updates their URI\"},\"Registered(address,bytes)\":{\"notice\":\"Emitted when a new provider registers with the Entropy system\"},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"notice\":\"Emitted when a user requests a random number from a provider\"},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"notice\":\"Emitted when a provider reveals the generated random number\"},\"Withdrawal(address,address,uint128,bytes)\":{\"notice\":\"Emitted when a provider withdraws their accumulated fees\"}},\"kind\":\"user\",\"methods\":{\"getDefaultProvider()\":{\"notice\":\"Get the address of the default entropy provider\"},\"getFeeV2()\":{\"notice\":\"Get the fee charged by the default provider for the default gas limit\"},\"getFeeV2(address,uint32)\":{\"notice\":\"Get the fee charged by a specific provider for a request with a given gas limit\"},\"getFeeV2(uint32)\":{\"notice\":\"Get the fee charged by the default provider for a specific gas limit\"},\"getProviderInfoV2(address)\":{\"notice\":\"Get information about a specific entropy provider\"},\"getRequestV2(address,uint64)\":{\"notice\":\"Get information about a specific request\"},\"requestV2()\":{\"notice\":\"Request a random number using the default provider with default gas limit\"},\"requestV2(address,bytes32,uint32)\":{\"notice\":\"Request a random number from a specific provider with a user-provided random number and gas limit\"},\"requestV2(address,uint32)\":{\"notice\":\"Request a random number from a specific provider with specified gas limit\"},\"requestV2(uint32)\":{\"notice\":\"Request a random number using the default provider with specified gas limit\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/IEntropy.sol\":\"IEntropy\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropy.sol\":{\"keccak256\":\"0xa64f7ec4190605e04ca65ad4091533c4fb33f77c18313dd00a9b6503cb5525b1\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://d0518368dc04438ef8e85b760cadda4ff57a599f55819f7f11a212ebeee2cb23\",\"dweb:/ipfs/QmbzXWZuQRpjAygftHiCQetNc4tEA5eRqVnTGWRQg3J88X\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":{\"keccak256\":\"0x79d7755d04dcc4d689115a14197aab690ab179000e5fc95bc1a73aeaa40c4924\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://c56f5d6e3f4c055f53ba25639bd27ec63a8d02648d1ef0037e7e45d2f893b97c\",\"dweb:/ipfs/QmYZDzmGe4cb6UXRecnxmKqkASPvhVLBmd8y5ZMMZF21C7\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol": { + "IEntropyConsumer": { + "abi": [ + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "_entropyCallback(uint64,address,bytes32)": "52a5f1f8" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"_entropyCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":\"IEntropyConsumer\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":{\"keccak256\":\"0xf3d3dee1e9cbdef70b6c1f4d79aa8b438413e4636c00e79e615da9dc4df9c379\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://0e473522447c8f92a43f4fa3e54d83a789e12cc44b2a86847bd238a7f8827952\",\"dweb:/ipfs/Qmdihx73a89EZYy2GpitTxK92SWDLyPWeWnJTZ4Acva958\"]}},\"version\":1}" + } + }, + "@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol": { + "IEntropyV2": { + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newDefaultGasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderDefaultGasLimitUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "oldFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newFeeManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeManagerUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "oldFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "newFee", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderFeeUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "oldMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "newMaxNumHashes", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderMaxNumHashesAdvanced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "oldUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "newUri", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "ProviderUriUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Registered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Requested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "userContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "providerContribution", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "callbackFailed", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "callbackReturnValue", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "callbackGasUsed", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Revealed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "withdrawnAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "extraArgs", + "type": "bytes" + } + ], + "name": "Withdrawal", + "type": "event" + }, + { + "inputs": [], + "name": "getDefaultProvider", + "outputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "getFeeV2", + "outputs": [ + { + "internalType": "uint128", + "name": "feeAmount", + "type": "uint128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + } + ], + "name": "getProviderInfoV2", + "outputs": [ + { + "components": [ + { + "internalType": "uint128", + "name": "feeInWei", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "accruedFeesInWei", + "type": "uint128" + }, + { + "internalType": "bytes32", + "name": "originalCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "originalCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes", + "name": "commitmentMetadata", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "uri", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "endSequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "currentCommitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "currentCommitmentSequenceNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "feeManager", + "type": "address" + }, + { + "internalType": "uint32", + "name": "maxNumHashes", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "defaultGasLimit", + "type": "uint32" + } + ], + "internalType": "struct EntropyStructsV2.ProviderInfo", + "name": "info", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "getRequestV2", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "numHashes", + "type": "uint32" + }, + { + "internalType": "bytes32", + "name": "commitment", + "type": "bytes32" + }, + { + "internalType": "uint64", + "name": "blockNumber", + "type": "uint64" + }, + { + "internalType": "address", + "name": "requester", + "type": "address" + }, + { + "internalType": "bool", + "name": "useBlockhash", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "callbackStatus", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "gasLimit10k", + "type": "uint16" + } + ], + "internalType": "struct EntropyStructsV2.Request", + "name": "req", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "userRandomNumber", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "gasLimit", + "type": "uint32" + } + ], + "name": "requestV2", + "outputs": [ + { + "internalType": "uint64", + "name": "assignedSequenceNumber", + "type": "uint64" + } + ], + "stateMutability": "payable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "getDefaultProvider()": "82ee990c", + "getFeeV2()": "8204b67a", + "getFeeV2(address,uint32)": "7ab2ac36", + "getFeeV2(uint32)": "ca1642e1", + "getProviderInfoV2(address)": "2f9b787b", + "getRequestV2(address,uint64)": "754a3600", + "requestV2()": "7b43155d", + "requestV2(address,bytes32,uint32)": "f77b45e1", + "requestV2(address,uint32)": "0e33da29", + "requestV2(uint32)": "0bed189f" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newDefaultGasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderDefaultGasLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"oldFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newFee\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newMaxNumHashes\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderMaxNumHashesAdvanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"oldUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newUri\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"ProviderUriUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Requested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"userContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"providerContribution\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"callbackFailed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"callbackReturnValue\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"callbackGasUsed\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Revealed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"withdrawnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"extraArgs\",\"type\":\"bytes\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getDefaultProvider\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"getFeeV2\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"feeAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getProviderInfoV2\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"feeInWei\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accruedFeesInWei\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"originalCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"originalCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"commitmentMetadata\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"uri\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"endSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"currentCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"currentCommitmentSequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"feeManager\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"maxNumHashes\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"defaultGasLimit\",\"type\":\"uint32\"}],\"internalType\":\"struct EntropyStructsV2.ProviderInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"}],\"name\":\"getRequestV2\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"numHashes\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"blockNumber\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useBlockhash\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"callbackStatus\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"gasLimit10k\",\"type\":\"uint16\"}],\"internalType\":\"struct EntropyStructsV2.Request\",\"name\":\"req\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"userRandomNumber\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"}],\"name\":\"requestV2\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"assignedSequenceNumber\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newDefaultGasLimit\":\"The new default gas limit\",\"oldDefaultGasLimit\":\"The previous default gas limit\",\"provider\":\"The address of the provider updating their gas limit\"}},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFeeManager\":\"The new fee manager address\",\"oldFeeManager\":\"The previous fee manager address\",\"provider\":\"The address of the provider updating their fee manager\"}},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newFee\":\"The new fee amount\",\"oldFee\":\"The previous fee amount\",\"provider\":\"The address of the provider updating their fee\"}},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newMaxNumHashes\":\"The new maximum number of hashes\",\"oldMaxNumHashes\":\"The previous maximum number of hashes\",\"provider\":\"The address of the provider updating their max hashes\"}},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"newUri\":\"The new URI\",\"oldUri\":\"The previous URI\",\"provider\":\"The address of the provider updating their URI\"}},\"Registered(address,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the registered provider\"}},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"params\":{\"caller\":\"The address of the user requesting the random number\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"gasLimit\":\"The gas limit for the callback.\",\"provider\":\"The address of the provider handling the request\",\"sequenceNumber\":\"A unique identifier for this request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"params\":{\"callbackFailed\":\"Whether the callback to the caller failed\",\"callbackGasUsed\":\"How much gas the callback used.\",\"callbackReturnValue\":\"Return value from the callback. If the callback failed, this field contains the error code and any additional returned data. Note that \\\"\\\" often indicates an out-of-gas error. If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.\",\"caller\":\"The address of the user who requested the random number (and who receives a callback)\",\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider that generated the random number\",\"providerContribution\":\"The provider's contribution to the random number\",\"randomNumber\":\"The generated random number\",\"sequenceNumber\":\"The unique identifier of the request\",\"userContribution\":\"The user's contribution to the random number\"}},\"Withdrawal(address,address,uint128,bytes)\":{\"params\":{\"extraArgs\":\"A field for extra data for forward compatibility.\",\"provider\":\"The address of the provider withdrawing fees\",\"recipient\":\"The address receiving the withdrawn fees\",\"withdrawnAmount\":\"The amount of fees withdrawn\"}}},\"kind\":\"dev\",\"methods\":{\"getDefaultProvider()\":{\"details\":\"This method returns the address of the provider that will be used when no specific provider is specified in the requestV2 calls. The default provider can be used to get the base fee and gas limit information.\",\"returns\":{\"provider\":\"The address of the default provider\"}},\"getFeeV2()\":{\"details\":\"This method returns the base fee required to make a request using the default provider with the default gas limit. This fee should be passed as msg.value when calling requestV2(). The fee can change over time, so this method should be called before each request.\",\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(address,uint32)\":{\"details\":\"This method returns the fee required to make a request using the specified provider with the given gas limit. This fee should be passed as msg.value when calling requestV2(provider, gasLimit) or requestV2(provider, userRandomNumber, gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to query\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getFeeV2(uint32)\":{\"details\":\"This method returns the fee required to make a request using the default provider with the specified gas limit. This fee should be passed as msg.value when calling requestV2(gasLimit). The fee can change over time, so this method should be called before each request.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\"},\"returns\":{\"feeAmount\":\"The fee amount in wei\"}},\"getProviderInfoV2(address)\":{\"details\":\"This method returns detailed information about a provider's configuration and capabilities. The returned ProviderInfo struct contains information such as the provider's fee structure and gas limits.\",\"params\":{\"provider\":\"The address of the provider to query\"},\"returns\":{\"info\":\"The provider information including configuration, fees, and operational status\"}},\"getRequestV2(address,uint64)\":{\"details\":\"This method allows querying the state of a previously made request. The returned Request struct contains information about whether the request was fulfilled, the generated random number (if available), and other metadata about the request.\",\"params\":{\"provider\":\"The address of the provider that handled the request\",\"sequenceNumber\":\"The unique identifier of the request\"},\"returns\":{\"req\":\"The request information including status, random number, and other metadata\"}},\"requestV2()\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2()`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2()` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,bytes32,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function. Pass 0 to get a sane default value -- see note below.\",\"provider\":\"The address of the provider to request from\",\"userRandomNumber\":\"A random number provided by the user for additional entropy\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(address,uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(provider, gasLimit)`) as msg.value. Note that provider fees can change over time. Callers of this method should explicitly compute `getFeeV2(provider, gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function\",\"provider\":\"The address of the provider to request from\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}},\"requestV2(uint32)\":{\"details\":\"The address calling this function should be a contract that inherits from the IEntropyConsumer interface. The `entropyCallback` method on that interface will receive a callback with the returned sequence number and the generated random number. `entropyCallback` will be run with the `gasLimit` provided to this function. The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded by the provider's configured default limit. This method will revert unless the caller provides a sufficient fee (at least `getFeeV2(gasLimit)`) as msg.value. Note that the fee can change over time. Callers of this method should explicitly compute `getFeeV2(gasLimit)` prior to each invocation (as opposed to hardcoding a value). Further note that excess value is *not* refunded to the caller. Note that this method uses an in-contract PRNG to generate the user's contribution to the random number. This approach modifies the security guarantees such that a dishonest validator and provider can collude to manipulate the result (as opposed to a malicious user and provider). That is, the user now trusts the validator honestly draw a random number. If you wish to avoid this trust assumption, call a variant of `requestV2` that accepts a `userRandomNumber` parameter.\",\"params\":{\"gasLimit\":\"The gas limit for the callback function.\"},\"returns\":{\"assignedSequenceNumber\":\"A unique identifier for this request\"}}},\"version\":1},\"userdoc\":{\"events\":{\"ProviderDefaultGasLimitUpdated(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their default gas limit\"},\"ProviderFeeManagerUpdated(address,address,address,bytes)\":{\"notice\":\"Emitted when a provider updates their fee manager address\"},\"ProviderFeeUpdated(address,uint128,uint128,bytes)\":{\"notice\":\"Emitted when a provider updates their fee\"},\"ProviderMaxNumHashesAdvanced(address,uint32,uint32,bytes)\":{\"notice\":\"Emitted when a provider updates their maximum number of hashes that can be advanced\"},\"ProviderUriUpdated(address,bytes,bytes,bytes)\":{\"notice\":\"Emitted when a provider updates their URI\"},\"Registered(address,bytes)\":{\"notice\":\"Emitted when a new provider registers with the Entropy system\"},\"Requested(address,address,uint64,bytes32,uint32,bytes)\":{\"notice\":\"Emitted when a user requests a random number from a provider\"},\"Revealed(address,address,uint64,bytes32,bytes32,bytes32,bool,bytes,uint32,bytes)\":{\"notice\":\"Emitted when a provider reveals the generated random number\"},\"Withdrawal(address,address,uint128,bytes)\":{\"notice\":\"Emitted when a provider withdraws their accumulated fees\"}},\"kind\":\"user\",\"methods\":{\"getDefaultProvider()\":{\"notice\":\"Get the address of the default entropy provider\"},\"getFeeV2()\":{\"notice\":\"Get the fee charged by the default provider for the default gas limit\"},\"getFeeV2(address,uint32)\":{\"notice\":\"Get the fee charged by a specific provider for a request with a given gas limit\"},\"getFeeV2(uint32)\":{\"notice\":\"Get the fee charged by the default provider for a specific gas limit\"},\"getProviderInfoV2(address)\":{\"notice\":\"Get information about a specific entropy provider\"},\"getRequestV2(address,uint64)\":{\"notice\":\"Get information about a specific request\"},\"requestV2()\":{\"notice\":\"Request a random number using the default provider with default gas limit\"},\"requestV2(address,bytes32,uint32)\":{\"notice\":\"Request a random number from a specific provider with a user-provided random number and gas limit\"},\"requestV2(address,uint32)\":{\"notice\":\"Request a random number from a specific provider with specified gas limit\"},\"requestV2(uint32)\":{\"notice\":\"Request a random number using the default provider with specified gas limit\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":\"IEntropyV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":{\"keccak256\":\"0x79d7755d04dcc4d689115a14197aab690ab179000e5fc95bc1a73aeaa40c4924\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://c56f5d6e3f4c055f53ba25639bd27ec63a8d02648d1ef0037e7e45d2f893b97c\",\"dweb:/ipfs/QmYZDzmGe4cb6UXRecnxmKqkASPvhVLBmd8y5ZMMZF21C7\"]}},\"version\":1}" + } + }, + "contracts/PlaylistReputationNFT.sol": { + "PlaylistReputationNFT": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_entropy", + "type": "address" + }, + { + "internalType": "address", + "name": "_provider", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "ApprovalCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "ApprovalQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "BalanceQueryForZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintERC2309QuantityExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "MintToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintZeroQuantity", + "type": "error" + }, + { + "inputs": [], + "name": "NotCompatibleWithSpotMints", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "OwnableInvalidOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "OwnableUnauthorizedAccount", + "type": "error" + }, + { + "inputs": [], + "name": "OwnerQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "OwnershipNotInitializedForExtraData", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialMintExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialUpToTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "SpotMintTokenIdTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "TokenAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "TransferCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "TransferFromIncorrectOwner", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToNonERC721ReceiverImplementer", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "URIQueryForNonexistentToken", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "fromTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "toTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "ConsecutiveTransfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "sequenceNumber", + "type": "uint64" + } + ], + "name": "DecayTriggered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "playlistId", + "type": "string" + } + ], + "name": "PlaylistMinted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newReputation", + "type": "uint256" + } + ], + "name": "ReputationDecayed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newReputation", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "voter", + "type": "address" + } + ], + "name": "ReputationGrown", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "inputs": [], + "name": "DECAY_CHANCE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GROWTH_PER_VOTE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MAX_REPUTATION", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "randomNumber", + "type": "bytes32" + } + ], + "name": "_entropyCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getPlaylistInfo", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + }, + { + "internalType": "uint256", + "name": "reputation", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "createdAt", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "internalType": "struct PlaylistReputationNFT.PlaylistInfo", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "hasVoted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + } + ], + "name": "mintPlaylist", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "name": "pendingDecayRequests", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "playlists", + "outputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "playlistId", + "type": "string" + }, + { + "internalType": "uint256", + "name": "reputation", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "createdAt", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "isActive", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "tokensOfOwner", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "result", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "triggerDecay", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "voteForPlaylist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": { + "abi_decode_address_fromMemory": { + "entryPoint": 639, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "abi_encode_address": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "allocate_memory": { + "entryPoint": 601, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "allocate_memory_4140": { + "entryPoint": 569, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "allocate_memory_array_string": { + "entryPoint": 677, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "allocate_memory_array_string_1815": { + "entryPoint": 660, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "array_dataslot_string_storage": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "array_dataslot_string_storage_4143": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "clean_up_bytearray_end_slots_string_storage": { + "entryPoint": 755, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "clean_up_bytearray_end_slots_string_storage_4142": { + "entryPoint": 846, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "copy_byte_array_to_storage_from_string_to_string": { + "entryPoint": 937, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "extract_byte_array_length": { + "entryPoint": 694, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "extract_used_part_and_set_length_of_short_byte_array": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "fun_transferOwnership": { + "entryPoint": 1175, + "id": 146, + "parameterSlots": 1, + "returnSlots": 0 + }, + "panic_error_0x41": { + "entryPoint": 547, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "update_storage_value_offsett_contract_IEntropy_to_contract_IEntropy": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "update_storage_value_offsett_contract_IEntropy_to_contract_IEntropy_1823": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + } + }, + "generatedSources": [], + "linkReferences": {}, + "object": "6080604052346200021e57620026d960408138039182620000208162000259565b9384928339810103126200021e5762000039816200027f565b6200004860208093016200027f565b6200005262000294565b926a0506c61796c6973745265760ac1b8185015262000070620002a5565b640504c5245560dc1b82820152845190916001600160401b0382116200021857620000a882620000a2600254620002b6565b620002f3565b80601f83116001146200018357509080620000e292620000eb95969760009262000177575b50508160011b916000199060031b1c19161790565b600255620003a9565b6000805533156200015e576200012c6200014e926200010a3362000497565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516121f89081620004e18239f35b604051631e4fbdf760e01b815260006004820152602490fd5b015190503880620000cd565b6002600052601f198316969091907f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace926000905b898210620001ff57505090839291600194620000eb97989910620001e5575b505050811b01600255620003a9565b015160001960f88460031b161c19169055388080620001d6565b80600185968294968601518155019501930190620001b7565b62000223565b600080fd5b634e487b7160e01b600052604160045260246000fd5b60408051919082016001600160401b038111838210176200021857604052565b6040519190601f01601f191682016001600160401b038111838210176200021857604052565b51906001600160a01b03821682036200021e57565b6200029e62000239565b90600b8252565b620002af62000239565b9060058252565b90600182811c92168015620002e8575b6020831014620002d257565b634e487b7160e01b600052602260045260246000fd5b91607f1691620002c6565b601f811162000300575050565b60009060026000526020600020906020601f850160051c8301941062000343575b601f0160051c01915b8281106200033757505050565b8181556001016200032a565b909250829062000321565b601f81116200035b575050565b60009060036000526020600020906020601f850160051c830194106200039e575b601f0160051c01915b8281106200039257505050565b81815560010162000385565b90925082906200037c565b80519091906001600160401b0381116200021857620003d581620003cf600354620002b6565b6200034e565b602080601f83116001146200040f575081906200040a9394600092620001775750508160011b916000199060031b1c19161790565b600355565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b8782106200047e57505083600195961062000464575b505050811b01600355565b015160001960f88460031b161c1916905538808062000459565b8060018596829496860151815501950193019062000443565b600980546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a356fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d357806323b872dd146101ce57806341ac50b3146101c957806342545825146101c457806342842e0e146101bf5780634535f1c1146101ba57806352a5f1f8146101b55780636352211e146101b057806370a08231146101ab578063715018a6146101a657806377ee63f1146101a15780638462151c1461019c57806385de8b3c146101975780638da5cb5b1461019257806395d89b411461018d578063a22cb46514610188578063a7384a4c14610183578063a9182f3f1461017e578063b88d4fde14610179578063baccd1d214610174578063c87b56dd1461016f578063d213c0f21461016a578063e985e9c514610165578063ecc6362f146101605763f2fde38b1461015b57600080fd5b61154b565b6114c2565b611383565b611367565b6112e6565b6112a7565b61124c565b6110c8565b610ea9565b610ddd565b610d35565b610d0e565b610aeb565b610a0c565b6109b4565b61094b565b610920565b6108f1565b6107f8565b6107ca565b6107a7565b61075a565b610614565b610600565b6105a8565b6104c3565b61042a565b610341565b61021b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361021657565b600080fd5b346102165760203660031901126102165760207fffffffff0000000000000000000000000000000000000000000000000000000060043561025b816101ec565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156102c3575b8115610299575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861028e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610287565b919082519283825260005b848110610319575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016102f8565b90602061033e9281815201906102ed565b90565b346102165760008060031936011261042757604051908060025490610365826113e5565b808552916020916001918281169081156103fa57506001146103a2575b61039e86610392818803826111c8565b6040519182918261032d565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8385106103e7575050505081016020016103928261039e38610382565b80548686018401529382019381016103ca565b905086955061039e9693506020925061039294915060ff191682840152151560051b820101929338610382565b80fd5b346102165760203660031901126102165760043561044781611d50565b1561046d57600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361021657565b602435906001600160a01b038216820361021657565b6040366003190112610216576104d7610497565b6024356001600160a01b0391826104ed83611e4c565b1680330361054c575b6000938385526006602052604085209216918273ffffffffffffffffffffffffffffffffffffffff198254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff610578336040600020906001600160a01b0316600052602052604060002090565b54166104f6577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346102165760003660031901126102165760206000546001549003604051908152f35b6060906003190112610216576001600160a01b0390600435828116810361021657916024359081168103610216579060443590565b61061261060c366105cb565b916115f7565b005b346102165760203660031901126102165760043561063961063482611d50565b6117a4565b33600052600e60205261067361066e61066a61066384604060002090600052602052604060002090565b5460ff1690565b1590565b6117ef565b61069c610697600461068f84600052600c602052604060002090565b015460ff1690565b61183a565b7fa15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab2061074c60026106d684600052600c602052604060002090565b0160646106e3825461189b565b11610751576106f2815461189b565b81555b61073561072885610719336001600160a01b0316600052600e602052604060002090565b90600052602052604060002090565b805460ff19166001179055565b546040805191825233602083015290918291820190565b0390a2005b606481556106f5565b34610216576040366003190112610216576001600160a01b0361077b610497565b16600052600e6020526040600020602435600052602052602060ff604060002054166040519015158152f35b6106126107b3366105cb565b90604051926107c1846111ac565b60008452611cf4565b34610216576000366003190112610216576020604051601e8152f35b67ffffffffffffffff81160361021657565b3461021657606036600319011261021657600435610815816107e6565b61081d6104ad565b506001600160a01b03600a541680156108ad573303610843576106129060443590611ed6565b608460405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b346102165760203660031901126102165760206001600160a01b03610917600435611e4c565b16604051908152f35b3461021657602036600319011261021657602061094361093e610497565b6118ae565b604051908152f35b346102165760008060031936011261042757610965611ff8565b806001600160a01b0360095473ffffffffffffffffffffffffffffffffffffffff198116600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021657600036600319011261021657602060405160058152f35b602090602060408183019282815285518094520193019160005b8281106109f8575050505090565b8351855293810193928101926001016109ea565b3461021657602036600319011261021657610a25610497565b600080610a31836118ae565b91610a3b83611902565b93604091610a4c60405196876111c8565b848652601f19610a5b86611902565b01366020880137610a6a61191a565b506001600160a01b0391821692845b868603610a8e576040518061039e8a826109d0565b610a978161203c565b80830151610ae257516001600160a01b0316848116610ad9575b506001908585851614610ac5575b01610a79565b80610ad3838901988b611950565b52610abf565b92506001610ab1565b50600190610abf565b6020806003193601126102165760043590610b0861063483611d50565b610b24610697600461068f85600052600c602052604060002090565b610b466002610b3d84600052600c602052604060002090565b0154151561197a565b610b67610b5b600a546001600160a01b031690565b6001600160a01b031690565b90610b7a600b546001600160a01b031690565b6040517fb88c91480000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015290928282602481845afa908115610cdc576fffffffffffffffffffffffffffffffff610c3a928594600091610ce1575b501694610bee863410156119f9565b6040519586809481937f19cb825f0000000000000000000000000000000000000000000000000000000083526004830160206000919392936001600160a01b0360408201951681520152565b03925af18015610cdc577f6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e0739261074c92600092610caf575b505083610c938267ffffffffffffffff16600052600d602052604060002090565b5560405167ffffffffffffffff90911681529081906020820190565b610cce9250803d10610cd5575b610cc681836111c8565b810190611a44565b3880610c72565b503d610cbc565b6119ed565b610d019150853d8711610d07575b610cf981836111c8565b8101906119c5565b38610bdf565b503d610cef565b346102165760003660031901126102165760206001600160a01b0360095416604051908152f35b346102165760008060031936011261042757604051908060035490610d59826113e5565b808552916020916001918281169081156103fa5750600114610d855761039e86610392818803826111c8565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510610dca575050505081016020016103928261039e38610382565b8054868601840152938201938101610dad565b3461021657604036600319011261021657610df6610497565b6024358015159182820361021657610e4b6001600160a01b0392336000526007602052610e3a836040600020906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b9181601f840112156102165782359167ffffffffffffffff8311610216576020838186019501011161021657565b3461021657606036600319011261021657610ec2610497565b67ffffffffffffffff9060243582811161021657610ee4903690600401610e7b565b909260443590811161021657610efe903690600401610e7b565b600094916001600160a01b03865495610f2a81600160e11b906001600160a01b034260a01b9116171790565b610f3e886000526004602052604060002090565b55610f5c816001600160a01b03166000526005602052604060002090565b6801000000000000000181540190551695861561106f57600186810197879180805b61102a575b505050508594927fc3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2949261039e98611017935561100b610fc16111ea565b610fcc368888611215565b8152610fd9368585611215565b6020820152603260408201524260608201526001608082015261100689600052600c602052604060002090565b611b85565b60405194859485611ccd565b0390a26040519081529081906020820190565b1561105e575b83818484877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4610f7e565b809201918983036110305780610f83565b611d93565b6020815260a060806110aa611094855184602087015260c08601906102ed565b6020860151858203601f190160408701526102ed565b93604081015160608501526060810151828501520151151591015290565b346102165760203660031901126102165761039e6004356040906000608083516110f18161118b565b60608152606060208201528285820152826060820152015261111561063482611d50565b600052600c602052806000209060ff60048251936111328561118b565b61113b8161141f565b85526111496001820161141f565b602086015260028101548486015260038101546060860152015416151560808301525191829182611074565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff8211176111a757604052565b611175565b6020810190811067ffffffffffffffff8211176111a757604052565b90601f8019910116810190811067ffffffffffffffff8211176111a757604052565b604051906111f78261118b565b565b67ffffffffffffffff81116111a757601f01601f191660200190565b929192611221826111f9565b9161122f60405193846111c8565b829481845281830111610216578281602093846000960137010152565b608036600319011261021657611260610497565b6112686104ad565b6064359167ffffffffffffffff831161021657366023840112156102165761129d610612933690602481600401359101611215565b9160443591611cf4565b346102165760203660031901126102165767ffffffffffffffff6004356112cd816107e6565b16600052600d6020526020604060002054604051908152f35b3461021657602036600319011261021657611302600435611d50565b1561133d576000604051611315816111ac565b5261039e604051611325816111ac565b600081526040519182916020835260208301906102ed565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461021657600036600319011261021657602060405160648152f35b3461021657604036600319011261021657602060ff6113d96113a3610497565b6001600160a01b036113b36104ad565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b90600182811c92168015611415575b60208310146113ff57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113f4565b90604051918260008254611432816113e5565b908184526020946001916001811690816000146114a05750600114611461575b5050506111f7925003836111c8565b600090815285812095935091905b8183106114885750506111f79350820101388080611452565b8554888401850152948501948794509183019161146f565b925050506111f794925060ff191682840152151560051b820101388080611452565b3461021657602036600319011261021657600435600052600c60205261152760406000206114ef8161141f565b906114fc6001820161141f565b60028201549161153560ff60046003840154930154169260405196879660a0885260a08801906102ed565b9086820360208801526102ed565b9260408501526060840152151560808301520390f35b3461021657602036600319011261021657611564610497565b61156c611ff8565b6001600160a01b038091169081156115c6576009548273ffffffffffffffffffffffffffffffffffffffff19821617600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b91909161160382611e4c565b926001600160a01b0380921693848382160361179f57600084815260066020526040902080546116426001600160a01b03881633908114908314171590565b611756575b61174c575b5061166a856001600160a01b03166000526005602052604060002090565b805460001901905561168f826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b176116bf856000526004602052604060002090565b55600160e11b811615611702575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4156116fd57565b611e11565b6001840161171a816000526004602052604060002090565b5415611727575b506116cd565b600054811461172157611744906000526004602052604060002090565b553880611721565b600090553861164c565b61179561066a6106633361177d8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b1561164757611de7565b611dbd565b156117ab57565b606460405162461bcd60e51b815260206004820152601760248201527f506c61796c69737420646f6573206e6f742065786973740000000000000000006044820152fd5b156117f657565b606460405162461bcd60e51b815260206004820152601f60248201527f416c726561647920766f74656420666f72207468697320706c61796c697374006044820152fd5b1561184157565b606460405162461bcd60e51b815260206004820152601460248201527f506c61796c69737420697320696e6163746976650000000000000000000000006044820152fd5b634e487b7160e01b600052601160045260246000fd5b90600582018092116118a957565b611885565b6001600160a01b031680156118d857600052600560205267ffffffffffffffff6040600020541690565b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b67ffffffffffffffff81116111a75760051b60200190565b604051906080820182811067ffffffffffffffff8211176111a75760405260006060838281528260208201528260408201520152565b80518210156119645760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561198157565b606460405162461bcd60e51b815260206004820152601d60248201527f52657075746174696f6e20616c7265616479206174206d696e696d756d0000006044820152fd5b9081602091031261021657516fffffffffffffffffffffffffffffffff811681036102165790565b6040513d6000823e3d90fd5b15611a0057565b606460405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768206665657300000000000000000000000000000000006044820152fd5b90816020910312610216575161033e816107e6565b90601f8111611a6757505050565b6000916000526020600020906020601f850160051c83019410611aa5575b601f0160051c01915b828110611a9a57505050565b818155600101611a8e565b9092508290611a85565b919091825167ffffffffffffffff81116111a757611ad781611ad184546113e5565b84611a59565b602080601f8311600114611b1a57508190611b0b939495600092611b0f575b50508160011b916000199060031b1c19161790565b9055565b015190503880611af6565b90601f19831695611b3085600052602060002090565b926000905b888210611b6d57505083600195969710611b54575b505050811b019055565b015160001960f88460031b161c19169055388080611b4a565b80600185968294968601518155019501930190611b35565b919091825192835167ffffffffffffffff81116111a757611bb081611baa85546113e5565b85611a59565b602080601f8311600114611c305750600492611bee83611c1d946080946111f7999a600092611b0f5750508160011b916000199060031b1c19161790565b85555b611c02602082015160018701611aaf565b60408101516002860155606081015160038601550151151590565b91019060ff801983541691151516179055565b90601f19831696611c4686600052602060002090565b926000905b898210611c945750508360809360049693600193611c1d976111f79b9c10611c7b575b505050811b018555611bf1565b015160001960f88460031b161c19169055388080611c6e565b80600185968294968601518155019501930190611c4b565b908060209392818452848401376000828201840152601f01601f1916010190565b9290611ce69061033e9593604086526040860191611cac565b926020818503910152611cac565b929190611d028282866115f7565b803b611d0f575b50505050565b611d18936120d9565b15611d265738808080611d09565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210611d62575050565b92505b8083526004602052604083205480611d87575080156118a95760001901611d65565b600160e01b1615925050565b7f2e0763000000000000000000000000000000000000000000000000000000000060005260046000fd5b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b611e60816000526004602052604060002090565b54908115611e775750600160e01b8116611e3b5790565b9050600090600054811015611e3b575b60001901600081815260046020526040902054908115611ec25750600160e01b811615611ebd57600482636f96cda160e11b8152fd5b905090565b9050611e87565b919082039182116118a957565b9067ffffffffffffffff8216600052600d602052604060002054918215611fb45782611f3a92601e6064611f16600097600052600c602052604060002090565b920610611f3d575b505067ffffffffffffffff16600052600d602052604060002090565b55565b611f968160027f7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b39301908154600a81048091118914611fa057611f8291508254611ec9565b81555b546040519081529081906020820190565b0390a23880611f1e565b50878255600401805460ff19169055611f85565b606460405162461bcd60e51b815260206004820152601160248201527f52657175657374206e6f7420666f756e640000000000000000000000000000006044820152fd5b6001600160a01b0360095416330361200c57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b61204461191a565b50600052600460205260406000205461205b61191a565b906001600160a01b038116825267ffffffffffffffff8160a01c166020830152600160e01b81161515604083015260e81c606082015290565b90816020910312610216575161033e816101ec565b3d156120d4573d906120ba826111f9565b916120c860405193846111c8565b82523d6000602084013e565b606090565b9260209161213c9360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906102ed565b0393165af160009181612191575b5061216b576121576120a9565b80511561216657805190602001fd5b611d26565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6121b491925060203d6020116121bb575b6121ac81836111c8565b810190612094565b903861214a565b503d6121a256fea2646970667358221220649ab3cc62c09364c79c73543aa7b741fe67ac724ca30a13292c9240418700c164736f6c63430008180033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE PUSH3 0x21E JUMPI PUSH3 0x26D9 PUSH1 0x40 DUP2 CODESIZE SUB SWAP2 DUP3 PUSH3 0x20 DUP2 PUSH3 0x259 JUMP JUMPDEST SWAP4 DUP5 SWAP3 DUP4 CODECOPY DUP2 ADD SUB SLT PUSH3 0x21E JUMPI PUSH3 0x39 DUP2 PUSH3 0x27F JUMP JUMPDEST PUSH3 0x48 PUSH1 0x20 DUP1 SWAP4 ADD PUSH3 0x27F JUMP JUMPDEST PUSH3 0x52 PUSH3 0x294 JUMP JUMPDEST SWAP3 PUSH11 0x506C61796C69737452657 PUSH1 0xAC SHL DUP2 DUP6 ADD MSTORE PUSH3 0x70 PUSH3 0x2A5 JUMP JUMPDEST PUSH5 0x504C52455 PUSH1 0xDC SHL DUP3 DUP3 ADD MSTORE DUP5 MLOAD SWAP1 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT PUSH3 0x218 JUMPI PUSH3 0xA8 DUP3 PUSH3 0xA2 PUSH1 0x2 SLOAD PUSH3 0x2B6 JUMP JUMPDEST PUSH3 0x2F3 JUMP JUMPDEST DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 EQ PUSH3 0x183 JUMPI POP SWAP1 DUP1 PUSH3 0xE2 SWAP3 PUSH3 0xEB SWAP6 SWAP7 SWAP8 PUSH1 0x0 SWAP3 PUSH3 0x177 JUMPI JUMPDEST POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST PUSH1 0x2 SSTORE PUSH3 0x3A9 JUMP JUMPDEST PUSH1 0x0 DUP1 SSTORE CALLER ISZERO PUSH3 0x15E JUMPI PUSH3 0x12C PUSH3 0x14E SWAP3 PUSH3 0x10A CALLER PUSH3 0x497 JUMP JUMPDEST PUSH1 0xA DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x21F8 SWAP1 DUP2 PUSH3 0x4E1 DUP3 CODECOPY RETURN JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x1E4FBDF7 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 SWAP1 REVERT JUMPDEST ADD MLOAD SWAP1 POP CODESIZE DUP1 PUSH3 0xCD JUMP JUMPDEST PUSH1 0x2 PUSH1 0x0 MSTORE PUSH1 0x1F NOT DUP4 AND SWAP7 SWAP1 SWAP2 SWAP1 PUSH32 0x405787FA12A823E0F2B7631CC41B3BA8828B3321CA811111FA75CD3AA3BB5ACE SWAP3 PUSH1 0x0 SWAP1 JUMPDEST DUP10 DUP3 LT PUSH3 0x1FF JUMPI POP POP SWAP1 DUP4 SWAP3 SWAP2 PUSH1 0x1 SWAP5 PUSH3 0xEB SWAP8 SWAP9 SWAP10 LT PUSH3 0x1E5 JUMPI JUMPDEST POP POP POP DUP2 SHL ADD PUSH1 0x2 SSTORE PUSH3 0x3A9 JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH3 0x1D6 JUMP JUMPDEST DUP1 PUSH1 0x1 DUP6 SWAP7 DUP3 SWAP5 SWAP7 DUP7 ADD MLOAD DUP2 SSTORE ADD SWAP6 ADD SWAP4 ADD SWAP1 PUSH3 0x1B7 JUMP JUMPDEST PUSH3 0x223 JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 SWAP1 DUP3 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP4 DUP3 LT OR PUSH3 0x218 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP2 SWAP1 PUSH1 0x1F ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP4 DUP3 LT OR PUSH3 0x218 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST MLOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH3 0x21E JUMPI JUMP JUMPDEST PUSH3 0x29E PUSH3 0x239 JUMP JUMPDEST SWAP1 PUSH1 0xB DUP3 MSTORE JUMP JUMPDEST PUSH3 0x2AF PUSH3 0x239 JUMP JUMPDEST SWAP1 PUSH1 0x5 DUP3 MSTORE JUMP JUMPDEST SWAP1 PUSH1 0x1 DUP3 DUP2 SHR SWAP3 AND DUP1 ISZERO PUSH3 0x2E8 JUMPI JUMPDEST PUSH1 0x20 DUP4 LT EQ PUSH3 0x2D2 JUMPI JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP2 PUSH1 0x7F AND SWAP2 PUSH3 0x2C6 JUMP JUMPDEST PUSH1 0x1F DUP2 GT PUSH3 0x300 JUMPI POP POP JUMP JUMPDEST PUSH1 0x0 SWAP1 PUSH1 0x2 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x20 PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP4 ADD SWAP5 LT PUSH3 0x343 JUMPI JUMPDEST PUSH1 0x1F ADD PUSH1 0x5 SHR ADD SWAP2 JUMPDEST DUP3 DUP2 LT PUSH3 0x337 JUMPI POP POP POP JUMP JUMPDEST DUP2 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x32A JUMP JUMPDEST SWAP1 SWAP3 POP DUP3 SWAP1 PUSH3 0x321 JUMP JUMPDEST PUSH1 0x1F DUP2 GT PUSH3 0x35B JUMPI POP POP JUMP JUMPDEST PUSH1 0x0 SWAP1 PUSH1 0x3 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x20 PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP4 ADD SWAP5 LT PUSH3 0x39E JUMPI JUMPDEST PUSH1 0x1F ADD PUSH1 0x5 SHR ADD SWAP2 JUMPDEST DUP3 DUP2 LT PUSH3 0x392 JUMPI POP POP POP JUMP JUMPDEST DUP2 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x385 JUMP JUMPDEST SWAP1 SWAP3 POP DUP3 SWAP1 PUSH3 0x37C JUMP JUMPDEST DUP1 MLOAD SWAP1 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT PUSH3 0x218 JUMPI PUSH3 0x3D5 DUP2 PUSH3 0x3CF PUSH1 0x3 SLOAD PUSH3 0x2B6 JUMP JUMPDEST PUSH3 0x34E JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 EQ PUSH3 0x40F JUMPI POP DUP2 SWAP1 PUSH3 0x40A SWAP4 SWAP5 PUSH1 0x0 SWAP3 PUSH3 0x177 JUMPI POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST PUSH1 0x3 SSTORE JUMP JUMPDEST PUSH1 0x3 PUSH1 0x0 MSTORE PUSH1 0x1F NOT DUP4 AND SWAP5 SWAP1 SWAP2 SWAP1 PUSH32 0xC2575A0E9E593C00F959F8C92F12DB2869C3395A3B0502D05E2516446F71F85B SWAP3 PUSH1 0x0 SWAP1 JUMPDEST DUP8 DUP3 LT PUSH3 0x47E JUMPI POP POP DUP4 PUSH1 0x1 SWAP6 SWAP7 LT PUSH3 0x464 JUMPI JUMPDEST POP POP POP DUP2 SHL ADD PUSH1 0x3 SSTORE JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH3 0x459 JUMP JUMPDEST DUP1 PUSH1 0x1 DUP6 SWAP7 DUP3 SWAP5 SWAP7 DUP7 ADD MLOAD DUP2 SSTORE ADD SWAP6 ADD SWAP4 ADD SWAP1 PUSH3 0x443 JUMP JUMPDEST PUSH1 0x9 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 DUP4 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT DUP3 AND DUP2 OR SWAP1 SWAP3 SSTORE SWAP1 SWAP2 AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x0 DUP1 LOG3 JUMP INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT ISZERO PUSH2 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0x1E7 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x1E2 JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0x1DD JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x1D8 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x1D3 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x1CE JUMPI DUP1 PUSH4 0x41AC50B3 EQ PUSH2 0x1C9 JUMPI DUP1 PUSH4 0x42545825 EQ PUSH2 0x1C4 JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0x1BF JUMPI DUP1 PUSH4 0x4535F1C1 EQ PUSH2 0x1BA JUMPI DUP1 PUSH4 0x52A5F1F8 EQ PUSH2 0x1B5 JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0x1B0 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x1AB JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x1A6 JUMPI DUP1 PUSH4 0x77EE63F1 EQ PUSH2 0x1A1 JUMPI DUP1 PUSH4 0x8462151C EQ PUSH2 0x19C JUMPI DUP1 PUSH4 0x85DE8B3C EQ PUSH2 0x197 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x192 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x18D JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0x188 JUMPI DUP1 PUSH4 0xA7384A4C EQ PUSH2 0x183 JUMPI DUP1 PUSH4 0xA9182F3F EQ PUSH2 0x17E JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0x179 JUMPI DUP1 PUSH4 0xBACCD1D2 EQ PUSH2 0x174 JUMPI DUP1 PUSH4 0xC87B56DD EQ PUSH2 0x16F JUMPI DUP1 PUSH4 0xD213C0F2 EQ PUSH2 0x16A JUMPI DUP1 PUSH4 0xE985E9C5 EQ PUSH2 0x165 JUMPI DUP1 PUSH4 0xECC6362F EQ PUSH2 0x160 JUMPI PUSH4 0xF2FDE38B EQ PUSH2 0x15B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x154B JUMP JUMPDEST PUSH2 0x14C2 JUMP JUMPDEST PUSH2 0x1383 JUMP JUMPDEST PUSH2 0x1367 JUMP JUMPDEST PUSH2 0x12E6 JUMP JUMPDEST PUSH2 0x12A7 JUMP JUMPDEST PUSH2 0x124C JUMP JUMPDEST PUSH2 0x10C8 JUMP JUMPDEST PUSH2 0xEA9 JUMP JUMPDEST PUSH2 0xDDD JUMP JUMPDEST PUSH2 0xD35 JUMP JUMPDEST PUSH2 0xD0E JUMP JUMPDEST PUSH2 0xAEB JUMP JUMPDEST PUSH2 0xA0C JUMP JUMPDEST PUSH2 0x9B4 JUMP JUMPDEST PUSH2 0x94B JUMP JUMPDEST PUSH2 0x920 JUMP JUMPDEST PUSH2 0x8F1 JUMP JUMPDEST PUSH2 0x7F8 JUMP JUMPDEST PUSH2 0x7CA JUMP JUMPDEST PUSH2 0x7A7 JUMP JUMPDEST PUSH2 0x75A JUMP JUMPDEST PUSH2 0x614 JUMP JUMPDEST PUSH2 0x600 JUMP JUMPDEST PUSH2 0x5A8 JUMP JUMPDEST PUSH2 0x4C3 JUMP JUMPDEST PUSH2 0x42A JUMP JUMPDEST PUSH2 0x341 JUMP JUMPDEST PUSH2 0x21B JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 DUP2 AND SUB PUSH2 0x216 JUMPI JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH1 0x4 CALLDATALOAD PUSH2 0x25B DUP2 PUSH2 0x1EC JUMP JUMPDEST AND PUSH32 0x1FFC9A700000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP1 DUP2 ISZERO PUSH2 0x2C3 JUMPI JUMPDEST DUP2 ISZERO PUSH2 0x299 JUMPI JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST PUSH32 0x5B5E139F00000000000000000000000000000000000000000000000000000000 SWAP2 POP EQ CODESIZE PUSH2 0x28E JUMP JUMPDEST PUSH32 0x80AC58CD00000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP2 POP PUSH2 0x287 JUMP JUMPDEST SWAP2 SWAP1 DUP3 MLOAD SWAP3 DUP4 DUP3 MSTORE PUSH1 0x0 JUMPDEST DUP5 DUP2 LT PUSH2 0x319 JUMPI POP POP DUP3 PUSH1 0x0 PUSH1 0x20 DUP1 SWAP5 SWAP6 DUP5 ADD ADD MSTORE PUSH1 0x1F DUP1 NOT SWAP2 ADD AND ADD ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP2 DUP4 ADD DUP2 ADD MLOAD DUP5 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0x2F8 JUMP JUMPDEST SWAP1 PUSH1 0x20 PUSH2 0x33E SWAP3 DUP2 DUP2 MSTORE ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST SWAP1 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x427 JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x2 SLOAD SWAP1 PUSH2 0x365 DUP3 PUSH2 0x13E5 JUMP JUMPDEST DUP1 DUP6 MSTORE SWAP2 PUSH1 0x20 SWAP2 PUSH1 0x1 SWAP2 DUP3 DUP2 AND SWAP1 DUP2 ISZERO PUSH2 0x3FA JUMPI POP PUSH1 0x1 EQ PUSH2 0x3A2 JUMPI JUMPDEST PUSH2 0x39E DUP7 PUSH2 0x392 DUP2 DUP9 SUB DUP3 PUSH2 0x11C8 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 DUP3 PUSH2 0x32D JUMP JUMPDEST SUB SWAP1 RETURN JUMPDEST SWAP4 POP PUSH1 0x2 DUP5 MSTORE PUSH32 0x405787FA12A823E0F2B7631CC41B3BA8828B3321CA811111FA75CD3AA3BB5ACE JUMPDEST DUP4 DUP6 LT PUSH2 0x3E7 JUMPI POP POP POP POP DUP2 ADD PUSH1 0x20 ADD PUSH2 0x392 DUP3 PUSH2 0x39E CODESIZE PUSH2 0x382 JUMP JUMPDEST DUP1 SLOAD DUP7 DUP7 ADD DUP5 ADD MSTORE SWAP4 DUP3 ADD SWAP4 DUP2 ADD PUSH2 0x3CA JUMP JUMPDEST SWAP1 POP DUP7 SWAP6 POP PUSH2 0x39E SWAP7 SWAP4 POP PUSH1 0x20 SWAP3 POP PUSH2 0x392 SWAP5 SWAP2 POP PUSH1 0xFF NOT AND DUP3 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0x5 SHL DUP3 ADD ADD SWAP3 SWAP4 CODESIZE PUSH2 0x382 JUMP JUMPDEST DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x447 DUP2 PUSH2 0x1D50 JUMP JUMPDEST ISZERO PUSH2 0x46D JUMPI PUSH1 0x0 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH32 0xCF4700E400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x216 JUMPI JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x216 JUMPI JUMP JUMPDEST PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x4D7 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 PUSH2 0x4ED DUP4 PUSH2 0x1E4C JUMP JUMPDEST AND DUP1 CALLER SUB PUSH2 0x54C JUMPI JUMPDEST PUSH1 0x0 SWAP4 DUP4 DUP6 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 DUP6 KECCAK256 SWAP3 AND SWAP2 DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP3 SLOAD AND OR SWAP1 SSTORE PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 DUP5 DUP1 LOG4 DUP1 RETURN JUMPDEST DUP1 PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0xFF PUSH2 0x578 CALLER PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH2 0x4F6 JUMPI PUSH32 0xCFB3B94200000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x0 SLOAD PUSH1 0x1 SLOAD SWAP1 SUB PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH1 0x60 SWAP1 PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 PUSH1 0x4 CALLDATALOAD DUP3 DUP2 AND DUP2 SUB PUSH2 0x216 JUMPI SWAP2 PUSH1 0x24 CALLDATALOAD SWAP1 DUP2 AND DUP2 SUB PUSH2 0x216 JUMPI SWAP1 PUSH1 0x44 CALLDATALOAD SWAP1 JUMP JUMPDEST PUSH2 0x612 PUSH2 0x60C CALLDATASIZE PUSH2 0x5CB JUMP JUMPDEST SWAP2 PUSH2 0x15F7 JUMP JUMPDEST STOP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x639 PUSH2 0x634 DUP3 PUSH2 0x1D50 JUMP JUMPDEST PUSH2 0x17A4 JUMP JUMPDEST CALLER PUSH1 0x0 MSTORE PUSH1 0xE PUSH1 0x20 MSTORE PUSH2 0x673 PUSH2 0x66E PUSH2 0x66A PUSH2 0x663 DUP5 PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x17EF JUMP JUMPDEST PUSH2 0x69C PUSH2 0x697 PUSH1 0x4 PUSH2 0x68F DUP5 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ADD SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH2 0x183A JUMP JUMPDEST PUSH32 0xA15EA89CB51FC8F208D4FA88319ED1C6E182726C46C64F91DCA36F6D7FE2AB20 PUSH2 0x74C PUSH1 0x2 PUSH2 0x6D6 DUP5 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ADD PUSH1 0x64 PUSH2 0x6E3 DUP3 SLOAD PUSH2 0x189B JUMP JUMPDEST GT PUSH2 0x751 JUMPI PUSH2 0x6F2 DUP2 SLOAD PUSH2 0x189B JUMP JUMPDEST DUP2 SSTORE JUMPDEST PUSH2 0x735 PUSH2 0x728 DUP6 PUSH2 0x719 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0xE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE JUMP JUMPDEST SLOAD PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE CALLER PUSH1 0x20 DUP4 ADD MSTORE SWAP1 SWAP2 DUP3 SWAP2 DUP3 ADD SWAP1 JUMP JUMPDEST SUB SWAP1 LOG2 STOP JUMPDEST PUSH1 0x64 DUP2 SSTORE PUSH2 0x6F5 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x77B PUSH2 0x497 JUMP JUMPDEST AND PUSH1 0x0 MSTORE PUSH1 0xE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 PUSH1 0x24 CALLDATALOAD PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0xFF PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST PUSH2 0x612 PUSH2 0x7B3 CALLDATASIZE PUSH2 0x5CB JUMP JUMPDEST SWAP1 PUSH1 0x40 MLOAD SWAP3 PUSH2 0x7C1 DUP5 PUSH2 0x11AC JUMP JUMPDEST PUSH1 0x0 DUP5 MSTORE PUSH2 0x1CF4 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x1E DUP2 MSTORE RETURN JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND SUB PUSH2 0x216 JUMPI JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x815 DUP2 PUSH2 0x7E6 JUMP JUMPDEST PUSH2 0x81D PUSH2 0x4AD JUMP JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0xA SLOAD AND DUP1 ISZERO PUSH2 0x8AD JUMPI CALLER SUB PUSH2 0x843 JUMPI PUSH2 0x612 SWAP1 PUSH1 0x44 CALLDATALOAD SWAP1 PUSH2 0x1ED6 JUMP JUMPDEST PUSH1 0x84 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920456E74726F70792063616E2063616C6C20746869732066756E6374 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x696F6E0000000000000000000000000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x456E74726F70792061646472657373206E6F7420736574000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x917 PUSH1 0x4 CALLDATALOAD PUSH2 0x1E4C JUMP JUMPDEST AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH2 0x943 PUSH2 0x93E PUSH2 0x497 JUMP JUMPDEST PUSH2 0x18AE JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x427 JUMPI PUSH2 0x965 PUSH2 0x1FF8 JUMP JUMPDEST DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x9 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP2 AND PUSH1 0x9 SSTORE AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 DUP3 DUP1 LOG3 DUP1 RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x5 DUP2 MSTORE RETURN JUMPDEST PUSH1 0x20 SWAP1 PUSH1 0x20 PUSH1 0x40 DUP2 DUP4 ADD SWAP3 DUP3 DUP2 MSTORE DUP6 MLOAD DUP1 SWAP5 MSTORE ADD SWAP4 ADD SWAP2 PUSH1 0x0 JUMPDEST DUP3 DUP2 LT PUSH2 0x9F8 JUMPI POP POP POP POP SWAP1 JUMP JUMPDEST DUP4 MLOAD DUP6 MSTORE SWAP4 DUP2 ADD SWAP4 SWAP3 DUP2 ADD SWAP3 PUSH1 0x1 ADD PUSH2 0x9EA JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0xA25 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xA31 DUP4 PUSH2 0x18AE JUMP JUMPDEST SWAP2 PUSH2 0xA3B DUP4 PUSH2 0x1902 JUMP JUMPDEST SWAP4 PUSH1 0x40 SWAP2 PUSH2 0xA4C PUSH1 0x40 MLOAD SWAP7 DUP8 PUSH2 0x11C8 JUMP JUMPDEST DUP5 DUP7 MSTORE PUSH1 0x1F NOT PUSH2 0xA5B DUP7 PUSH2 0x1902 JUMP JUMPDEST ADD CALLDATASIZE PUSH1 0x20 DUP9 ADD CALLDATACOPY PUSH2 0xA6A PUSH2 0x191A JUMP JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND SWAP3 DUP5 JUMPDEST DUP7 DUP7 SUB PUSH2 0xA8E JUMPI PUSH1 0x40 MLOAD DUP1 PUSH2 0x39E DUP11 DUP3 PUSH2 0x9D0 JUMP JUMPDEST PUSH2 0xA97 DUP2 PUSH2 0x203C JUMP JUMPDEST DUP1 DUP4 ADD MLOAD PUSH2 0xAE2 JUMPI MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 DUP2 AND PUSH2 0xAD9 JUMPI JUMPDEST POP PUSH1 0x1 SWAP1 DUP6 DUP6 DUP6 AND EQ PUSH2 0xAC5 JUMPI JUMPDEST ADD PUSH2 0xA79 JUMP JUMPDEST DUP1 PUSH2 0xAD3 DUP4 DUP10 ADD SWAP9 DUP12 PUSH2 0x1950 JUMP JUMPDEST MSTORE PUSH2 0xABF JUMP JUMPDEST SWAP3 POP PUSH1 0x1 PUSH2 0xAB1 JUMP JUMPDEST POP PUSH1 0x1 SWAP1 PUSH2 0xABF JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD SWAP1 PUSH2 0xB08 PUSH2 0x634 DUP4 PUSH2 0x1D50 JUMP JUMPDEST PUSH2 0xB24 PUSH2 0x697 PUSH1 0x4 PUSH2 0x68F DUP6 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH2 0xB46 PUSH1 0x2 PUSH2 0xB3D DUP5 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ADD SLOAD ISZERO ISZERO PUSH2 0x197A JUMP JUMPDEST PUSH2 0xB67 PUSH2 0xB5B PUSH1 0xA SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST SWAP1 PUSH2 0xB7A PUSH1 0xB SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xB88C914800000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x4 DUP3 ADD MSTORE SWAP1 SWAP3 DUP3 DUP3 PUSH1 0x24 DUP2 DUP5 GAS STATICCALL SWAP1 DUP2 ISZERO PUSH2 0xCDC JUMPI PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH2 0xC3A SWAP3 DUP6 SWAP5 PUSH1 0x0 SWAP2 PUSH2 0xCE1 JUMPI JUMPDEST POP AND SWAP5 PUSH2 0xBEE DUP7 CALLVALUE LT ISZERO PUSH2 0x19F9 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP6 DUP7 DUP1 SWAP5 DUP2 SWAP4 PUSH32 0x19CB825F00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE PUSH1 0x4 DUP4 ADD PUSH1 0x20 PUSH1 0x0 SWAP2 SWAP4 SWAP3 SWAP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 DUP3 ADD SWAP6 AND DUP2 MSTORE ADD MSTORE JUMP JUMPDEST SUB SWAP3 GAS CALL DUP1 ISZERO PUSH2 0xCDC JUMPI PUSH32 0x6B73C3AFB9DE0065BCE909A5C6990021F060EFC3B19313411293559B0238E073 SWAP3 PUSH2 0x74C SWAP3 PUSH1 0x0 SWAP3 PUSH2 0xCAF JUMPI JUMPDEST POP POP DUP4 PUSH2 0xC93 DUP3 PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH1 0x40 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE SWAP1 DUP2 SWAP1 PUSH1 0x20 DUP3 ADD SWAP1 JUMP JUMPDEST PUSH2 0xCCE SWAP3 POP DUP1 RETURNDATASIZE LT PUSH2 0xCD5 JUMPI JUMPDEST PUSH2 0xCC6 DUP2 DUP4 PUSH2 0x11C8 JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x1A44 JUMP JUMPDEST CODESIZE DUP1 PUSH2 0xC72 JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0xCBC JUMP JUMPDEST PUSH2 0x19ED JUMP JUMPDEST PUSH2 0xD01 SWAP2 POP DUP6 RETURNDATASIZE DUP8 GT PUSH2 0xD07 JUMPI JUMPDEST PUSH2 0xCF9 DUP2 DUP4 PUSH2 0x11C8 JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x19C5 JUMP JUMPDEST CODESIZE PUSH2 0xBDF JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0xCEF JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x9 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x427 JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x3 SLOAD SWAP1 PUSH2 0xD59 DUP3 PUSH2 0x13E5 JUMP JUMPDEST DUP1 DUP6 MSTORE SWAP2 PUSH1 0x20 SWAP2 PUSH1 0x1 SWAP2 DUP3 DUP2 AND SWAP1 DUP2 ISZERO PUSH2 0x3FA JUMPI POP PUSH1 0x1 EQ PUSH2 0xD85 JUMPI PUSH2 0x39E DUP7 PUSH2 0x392 DUP2 DUP9 SUB DUP3 PUSH2 0x11C8 JUMP JUMPDEST SWAP4 POP PUSH1 0x3 DUP5 MSTORE PUSH32 0xC2575A0E9E593C00F959F8C92F12DB2869C3395A3B0502D05E2516446F71F85B JUMPDEST DUP4 DUP6 LT PUSH2 0xDCA JUMPI POP POP POP POP DUP2 ADD PUSH1 0x20 ADD PUSH2 0x392 DUP3 PUSH2 0x39E CODESIZE PUSH2 0x382 JUMP JUMPDEST DUP1 SLOAD DUP7 DUP7 ADD DUP5 ADD MSTORE SWAP4 DUP3 ADD SWAP4 DUP2 ADD PUSH2 0xDAD JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0xDF6 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD DUP1 ISZERO ISZERO SWAP2 DUP3 DUP3 SUB PUSH2 0x216 JUMPI PUSH2 0xE4B PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 CALLER PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH2 0xE3A DUP4 PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP3 DUP4 MSTORE AND SWAP1 PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 PUSH1 0x20 CALLER SWAP3 LOG3 STOP JUMPDEST SWAP2 DUP2 PUSH1 0x1F DUP5 ADD SLT ISZERO PUSH2 0x216 JUMPI DUP3 CALLDATALOAD SWAP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT PUSH2 0x216 JUMPI PUSH1 0x20 DUP4 DUP2 DUP7 ADD SWAP6 ADD ADD GT PUSH2 0x216 JUMPI JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0xEC2 PUSH2 0x497 JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF SWAP1 PUSH1 0x24 CALLDATALOAD DUP3 DUP2 GT PUSH2 0x216 JUMPI PUSH2 0xEE4 SWAP1 CALLDATASIZE SWAP1 PUSH1 0x4 ADD PUSH2 0xE7B JUMP JUMPDEST SWAP1 SWAP3 PUSH1 0x44 CALLDATALOAD SWAP1 DUP2 GT PUSH2 0x216 JUMPI PUSH2 0xEFE SWAP1 CALLDATASIZE SWAP1 PUSH1 0x4 ADD PUSH2 0xE7B JUMP JUMPDEST PUSH1 0x0 SWAP5 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 SLOAD SWAP6 PUSH2 0xF2A DUP2 PUSH1 0x1 PUSH1 0xE1 SHL SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB TIMESTAMP PUSH1 0xA0 SHL SWAP2 AND OR OR SWAP1 JUMP JUMPDEST PUSH2 0xF3E DUP9 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH2 0xF5C DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH9 0x10000000000000001 DUP2 SLOAD ADD SWAP1 SSTORE AND SWAP6 DUP7 ISZERO PUSH2 0x106F JUMPI PUSH1 0x1 DUP7 DUP2 ADD SWAP8 DUP8 SWAP2 DUP1 DUP1 JUMPDEST PUSH2 0x102A JUMPI JUMPDEST POP POP POP POP DUP6 SWAP5 SWAP3 PUSH32 0xC3C15E44ADC8E6B4DDD1CA6261359E4970BB28B9530420D68222C21D2E80BCC2 SWAP5 SWAP3 PUSH2 0x39E SWAP9 PUSH2 0x1017 SWAP4 SSTORE PUSH2 0x100B PUSH2 0xFC1 PUSH2 0x11EA JUMP JUMPDEST PUSH2 0xFCC CALLDATASIZE DUP9 DUP9 PUSH2 0x1215 JUMP JUMPDEST DUP2 MSTORE PUSH2 0xFD9 CALLDATASIZE DUP6 DUP6 PUSH2 0x1215 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x32 PUSH1 0x40 DUP3 ADD MSTORE TIMESTAMP PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x80 DUP3 ADD MSTORE PUSH2 0x1006 DUP10 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH2 0x1B85 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP5 DUP6 SWAP5 DUP6 PUSH2 0x1CCD JUMP JUMPDEST SUB SWAP1 LOG2 PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE SWAP1 DUP2 SWAP1 PUSH1 0x20 DUP3 ADD SWAP1 JUMP JUMPDEST ISZERO PUSH2 0x105E JUMPI JUMPDEST DUP4 DUP2 DUP5 DUP5 DUP8 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF DUP2 DUP1 LOG4 PUSH2 0xF7E JUMP JUMPDEST DUP1 SWAP3 ADD SWAP2 DUP10 DUP4 SUB PUSH2 0x1030 JUMPI DUP1 PUSH2 0xF83 JUMP JUMPDEST PUSH2 0x1D93 JUMP JUMPDEST PUSH1 0x20 DUP2 MSTORE PUSH1 0xA0 PUSH1 0x80 PUSH2 0x10AA PUSH2 0x1094 DUP6 MLOAD DUP5 PUSH1 0x20 DUP8 ADD MSTORE PUSH1 0xC0 DUP7 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST PUSH1 0x20 DUP7 ADD MLOAD DUP6 DUP3 SUB PUSH1 0x1F NOT ADD PUSH1 0x40 DUP8 ADD MSTORE PUSH2 0x2ED JUMP JUMPDEST SWAP4 PUSH1 0x40 DUP2 ADD MLOAD PUSH1 0x60 DUP6 ADD MSTORE PUSH1 0x60 DUP2 ADD MLOAD DUP3 DUP6 ADD MSTORE ADD MLOAD ISZERO ISZERO SWAP2 ADD MSTORE SWAP1 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x39E PUSH1 0x4 CALLDATALOAD PUSH1 0x40 SWAP1 PUSH1 0x0 PUSH1 0x80 DUP4 MLOAD PUSH2 0x10F1 DUP2 PUSH2 0x118B JUMP JUMPDEST PUSH1 0x60 DUP2 MSTORE PUSH1 0x60 PUSH1 0x20 DUP3 ADD MSTORE DUP3 DUP6 DUP3 ADD MSTORE DUP3 PUSH1 0x60 DUP3 ADD MSTORE ADD MSTORE PUSH2 0x1115 PUSH2 0x634 DUP3 PUSH2 0x1D50 JUMP JUMPDEST PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE DUP1 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0xFF PUSH1 0x4 DUP3 MLOAD SWAP4 PUSH2 0x1132 DUP6 PUSH2 0x118B JUMP JUMPDEST PUSH2 0x113B DUP2 PUSH2 0x141F JUMP JUMPDEST DUP6 MSTORE PUSH2 0x1149 PUSH1 0x1 DUP3 ADD PUSH2 0x141F JUMP JUMPDEST PUSH1 0x20 DUP7 ADD MSTORE PUSH1 0x2 DUP2 ADD SLOAD DUP5 DUP7 ADD MSTORE PUSH1 0x3 DUP2 ADD SLOAD PUSH1 0x60 DUP7 ADD MSTORE ADD SLOAD AND ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE MLOAD SWAP2 DUP3 SWAP2 DUP3 PUSH2 0x1074 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0xA0 DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH2 0x1175 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 PUSH2 0x11F7 DUP3 PUSH2 0x118B JUMP JUMPDEST JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH1 0x1F ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 SWAP2 SWAP3 PUSH2 0x1221 DUP3 PUSH2 0x11F9 JUMP JUMPDEST SWAP2 PUSH2 0x122F PUSH1 0x40 MLOAD SWAP4 DUP5 PUSH2 0x11C8 JUMP JUMPDEST DUP3 SWAP5 DUP2 DUP5 MSTORE DUP2 DUP4 ADD GT PUSH2 0x216 JUMPI DUP3 DUP2 PUSH1 0x20 SWAP4 DUP5 PUSH1 0x0 SWAP7 ADD CALLDATACOPY ADD ADD MSTORE JUMP JUMPDEST PUSH1 0x80 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x1260 PUSH2 0x497 JUMP JUMPDEST PUSH2 0x1268 PUSH2 0x4AD JUMP JUMPDEST PUSH1 0x64 CALLDATALOAD SWAP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT PUSH2 0x216 JUMPI CALLDATASIZE PUSH1 0x23 DUP5 ADD SLT ISZERO PUSH2 0x216 JUMPI PUSH2 0x129D PUSH2 0x612 SWAP4 CALLDATASIZE SWAP1 PUSH1 0x24 DUP2 PUSH1 0x4 ADD CALLDATALOAD SWAP2 ADD PUSH2 0x1215 JUMP JUMPDEST SWAP2 PUSH1 0x44 CALLDATALOAD SWAP2 PUSH2 0x1CF4 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH8 0xFFFFFFFFFFFFFFFF PUSH1 0x4 CALLDATALOAD PUSH2 0x12CD DUP2 PUSH2 0x7E6 JUMP JUMPDEST AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x1302 PUSH1 0x4 CALLDATALOAD PUSH2 0x1D50 JUMP JUMPDEST ISZERO PUSH2 0x133D JUMPI PUSH1 0x0 PUSH1 0x40 MLOAD PUSH2 0x1315 DUP2 PUSH2 0x11AC JUMP JUMPDEST MSTORE PUSH2 0x39E PUSH1 0x40 MLOAD PUSH2 0x1325 DUP2 PUSH2 0x11AC JUMP JUMPDEST PUSH1 0x0 DUP2 MSTORE PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 PUSH1 0x20 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST PUSH32 0xA14C4B5000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x64 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0xFF PUSH2 0x13D9 PUSH2 0x13A3 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x13B3 PUSH2 0x4AD JUMP JUMPDEST SWAP2 AND PUSH1 0x0 MSTORE PUSH1 0x7 DUP5 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST SWAP1 PUSH1 0x1 DUP3 DUP2 SHR SWAP3 AND DUP1 ISZERO PUSH2 0x1415 JUMPI JUMPDEST PUSH1 0x20 DUP4 LT EQ PUSH2 0x13FF JUMPI JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP2 PUSH1 0x7F AND SWAP2 PUSH2 0x13F4 JUMP JUMPDEST SWAP1 PUSH1 0x40 MLOAD SWAP2 DUP3 PUSH1 0x0 DUP3 SLOAD PUSH2 0x1432 DUP2 PUSH2 0x13E5 JUMP JUMPDEST SWAP1 DUP2 DUP5 MSTORE PUSH1 0x20 SWAP5 PUSH1 0x1 SWAP2 PUSH1 0x1 DUP2 AND SWAP1 DUP2 PUSH1 0x0 EQ PUSH2 0x14A0 JUMPI POP PUSH1 0x1 EQ PUSH2 0x1461 JUMPI JUMPDEST POP POP POP PUSH2 0x11F7 SWAP3 POP SUB DUP4 PUSH2 0x11C8 JUMP JUMPDEST PUSH1 0x0 SWAP1 DUP2 MSTORE DUP6 DUP2 KECCAK256 SWAP6 SWAP4 POP SWAP2 SWAP1 JUMPDEST DUP2 DUP4 LT PUSH2 0x1488 JUMPI POP POP PUSH2 0x11F7 SWAP4 POP DUP3 ADD ADD CODESIZE DUP1 DUP1 PUSH2 0x1452 JUMP JUMPDEST DUP6 SLOAD DUP9 DUP5 ADD DUP6 ADD MSTORE SWAP5 DUP6 ADD SWAP5 DUP8 SWAP5 POP SWAP2 DUP4 ADD SWAP2 PUSH2 0x146F JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x11F7 SWAP5 SWAP3 POP PUSH1 0xFF NOT AND DUP3 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0x5 SHL DUP3 ADD ADD CODESIZE DUP1 DUP1 PUSH2 0x1452 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH2 0x1527 PUSH1 0x40 PUSH1 0x0 KECCAK256 PUSH2 0x14EF DUP2 PUSH2 0x141F JUMP JUMPDEST SWAP1 PUSH2 0x14FC PUSH1 0x1 DUP3 ADD PUSH2 0x141F JUMP JUMPDEST PUSH1 0x2 DUP3 ADD SLOAD SWAP2 PUSH2 0x1535 PUSH1 0xFF PUSH1 0x4 PUSH1 0x3 DUP5 ADD SLOAD SWAP4 ADD SLOAD AND SWAP3 PUSH1 0x40 MLOAD SWAP7 DUP8 SWAP7 PUSH1 0xA0 DUP9 MSTORE PUSH1 0xA0 DUP9 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST SWAP1 DUP7 DUP3 SUB PUSH1 0x20 DUP9 ADD MSTORE PUSH2 0x2ED JUMP JUMPDEST SWAP3 PUSH1 0x40 DUP6 ADD MSTORE PUSH1 0x60 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE SUB SWAP1 RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x1564 PUSH2 0x497 JUMP JUMPDEST PUSH2 0x156C PUSH2 0x1FF8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 SWAP2 AND SWAP1 DUP2 ISZERO PUSH2 0x15C6 JUMPI PUSH1 0x9 SLOAD DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP3 AND OR PUSH1 0x9 SSTORE AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x0 DUP1 LOG3 STOP JUMPDEST PUSH1 0x24 PUSH1 0x40 MLOAD PUSH32 0x1E4FBDF700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x0 PUSH1 0x4 DUP3 ADD MSTORE REVERT JUMPDEST SWAP2 SWAP1 SWAP2 PUSH2 0x1603 DUP3 PUSH2 0x1E4C JUMP JUMPDEST SWAP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 SWAP3 AND SWAP4 DUP5 DUP4 DUP3 AND SUB PUSH2 0x179F JUMPI PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH2 0x1642 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND CALLER SWAP1 DUP2 EQ SWAP1 DUP4 EQ OR ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x1756 JUMPI JUMPDEST PUSH2 0x174C JUMPI JUMPDEST POP PUSH2 0x166A DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x0 NOT ADD SWAP1 SSTORE PUSH2 0x168F DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND TIMESTAMP PUSH1 0xA0 SHL OR PUSH1 0x1 PUSH1 0xE1 SHL OR PUSH2 0x16BF DUP6 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH1 0x1 PUSH1 0xE1 SHL DUP2 AND ISZERO PUSH2 0x1702 JUMPI JUMPDEST POP AND DUP1 SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF PUSH1 0x0 DUP1 LOG4 ISZERO PUSH2 0x16FD JUMPI JUMP JUMPDEST PUSH2 0x1E11 JUMP JUMPDEST PUSH1 0x1 DUP5 ADD PUSH2 0x171A DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD ISZERO PUSH2 0x1727 JUMPI JUMPDEST POP PUSH2 0x16CD JUMP JUMPDEST PUSH1 0x0 SLOAD DUP2 EQ PUSH2 0x1721 JUMPI PUSH2 0x1744 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE CODESIZE DUP1 PUSH2 0x1721 JUMP JUMPDEST PUSH1 0x0 SWAP1 SSTORE CODESIZE PUSH2 0x164C JUMP JUMPDEST PUSH2 0x1795 PUSH2 0x66A PUSH2 0x663 CALLER PUSH2 0x177D DUP12 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ISZERO PUSH2 0x1647 JUMPI PUSH2 0x1DE7 JUMP JUMPDEST PUSH2 0x1DBD JUMP JUMPDEST ISZERO PUSH2 0x17AB JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x506C61796C69737420646F6573206E6F74206578697374000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST ISZERO PUSH2 0x17F6 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1F PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x416C726561647920766F74656420666F72207468697320706C61796C69737400 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST ISZERO PUSH2 0x1841 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x506C61796C69737420697320696E616374697665000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x5 DUP3 ADD DUP1 SWAP3 GT PUSH2 0x18A9 JUMPI JUMP JUMPDEST PUSH2 0x1885 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP1 ISZERO PUSH2 0x18D8 JUMPI PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH8 0xFFFFFFFFFFFFFFFF PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND SWAP1 JUMP JUMPDEST PUSH32 0x8F4EB60400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH1 0x5 SHL PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 PUSH1 0x80 DUP3 ADD DUP3 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE PUSH1 0x0 PUSH1 0x60 DUP4 DUP3 DUP2 MSTORE DUP3 PUSH1 0x20 DUP3 ADD MSTORE DUP3 PUSH1 0x40 DUP3 ADD MSTORE ADD MSTORE JUMP JUMPDEST DUP1 MLOAD DUP3 LT ISZERO PUSH2 0x1964 JUMPI PUSH1 0x20 SWAP2 PUSH1 0x5 SHL ADD ADD SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ISZERO PUSH2 0x1981 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1D PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x52657075746174696F6E20616C7265616479206174206D696E696D756D000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x216 JUMPI MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x216 JUMPI SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST ISZERO PUSH2 0x1A00 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420656E6F75676820666565730000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x216 JUMPI MLOAD PUSH2 0x33E DUP2 PUSH2 0x7E6 JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP2 GT PUSH2 0x1A67 JUMPI POP POP POP JUMP JUMPDEST PUSH1 0x0 SWAP2 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x20 PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP4 ADD SWAP5 LT PUSH2 0x1AA5 JUMPI JUMPDEST PUSH1 0x1F ADD PUSH1 0x5 SHR ADD SWAP2 JUMPDEST DUP3 DUP2 LT PUSH2 0x1A9A JUMPI POP POP POP JUMP JUMPDEST DUP2 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x1A8E JUMP JUMPDEST SWAP1 SWAP3 POP DUP3 SWAP1 PUSH2 0x1A85 JUMP JUMPDEST SWAP2 SWAP1 SWAP2 DUP3 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH2 0x1AD7 DUP2 PUSH2 0x1AD1 DUP5 SLOAD PUSH2 0x13E5 JUMP JUMPDEST DUP5 PUSH2 0x1A59 JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 EQ PUSH2 0x1B1A JUMPI POP DUP2 SWAP1 PUSH2 0x1B0B SWAP4 SWAP5 SWAP6 PUSH1 0x0 SWAP3 PUSH2 0x1B0F JUMPI JUMPDEST POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST SWAP1 SSTORE JUMP JUMPDEST ADD MLOAD SWAP1 POP CODESIZE DUP1 PUSH2 0x1AF6 JUMP JUMPDEST SWAP1 PUSH1 0x1F NOT DUP4 AND SWAP6 PUSH2 0x1B30 DUP6 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x0 SWAP1 JUMPDEST DUP9 DUP3 LT PUSH2 0x1B6D JUMPI POP POP DUP4 PUSH1 0x1 SWAP6 SWAP7 SWAP8 LT PUSH2 0x1B54 JUMPI JUMPDEST POP POP POP DUP2 SHL ADD SWAP1 SSTORE JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH2 0x1B4A JUMP JUMPDEST DUP1 PUSH1 0x1 DUP6 SWAP7 DUP3 SWAP5 SWAP7 DUP7 ADD MLOAD DUP2 SSTORE ADD SWAP6 ADD SWAP4 ADD SWAP1 PUSH2 0x1B35 JUMP JUMPDEST SWAP2 SWAP1 SWAP2 DUP3 MLOAD SWAP3 DUP4 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH2 0x1BB0 DUP2 PUSH2 0x1BAA DUP6 SLOAD PUSH2 0x13E5 JUMP JUMPDEST DUP6 PUSH2 0x1A59 JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 EQ PUSH2 0x1C30 JUMPI POP PUSH1 0x4 SWAP3 PUSH2 0x1BEE DUP4 PUSH2 0x1C1D SWAP5 PUSH1 0x80 SWAP5 PUSH2 0x11F7 SWAP10 SWAP11 PUSH1 0x0 SWAP3 PUSH2 0x1B0F JUMPI POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST DUP6 SSTORE JUMPDEST PUSH2 0x1C02 PUSH1 0x20 DUP3 ADD MLOAD PUSH1 0x1 DUP8 ADD PUSH2 0x1AAF JUMP JUMPDEST PUSH1 0x40 DUP2 ADD MLOAD PUSH1 0x2 DUP7 ADD SSTORE PUSH1 0x60 DUP2 ADD MLOAD PUSH1 0x3 DUP7 ADD SSTORE ADD MLOAD ISZERO ISZERO SWAP1 JUMP JUMPDEST SWAP2 ADD SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST SWAP1 PUSH1 0x1F NOT DUP4 AND SWAP7 PUSH2 0x1C46 DUP7 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x0 SWAP1 JUMPDEST DUP10 DUP3 LT PUSH2 0x1C94 JUMPI POP POP DUP4 PUSH1 0x80 SWAP4 PUSH1 0x4 SWAP7 SWAP4 PUSH1 0x1 SWAP4 PUSH2 0x1C1D SWAP8 PUSH2 0x11F7 SWAP12 SWAP13 LT PUSH2 0x1C7B JUMPI JUMPDEST POP POP POP DUP2 SHL ADD DUP6 SSTORE PUSH2 0x1BF1 JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH2 0x1C6E JUMP JUMPDEST DUP1 PUSH1 0x1 DUP6 SWAP7 DUP3 SWAP5 SWAP7 DUP7 ADD MLOAD DUP2 SSTORE ADD SWAP6 ADD SWAP4 ADD SWAP1 PUSH2 0x1C4B JUMP JUMPDEST SWAP1 DUP1 PUSH1 0x20 SWAP4 SWAP3 DUP2 DUP5 MSTORE DUP5 DUP5 ADD CALLDATACOPY PUSH1 0x0 DUP3 DUP3 ADD DUP5 ADD MSTORE PUSH1 0x1F ADD PUSH1 0x1F NOT AND ADD ADD SWAP1 JUMP JUMPDEST SWAP3 SWAP1 PUSH2 0x1CE6 SWAP1 PUSH2 0x33E SWAP6 SWAP4 PUSH1 0x40 DUP7 MSTORE PUSH1 0x40 DUP7 ADD SWAP2 PUSH2 0x1CAC JUMP JUMPDEST SWAP3 PUSH1 0x20 DUP2 DUP6 SUB SWAP2 ADD MSTORE PUSH2 0x1CAC JUMP JUMPDEST SWAP3 SWAP2 SWAP1 PUSH2 0x1D02 DUP3 DUP3 DUP7 PUSH2 0x15F7 JUMP JUMPDEST DUP1 EXTCODESIZE PUSH2 0x1D0F JUMPI JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0x1D18 SWAP4 PUSH2 0x20D9 JUMP JUMPDEST ISZERO PUSH2 0x1D26 JUMPI CODESIZE DUP1 DUP1 DUP1 PUSH2 0x1D09 JUMP JUMPDEST PUSH32 0xD1A57ED600000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 SWAP2 PUSH1 0x0 DUP1 SLOAD DUP3 LT PUSH2 0x1D62 JUMPI POP POP JUMP JUMPDEST SWAP3 POP JUMPDEST DUP1 DUP4 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 DUP4 KECCAK256 SLOAD DUP1 PUSH2 0x1D87 JUMPI POP DUP1 ISZERO PUSH2 0x18A9 JUMPI PUSH1 0x0 NOT ADD PUSH2 0x1D65 JUMP JUMPDEST PUSH1 0x1 PUSH1 0xE0 SHL AND ISZERO SWAP3 POP POP JUMP JUMPDEST PUSH32 0x2E07630000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0xA114810000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x59C896BE00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0xEA553B3400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH2 0x1E60 DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD SWAP1 DUP2 ISZERO PUSH2 0x1E77 JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND PUSH2 0x1E3B JUMPI SWAP1 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 SWAP1 PUSH1 0x0 SLOAD DUP2 LT ISZERO PUSH2 0x1E3B JUMPI JUMPDEST PUSH1 0x0 NOT ADD PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 DUP2 ISZERO PUSH2 0x1EC2 JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND ISZERO PUSH2 0x1EBD JUMPI PUSH1 0x4 DUP3 PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL DUP2 MSTORE REVERT JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST SWAP1 POP PUSH2 0x1E87 JUMP JUMPDEST SWAP2 SWAP1 DUP3 SUB SWAP2 DUP3 GT PUSH2 0x18A9 JUMPI JUMP JUMPDEST SWAP1 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD SWAP2 DUP3 ISZERO PUSH2 0x1FB4 JUMPI DUP3 PUSH2 0x1F3A SWAP3 PUSH1 0x1E PUSH1 0x64 PUSH2 0x1F16 PUSH1 0x0 SWAP8 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP3 MOD LT PUSH2 0x1F3D JUMPI JUMPDEST POP POP PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE JUMP JUMPDEST PUSH2 0x1F96 DUP2 PUSH1 0x2 PUSH32 0x7A497B48779931A19DD3C9F9F85EA0EDF18E2ED7F9E0478ED1FCD451FD9D56B3 SWAP4 ADD SWAP1 DUP2 SLOAD PUSH1 0xA DUP2 DIV DUP1 SWAP2 GT DUP10 EQ PUSH2 0x1FA0 JUMPI PUSH2 0x1F82 SWAP2 POP DUP3 SLOAD PUSH2 0x1EC9 JUMP JUMPDEST DUP2 SSTORE JUMPDEST SLOAD PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE SWAP1 DUP2 SWAP1 PUSH1 0x20 DUP3 ADD SWAP1 JUMP JUMPDEST SUB SWAP1 LOG2 CODESIZE DUP1 PUSH2 0x1F1E JUMP JUMPDEST POP DUP8 DUP3 SSTORE PUSH1 0x4 ADD DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE PUSH2 0x1F85 JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x11 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x52657175657374206E6F7420666F756E64000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x9 SLOAD AND CALLER SUB PUSH2 0x200C JUMPI JUMP JUMPDEST PUSH1 0x24 PUSH1 0x40 MLOAD PUSH32 0x118CDAA700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE REVERT JUMPDEST PUSH2 0x2044 PUSH2 0x191A JUMP JUMPDEST POP PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD PUSH2 0x205B PUSH2 0x191A JUMP JUMPDEST SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP3 MSTORE PUSH8 0xFFFFFFFFFFFFFFFF DUP2 PUSH1 0xA0 SHR AND PUSH1 0x20 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND ISZERO ISZERO PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0xE8 SHR PUSH1 0x60 DUP3 ADD MSTORE SWAP1 JUMP JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x216 JUMPI MLOAD PUSH2 0x33E DUP2 PUSH2 0x1EC JUMP JUMPDEST RETURNDATASIZE ISZERO PUSH2 0x20D4 JUMPI RETURNDATASIZE SWAP1 PUSH2 0x20BA DUP3 PUSH2 0x11F9 JUMP JUMPDEST SWAP2 PUSH2 0x20C8 PUSH1 0x40 MLOAD SWAP4 DUP5 PUSH2 0x11C8 JUMP JUMPDEST DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY JUMP JUMPDEST PUSH1 0x60 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x20 SWAP2 PUSH2 0x213C SWAP4 PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 MLOAD DUP1 SWAP8 DUP2 SWAP7 DUP3 SWAP6 DUP5 PUSH32 0x150B7A0200000000000000000000000000000000000000000000000000000000 SWAP13 DUP14 DUP7 MSTORE CALLER PUSH1 0x4 DUP8 ADD MSTORE AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD MSTORE PUSH1 0x80 PUSH1 0x64 DUP5 ADD MSTORE PUSH1 0x84 DUP4 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST SUB SWAP4 AND GAS CALL PUSH1 0x0 SWAP2 DUP2 PUSH2 0x2191 JUMPI JUMPDEST POP PUSH2 0x216B JUMPI PUSH2 0x2157 PUSH2 0x20A9 JUMP JUMPDEST DUP1 MLOAD ISZERO PUSH2 0x2166 JUMPI DUP1 MLOAD SWAP1 PUSH1 0x20 ADD REVERT JUMPDEST PUSH2 0x1D26 JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND EQ SWAP1 JUMP JUMPDEST PUSH2 0x21B4 SWAP2 SWAP3 POP PUSH1 0x20 RETURNDATASIZE PUSH1 0x20 GT PUSH2 0x21BB JUMPI JUMPDEST PUSH2 0x21AC DUP2 DUP4 PUSH2 0x11C8 JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x2094 JUMP JUMPDEST SWAP1 CODESIZE PUSH2 0x214A JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0x21A2 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH5 0x9AB3CC62C0 SWAP4 PUSH5 0xC79C73543A 0xA7 0xB7 COINBASE INVALID PUSH8 0xAC724CA30A13292C SWAP3 BLOCKHASH COINBASE DUP8 STOP 0xC1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "314:5477:9:-:0;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;:::i;:::-;;-1:-1:-1;;;314:5477:9;;;;;;:::i;:::-;-1:-1:-1;;;314:5477:9;;;;;;;;-1:-1:-1;;;;;314:5477:9;;;;;;;5327:13:10;314:5477:9;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;5327:13:10;314:5477:9;;:::i;:::-;-1:-1:-1;314:5477:9;;1540:10;1273:26:0;1269:95;;1562:28:9;1600:27;1540:10;1392:12:0;1540:10:9;1392:12:0;:::i;:::-;1562:28:9;314:5477;;-1:-1:-1;;;;;;314:5477:9;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;;1562:28;314:5477;;;-1:-1:-1;;;;;;314:5477:9;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;;1600:27;314:5477;;;;;;;;;1269:95:0;314:5477:9;;-1:-1:-1;;;1322:31:0;;314:5477:9;1322:31:0;;;314:5477:9;;;1322:31:0;314:5477:9;;;;-1:-1:-1;314:5477:9;;;;;5327:13:10;314:5477:9;;-1:-1:-1;;314:5477:9;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5327:13:10;314:5477:9;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;:::o;:::-;;;;;;;-1:-1:-1;;314:5477:9;;;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;;;314:5477:9;;;;;;:::o;:::-;;;:::i;:::-;;;;;:::o;:::-;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;-1:-1:-1;314:5477:9;5327:13:10;-1:-1:-1;314:5477:9;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;:::o;:::-;-1:-1:-1;314:5477:9;5350:17:10;-1:-1:-1;314:5477:9;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;-1:-1:-1;;;;;314:5477:9;;;;;;;5350:17:10;314:5477:9;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5350:17:10;314:5477:9;:::o;:::-;5350:17:10;314:5477:9;;-1:-1:-1;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5350:17:10;314:5477:9;:::o;:::-;;;;;;;5350:17:10;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2912:187:0;3004:6;314:5477:9;;-1:-1:-1;;;;;314:5477:9;;;-1:-1:-1;;;;;;314:5477:9;;;;;;;;;;3052:40:0;-1:-1:-1;;3052:40:0;2912:187::o" + }, + "deployedBytecode": { + "functionDebugData": { + "abi_decode_address": { + "entryPoint": 1197, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "abi_decode_address_10137": { + "entryPoint": 1175, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "abi_decode_addresst_addresst_uint256": { + "entryPoint": 1483, + "id": null, + "parameterSlots": 1, + "returnSlots": 3 + }, + "abi_decode_available_length_bytes": { + "entryPoint": 4629, + "id": null, + "parameterSlots": 3, + "returnSlots": 1 + }, + "abi_decode_bytes4_fromMemory": { + "entryPoint": 8340, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_string_calldata": { + "entryPoint": 3707, + "id": null, + "parameterSlots": 2, + "returnSlots": 2 + }, + "abi_decode_uint128_fromMemory": { + "entryPoint": 6597, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_decode_uint64_fromMemory": { + "entryPoint": 6724, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_address": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_address_bytes32": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_array_uint256_dyn": { + "entryPoint": 2512, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_string": { + "entryPoint": 813, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_string_calldata": { + "entryPoint": 7340, + "id": null, + "parameterSlots": 3, + "returnSlots": 1 + }, + "abi_encode_string_calldata_string_calldata": { + "entryPoint": 7373, + "id": null, + "parameterSlots": 5, + "returnSlots": 1 + }, + "abi_encode_string_to_string": { + "entryPoint": 749, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_struct_PlaylistInfo": { + "entryPoint": 4212, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_uint256_address": { + "entryPoint": null, + "id": null, + "parameterSlots": 3, + "returnSlots": 1 + }, + "abi_encode_uint64": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "allocate_and_zero_memory_struct_struct_TokenOwnership": { + "entryPoint": 6426, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "allocate_memory": { + "entryPoint": 4586, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "array_allocation_size_array_uint256_dyn": { + "entryPoint": 6402, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "array_allocation_size_bytes": { + "entryPoint": 4601, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "array_dataslot_string_storage": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "checked_add_uint256": { + "entryPoint": 6299, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "checked_sub_uint256": { + "entryPoint": 7881, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "clean_up_bytearray_end_slots_string_storage": { + "entryPoint": 6745, + "id": null, + "parameterSlots": 3, + "returnSlots": 0 + }, + "cleanup_address": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "cleanup_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "copy_array_from_storage_to_memory_string": { + "entryPoint": 5151, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "copy_byte_array_to_storage_from_string_to_string": { + "entryPoint": 6831, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "copy_struct_to_storage_from_struct_PlaylistInfo_to_struct_PlaylistInfo": { + "entryPoint": 7045, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "decrement_wrapping_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "external_fun_DECAY_CHANCE": { + "entryPoint": 1994, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_GROWTH_PER_VOTE": { + "entryPoint": 2484, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_MAX_REPUTATION": { + "entryPoint": 4967, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_approve": { + "entryPoint": 1219, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_balanceOf": { + "entryPoint": 2336, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_entropyCallback": { + "entryPoint": 2040, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_getApproved": { + "entryPoint": 1066, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_getPlaylistInfo": { + "entryPoint": 4296, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_hasVoted": { + "entryPoint": 1882, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_isApprovedForAll": { + "entryPoint": 4995, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_mintPlaylist": { + "entryPoint": 3753, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_name": { + "entryPoint": 833, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_owner": { + "entryPoint": 3342, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_ownerOf": { + "entryPoint": 2289, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_pendingDecayRequests": { + "entryPoint": 4775, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_playlists": { + "entryPoint": 5314, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_renounceOwnership": { + "entryPoint": 2379, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_safeTransferFrom": { + "entryPoint": 4684, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_safeTransferFrom_2434": { + "entryPoint": 1959, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_setApprovalForAll": { + "entryPoint": 3549, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_supportsInterface": { + "entryPoint": 539, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_symbol": { + "entryPoint": 3381, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_tokenURI": { + "entryPoint": 4838, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_tokensOfOwner": { + "entryPoint": 2572, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_totalSupply": { + "entryPoint": 1448, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_transferFrom": { + "entryPoint": 1536, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_transferOwnership": { + "entryPoint": 5451, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_triggerDecay": { + "entryPoint": 2795, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_voteForPlaylist": { + "entryPoint": 1556, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "extract_byte_array_length": { + "entryPoint": 5093, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "extract_returndata": { + "entryPoint": 8361, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "extract_used_part_and_set_length_of_short_byte_array": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "finalize_allocation": { + "entryPoint": 4552, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "finalize_allocation_10178": { + "entryPoint": 4491, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "finalize_allocation_16043": { + "entryPoint": 4524, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "fun_balanceOf": { + "entryPoint": 6318, + "id": 1615, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_checkContractOnERC721Received": { + "entryPoint": 8409, + "id": 2556, + "parameterSlots": 4, + "returnSlots": 1 + }, + "fun_checkOwner": { + "entryPoint": 8184, + "id": 84, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_entropyCallback": { + "entryPoint": 7894, + "id": 1209, + "parameterSlots": 2, + "returnSlots": 0 + }, + "fun_exists": { + "entryPoint": 7504, + "id": 2199, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_getApprovedSlotAndAddress": { + "entryPoint": null, + "id": 2242, + "parameterSlots": 1, + "returnSlots": 2 + }, + "fun_isSenderApprovedOrOwner": { + "entryPoint": null, + "id": 2223, + "parameterSlots": 3, + "returnSlots": 1 + }, + "fun_ownershipAt": { + "entryPoint": 8252, + "id": 1854, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_packOwnershipData": { + "entryPoint": null, + "id": 2050, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_packedOwnershipOf": { + "entryPoint": 7756, + "id": 1984, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_revert": { + "entryPoint": 7571, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_10192": { + "entryPoint": 7613, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_10194": { + "entryPoint": 7655, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_10200": { + "entryPoint": 7697, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_10239": { + "entryPoint": 7739, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_10264": { + "entryPoint": null, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_safeTransferFrom": { + "entryPoint": 7412, + "id": 2474, + "parameterSlots": 4, + "returnSlots": 0 + }, + "fun_transferFrom": { + "entryPoint": 5623, + "id": 2415, + "parameterSlots": 3, + "returnSlots": 0 + }, + "increment_wrapping_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_address_mapping_uint256_bool_of_address": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "mapping_index_access_mapping_address_mapping_uint256_bool_of_address_10148": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_address_mapping_uint256_bool_of_address_10170": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_address_mapping_uint256_bool_of_address_10193": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_uint256_bool_of_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "mapping_index_access_mapping_uint256_bool_of_uint256_10143": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_uint256_bool_of_uint256_10169": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_uint64_uint256_of_uint64": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "memory_array_index_access_uint256_dyn": { + "entryPoint": 6480, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "panic_error_0x11": { + "entryPoint": 6277, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "panic_error_0x41": { + "entryPoint": 4469, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "read_from_storage_split_offset_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "require_helper_stringliteral": { + "entryPoint": 6202, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "require_helper_stringliteral_68bd": { + "entryPoint": 6649, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "require_helper_stringliteral_ab28": { + "entryPoint": 6127, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "require_helper_stringliteral_adad": { + "entryPoint": 6522, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "require_helper_stringliteral_af61": { + "entryPoint": 6052, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "revert_forward": { + "entryPoint": 6637, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "update_storage_value_offsett_bool_to_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "update_storage_value_offsett_bool_to_bool_10149": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "update_storage_value_offsett_bool_to_bool_10247": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "update_storage_value_offsett_uint256_to_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "validator_revert_bytes4": { + "entryPoint": 492, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "validator_revert_uint64": { + "entryPoint": 2022, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "write_to_memory_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + } + }, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d357806323b872dd146101ce57806341ac50b3146101c957806342545825146101c457806342842e0e146101bf5780634535f1c1146101ba57806352a5f1f8146101b55780636352211e146101b057806370a08231146101ab578063715018a6146101a657806377ee63f1146101a15780638462151c1461019c57806385de8b3c146101975780638da5cb5b1461019257806395d89b411461018d578063a22cb46514610188578063a7384a4c14610183578063a9182f3f1461017e578063b88d4fde14610179578063baccd1d214610174578063c87b56dd1461016f578063d213c0f21461016a578063e985e9c514610165578063ecc6362f146101605763f2fde38b1461015b57600080fd5b61154b565b6114c2565b611383565b611367565b6112e6565b6112a7565b61124c565b6110c8565b610ea9565b610ddd565b610d35565b610d0e565b610aeb565b610a0c565b6109b4565b61094b565b610920565b6108f1565b6107f8565b6107ca565b6107a7565b61075a565b610614565b610600565b6105a8565b6104c3565b61042a565b610341565b61021b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361021657565b600080fd5b346102165760203660031901126102165760207fffffffff0000000000000000000000000000000000000000000000000000000060043561025b816101ec565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156102c3575b8115610299575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861028e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610287565b919082519283825260005b848110610319575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016102f8565b90602061033e9281815201906102ed565b90565b346102165760008060031936011261042757604051908060025490610365826113e5565b808552916020916001918281169081156103fa57506001146103a2575b61039e86610392818803826111c8565b6040519182918261032d565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8385106103e7575050505081016020016103928261039e38610382565b80548686018401529382019381016103ca565b905086955061039e9693506020925061039294915060ff191682840152151560051b820101929338610382565b80fd5b346102165760203660031901126102165760043561044781611d50565b1561046d57600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361021657565b602435906001600160a01b038216820361021657565b6040366003190112610216576104d7610497565b6024356001600160a01b0391826104ed83611e4c565b1680330361054c575b6000938385526006602052604085209216918273ffffffffffffffffffffffffffffffffffffffff198254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff610578336040600020906001600160a01b0316600052602052604060002090565b54166104f6577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346102165760003660031901126102165760206000546001549003604051908152f35b6060906003190112610216576001600160a01b0390600435828116810361021657916024359081168103610216579060443590565b61061261060c366105cb565b916115f7565b005b346102165760203660031901126102165760043561063961063482611d50565b6117a4565b33600052600e60205261067361066e61066a61066384604060002090600052602052604060002090565b5460ff1690565b1590565b6117ef565b61069c610697600461068f84600052600c602052604060002090565b015460ff1690565b61183a565b7fa15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab2061074c60026106d684600052600c602052604060002090565b0160646106e3825461189b565b11610751576106f2815461189b565b81555b61073561072885610719336001600160a01b0316600052600e602052604060002090565b90600052602052604060002090565b805460ff19166001179055565b546040805191825233602083015290918291820190565b0390a2005b606481556106f5565b34610216576040366003190112610216576001600160a01b0361077b610497565b16600052600e6020526040600020602435600052602052602060ff604060002054166040519015158152f35b6106126107b3366105cb565b90604051926107c1846111ac565b60008452611cf4565b34610216576000366003190112610216576020604051601e8152f35b67ffffffffffffffff81160361021657565b3461021657606036600319011261021657600435610815816107e6565b61081d6104ad565b506001600160a01b03600a541680156108ad573303610843576106129060443590611ed6565b608460405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b346102165760203660031901126102165760206001600160a01b03610917600435611e4c565b16604051908152f35b3461021657602036600319011261021657602061094361093e610497565b6118ae565b604051908152f35b346102165760008060031936011261042757610965611ff8565b806001600160a01b0360095473ffffffffffffffffffffffffffffffffffffffff198116600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021657600036600319011261021657602060405160058152f35b602090602060408183019282815285518094520193019160005b8281106109f8575050505090565b8351855293810193928101926001016109ea565b3461021657602036600319011261021657610a25610497565b600080610a31836118ae565b91610a3b83611902565b93604091610a4c60405196876111c8565b848652601f19610a5b86611902565b01366020880137610a6a61191a565b506001600160a01b0391821692845b868603610a8e576040518061039e8a826109d0565b610a978161203c565b80830151610ae257516001600160a01b0316848116610ad9575b506001908585851614610ac5575b01610a79565b80610ad3838901988b611950565b52610abf565b92506001610ab1565b50600190610abf565b6020806003193601126102165760043590610b0861063483611d50565b610b24610697600461068f85600052600c602052604060002090565b610b466002610b3d84600052600c602052604060002090565b0154151561197a565b610b67610b5b600a546001600160a01b031690565b6001600160a01b031690565b90610b7a600b546001600160a01b031690565b6040517fb88c91480000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015290928282602481845afa908115610cdc576fffffffffffffffffffffffffffffffff610c3a928594600091610ce1575b501694610bee863410156119f9565b6040519586809481937f19cb825f0000000000000000000000000000000000000000000000000000000083526004830160206000919392936001600160a01b0360408201951681520152565b03925af18015610cdc577f6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e0739261074c92600092610caf575b505083610c938267ffffffffffffffff16600052600d602052604060002090565b5560405167ffffffffffffffff90911681529081906020820190565b610cce9250803d10610cd5575b610cc681836111c8565b810190611a44565b3880610c72565b503d610cbc565b6119ed565b610d019150853d8711610d07575b610cf981836111c8565b8101906119c5565b38610bdf565b503d610cef565b346102165760003660031901126102165760206001600160a01b0360095416604051908152f35b346102165760008060031936011261042757604051908060035490610d59826113e5565b808552916020916001918281169081156103fa5750600114610d855761039e86610392818803826111c8565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510610dca575050505081016020016103928261039e38610382565b8054868601840152938201938101610dad565b3461021657604036600319011261021657610df6610497565b6024358015159182820361021657610e4b6001600160a01b0392336000526007602052610e3a836040600020906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b9181601f840112156102165782359167ffffffffffffffff8311610216576020838186019501011161021657565b3461021657606036600319011261021657610ec2610497565b67ffffffffffffffff9060243582811161021657610ee4903690600401610e7b565b909260443590811161021657610efe903690600401610e7b565b600094916001600160a01b03865495610f2a81600160e11b906001600160a01b034260a01b9116171790565b610f3e886000526004602052604060002090565b55610f5c816001600160a01b03166000526005602052604060002090565b6801000000000000000181540190551695861561106f57600186810197879180805b61102a575b505050508594927fc3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2949261039e98611017935561100b610fc16111ea565b610fcc368888611215565b8152610fd9368585611215565b6020820152603260408201524260608201526001608082015261100689600052600c602052604060002090565b611b85565b60405194859485611ccd565b0390a26040519081529081906020820190565b1561105e575b83818484877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4610f7e565b809201918983036110305780610f83565b611d93565b6020815260a060806110aa611094855184602087015260c08601906102ed565b6020860151858203601f190160408701526102ed565b93604081015160608501526060810151828501520151151591015290565b346102165760203660031901126102165761039e6004356040906000608083516110f18161118b565b60608152606060208201528285820152826060820152015261111561063482611d50565b600052600c602052806000209060ff60048251936111328561118b565b61113b8161141f565b85526111496001820161141f565b602086015260028101548486015260038101546060860152015416151560808301525191829182611074565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff8211176111a757604052565b611175565b6020810190811067ffffffffffffffff8211176111a757604052565b90601f8019910116810190811067ffffffffffffffff8211176111a757604052565b604051906111f78261118b565b565b67ffffffffffffffff81116111a757601f01601f191660200190565b929192611221826111f9565b9161122f60405193846111c8565b829481845281830111610216578281602093846000960137010152565b608036600319011261021657611260610497565b6112686104ad565b6064359167ffffffffffffffff831161021657366023840112156102165761129d610612933690602481600401359101611215565b9160443591611cf4565b346102165760203660031901126102165767ffffffffffffffff6004356112cd816107e6565b16600052600d6020526020604060002054604051908152f35b3461021657602036600319011261021657611302600435611d50565b1561133d576000604051611315816111ac565b5261039e604051611325816111ac565b600081526040519182916020835260208301906102ed565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461021657600036600319011261021657602060405160648152f35b3461021657604036600319011261021657602060ff6113d96113a3610497565b6001600160a01b036113b36104ad565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b90600182811c92168015611415575b60208310146113ff57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113f4565b90604051918260008254611432816113e5565b908184526020946001916001811690816000146114a05750600114611461575b5050506111f7925003836111c8565b600090815285812095935091905b8183106114885750506111f79350820101388080611452565b8554888401850152948501948794509183019161146f565b925050506111f794925060ff191682840152151560051b820101388080611452565b3461021657602036600319011261021657600435600052600c60205261152760406000206114ef8161141f565b906114fc6001820161141f565b60028201549161153560ff60046003840154930154169260405196879660a0885260a08801906102ed565b9086820360208801526102ed565b9260408501526060840152151560808301520390f35b3461021657602036600319011261021657611564610497565b61156c611ff8565b6001600160a01b038091169081156115c6576009548273ffffffffffffffffffffffffffffffffffffffff19821617600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b91909161160382611e4c565b926001600160a01b0380921693848382160361179f57600084815260066020526040902080546116426001600160a01b03881633908114908314171590565b611756575b61174c575b5061166a856001600160a01b03166000526005602052604060002090565b805460001901905561168f826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b176116bf856000526004602052604060002090565b55600160e11b811615611702575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4156116fd57565b611e11565b6001840161171a816000526004602052604060002090565b5415611727575b506116cd565b600054811461172157611744906000526004602052604060002090565b553880611721565b600090553861164c565b61179561066a6106633361177d8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b1561164757611de7565b611dbd565b156117ab57565b606460405162461bcd60e51b815260206004820152601760248201527f506c61796c69737420646f6573206e6f742065786973740000000000000000006044820152fd5b156117f657565b606460405162461bcd60e51b815260206004820152601f60248201527f416c726561647920766f74656420666f72207468697320706c61796c697374006044820152fd5b1561184157565b606460405162461bcd60e51b815260206004820152601460248201527f506c61796c69737420697320696e6163746976650000000000000000000000006044820152fd5b634e487b7160e01b600052601160045260246000fd5b90600582018092116118a957565b611885565b6001600160a01b031680156118d857600052600560205267ffffffffffffffff6040600020541690565b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b67ffffffffffffffff81116111a75760051b60200190565b604051906080820182811067ffffffffffffffff8211176111a75760405260006060838281528260208201528260408201520152565b80518210156119645760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561198157565b606460405162461bcd60e51b815260206004820152601d60248201527f52657075746174696f6e20616c7265616479206174206d696e696d756d0000006044820152fd5b9081602091031261021657516fffffffffffffffffffffffffffffffff811681036102165790565b6040513d6000823e3d90fd5b15611a0057565b606460405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768206665657300000000000000000000000000000000006044820152fd5b90816020910312610216575161033e816107e6565b90601f8111611a6757505050565b6000916000526020600020906020601f850160051c83019410611aa5575b601f0160051c01915b828110611a9a57505050565b818155600101611a8e565b9092508290611a85565b919091825167ffffffffffffffff81116111a757611ad781611ad184546113e5565b84611a59565b602080601f8311600114611b1a57508190611b0b939495600092611b0f575b50508160011b916000199060031b1c19161790565b9055565b015190503880611af6565b90601f19831695611b3085600052602060002090565b926000905b888210611b6d57505083600195969710611b54575b505050811b019055565b015160001960f88460031b161c19169055388080611b4a565b80600185968294968601518155019501930190611b35565b919091825192835167ffffffffffffffff81116111a757611bb081611baa85546113e5565b85611a59565b602080601f8311600114611c305750600492611bee83611c1d946080946111f7999a600092611b0f5750508160011b916000199060031b1c19161790565b85555b611c02602082015160018701611aaf565b60408101516002860155606081015160038601550151151590565b91019060ff801983541691151516179055565b90601f19831696611c4686600052602060002090565b926000905b898210611c945750508360809360049693600193611c1d976111f79b9c10611c7b575b505050811b018555611bf1565b015160001960f88460031b161c19169055388080611c6e565b80600185968294968601518155019501930190611c4b565b908060209392818452848401376000828201840152601f01601f1916010190565b9290611ce69061033e9593604086526040860191611cac565b926020818503910152611cac565b929190611d028282866115f7565b803b611d0f575b50505050565b611d18936120d9565b15611d265738808080611d09565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210611d62575050565b92505b8083526004602052604083205480611d87575080156118a95760001901611d65565b600160e01b1615925050565b7f2e0763000000000000000000000000000000000000000000000000000000000060005260046000fd5b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b611e60816000526004602052604060002090565b54908115611e775750600160e01b8116611e3b5790565b9050600090600054811015611e3b575b60001901600081815260046020526040902054908115611ec25750600160e01b811615611ebd57600482636f96cda160e11b8152fd5b905090565b9050611e87565b919082039182116118a957565b9067ffffffffffffffff8216600052600d602052604060002054918215611fb45782611f3a92601e6064611f16600097600052600c602052604060002090565b920610611f3d575b505067ffffffffffffffff16600052600d602052604060002090565b55565b611f968160027f7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b39301908154600a81048091118914611fa057611f8291508254611ec9565b81555b546040519081529081906020820190565b0390a23880611f1e565b50878255600401805460ff19169055611f85565b606460405162461bcd60e51b815260206004820152601160248201527f52657175657374206e6f7420666f756e640000000000000000000000000000006044820152fd5b6001600160a01b0360095416330361200c57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b61204461191a565b50600052600460205260406000205461205b61191a565b906001600160a01b038116825267ffffffffffffffff8160a01c166020830152600160e01b81161515604083015260e81c606082015290565b90816020910312610216575161033e816101ec565b3d156120d4573d906120ba826111f9565b916120c860405193846111c8565b82523d6000602084013e565b606090565b9260209161213c9360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906102ed565b0393165af160009181612191575b5061216b576121576120a9565b80511561216657805190602001fd5b611d26565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6121b491925060203d6020116121bb575b6121ac81836111c8565b810190612094565b903861214a565b503d6121a256fea2646970667358221220649ab3cc62c09364c79c73543aa7b741fe67ac724ca30a13292c9240418700c164736f6c63430008180033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT ISZERO PUSH2 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0x1E7 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x1E2 JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0x1DD JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x1D8 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x1D3 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x1CE JUMPI DUP1 PUSH4 0x41AC50B3 EQ PUSH2 0x1C9 JUMPI DUP1 PUSH4 0x42545825 EQ PUSH2 0x1C4 JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0x1BF JUMPI DUP1 PUSH4 0x4535F1C1 EQ PUSH2 0x1BA JUMPI DUP1 PUSH4 0x52A5F1F8 EQ PUSH2 0x1B5 JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0x1B0 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x1AB JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x1A6 JUMPI DUP1 PUSH4 0x77EE63F1 EQ PUSH2 0x1A1 JUMPI DUP1 PUSH4 0x8462151C EQ PUSH2 0x19C JUMPI DUP1 PUSH4 0x85DE8B3C EQ PUSH2 0x197 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x192 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x18D JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0x188 JUMPI DUP1 PUSH4 0xA7384A4C EQ PUSH2 0x183 JUMPI DUP1 PUSH4 0xA9182F3F EQ PUSH2 0x17E JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0x179 JUMPI DUP1 PUSH4 0xBACCD1D2 EQ PUSH2 0x174 JUMPI DUP1 PUSH4 0xC87B56DD EQ PUSH2 0x16F JUMPI DUP1 PUSH4 0xD213C0F2 EQ PUSH2 0x16A JUMPI DUP1 PUSH4 0xE985E9C5 EQ PUSH2 0x165 JUMPI DUP1 PUSH4 0xECC6362F EQ PUSH2 0x160 JUMPI PUSH4 0xF2FDE38B EQ PUSH2 0x15B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x154B JUMP JUMPDEST PUSH2 0x14C2 JUMP JUMPDEST PUSH2 0x1383 JUMP JUMPDEST PUSH2 0x1367 JUMP JUMPDEST PUSH2 0x12E6 JUMP JUMPDEST PUSH2 0x12A7 JUMP JUMPDEST PUSH2 0x124C JUMP JUMPDEST PUSH2 0x10C8 JUMP JUMPDEST PUSH2 0xEA9 JUMP JUMPDEST PUSH2 0xDDD JUMP JUMPDEST PUSH2 0xD35 JUMP JUMPDEST PUSH2 0xD0E JUMP JUMPDEST PUSH2 0xAEB JUMP JUMPDEST PUSH2 0xA0C JUMP JUMPDEST PUSH2 0x9B4 JUMP JUMPDEST PUSH2 0x94B JUMP JUMPDEST PUSH2 0x920 JUMP JUMPDEST PUSH2 0x8F1 JUMP JUMPDEST PUSH2 0x7F8 JUMP JUMPDEST PUSH2 0x7CA JUMP JUMPDEST PUSH2 0x7A7 JUMP JUMPDEST PUSH2 0x75A JUMP JUMPDEST PUSH2 0x614 JUMP JUMPDEST PUSH2 0x600 JUMP JUMPDEST PUSH2 0x5A8 JUMP JUMPDEST PUSH2 0x4C3 JUMP JUMPDEST PUSH2 0x42A JUMP JUMPDEST PUSH2 0x341 JUMP JUMPDEST PUSH2 0x21B JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 DUP2 AND SUB PUSH2 0x216 JUMPI JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH1 0x4 CALLDATALOAD PUSH2 0x25B DUP2 PUSH2 0x1EC JUMP JUMPDEST AND PUSH32 0x1FFC9A700000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP1 DUP2 ISZERO PUSH2 0x2C3 JUMPI JUMPDEST DUP2 ISZERO PUSH2 0x299 JUMPI JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST PUSH32 0x5B5E139F00000000000000000000000000000000000000000000000000000000 SWAP2 POP EQ CODESIZE PUSH2 0x28E JUMP JUMPDEST PUSH32 0x80AC58CD00000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP2 POP PUSH2 0x287 JUMP JUMPDEST SWAP2 SWAP1 DUP3 MLOAD SWAP3 DUP4 DUP3 MSTORE PUSH1 0x0 JUMPDEST DUP5 DUP2 LT PUSH2 0x319 JUMPI POP POP DUP3 PUSH1 0x0 PUSH1 0x20 DUP1 SWAP5 SWAP6 DUP5 ADD ADD MSTORE PUSH1 0x1F DUP1 NOT SWAP2 ADD AND ADD ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP2 DUP4 ADD DUP2 ADD MLOAD DUP5 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0x2F8 JUMP JUMPDEST SWAP1 PUSH1 0x20 PUSH2 0x33E SWAP3 DUP2 DUP2 MSTORE ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST SWAP1 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x427 JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x2 SLOAD SWAP1 PUSH2 0x365 DUP3 PUSH2 0x13E5 JUMP JUMPDEST DUP1 DUP6 MSTORE SWAP2 PUSH1 0x20 SWAP2 PUSH1 0x1 SWAP2 DUP3 DUP2 AND SWAP1 DUP2 ISZERO PUSH2 0x3FA JUMPI POP PUSH1 0x1 EQ PUSH2 0x3A2 JUMPI JUMPDEST PUSH2 0x39E DUP7 PUSH2 0x392 DUP2 DUP9 SUB DUP3 PUSH2 0x11C8 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 DUP3 PUSH2 0x32D JUMP JUMPDEST SUB SWAP1 RETURN JUMPDEST SWAP4 POP PUSH1 0x2 DUP5 MSTORE PUSH32 0x405787FA12A823E0F2B7631CC41B3BA8828B3321CA811111FA75CD3AA3BB5ACE JUMPDEST DUP4 DUP6 LT PUSH2 0x3E7 JUMPI POP POP POP POP DUP2 ADD PUSH1 0x20 ADD PUSH2 0x392 DUP3 PUSH2 0x39E CODESIZE PUSH2 0x382 JUMP JUMPDEST DUP1 SLOAD DUP7 DUP7 ADD DUP5 ADD MSTORE SWAP4 DUP3 ADD SWAP4 DUP2 ADD PUSH2 0x3CA JUMP JUMPDEST SWAP1 POP DUP7 SWAP6 POP PUSH2 0x39E SWAP7 SWAP4 POP PUSH1 0x20 SWAP3 POP PUSH2 0x392 SWAP5 SWAP2 POP PUSH1 0xFF NOT AND DUP3 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0x5 SHL DUP3 ADD ADD SWAP3 SWAP4 CODESIZE PUSH2 0x382 JUMP JUMPDEST DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x447 DUP2 PUSH2 0x1D50 JUMP JUMPDEST ISZERO PUSH2 0x46D JUMPI PUSH1 0x0 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH32 0xCF4700E400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x216 JUMPI JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x216 JUMPI JUMP JUMPDEST PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x4D7 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 PUSH2 0x4ED DUP4 PUSH2 0x1E4C JUMP JUMPDEST AND DUP1 CALLER SUB PUSH2 0x54C JUMPI JUMPDEST PUSH1 0x0 SWAP4 DUP4 DUP6 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 DUP6 KECCAK256 SWAP3 AND SWAP2 DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP3 SLOAD AND OR SWAP1 SSTORE PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 DUP5 DUP1 LOG4 DUP1 RETURN JUMPDEST DUP1 PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0xFF PUSH2 0x578 CALLER PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH2 0x4F6 JUMPI PUSH32 0xCFB3B94200000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x0 SLOAD PUSH1 0x1 SLOAD SWAP1 SUB PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH1 0x60 SWAP1 PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 PUSH1 0x4 CALLDATALOAD DUP3 DUP2 AND DUP2 SUB PUSH2 0x216 JUMPI SWAP2 PUSH1 0x24 CALLDATALOAD SWAP1 DUP2 AND DUP2 SUB PUSH2 0x216 JUMPI SWAP1 PUSH1 0x44 CALLDATALOAD SWAP1 JUMP JUMPDEST PUSH2 0x612 PUSH2 0x60C CALLDATASIZE PUSH2 0x5CB JUMP JUMPDEST SWAP2 PUSH2 0x15F7 JUMP JUMPDEST STOP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x639 PUSH2 0x634 DUP3 PUSH2 0x1D50 JUMP JUMPDEST PUSH2 0x17A4 JUMP JUMPDEST CALLER PUSH1 0x0 MSTORE PUSH1 0xE PUSH1 0x20 MSTORE PUSH2 0x673 PUSH2 0x66E PUSH2 0x66A PUSH2 0x663 DUP5 PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x17EF JUMP JUMPDEST PUSH2 0x69C PUSH2 0x697 PUSH1 0x4 PUSH2 0x68F DUP5 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ADD SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH2 0x183A JUMP JUMPDEST PUSH32 0xA15EA89CB51FC8F208D4FA88319ED1C6E182726C46C64F91DCA36F6D7FE2AB20 PUSH2 0x74C PUSH1 0x2 PUSH2 0x6D6 DUP5 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ADD PUSH1 0x64 PUSH2 0x6E3 DUP3 SLOAD PUSH2 0x189B JUMP JUMPDEST GT PUSH2 0x751 JUMPI PUSH2 0x6F2 DUP2 SLOAD PUSH2 0x189B JUMP JUMPDEST DUP2 SSTORE JUMPDEST PUSH2 0x735 PUSH2 0x728 DUP6 PUSH2 0x719 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0xE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE JUMP JUMPDEST SLOAD PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE CALLER PUSH1 0x20 DUP4 ADD MSTORE SWAP1 SWAP2 DUP3 SWAP2 DUP3 ADD SWAP1 JUMP JUMPDEST SUB SWAP1 LOG2 STOP JUMPDEST PUSH1 0x64 DUP2 SSTORE PUSH2 0x6F5 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x77B PUSH2 0x497 JUMP JUMPDEST AND PUSH1 0x0 MSTORE PUSH1 0xE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 PUSH1 0x24 CALLDATALOAD PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0xFF PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST PUSH2 0x612 PUSH2 0x7B3 CALLDATASIZE PUSH2 0x5CB JUMP JUMPDEST SWAP1 PUSH1 0x40 MLOAD SWAP3 PUSH2 0x7C1 DUP5 PUSH2 0x11AC JUMP JUMPDEST PUSH1 0x0 DUP5 MSTORE PUSH2 0x1CF4 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x1E DUP2 MSTORE RETURN JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 AND SUB PUSH2 0x216 JUMPI JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x815 DUP2 PUSH2 0x7E6 JUMP JUMPDEST PUSH2 0x81D PUSH2 0x4AD JUMP JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0xA SLOAD AND DUP1 ISZERO PUSH2 0x8AD JUMPI CALLER SUB PUSH2 0x843 JUMPI PUSH2 0x612 SWAP1 PUSH1 0x44 CALLDATALOAD SWAP1 PUSH2 0x1ED6 JUMP JUMPDEST PUSH1 0x84 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C7920456E74726F70792063616E2063616C6C20746869732066756E6374 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x696F6E0000000000000000000000000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x456E74726F70792061646472657373206E6F7420736574000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x917 PUSH1 0x4 CALLDATALOAD PUSH2 0x1E4C JUMP JUMPDEST AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH2 0x943 PUSH2 0x93E PUSH2 0x497 JUMP JUMPDEST PUSH2 0x18AE JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x427 JUMPI PUSH2 0x965 PUSH2 0x1FF8 JUMP JUMPDEST DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x9 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP2 AND PUSH1 0x9 SSTORE AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 DUP3 DUP1 LOG3 DUP1 RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x5 DUP2 MSTORE RETURN JUMPDEST PUSH1 0x20 SWAP1 PUSH1 0x20 PUSH1 0x40 DUP2 DUP4 ADD SWAP3 DUP3 DUP2 MSTORE DUP6 MLOAD DUP1 SWAP5 MSTORE ADD SWAP4 ADD SWAP2 PUSH1 0x0 JUMPDEST DUP3 DUP2 LT PUSH2 0x9F8 JUMPI POP POP POP POP SWAP1 JUMP JUMPDEST DUP4 MLOAD DUP6 MSTORE SWAP4 DUP2 ADD SWAP4 SWAP3 DUP2 ADD SWAP3 PUSH1 0x1 ADD PUSH2 0x9EA JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0xA25 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xA31 DUP4 PUSH2 0x18AE JUMP JUMPDEST SWAP2 PUSH2 0xA3B DUP4 PUSH2 0x1902 JUMP JUMPDEST SWAP4 PUSH1 0x40 SWAP2 PUSH2 0xA4C PUSH1 0x40 MLOAD SWAP7 DUP8 PUSH2 0x11C8 JUMP JUMPDEST DUP5 DUP7 MSTORE PUSH1 0x1F NOT PUSH2 0xA5B DUP7 PUSH2 0x1902 JUMP JUMPDEST ADD CALLDATASIZE PUSH1 0x20 DUP9 ADD CALLDATACOPY PUSH2 0xA6A PUSH2 0x191A JUMP JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND SWAP3 DUP5 JUMPDEST DUP7 DUP7 SUB PUSH2 0xA8E JUMPI PUSH1 0x40 MLOAD DUP1 PUSH2 0x39E DUP11 DUP3 PUSH2 0x9D0 JUMP JUMPDEST PUSH2 0xA97 DUP2 PUSH2 0x203C JUMP JUMPDEST DUP1 DUP4 ADD MLOAD PUSH2 0xAE2 JUMPI MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 DUP2 AND PUSH2 0xAD9 JUMPI JUMPDEST POP PUSH1 0x1 SWAP1 DUP6 DUP6 DUP6 AND EQ PUSH2 0xAC5 JUMPI JUMPDEST ADD PUSH2 0xA79 JUMP JUMPDEST DUP1 PUSH2 0xAD3 DUP4 DUP10 ADD SWAP9 DUP12 PUSH2 0x1950 JUMP JUMPDEST MSTORE PUSH2 0xABF JUMP JUMPDEST SWAP3 POP PUSH1 0x1 PUSH2 0xAB1 JUMP JUMPDEST POP PUSH1 0x1 SWAP1 PUSH2 0xABF JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD SWAP1 PUSH2 0xB08 PUSH2 0x634 DUP4 PUSH2 0x1D50 JUMP JUMPDEST PUSH2 0xB24 PUSH2 0x697 PUSH1 0x4 PUSH2 0x68F DUP6 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH2 0xB46 PUSH1 0x2 PUSH2 0xB3D DUP5 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ADD SLOAD ISZERO ISZERO PUSH2 0x197A JUMP JUMPDEST PUSH2 0xB67 PUSH2 0xB5B PUSH1 0xA SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST SWAP1 PUSH2 0xB7A PUSH1 0xB SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xB88C914800000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x4 DUP3 ADD MSTORE SWAP1 SWAP3 DUP3 DUP3 PUSH1 0x24 DUP2 DUP5 GAS STATICCALL SWAP1 DUP2 ISZERO PUSH2 0xCDC JUMPI PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH2 0xC3A SWAP3 DUP6 SWAP5 PUSH1 0x0 SWAP2 PUSH2 0xCE1 JUMPI JUMPDEST POP AND SWAP5 PUSH2 0xBEE DUP7 CALLVALUE LT ISZERO PUSH2 0x19F9 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP6 DUP7 DUP1 SWAP5 DUP2 SWAP4 PUSH32 0x19CB825F00000000000000000000000000000000000000000000000000000000 DUP4 MSTORE PUSH1 0x4 DUP4 ADD PUSH1 0x20 PUSH1 0x0 SWAP2 SWAP4 SWAP3 SWAP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 DUP3 ADD SWAP6 AND DUP2 MSTORE ADD MSTORE JUMP JUMPDEST SUB SWAP3 GAS CALL DUP1 ISZERO PUSH2 0xCDC JUMPI PUSH32 0x6B73C3AFB9DE0065BCE909A5C6990021F060EFC3B19313411293559B0238E073 SWAP3 PUSH2 0x74C SWAP3 PUSH1 0x0 SWAP3 PUSH2 0xCAF JUMPI JUMPDEST POP POP DUP4 PUSH2 0xC93 DUP3 PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH1 0x40 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE SWAP1 DUP2 SWAP1 PUSH1 0x20 DUP3 ADD SWAP1 JUMP JUMPDEST PUSH2 0xCCE SWAP3 POP DUP1 RETURNDATASIZE LT PUSH2 0xCD5 JUMPI JUMPDEST PUSH2 0xCC6 DUP2 DUP4 PUSH2 0x11C8 JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x1A44 JUMP JUMPDEST CODESIZE DUP1 PUSH2 0xC72 JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0xCBC JUMP JUMPDEST PUSH2 0x19ED JUMP JUMPDEST PUSH2 0xD01 SWAP2 POP DUP6 RETURNDATASIZE DUP8 GT PUSH2 0xD07 JUMPI JUMPDEST PUSH2 0xCF9 DUP2 DUP4 PUSH2 0x11C8 JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x19C5 JUMP JUMPDEST CODESIZE PUSH2 0xBDF JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0xCEF JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x9 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x427 JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x3 SLOAD SWAP1 PUSH2 0xD59 DUP3 PUSH2 0x13E5 JUMP JUMPDEST DUP1 DUP6 MSTORE SWAP2 PUSH1 0x20 SWAP2 PUSH1 0x1 SWAP2 DUP3 DUP2 AND SWAP1 DUP2 ISZERO PUSH2 0x3FA JUMPI POP PUSH1 0x1 EQ PUSH2 0xD85 JUMPI PUSH2 0x39E DUP7 PUSH2 0x392 DUP2 DUP9 SUB DUP3 PUSH2 0x11C8 JUMP JUMPDEST SWAP4 POP PUSH1 0x3 DUP5 MSTORE PUSH32 0xC2575A0E9E593C00F959F8C92F12DB2869C3395A3B0502D05E2516446F71F85B JUMPDEST DUP4 DUP6 LT PUSH2 0xDCA JUMPI POP POP POP POP DUP2 ADD PUSH1 0x20 ADD PUSH2 0x392 DUP3 PUSH2 0x39E CODESIZE PUSH2 0x382 JUMP JUMPDEST DUP1 SLOAD DUP7 DUP7 ADD DUP5 ADD MSTORE SWAP4 DUP3 ADD SWAP4 DUP2 ADD PUSH2 0xDAD JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0xDF6 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD DUP1 ISZERO ISZERO SWAP2 DUP3 DUP3 SUB PUSH2 0x216 JUMPI PUSH2 0xE4B PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 CALLER PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH2 0xE3A DUP4 PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP3 DUP4 MSTORE AND SWAP1 PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 PUSH1 0x20 CALLER SWAP3 LOG3 STOP JUMPDEST SWAP2 DUP2 PUSH1 0x1F DUP5 ADD SLT ISZERO PUSH2 0x216 JUMPI DUP3 CALLDATALOAD SWAP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT PUSH2 0x216 JUMPI PUSH1 0x20 DUP4 DUP2 DUP7 ADD SWAP6 ADD ADD GT PUSH2 0x216 JUMPI JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x60 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0xEC2 PUSH2 0x497 JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF SWAP1 PUSH1 0x24 CALLDATALOAD DUP3 DUP2 GT PUSH2 0x216 JUMPI PUSH2 0xEE4 SWAP1 CALLDATASIZE SWAP1 PUSH1 0x4 ADD PUSH2 0xE7B JUMP JUMPDEST SWAP1 SWAP3 PUSH1 0x44 CALLDATALOAD SWAP1 DUP2 GT PUSH2 0x216 JUMPI PUSH2 0xEFE SWAP1 CALLDATASIZE SWAP1 PUSH1 0x4 ADD PUSH2 0xE7B JUMP JUMPDEST PUSH1 0x0 SWAP5 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 SLOAD SWAP6 PUSH2 0xF2A DUP2 PUSH1 0x1 PUSH1 0xE1 SHL SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB TIMESTAMP PUSH1 0xA0 SHL SWAP2 AND OR OR SWAP1 JUMP JUMPDEST PUSH2 0xF3E DUP9 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH2 0xF5C DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH9 0x10000000000000001 DUP2 SLOAD ADD SWAP1 SSTORE AND SWAP6 DUP7 ISZERO PUSH2 0x106F JUMPI PUSH1 0x1 DUP7 DUP2 ADD SWAP8 DUP8 SWAP2 DUP1 DUP1 JUMPDEST PUSH2 0x102A JUMPI JUMPDEST POP POP POP POP DUP6 SWAP5 SWAP3 PUSH32 0xC3C15E44ADC8E6B4DDD1CA6261359E4970BB28B9530420D68222C21D2E80BCC2 SWAP5 SWAP3 PUSH2 0x39E SWAP9 PUSH2 0x1017 SWAP4 SSTORE PUSH2 0x100B PUSH2 0xFC1 PUSH2 0x11EA JUMP JUMPDEST PUSH2 0xFCC CALLDATASIZE DUP9 DUP9 PUSH2 0x1215 JUMP JUMPDEST DUP2 MSTORE PUSH2 0xFD9 CALLDATASIZE DUP6 DUP6 PUSH2 0x1215 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x32 PUSH1 0x40 DUP3 ADD MSTORE TIMESTAMP PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x80 DUP3 ADD MSTORE PUSH2 0x1006 DUP10 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH2 0x1B85 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP5 DUP6 SWAP5 DUP6 PUSH2 0x1CCD JUMP JUMPDEST SUB SWAP1 LOG2 PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE SWAP1 DUP2 SWAP1 PUSH1 0x20 DUP3 ADD SWAP1 JUMP JUMPDEST ISZERO PUSH2 0x105E JUMPI JUMPDEST DUP4 DUP2 DUP5 DUP5 DUP8 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF DUP2 DUP1 LOG4 PUSH2 0xF7E JUMP JUMPDEST DUP1 SWAP3 ADD SWAP2 DUP10 DUP4 SUB PUSH2 0x1030 JUMPI DUP1 PUSH2 0xF83 JUMP JUMPDEST PUSH2 0x1D93 JUMP JUMPDEST PUSH1 0x20 DUP2 MSTORE PUSH1 0xA0 PUSH1 0x80 PUSH2 0x10AA PUSH2 0x1094 DUP6 MLOAD DUP5 PUSH1 0x20 DUP8 ADD MSTORE PUSH1 0xC0 DUP7 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST PUSH1 0x20 DUP7 ADD MLOAD DUP6 DUP3 SUB PUSH1 0x1F NOT ADD PUSH1 0x40 DUP8 ADD MSTORE PUSH2 0x2ED JUMP JUMPDEST SWAP4 PUSH1 0x40 DUP2 ADD MLOAD PUSH1 0x60 DUP6 ADD MSTORE PUSH1 0x60 DUP2 ADD MLOAD DUP3 DUP6 ADD MSTORE ADD MLOAD ISZERO ISZERO SWAP2 ADD MSTORE SWAP1 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x39E PUSH1 0x4 CALLDATALOAD PUSH1 0x40 SWAP1 PUSH1 0x0 PUSH1 0x80 DUP4 MLOAD PUSH2 0x10F1 DUP2 PUSH2 0x118B JUMP JUMPDEST PUSH1 0x60 DUP2 MSTORE PUSH1 0x60 PUSH1 0x20 DUP3 ADD MSTORE DUP3 DUP6 DUP3 ADD MSTORE DUP3 PUSH1 0x60 DUP3 ADD MSTORE ADD MSTORE PUSH2 0x1115 PUSH2 0x634 DUP3 PUSH2 0x1D50 JUMP JUMPDEST PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE DUP1 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0xFF PUSH1 0x4 DUP3 MLOAD SWAP4 PUSH2 0x1132 DUP6 PUSH2 0x118B JUMP JUMPDEST PUSH2 0x113B DUP2 PUSH2 0x141F JUMP JUMPDEST DUP6 MSTORE PUSH2 0x1149 PUSH1 0x1 DUP3 ADD PUSH2 0x141F JUMP JUMPDEST PUSH1 0x20 DUP7 ADD MSTORE PUSH1 0x2 DUP2 ADD SLOAD DUP5 DUP7 ADD MSTORE PUSH1 0x3 DUP2 ADD SLOAD PUSH1 0x60 DUP7 ADD MSTORE ADD SLOAD AND ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE MLOAD SWAP2 DUP3 SWAP2 DUP3 PUSH2 0x1074 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0xA0 DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH2 0x1175 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 PUSH2 0x11F7 DUP3 PUSH2 0x118B JUMP JUMPDEST JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH1 0x1F ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 SWAP2 SWAP3 PUSH2 0x1221 DUP3 PUSH2 0x11F9 JUMP JUMPDEST SWAP2 PUSH2 0x122F PUSH1 0x40 MLOAD SWAP4 DUP5 PUSH2 0x11C8 JUMP JUMPDEST DUP3 SWAP5 DUP2 DUP5 MSTORE DUP2 DUP4 ADD GT PUSH2 0x216 JUMPI DUP3 DUP2 PUSH1 0x20 SWAP4 DUP5 PUSH1 0x0 SWAP7 ADD CALLDATACOPY ADD ADD MSTORE JUMP JUMPDEST PUSH1 0x80 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x1260 PUSH2 0x497 JUMP JUMPDEST PUSH2 0x1268 PUSH2 0x4AD JUMP JUMPDEST PUSH1 0x64 CALLDATALOAD SWAP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT PUSH2 0x216 JUMPI CALLDATASIZE PUSH1 0x23 DUP5 ADD SLT ISZERO PUSH2 0x216 JUMPI PUSH2 0x129D PUSH2 0x612 SWAP4 CALLDATASIZE SWAP1 PUSH1 0x24 DUP2 PUSH1 0x4 ADD CALLDATALOAD SWAP2 ADD PUSH2 0x1215 JUMP JUMPDEST SWAP2 PUSH1 0x44 CALLDATALOAD SWAP2 PUSH2 0x1CF4 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH8 0xFFFFFFFFFFFFFFFF PUSH1 0x4 CALLDATALOAD PUSH2 0x12CD DUP2 PUSH2 0x7E6 JUMP JUMPDEST AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x1302 PUSH1 0x4 CALLDATALOAD PUSH2 0x1D50 JUMP JUMPDEST ISZERO PUSH2 0x133D JUMPI PUSH1 0x0 PUSH1 0x40 MLOAD PUSH2 0x1315 DUP2 PUSH2 0x11AC JUMP JUMPDEST MSTORE PUSH2 0x39E PUSH1 0x40 MLOAD PUSH2 0x1325 DUP2 PUSH2 0x11AC JUMP JUMPDEST PUSH1 0x0 DUP2 MSTORE PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 PUSH1 0x20 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST PUSH32 0xA14C4B5000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x64 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x20 PUSH1 0xFF PUSH2 0x13D9 PUSH2 0x13A3 PUSH2 0x497 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x13B3 PUSH2 0x4AD JUMP JUMPDEST SWAP2 AND PUSH1 0x0 MSTORE PUSH1 0x7 DUP5 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST SWAP1 PUSH1 0x1 DUP3 DUP2 SHR SWAP3 AND DUP1 ISZERO PUSH2 0x1415 JUMPI JUMPDEST PUSH1 0x20 DUP4 LT EQ PUSH2 0x13FF JUMPI JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP2 PUSH1 0x7F AND SWAP2 PUSH2 0x13F4 JUMP JUMPDEST SWAP1 PUSH1 0x40 MLOAD SWAP2 DUP3 PUSH1 0x0 DUP3 SLOAD PUSH2 0x1432 DUP2 PUSH2 0x13E5 JUMP JUMPDEST SWAP1 DUP2 DUP5 MSTORE PUSH1 0x20 SWAP5 PUSH1 0x1 SWAP2 PUSH1 0x1 DUP2 AND SWAP1 DUP2 PUSH1 0x0 EQ PUSH2 0x14A0 JUMPI POP PUSH1 0x1 EQ PUSH2 0x1461 JUMPI JUMPDEST POP POP POP PUSH2 0x11F7 SWAP3 POP SUB DUP4 PUSH2 0x11C8 JUMP JUMPDEST PUSH1 0x0 SWAP1 DUP2 MSTORE DUP6 DUP2 KECCAK256 SWAP6 SWAP4 POP SWAP2 SWAP1 JUMPDEST DUP2 DUP4 LT PUSH2 0x1488 JUMPI POP POP PUSH2 0x11F7 SWAP4 POP DUP3 ADD ADD CODESIZE DUP1 DUP1 PUSH2 0x1452 JUMP JUMPDEST DUP6 SLOAD DUP9 DUP5 ADD DUP6 ADD MSTORE SWAP5 DUP6 ADD SWAP5 DUP8 SWAP5 POP SWAP2 DUP4 ADD SWAP2 PUSH2 0x146F JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x11F7 SWAP5 SWAP3 POP PUSH1 0xFF NOT AND DUP3 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0x5 SHL DUP3 ADD ADD CODESIZE DUP1 DUP1 PUSH2 0x1452 JUMP JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH1 0x4 CALLDATALOAD PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH2 0x1527 PUSH1 0x40 PUSH1 0x0 KECCAK256 PUSH2 0x14EF DUP2 PUSH2 0x141F JUMP JUMPDEST SWAP1 PUSH2 0x14FC PUSH1 0x1 DUP3 ADD PUSH2 0x141F JUMP JUMPDEST PUSH1 0x2 DUP3 ADD SLOAD SWAP2 PUSH2 0x1535 PUSH1 0xFF PUSH1 0x4 PUSH1 0x3 DUP5 ADD SLOAD SWAP4 ADD SLOAD AND SWAP3 PUSH1 0x40 MLOAD SWAP7 DUP8 SWAP7 PUSH1 0xA0 DUP9 MSTORE PUSH1 0xA0 DUP9 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST SWAP1 DUP7 DUP3 SUB PUSH1 0x20 DUP9 ADD MSTORE PUSH2 0x2ED JUMP JUMPDEST SWAP3 PUSH1 0x40 DUP6 ADD MSTORE PUSH1 0x60 DUP5 ADD MSTORE ISZERO ISZERO PUSH1 0x80 DUP4 ADD MSTORE SUB SWAP1 RETURN JUMPDEST CALLVALUE PUSH2 0x216 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x216 JUMPI PUSH2 0x1564 PUSH2 0x497 JUMP JUMPDEST PUSH2 0x156C PUSH2 0x1FF8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 SWAP2 AND SWAP1 DUP2 ISZERO PUSH2 0x15C6 JUMPI PUSH1 0x9 SLOAD DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT DUP3 AND OR PUSH1 0x9 SSTORE AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x0 DUP1 LOG3 STOP JUMPDEST PUSH1 0x24 PUSH1 0x40 MLOAD PUSH32 0x1E4FBDF700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x0 PUSH1 0x4 DUP3 ADD MSTORE REVERT JUMPDEST SWAP2 SWAP1 SWAP2 PUSH2 0x1603 DUP3 PUSH2 0x1E4C JUMP JUMPDEST SWAP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 SWAP3 AND SWAP4 DUP5 DUP4 DUP3 AND SUB PUSH2 0x179F JUMPI PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH2 0x1642 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND CALLER SWAP1 DUP2 EQ SWAP1 DUP4 EQ OR ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x1756 JUMPI JUMPDEST PUSH2 0x174C JUMPI JUMPDEST POP PUSH2 0x166A DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x0 NOT ADD SWAP1 SSTORE PUSH2 0x168F DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND TIMESTAMP PUSH1 0xA0 SHL OR PUSH1 0x1 PUSH1 0xE1 SHL OR PUSH2 0x16BF DUP6 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH1 0x1 PUSH1 0xE1 SHL DUP2 AND ISZERO PUSH2 0x1702 JUMPI JUMPDEST POP AND DUP1 SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF PUSH1 0x0 DUP1 LOG4 ISZERO PUSH2 0x16FD JUMPI JUMP JUMPDEST PUSH2 0x1E11 JUMP JUMPDEST PUSH1 0x1 DUP5 ADD PUSH2 0x171A DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD ISZERO PUSH2 0x1727 JUMPI JUMPDEST POP PUSH2 0x16CD JUMP JUMPDEST PUSH1 0x0 SLOAD DUP2 EQ PUSH2 0x1721 JUMPI PUSH2 0x1744 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE CODESIZE DUP1 PUSH2 0x1721 JUMP JUMPDEST PUSH1 0x0 SWAP1 SSTORE CODESIZE PUSH2 0x164C JUMP JUMPDEST PUSH2 0x1795 PUSH2 0x66A PUSH2 0x663 CALLER PUSH2 0x177D DUP12 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST ISZERO PUSH2 0x1647 JUMPI PUSH2 0x1DE7 JUMP JUMPDEST PUSH2 0x1DBD JUMP JUMPDEST ISZERO PUSH2 0x17AB JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x17 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x506C61796C69737420646F6573206E6F74206578697374000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST ISZERO PUSH2 0x17F6 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1F PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x416C726561647920766F74656420666F72207468697320706C61796C69737400 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST ISZERO PUSH2 0x1841 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x506C61796C69737420697320696E616374697665000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x5 DUP3 ADD DUP1 SWAP3 GT PUSH2 0x18A9 JUMPI JUMP JUMPDEST PUSH2 0x1885 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP1 ISZERO PUSH2 0x18D8 JUMPI PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH8 0xFFFFFFFFFFFFFFFF PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND SWAP1 JUMP JUMPDEST PUSH32 0x8F4EB60400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH1 0x5 SHL PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 PUSH1 0x80 DUP3 ADD DUP3 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x11A7 JUMPI PUSH1 0x40 MSTORE PUSH1 0x0 PUSH1 0x60 DUP4 DUP3 DUP2 MSTORE DUP3 PUSH1 0x20 DUP3 ADD MSTORE DUP3 PUSH1 0x40 DUP3 ADD MSTORE ADD MSTORE JUMP JUMPDEST DUP1 MLOAD DUP3 LT ISZERO PUSH2 0x1964 JUMPI PUSH1 0x20 SWAP2 PUSH1 0x5 SHL ADD ADD SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ISZERO PUSH2 0x1981 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1D PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x52657075746174696F6E20616C7265616479206174206D696E696D756D000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x216 JUMPI MLOAD PUSH16 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 SUB PUSH2 0x216 JUMPI SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY RETURNDATASIZE SWAP1 REVERT JUMPDEST ISZERO PUSH2 0x1A00 JUMPI JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420656E6F75676820666565730000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x216 JUMPI MLOAD PUSH2 0x33E DUP2 PUSH2 0x7E6 JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP2 GT PUSH2 0x1A67 JUMPI POP POP POP JUMP JUMPDEST PUSH1 0x0 SWAP2 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x20 PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP4 ADD SWAP5 LT PUSH2 0x1AA5 JUMPI JUMPDEST PUSH1 0x1F ADD PUSH1 0x5 SHR ADD SWAP2 JUMPDEST DUP3 DUP2 LT PUSH2 0x1A9A JUMPI POP POP POP JUMP JUMPDEST DUP2 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x1A8E JUMP JUMPDEST SWAP1 SWAP3 POP DUP3 SWAP1 PUSH2 0x1A85 JUMP JUMPDEST SWAP2 SWAP1 SWAP2 DUP3 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH2 0x1AD7 DUP2 PUSH2 0x1AD1 DUP5 SLOAD PUSH2 0x13E5 JUMP JUMPDEST DUP5 PUSH2 0x1A59 JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 EQ PUSH2 0x1B1A JUMPI POP DUP2 SWAP1 PUSH2 0x1B0B SWAP4 SWAP5 SWAP6 PUSH1 0x0 SWAP3 PUSH2 0x1B0F JUMPI JUMPDEST POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST SWAP1 SSTORE JUMP JUMPDEST ADD MLOAD SWAP1 POP CODESIZE DUP1 PUSH2 0x1AF6 JUMP JUMPDEST SWAP1 PUSH1 0x1F NOT DUP4 AND SWAP6 PUSH2 0x1B30 DUP6 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x0 SWAP1 JUMPDEST DUP9 DUP3 LT PUSH2 0x1B6D JUMPI POP POP DUP4 PUSH1 0x1 SWAP6 SWAP7 SWAP8 LT PUSH2 0x1B54 JUMPI JUMPDEST POP POP POP DUP2 SHL ADD SWAP1 SSTORE JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH2 0x1B4A JUMP JUMPDEST DUP1 PUSH1 0x1 DUP6 SWAP7 DUP3 SWAP5 SWAP7 DUP7 ADD MLOAD DUP2 SSTORE ADD SWAP6 ADD SWAP4 ADD SWAP1 PUSH2 0x1B35 JUMP JUMPDEST SWAP2 SWAP1 SWAP2 DUP3 MLOAD SWAP3 DUP4 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x11A7 JUMPI PUSH2 0x1BB0 DUP2 PUSH2 0x1BAA DUP6 SLOAD PUSH2 0x13E5 JUMP JUMPDEST DUP6 PUSH2 0x1A59 JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 EQ PUSH2 0x1C30 JUMPI POP PUSH1 0x4 SWAP3 PUSH2 0x1BEE DUP4 PUSH2 0x1C1D SWAP5 PUSH1 0x80 SWAP5 PUSH2 0x11F7 SWAP10 SWAP11 PUSH1 0x0 SWAP3 PUSH2 0x1B0F JUMPI POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST DUP6 SSTORE JUMPDEST PUSH2 0x1C02 PUSH1 0x20 DUP3 ADD MLOAD PUSH1 0x1 DUP8 ADD PUSH2 0x1AAF JUMP JUMPDEST PUSH1 0x40 DUP2 ADD MLOAD PUSH1 0x2 DUP7 ADD SSTORE PUSH1 0x60 DUP2 ADD MLOAD PUSH1 0x3 DUP7 ADD SSTORE ADD MLOAD ISZERO ISZERO SWAP1 JUMP JUMPDEST SWAP2 ADD SWAP1 PUSH1 0xFF DUP1 NOT DUP4 SLOAD AND SWAP2 ISZERO ISZERO AND OR SWAP1 SSTORE JUMP JUMPDEST SWAP1 PUSH1 0x1F NOT DUP4 AND SWAP7 PUSH2 0x1C46 DUP7 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x0 SWAP1 JUMPDEST DUP10 DUP3 LT PUSH2 0x1C94 JUMPI POP POP DUP4 PUSH1 0x80 SWAP4 PUSH1 0x4 SWAP7 SWAP4 PUSH1 0x1 SWAP4 PUSH2 0x1C1D SWAP8 PUSH2 0x11F7 SWAP12 SWAP13 LT PUSH2 0x1C7B JUMPI JUMPDEST POP POP POP DUP2 SHL ADD DUP6 SSTORE PUSH2 0x1BF1 JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH2 0x1C6E JUMP JUMPDEST DUP1 PUSH1 0x1 DUP6 SWAP7 DUP3 SWAP5 SWAP7 DUP7 ADD MLOAD DUP2 SSTORE ADD SWAP6 ADD SWAP4 ADD SWAP1 PUSH2 0x1C4B JUMP JUMPDEST SWAP1 DUP1 PUSH1 0x20 SWAP4 SWAP3 DUP2 DUP5 MSTORE DUP5 DUP5 ADD CALLDATACOPY PUSH1 0x0 DUP3 DUP3 ADD DUP5 ADD MSTORE PUSH1 0x1F ADD PUSH1 0x1F NOT AND ADD ADD SWAP1 JUMP JUMPDEST SWAP3 SWAP1 PUSH2 0x1CE6 SWAP1 PUSH2 0x33E SWAP6 SWAP4 PUSH1 0x40 DUP7 MSTORE PUSH1 0x40 DUP7 ADD SWAP2 PUSH2 0x1CAC JUMP JUMPDEST SWAP3 PUSH1 0x20 DUP2 DUP6 SUB SWAP2 ADD MSTORE PUSH2 0x1CAC JUMP JUMPDEST SWAP3 SWAP2 SWAP1 PUSH2 0x1D02 DUP3 DUP3 DUP7 PUSH2 0x15F7 JUMP JUMPDEST DUP1 EXTCODESIZE PUSH2 0x1D0F JUMPI JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0x1D18 SWAP4 PUSH2 0x20D9 JUMP JUMPDEST ISZERO PUSH2 0x1D26 JUMPI CODESIZE DUP1 DUP1 DUP1 PUSH2 0x1D09 JUMP JUMPDEST PUSH32 0xD1A57ED600000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 SWAP2 PUSH1 0x0 DUP1 SLOAD DUP3 LT PUSH2 0x1D62 JUMPI POP POP JUMP JUMPDEST SWAP3 POP JUMPDEST DUP1 DUP4 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 DUP4 KECCAK256 SLOAD DUP1 PUSH2 0x1D87 JUMPI POP DUP1 ISZERO PUSH2 0x18A9 JUMPI PUSH1 0x0 NOT ADD PUSH2 0x1D65 JUMP JUMPDEST PUSH1 0x1 PUSH1 0xE0 SHL AND ISZERO SWAP3 POP POP JUMP JUMPDEST PUSH32 0x2E07630000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0xA114810000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x59C896BE00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0xEA553B3400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH2 0x1E60 DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD SWAP1 DUP2 ISZERO PUSH2 0x1E77 JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND PUSH2 0x1E3B JUMPI SWAP1 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 SWAP1 PUSH1 0x0 SLOAD DUP2 LT ISZERO PUSH2 0x1E3B JUMPI JUMPDEST PUSH1 0x0 NOT ADD PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 DUP2 ISZERO PUSH2 0x1EC2 JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND ISZERO PUSH2 0x1EBD JUMPI PUSH1 0x4 DUP3 PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL DUP2 MSTORE REVERT JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST SWAP1 POP PUSH2 0x1E87 JUMP JUMPDEST SWAP2 SWAP1 DUP3 SUB SWAP2 DUP3 GT PUSH2 0x18A9 JUMPI JUMP JUMPDEST SWAP1 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD SWAP2 DUP3 ISZERO PUSH2 0x1FB4 JUMPI DUP3 PUSH2 0x1F3A SWAP3 PUSH1 0x1E PUSH1 0x64 PUSH2 0x1F16 PUSH1 0x0 SWAP8 PUSH1 0x0 MSTORE PUSH1 0xC PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP3 MOD LT PUSH2 0x1F3D JUMPI JUMPDEST POP POP PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH1 0x0 MSTORE PUSH1 0xD PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE JUMP JUMPDEST PUSH2 0x1F96 DUP2 PUSH1 0x2 PUSH32 0x7A497B48779931A19DD3C9F9F85EA0EDF18E2ED7F9E0478ED1FCD451FD9D56B3 SWAP4 ADD SWAP1 DUP2 SLOAD PUSH1 0xA DUP2 DIV DUP1 SWAP2 GT DUP10 EQ PUSH2 0x1FA0 JUMPI PUSH2 0x1F82 SWAP2 POP DUP3 SLOAD PUSH2 0x1EC9 JUMP JUMPDEST DUP2 SSTORE JUMPDEST SLOAD PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE SWAP1 DUP2 SWAP1 PUSH1 0x20 DUP3 ADD SWAP1 JUMP JUMPDEST SUB SWAP1 LOG2 CODESIZE DUP1 PUSH2 0x1F1E JUMP JUMPDEST POP DUP8 DUP3 SSTORE PUSH1 0x4 ADD DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE PUSH2 0x1F85 JUMP JUMPDEST PUSH1 0x64 PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x11 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x52657175657374206E6F7420666F756E64000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x9 SLOAD AND CALLER SUB PUSH2 0x200C JUMPI JUMP JUMPDEST PUSH1 0x24 PUSH1 0x40 MLOAD PUSH32 0x118CDAA700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE REVERT JUMPDEST PUSH2 0x2044 PUSH2 0x191A JUMP JUMPDEST POP PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD PUSH2 0x205B PUSH2 0x191A JUMP JUMPDEST SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP3 MSTORE PUSH8 0xFFFFFFFFFFFFFFFF DUP2 PUSH1 0xA0 SHR AND PUSH1 0x20 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND ISZERO ISZERO PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0xE8 SHR PUSH1 0x60 DUP3 ADD MSTORE SWAP1 JUMP JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x216 JUMPI MLOAD PUSH2 0x33E DUP2 PUSH2 0x1EC JUMP JUMPDEST RETURNDATASIZE ISZERO PUSH2 0x20D4 JUMPI RETURNDATASIZE SWAP1 PUSH2 0x20BA DUP3 PUSH2 0x11F9 JUMP JUMPDEST SWAP2 PUSH2 0x20C8 PUSH1 0x40 MLOAD SWAP4 DUP5 PUSH2 0x11C8 JUMP JUMPDEST DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY JUMP JUMPDEST PUSH1 0x60 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x20 SWAP2 PUSH2 0x213C SWAP4 PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 MLOAD DUP1 SWAP8 DUP2 SWAP7 DUP3 SWAP6 DUP5 PUSH32 0x150B7A0200000000000000000000000000000000000000000000000000000000 SWAP13 DUP14 DUP7 MSTORE CALLER PUSH1 0x4 DUP8 ADD MSTORE AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD MSTORE PUSH1 0x80 PUSH1 0x64 DUP5 ADD MSTORE PUSH1 0x84 DUP4 ADD SWAP1 PUSH2 0x2ED JUMP JUMPDEST SUB SWAP4 AND GAS CALL PUSH1 0x0 SWAP2 DUP2 PUSH2 0x2191 JUMPI JUMPDEST POP PUSH2 0x216B JUMPI PUSH2 0x2157 PUSH2 0x20A9 JUMP JUMPDEST DUP1 MLOAD ISZERO PUSH2 0x2166 JUMPI DUP1 MLOAD SWAP1 PUSH1 0x20 ADD REVERT JUMPDEST PUSH2 0x1D26 JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND EQ SWAP1 JUMP JUMPDEST PUSH2 0x21B4 SWAP2 SWAP3 POP PUSH1 0x20 RETURNDATASIZE PUSH1 0x20 GT PUSH2 0x21BB JUMPI JUMPDEST PUSH2 0x21AC DUP2 DUP4 PUSH2 0x11C8 JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0x2094 JUMP JUMPDEST SWAP1 CODESIZE PUSH2 0x214A JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0x21A2 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH5 0x9AB3CC62C0 SWAP4 PUSH5 0xC79C73543A 0xA7 0xB7 COINBASE INVALID PUSH8 0xAC724CA30A13292C SWAP3 BLOCKHASH COINBASE DUP8 STOP 0xC1 PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "314:5477:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;;;;;;:::o;:::-;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;;;;;;:::i;:::-;;;11092:25:10;;:101;;;;;314:5477:9;11092:177:10;;;;314:5477:9;;;;;;;;;;11092:177:10;314:5477:9;11244:25:10;;;11092:177;;;:101;314:5477:9;11168:25:10;;;-1:-1:-1;11092:101:10;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;11659:5:10;314:5477:9;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;11659:5:10;314:5477:9;;;;;;;;;-1:-1:-1;;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;18736:16:10;;;:::i;:::-;18735:17;18731:73;;-1:-1:-1;314:5477:9;18822:15:10;314:5477:9;;;-1:-1:-1;;;;;314:5477:9;-1:-1:-1;314:5477:9;;;;;;;;;18731:73:10;18762:41;-1:-1:-1;49766:91:10;314:5477:9;-1:-1:-1;49766:91:10;314:5477:9;;;;-1:-1:-1;;;;;314:5477:9;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;314:5477:9;;;;;;:::o;:::-;;;-1:-1:-1;;314:5477:9;;;;;;:::i;:::-;;;-1:-1:-1;;;;;13048:27:10;;;;;:::i;:::-;314:5477:9;47819:10:10;;41521:28;41500:198;;314:5477:9;-1:-1:-1;314:5477:9;;;;41708:15:10;314:5477:9;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;41758:28:10;;;;314:5477:9;;41500:198:10;314:5477:9;-1:-1:-1;314:5477:9;19687:18:10;314:5477:9;;;19687:35:10;47819:10;314:5477:9;-1:-1:-1;314:5477:9;;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;19687:35:10;314:5477:9;;41500:198:10;41563:135;41640:42;-1:-1:-1;49766:91:10;;-1:-1:-1;49766:91:10;314:5477:9;;;;;;-1:-1:-1;;314:5477:9;;;;;;;7328:12:10;314:5477:9;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;2280:52;2288:16;;;:::i;:::-;2280:52;:::i;:::-;2360:10;-1:-1:-1;314:5477:9;2351:8;314:5477;;2342:74;2350:30;2351:29;;314:5477;;-1:-1:-1;314:5477:9;;;;;;;;;;;2351:29;314:5477;;;;;2351:29;2350:30;;314:5477;2350:30;2342:74;:::i;:::-;2426:60;2434:27;314:5477;2434:18;;314:5477;;2434:9;314:5477;;;;;;;2434:18;:27;314:5477;;;;;2434:27;2426:60;:::i;:::-;2879:57;;2623:19;2537:18;;314:5477;;2434:9;314:5477;;;;;;;2537:18;2623:19;993:3;2623:37;314:5477;;2623:37;:::i;:::-;:55;993:3;;2694:38;314:5477;;2694:38;:::i;:::-;2943:14:10;;2619:191:9;2828:36;:29;2360:10;2828:20;2360:10;-1:-1:-1;;;;;314:5477:9;;;2351:8;314:5477;;;;;;;2828:20;314:5477;;;;;;;;;;2828:29;314:5477;;-1:-1:-1;;314:5477:9;2860:4;314:5477;;;;2828:36;314:5477;;;;;;;2360:10;314:5477;;;;;;;;;;;;2879:57;;;;314:5477;2619:191;993:3;2943:14:10;;2619:191:9;;314:5477;;;;;;-1:-1:-1;;314:5477:9;;;;-1:-1:-1;;;;;314:5477:9;;:::i;:::-;;-1:-1:-1;314:5477:9;836:60;314:5477;;;-1:-1:-1;314:5477:9;;;-1:-1:-1;314:5477:9;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;26475:39:10;314:5477:9;;;:::i;:::-;;;;;;;;:::i;:::-;;;;26475:39:10;:::i;314:5477:9:-;;;;;;-1:-1:-1;;314:5477:9;;;;;;;1090:2;314:5477;;;;;;;;;;:::o;:::-;;;;;;-1:-1:-1;;314:5477:9;;;;;;;;;:::i;:::-;;;:::i;:::-;;-1:-1:-1;;;;;4698:7:9;314:5477;;487:21:7;;314:5477:9;;554:10:7;:21;314:5477:9;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;-1:-1:-1;;;;;13048:27:10;314:5477:9;;13048:27:10;:::i;:::-;314:5477:9;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;;;1500:62:0;;:::i;:::-;314:5477:9;-1:-1:-1;;;;;3004:6:0;314:5477:9;-1:-1:-1;;314:5477:9;;3004:6:0;314:5477:9;;3052:40:0;;;;314:5477:9;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;;1044:1;314:5477;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;:::i;:::-;-1:-1:-1;5111:25:9;5175:16;;;:::i;:::-;314:5477;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;314:5477:9;;;:::i;:::-;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;314:5477:9;;;;5343:27;5388:29;;;;;;314:5477;;;;;;;:::i;5435:3::-;5483:15;;;:::i;:::-;5520:16;;;314:5477;5516:30;;314:5477;-1:-1:-1;;;;;314:5477:9;;;;5564:88;;5435:3;314:5477;2943:14:10;314:5477:9;;;;;5674:26;5670:59;;5435:3;2943:14:10;5343:27:9;;5670:59;5711:13;5702:27;5711:13;;2943:14:10;5702:27:9;;;:::i;:::-;314:5477;5670:59;;5564:88;;-1:-1:-1;2943:14:10;5564:88:9;;5516:30;5538:8;2943:14:10;5538:8:9;;;314:5477;;;;;;;;;;;;3070:16;3062:52;3070:16;;;:::i;3062:52::-;3124:60;3132:27;314:5477;3132:18;;314:5477;;2434:9;314:5477;;;;;;;3124:60;3194:75;3202:29;:18;;314:5477;;2434:9;314:5477;;;;;;;3202:18;:29;314:5477;3202:33;;3194:75;:::i;:::-;3309:14;314:5477;3309:7;314:5477;-1:-1:-1;;;;;314:5477:9;;;;-1:-1:-1;;;;;314:5477:9;;;3309:14;314:5477;;3324:15;314:5477;-1:-1:-1;;;;;314:5477:9;;;;;;;3309:31;;-1:-1:-1;;;;;314:5477:9;;;3309:31;;314:5477;;;3309:31;314:5477;;;;3309:31;;;;;;;314:5477;3436:141;3309:31;;;-1:-1:-1;3309:31:9;;;314:5477;;;3358:9;3350:51;3358:9;;:23;;3350:51;:::i;:::-;314:5477;;3436:141;;;;;;314:5477;3436:141;;314:5477;3436:141;;314:5477;3234:1;314:5477;;;;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;3436:141;;;;;;;;;3649:39;3436:141;3649:39;3436:141;-1:-1:-1;3436:141:9;;;314:5477;3588:36;;;;;314:5477;;;;3588:20;314:5477;;;;;;;3588:36;2943:14:10;314:5477:9;;;;;;;;;;;;;;;;3436:141;;;;;;-1:-1:-1;3436:141:9;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;;;;:::i;3309:31::-;;;;;;;;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;314:5477;;;;;;-1:-1:-1;;314:5477:9;;;;;-1:-1:-1;;;;;1710:6:0;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;11830:7:10;314:5477:9;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;11830:7:10;314:5477:9;;;;;;;;;-1:-1:-1;;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;:::i;:::-;;;;;;;;;;;;19280:60:10;-1:-1:-1;;;;;47819:10:10;;-1:-1:-1;314:5477:9;19280:18:10;314:5477:9;;19280:49:10;314:5477:9;;-1:-1:-1;314:5477:9;;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;19280:49:10;314:5477:9;;;;;;;;;;;;;;;19280:60:10;314:5477:9;;;;;;47819:10:10;19355:55;314:5477:9;47819:10:10;19355:55;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;-1:-1:-1;;314:5477:9;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;;;314:5477:9;;31357:136:10;;;-1:-1:-1;;;17086:443:10;-1:-1:-1;;;;;17192:331:10;;;;;;;17086:443;;31357:136;31323:31;;314:5477:9;;;;;;;;;;31323:31:10;2943:14;31704:22;;-1:-1:-1;;;;;314:5477:9;;;31704:18:10;314:5477:9;;;;;;;31704:22:10;31742:32;314:5477:9;;;2943:14:10;;314:5477:9;31960:13:10;;;31956:54;;1868:1:9;314:5477;;;;;;1868:1;;;;;32213:662:10;2943:14;;;;;;;2141:41:9;2943:14:10;;314:5477:9;2943:14:10;2141:41:9;2943:14:10;;314:5477:9;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;1910:207;;314:5477;2009:2;314:5477;1910:207;;314:5477;2063:15;314:5477;1910:207;;314:5477;1868:1;1910:207;;;314:5477;1889:18;;314:5477;;2434:9;314:5477;;;;;;;1889:18;314:5477;:::i;:::-;;;2141:41;;;;;:::i;:::-;;;;314:5477;;;;;;;;;;;;;32213:662:10;;;;;32857:16;32234:450;;;;;;;;32213:662;;;2943:14;;;32857:16;;;;32213:662;32857:16;;;;31956:54;31983:26;:::i;314:5477:9:-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;-1:-1:-1;;314:5477:9;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;4867:52;4875:16;;;:::i;4867:52::-;-1:-1:-1;314:5477:9;4936:9;314:5477;;;-1:-1:-1;314:5477:9;;;;;;;;;;:::i;:::-;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;:::i;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;:::i;:::-;:::o;:::-;;;;;;;;-1:-1:-1;;314:5477:9;;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;:::o;:::-;;;-1:-1:-1;;314:5477:9;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;-1:-1:-1;;314:5477:9;;;;;;;;;;:::i;:::-;;-1:-1:-1;314:5477:9;747:54;314:5477;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;12048:16:10;314:5477:9;;12048:16:10;:::i;:::-;12047:17;12043:68;;-1:-1:-1;314:5477:9;;;;;:::i;:::-;;;;;;;;:::i;:::-;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;:::i;12043:68:10:-;12074:36;-1:-1:-1;49766:91:10;314:5477:9;-1:-1:-1;49766:91:10;314:5477:9;;;;;;-1:-1:-1;;314:5477:9;;;;;;;993:3;314:5477;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;19687:35:10;314:5477:9;;:::i;:::-;-1:-1:-1;;;;;314:5477:9;;:::i;:::-;;;-1:-1:-1;314:5477:9;19687:18:10;314:5477:9;;;-1:-1:-1;314:5477:9;;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;19687:35:10;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;314:5477:9;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;-1:-1:-1;314:5477:9;692:49;314:5477;;;;-1:-1:-1;314:5477:9;692:49;;;:::i;:::-;;;;;;;:::i;:::-;;;;314:5477;692:49;314:5477;;;692:49;;;314:5477;692:49;;314:5477;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;314:5477:9;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;314:5477:9;;;2627:22:0;;;2623:91;;3004:6;314:5477:9;;-1:-1:-1;;314:5477:9;;;3004:6:0;314:5477:9;;3052:40:0;-1:-1:-1;3052:40:0;;314:5477:9;2623:91:0;314:5477:9;;;2672:31:0;;;-1:-1:-1;314:5477:9;2672:31:0;;314:5477:9;2672:31:0;22796:3447:10;;;;22963:27;;;:::i;:::-;314:5477:9;-1:-1:-1;;;;;314:5477:9;;;;;;;;23173:45:10;23169:95;;-1:-1:-1;314:5477:9;;;21929:15:10;314:5477:9;;;;;22057:132:10;;23463:69;-1:-1:-1;;;;;21135:472:10;;47819:10;21135:472;;;;;;;2350:30:9;;314:5477;23463:69:10;23459:188;;22796:3447;23764:190;;22796:3447;24316:24;;;-1:-1:-1;;;;;314:5477:9;;;31704:18:10;314:5477:9;;;;;;;24316:24:10;314:5477:9;;-1:-1:-1;;2943:14:10;;;24384:22;;-1:-1:-1;;;;;314:5477:9;;;31704:18:10;314:5477:9;;;;;;;24384:22:10;314:5477:9;;2943:14:10;;;;-1:-1:-1;;;;;17192:331:10;;;;;;-1:-1:-1;;;17192:331:10;24670:26;;314:5477:9;;;;;;;;;;24670:26:10;2943:14;-1:-1:-1;;;24959:47:10;;:52;24955:617;;22796:3447;314:5477:9;;25749:367:10;;;-1:-1:-1;25749:367:10;;26129:13;26125:58;;22796:3447::o;26125:58::-;26152:30;:::i;24955:617::-;25063:1;314:5477:9;;25184:30:10;;314:5477:9;;;;;;;;;;25184:30:10;314:5477:9;25184:35:10;25180:378;;24955:617;;;;25180:378;-1:-1:-1;314:5477:9;25301:239:10;;25180:378;25301:239;25465:30;;314:5477:9;;;;;;;;;;25465:30:10;2943:14;25301:239;;25180:378;;23764:190;;;;;;;23459:188;23550:44;19687:35;;47819:10;19687:25;;-1:-1:-1;;;;;314:5477:9;;;19687:18:10;314:5477:9;;;;;;;19687:25:10;314:5477:9;-1:-1:-1;;;;;314:5477:9;;;;;;;;;;23550:44:10;23546:101;23459:188;23546:101;23604:42;:::i;23169:95::-;23228:35;:::i;314:5477:9:-;;;;:::o;:::-;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;1044:1;314:5477;;;;;;;:::o;:::-;;:::i;8570:239:10:-;-1:-1:-1;;;;;314:5477:9;8665:19:10;;8661:69;;8682:1;314:5477:9;8747:18:10;314:5477:9;;1518:13:10;314:5477:9;8682:1:10;314:5477:9;;8747:55:10;8570:239;:::o;8661:69::-;8694:35;8682:1;49766:91;;8682:1;49766:91;314:5477:9;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::o;:::-;-1:-1:-1;314:5477:9;-1:-1:-1;314:5477:9;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;2943:14:10;;;314:5477:9;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;2943:14:10;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2943:14:10;;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;2943:14:10;314:5477:9;;;;;;;2943:14:10;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2943:14:10;;314:5477:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;314:5477:9;;;;;;;;-1:-1:-1;;314:5477:9;;;;:::o;:::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;27102:405:10:-;;;;27294:7;;;;;:::i;:::-;27316:14;;27312:189;;27102:405;;;;;:::o;27312:189::-;27354:56;;;:::i;:::-;27353:57;27349:152;;27312:189;;;;;;27349:152;27438:47;27334:1;49766:91;;27334:1;49766:91;19978:465;;314:5477:9;20043:11:10;314:5477:9;;;20221:23:10;;20217:210;;19978:465;;:::o;20217:210::-;20264:14;;20296:60;314:5477:9;;;20313:17:10;314:5477:9;;;;;;20303:42:10;;;314:5477:9;;;;;-1:-1:-1;;314:5477:9;20296:60:10;;20303:42;-1:-1:-1;;;20383:24:10;:29;;-1:-1:-1;;19978:465:10:o;49703:160::-;31983:26;49766:91;;;;;49703:160;23228:35;49766:91;;;;;49703:160;23604:42;49766:91;;;;;49703:160;26152:30;49766:91;;;;;49703:160;-1:-1:-1;;;49766:91:10;;;;;14380:2173;14528:26;;314:5477:9;;;;;;;;;;14528:26:10;314:5477:9;14847:11:10;;;14843:1270;;16435:24;-1:-1:-1;;;16435:24:10;;16507:38;16431:48;16466:13;:::o;14843:1270::-;6048:1;;;314:5477:9;6048:1:10;314:5477:9;14882:24:10;;;14878:77;;15502:597;-1:-1:-1;;2943:14:10;;314:5477:9;;;;;;;;;;15654:11:10;;;15650:25;;15701:24;-1:-1:-1;;;15701:24:10;;:29;15697:48;;49766:91;;-1:-1:-1;;;49766:91:10;;;15697:48;15732:13;;;:::o;15650:25::-;15502:597;-1:-1:-1;15502:597:10;;314:5477:9;;;;;;;;;;:::o;3701:903::-;;314:5477;;;-1:-1:-1;314:5477:9;3835:20;314:5477;;;-1:-1:-1;314:5477:9;;3889:12;;;314:5477;;3966:18;4561:36;3966:18;1090:2;4080:3;3966:18;-1:-1:-1;3966:18:9;314:5477;;2434:9;314:5477;;;;;;;3966:18;314:5477;;4097:26;4093:443;;3701:903;4561:36;;314:5477;;;;3588:20;314:5477;;;;;;;4561:36;2943:14:10;3701:903:9:o;4093:443::-;4478:47;4211:19;;4478:47;4211:19;;314:5477;;;4233:2;314:5477;;4253:33;;;;;;;4306:34;314:5477;;;;4306:34;:::i;:::-;2943:14:10;;4249:211:9;314:5477;;;;;;;;;;;;;;4478:47;;;;4093:443;;;;4249:211;-1:-1:-1;2943:14:10;;;4420:17:9;;314:5477;;-1:-1:-1;;314:5477:9;;;4249:211;;314:5477;;;;-1:-1:-1;;;314:5477:9;;;;;;;;;;;;;;;;;;1796:162:0;-1:-1:-1;;;;;1710:6:0;314:5477:9;;47819:10:10;1855:23:0;1851:101;;1796:162::o;1851:101::-;314:5477:9;;;1901:40:0;;;47819:10:10;1901:40:0;;;314:5477:9;1901:40:0;13522:159:10;314:5477:9;;:::i;:::-;;-1:-1:-1;314:5477:9;13649:17:10;314:5477:9;;;-1:-1:-1;314:5477:9;;;;:::i;:::-;;-1:-1:-1;;;;;314:5477:9;;;;;;2162:3:10;314:5477:9;;;16807:24:10;;2162:3;-1:-1:-1;;;16904:24:10;;:29;;314:5477:9;16885:16:10;;314:5477:9;2671:3:10;314:5477:9;16943:19:10;;;2162:3;13522:159;:::o;314:5477:9:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;314:5477:9;;;;:::o;:::-;;;:::o;29533:673:10:-;;29711:88;29533:673;314:5477:9;29533:673:10;-1:-1:-1;;;;;;314:5477:9;;;;;;;;;;29711:88:10;;;;47819:10;29711:88;;;314:5477:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;29711:88:10;314:5477:9;;29711:88:10;;-1:-1:-1;;29711:88:10;;;29533:673;-1:-1:-1;29707:493:10;;29943:257;;:::i;:::-;314:5477:9;;29989:18:10;29985:113;;30111:79;;;29711:88;30111:79;;29985:113;30035:47;:::i;29707:493::-;314:5477:9;;29867:64:10;29860:71;:::o;29711:88::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;" + }, + "methodIdentifiers": { + "DECAY_CHANCE()": "4535f1c1", + "GROWTH_PER_VOTE()": "77ee63f1", + "MAX_REPUTATION()": "d213c0f2", + "_entropyCallback(uint64,address,bytes32)": "52a5f1f8", + "approve(address,uint256)": "095ea7b3", + "balanceOf(address)": "70a08231", + "getApproved(uint256)": "081812fc", + "getPlaylistInfo(uint256)": "a9182f3f", + "hasVoted(address,uint256)": "42545825", + "isApprovedForAll(address,address)": "e985e9c5", + "mintPlaylist(address,string,string)": "a7384a4c", + "name()": "06fdde03", + "owner()": "8da5cb5b", + "ownerOf(uint256)": "6352211e", + "pendingDecayRequests(uint64)": "baccd1d2", + "playlists(uint256)": "ecc6362f", + "renounceOwnership()": "715018a6", + "safeTransferFrom(address,address,uint256)": "42842e0e", + "safeTransferFrom(address,address,uint256,bytes)": "b88d4fde", + "setApprovalForAll(address,bool)": "a22cb465", + "supportsInterface(bytes4)": "01ffc9a7", + "symbol()": "95d89b41", + "tokenURI(uint256)": "c87b56dd", + "tokensOfOwner(address)": "8462151c", + "totalSupply()": "18160ddd", + "transferFrom(address,address,uint256)": "23b872dd", + "transferOwnership(address)": "f2fde38b", + "triggerDecay(uint256)": "85de8b3c", + "voteForPlaylist(uint256)": "41ac50b3" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_entropy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_provider\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ApprovalCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ApprovalQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BalanceQueryForZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintERC2309QuantityExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintZeroQuantity\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotCompatibleWithSpotMints\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnerQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnershipNotInitializedForExtraData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SequentialMintExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SequentialUpToTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpotMintTokenIdTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromIncorrectOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToNonERC721ReceiverImplementer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"URIQueryForNonexistentToken\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"fromTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toTokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"ConsecutiveTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"sequenceNumber\",\"type\":\"uint64\"}],\"name\":\"DecayTriggered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"playlistId\",\"type\":\"string\"}],\"name\":\"PlaylistMinted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newReputation\",\"type\":\"uint256\"}],\"name\":\"ReputationDecayed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newReputation\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"ReputationGrown\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DECAY_CHANCE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GROWTH_PER_VOTE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_REPUTATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"randomNumber\",\"type\":\"bytes32\"}],\"name\":\"_entropyCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getPlaylistInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"playlistId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"reputation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"}],\"internalType\":\"struct PlaylistReputationNFT.PlaylistInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"hasVoted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"playlistId\",\"type\":\"string\"}],\"name\":\"mintPlaylist\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"pendingDecayRequests\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"playlists\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"playlistId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"reputation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tokensOfOwner\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"result\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"triggerDecay\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"voteForPlaylist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when `owner` enables `approved` to manage the `tokenId` token.\"},\"ApprovalForAll(address,address,bool)\":{\"details\":\"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\"},\"ConsecutiveTransfer(uint256,uint256,address,address)\":{\"details\":\"Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, as defined in the [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. See {_mintERC2309} for more details.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `tokenId` token is transferred from `from` to `to`.\"}},\"kind\":\"dev\",\"methods\":{\"approve(address,uint256)\":{\"details\":\"Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. Requirements: - The caller must own the token or be an approved operator.\"},\"balanceOf(address)\":{\"details\":\"Returns the number of tokens in `owner`'s account.\"},\"getApproved(uint256)\":{\"details\":\"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist.\"},\"isApprovedForAll(address,address)\":{\"details\":\"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}.\"},\"name()\":{\"details\":\"Returns the token collection name.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"ownerOf(uint256)\":{\"details\":\"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"Equivalent to `safeTransferFrom(from, to, tokenId, '')`.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) to learn more about how these ids are created. This function call must use less than 30000 gas.\"},\"symbol()\":{\"details\":\"Returns the token collection symbol.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the Uniform Resource Identifier (URI) for `tokenId` token.\"},\"totalSupply()\":{\"details\":\"Returns the total number of tokens in existence. Burned tokens will reduce the count. To get the total number of tokens minted, please see {_totalMinted}.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Transfers `tokenId` from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"errors\":{\"ApprovalCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"ApprovalQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"BalanceQueryForZeroAddress()\":[{\"notice\":\"Cannot query the balance for the zero address.\"}],\"MintERC2309QuantityExceedsLimit()\":[{\"notice\":\"The `quantity` minted with ERC2309 exceeds the safety limit.\"}],\"MintToZeroAddress()\":[{\"notice\":\"Cannot mint to the zero address.\"}],\"MintZeroQuantity()\":[{\"notice\":\"The quantity of tokens minted must be more than zero.\"}],\"NotCompatibleWithSpotMints()\":[{\"notice\":\"The feature is not compatible with spot mints.\"}],\"OwnerQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"OwnershipNotInitializedForExtraData()\":[{\"notice\":\"The `extraData` cannot be set on an unintialized ownership slot.\"}],\"SequentialMintExceedsLimit()\":[{\"notice\":\"The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.\"}],\"SequentialUpToTooSmall()\":[{\"notice\":\"`_sequentialUpTo()` must be greater than `_startTokenId()`.\"}],\"SpotMintTokenIdTooSmall()\":[{\"notice\":\"Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.\"}],\"TokenAlreadyExists()\":[{\"notice\":\"Cannot mint over a token that already exists.\"}],\"TransferCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"TransferFromIncorrectOwner()\":[{\"notice\":\"The token must be owned by `from`.\"}],\"TransferToNonERC721ReceiverImplementer()\":[{\"notice\":\"Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.\"}],\"TransferToZeroAddress()\":[{\"notice\":\"Cannot transfer to the zero address.\"}],\"URIQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}]},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/PlaylistReputationNFT.sol\":\"PlaylistReputationNFT\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6\",\"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEvents.sol\":{\"keccak256\":\"0x385eb7fb335b3c7037e5d2ecf119f42baa4f69fbc535daf1effbc26e774a6a4a\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://b62bfbf9e5969390d22c4ad0a6c5d64a1091d0cdef3e19e72482333c88c0e39b\",\"dweb:/ipfs/QmaN1oB9u82CaxYcGyKDxZKDhjYiM8J324AE6j5yCjFReK\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyEventsV2.sol\":{\"keccak256\":\"0xc8c2438857680a605d6b441f0b5fa21054dce0ae1db0a7ef8b8ab14a97249e4e\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://81739805ac90c9bc91e87e4e42d57c5420cfb179a3f9088fb8416e4ba2eeade3\",\"dweb:/ipfs/QmSvrb38Bn8tDCcaC9vZpV4J8BnXy8y9fSNMaUdNaKMA28\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol\":{\"keccak256\":\"0xc23ba702644b68f402b5cd1ef98da7c194ae4a3d05249a88b75160c503704809\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://b2ac288f4e8cd2484cf8abb7bb709e4709e4ffa10697945498ba365312cfe191\",\"dweb:/ipfs/Qme9QS4P94gb9B81qLYX3EE2pQrb7MJSAaZygHuydpZo6n\"]},\"@pythnetwork/entropy-sdk-solidity/EntropyStructsV2.sol\":{\"keccak256\":\"0xca3e9a064e5e557f767475d4a543399c315babce9681f98454950e7fe52ed44c\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://149efc8c37b0d325da7ee2dae5bfffcbd6f420acdb8445f0744e351b4a392688\",\"dweb:/ipfs/QmUW5Z72iFDwxdeWh76kYNyT1agDao2AVmpc4zSC5q8Laz\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropy.sol\":{\"keccak256\":\"0xa64f7ec4190605e04ca65ad4091533c4fb33f77c18313dd00a9b6503cb5525b1\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://d0518368dc04438ef8e85b760cadda4ff57a599f55819f7f11a212ebeee2cb23\",\"dweb:/ipfs/QmbzXWZuQRpjAygftHiCQetNc4tEA5eRqVnTGWRQg3J88X\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyConsumer.sol\":{\"keccak256\":\"0xf3d3dee1e9cbdef70b6c1f4d79aa8b438413e4636c00e79e615da9dc4df9c379\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://0e473522447c8f92a43f4fa3e54d83a789e12cc44b2a86847bd238a7f8827952\",\"dweb:/ipfs/Qmdihx73a89EZYy2GpitTxK92SWDLyPWeWnJTZ4Acva958\"]},\"@pythnetwork/entropy-sdk-solidity/IEntropyV2.sol\":{\"keccak256\":\"0x79d7755d04dcc4d689115a14197aab690ab179000e5fc95bc1a73aeaa40c4924\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://c56f5d6e3f4c055f53ba25639bd27ec63a8d02648d1ef0037e7e45d2f893b97c\",\"dweb:/ipfs/QmYZDzmGe4cb6UXRecnxmKqkASPvhVLBmd8y5ZMMZF21C7\"]},\"contracts/PlaylistReputationNFT.sol\":{\"keccak256\":\"0x6362d115949a0bb852aea4e2b0502dab8c824622006031291a5c870b0d4ba962\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://351a9924011203d0de35a9c0e3d5b35627aa56bf665ff7bbc1d866d0fd589137\",\"dweb:/ipfs/QmWNE6Hrv76MkF4KTTc3FPFfBMALJ96rg3m6yVnbUvHupZ\"]},\"erc721a/contracts/ERC721A.sol\":{\"keccak256\":\"0xede758d13ccce2f54a4bcd16816456109b290759d43988205539cf632f4c8a55\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b63befef8f79ec44ebe5db096767cab6772485c2b01a431759e7fcdcf7fd0bb1\",\"dweb:/ipfs/QmV45KT2ai7PnVRhpJKjB29A15VGnhsvxxBFrrUSwhe2fr\"]},\"erc721a/contracts/IERC721A.sol\":{\"keccak256\":\"0xc9a2a00612e0d121aef3f716877ada17177d5b2d5a4c780d22cade46da2ff294\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1435542fc553d2fb9181191f126a1f97e2cc5570c2459c862f54ba415a22bf02\",\"dweb:/ipfs/QmaQJ14ajkHgymY5TtoxHnpiN5u4TpwXCqKr2B6DM8SHkn\"]}},\"version\":1}" + } + }, + "erc721a/contracts/ERC721A.sol": { + "ERC721A": { + "abi": [ + { + "inputs": [ + { + "internalType": "string", + "name": "name_", + "type": "string" + }, + { + "internalType": "string", + "name": "symbol_", + "type": "string" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "ApprovalCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "ApprovalQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "BalanceQueryForZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintERC2309QuantityExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "MintToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintZeroQuantity", + "type": "error" + }, + { + "inputs": [], + "name": "NotCompatibleWithSpotMints", + "type": "error" + }, + { + "inputs": [], + "name": "OwnerQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "OwnershipNotInitializedForExtraData", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialMintExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialUpToTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "SpotMintTokenIdTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "TokenAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "TransferCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "TransferFromIncorrectOwner", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToNonERC721ReceiverImplementer", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "URIQueryForNonexistentToken", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "fromTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "toTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "ConsecutiveTransfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "result", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": { + "abi_decode_string_fromMemory": { + "entryPoint": 459, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "allocate_memory": { + "entryPoint": 421, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "array_dataslot_string_storage": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "array_dataslot_string_storage_1049": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "clean_up_bytearray_end_slots_string_storage": { + "entryPoint": 725, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "clean_up_bytearray_end_slots_string_storage_1048": { + "entryPoint": 634, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "copy_byte_array_to_storage_from_string_to_string": { + "entryPoint": 816, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "extract_byte_array_length": { + "entryPoint": 573, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "extract_used_part_and_set_length_of_short_byte_array": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "panic_error_0x41": { + "entryPoint": 399, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + } + }, + "generatedSources": [], + "linkReferences": {}, + "object": "6080604052346200018a5762001252803803806200001d81620001a5565b9283398101906040818303126200018a5780516001600160401b0392908381116200018a578162000050918401620001cb565b9160209160208201518581116200018a576200006d9201620001cb565b918051938411620001845762000090846200008a6002546200023d565b6200027a565b602091601f8511600114620000f357509280620000ca92620000d395600092620000e7575b50508160011b916000199060031b1c19161790565b60025562000330565b60008055604051610e3390816200041f8239f35b015190503880620000b5565b60026000529190601f1985167f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace936000905b8282106200016b575050916001939186620000d397941062000151575b505050811b0160025562000330565b015160001960f88460031b161c1916905538808062000142565b8060018697829497870151815501960194019062000125565b6200018f565b600080fd5b634e487b7160e01b600052604160045260246000fd5b6040519190601f01601f191682016001600160401b038111838210176200018457604052565b919080601f840112156200018a5782516001600160401b038111620001845760209062000201601f8201601f19168301620001a5565b928184528282870101116200018a5760005b8181106200022957508260009394955001015290565b858101830151848201840152820162000213565b90600182811c921680156200026f575b60208310146200025957565b634e487b7160e01b600052602260045260246000fd5b91607f16916200024d565b601f811162000287575050565b60009060026000526020600020906020601f850160051c83019410620002ca575b601f0160051c01915b828110620002be57505050565b818155600101620002b1565b9092508290620002a8565b601f8111620002e2575050565b60009060036000526020600020906020601f850160051c8301941062000325575b601f0160051c01915b8281106200031957505050565b8181556001016200030c565b909250829062000303565b80519091906001600160401b03811162000184576200035c81620003566003546200023d565b620002d5565b602080601f83116001146200039657508190620003919394600092620000e75750508160011b916000199060031b1c19161790565b600355565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b87821062000405575050836001959610620003eb575b505050811b01600355565b015160001960f88460031b161c19169055388080620003e0565b80600185968294968601518155019501930190620003ca56fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146100f757806306fdde03146100f2578063081812fc146100ed578063095ea7b3146100e857806318160ddd146100e357806323b872dd146100de57806342842e0e146100d95780636352211e146100d457806370a08231146100cf57806395d89b41146100ca578063a22cb465146100c5578063b88d4fde146100c0578063c87b56dd146100bb5763e985e9c5146100b657600080fd5b6108f2565b610871565b6107ed565b6106e1565b61061b565b6105a7565b610578565b610555565b610541565b6104e9565b6103f9565b610360565b610251565b61012b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361012657565b600080fd5b346101265760203660031901126101265760207fffffffff0000000000000000000000000000000000000000000000000000000060043561016b816100fc565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156101d3575b81156101a9575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861019e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610197565b919082519283825260005b848110610229575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610208565b90602061024e9281815201906101fd565b90565b346101265760008060031936011261035d576040519080600254906001918060011c9260018216928315610353575b60209260208610851461033f57858852602088019490811561031e57506001146102c5575b6102c1876102b5818903826107af565b6040519182918261023d565b0390f35b600260005294509192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b83861061030d57505050910190506102b5826102c138806102a5565b8054858701529482019481016102f1565b60ff191685525050505090151560051b0190506102b5826102c138806102a5565b602482634e487b7160e01b81526022600452fd5b93607f1693610280565b80fd5b346101265760203660031901126101265760043561037d81610b68565b156103a357600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361012657565b602435906001600160a01b038216820361012657565b60403660031901126101265761040d6103cd565b6024356001600160a01b03918261042383610c52565b1680330361048d575b600093838552600660205260408520921691827fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff6104b9336040600020906001600160a01b0316600052602052604060002090565b541661042c577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346101265760003660031901126101265760206000546001549003604051908152f35b6060906003190112610126576001600160a01b0390600435828116810361012657916024359081168103610126579060443590565b61055361054d3661050c565b91610954565b005b6105536105613661050c565b906040519261056f8461078e565b60008452610b0c565b346101265760203660031901126101265760206001600160a01b0361059e600435610c52565b16604051908152f35b34610126576020366003190112610126576001600160a01b036105c86103cd565b1680156105f1576000526005602052602067ffffffffffffffff60406000205416604051908152f35b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b346101265760008060031936011261035d576040519080600354906001918060011c92600182169283156106d7575b60209260208610851461033f57858852602088019490811561031e575060011461067e576102c1876102b5818903826107af565b600360005294509192917fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8386106106c657505050910190506102b5826102c138806102a5565b8054858701529482019481016106aa565b93607f169361064a565b34610126576040366003190112610126576106fa6103cd565b60243590811515809203610126576001600160a01b039033600052600760205261073b816040600020906001600160a01b0316600052602052604060002090565b60ff1981541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff8211176107aa57604052565b610778565b90601f8019910116810190811067ffffffffffffffff8211176107aa57604052565b67ffffffffffffffff81116107aa57601f01601f191660200190565b6080366003190112610126576108016103cd565b6108096103e3565b6064359167ffffffffffffffff8311610126573660238401121561012657826004013591610836836107d1565b9261084460405194856107af565b80845236602482870101116101265760208160009260246105539801838801378501015260443591610b0c565b346101265760203660031901126101265761088d600435610b68565b156108c85760006040516108a08161078e565b526102c16040516108b08161078e565b600081526040519182916020835260208301906101fd565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461012657604036600319011261012657602060ff6109486109126103cd565b6001600160a01b036109226103e3565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b91909161096082610c52565b926001600160a01b03809216938483821603610b0757600084815260066020526040902080546109a36001600160a01b03881633908114908314171590565b1590565b610ab7575b610aad575b506109cb856001600160a01b03166000526005602052604060002090565b80546000190190556109f0826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b17610a20856000526004602052604060002090565b55600160e11b811615610a63575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a415610a5e57565b610c17565b60018401610a7b816000526004602052604060002090565b5415610a88575b50610a2e565b6000548114610a8257610aa5906000526004602052604060002090565b553880610a82565b60009055386109ad565b610afd61099f610af633610ade8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b5460ff1690565b156109a857610bed565b610bc3565b929190610b1a828286610954565b803b610b27575b50505050565b610b3093610d14565b15610b3e5738808080610b21565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210610b7a575050565b9192505b808252600480602052604083205480610bb557508115610ba2575060001901610b7e565b826011602492634e487b7160e01b835252fd5b600160e01b16159392505050565b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b610c66816000526004602052604060002090565b54908115610c7d5750600160e01b8116610c415790565b9050600090600054811015610c41575b60001901600081815260046020526040902054908115610cc85750600160e01b811615610cc357600482636f96cda160e11b8152fd5b905090565b9050610c8d565b90816020910312610126575161024e816100fc565b3d15610d0f573d90610cf5826107d1565b91610d0360405193846107af565b82523d6000602084013e565b606090565b92602091610d779360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906101fd565b0393165af160009181610dcc575b50610da657610d92610ce4565b805115610da157805190602001fd5b610b3e565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b610def91925060203d602011610df6575b610de781836107af565b810190610ccf565b9038610d85565b503d610ddd56fea2646970667358221220b28de2214a5dd2cc28b2cbee1e6f518ffdd1eb9ab7b9fb5bab69a5e6d059985064736f6c63430008180033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE PUSH3 0x18A JUMPI PUSH3 0x1252 DUP1 CODESIZE SUB DUP1 PUSH3 0x1D DUP2 PUSH3 0x1A5 JUMP JUMPDEST SWAP3 DUP4 CODECOPY DUP2 ADD SWAP1 PUSH1 0x40 DUP2 DUP4 SUB SLT PUSH3 0x18A JUMPI DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB SWAP3 SWAP1 DUP4 DUP2 GT PUSH3 0x18A JUMPI DUP2 PUSH3 0x50 SWAP2 DUP5 ADD PUSH3 0x1CB JUMP JUMPDEST SWAP2 PUSH1 0x20 SWAP2 PUSH1 0x20 DUP3 ADD MLOAD DUP6 DUP2 GT PUSH3 0x18A JUMPI PUSH3 0x6D SWAP3 ADD PUSH3 0x1CB JUMP JUMPDEST SWAP2 DUP1 MLOAD SWAP4 DUP5 GT PUSH3 0x184 JUMPI PUSH3 0x90 DUP5 PUSH3 0x8A PUSH1 0x2 SLOAD PUSH3 0x23D JUMP JUMPDEST PUSH3 0x27A JUMP JUMPDEST PUSH1 0x20 SWAP2 PUSH1 0x1F DUP6 GT PUSH1 0x1 EQ PUSH3 0xF3 JUMPI POP SWAP3 DUP1 PUSH3 0xCA SWAP3 PUSH3 0xD3 SWAP6 PUSH1 0x0 SWAP3 PUSH3 0xE7 JUMPI JUMPDEST POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST PUSH1 0x2 SSTORE PUSH3 0x330 JUMP JUMPDEST PUSH1 0x0 DUP1 SSTORE PUSH1 0x40 MLOAD PUSH2 0xE33 SWAP1 DUP2 PUSH3 0x41F DUP3 CODECOPY RETURN JUMPDEST ADD MLOAD SWAP1 POP CODESIZE DUP1 PUSH3 0xB5 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x0 MSTORE SWAP2 SWAP1 PUSH1 0x1F NOT DUP6 AND PUSH32 0x405787FA12A823E0F2B7631CC41B3BA8828B3321CA811111FA75CD3AA3BB5ACE SWAP4 PUSH1 0x0 SWAP1 JUMPDEST DUP3 DUP3 LT PUSH3 0x16B JUMPI POP POP SWAP2 PUSH1 0x1 SWAP4 SWAP2 DUP7 PUSH3 0xD3 SWAP8 SWAP5 LT PUSH3 0x151 JUMPI JUMPDEST POP POP POP DUP2 SHL ADD PUSH1 0x2 SSTORE PUSH3 0x330 JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH3 0x142 JUMP JUMPDEST DUP1 PUSH1 0x1 DUP7 SWAP8 DUP3 SWAP5 SWAP8 DUP8 ADD MLOAD DUP2 SSTORE ADD SWAP7 ADD SWAP5 ADD SWAP1 PUSH3 0x125 JUMP JUMPDEST PUSH3 0x18F JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x40 MLOAD SWAP2 SWAP1 PUSH1 0x1F ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP4 DUP3 LT OR PUSH3 0x184 JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST SWAP2 SWAP1 DUP1 PUSH1 0x1F DUP5 ADD SLT ISZERO PUSH3 0x18A JUMPI DUP3 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT PUSH3 0x184 JUMPI PUSH1 0x20 SWAP1 PUSH3 0x201 PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND DUP4 ADD PUSH3 0x1A5 JUMP JUMPDEST SWAP3 DUP2 DUP5 MSTORE DUP3 DUP3 DUP8 ADD ADD GT PUSH3 0x18A JUMPI PUSH1 0x0 JUMPDEST DUP2 DUP2 LT PUSH3 0x229 JUMPI POP DUP3 PUSH1 0x0 SWAP4 SWAP5 SWAP6 POP ADD ADD MSTORE SWAP1 JUMP JUMPDEST DUP6 DUP2 ADD DUP4 ADD MLOAD DUP5 DUP3 ADD DUP5 ADD MSTORE DUP3 ADD PUSH3 0x213 JUMP JUMPDEST SWAP1 PUSH1 0x1 DUP3 DUP2 SHR SWAP3 AND DUP1 ISZERO PUSH3 0x26F JUMPI JUMPDEST PUSH1 0x20 DUP4 LT EQ PUSH3 0x259 JUMPI JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP2 PUSH1 0x7F AND SWAP2 PUSH3 0x24D JUMP JUMPDEST PUSH1 0x1F DUP2 GT PUSH3 0x287 JUMPI POP POP JUMP JUMPDEST PUSH1 0x0 SWAP1 PUSH1 0x2 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x20 PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP4 ADD SWAP5 LT PUSH3 0x2CA JUMPI JUMPDEST PUSH1 0x1F ADD PUSH1 0x5 SHR ADD SWAP2 JUMPDEST DUP3 DUP2 LT PUSH3 0x2BE JUMPI POP POP POP JUMP JUMPDEST DUP2 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x2B1 JUMP JUMPDEST SWAP1 SWAP3 POP DUP3 SWAP1 PUSH3 0x2A8 JUMP JUMPDEST PUSH1 0x1F DUP2 GT PUSH3 0x2E2 JUMPI POP POP JUMP JUMPDEST PUSH1 0x0 SWAP1 PUSH1 0x3 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x20 PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP4 ADD SWAP5 LT PUSH3 0x325 JUMPI JUMPDEST PUSH1 0x1F ADD PUSH1 0x5 SHR ADD SWAP2 JUMPDEST DUP3 DUP2 LT PUSH3 0x319 JUMPI POP POP POP JUMP JUMPDEST DUP2 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x30C JUMP JUMPDEST SWAP1 SWAP3 POP DUP3 SWAP1 PUSH3 0x303 JUMP JUMPDEST DUP1 MLOAD SWAP1 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT PUSH3 0x184 JUMPI PUSH3 0x35C DUP2 PUSH3 0x356 PUSH1 0x3 SLOAD PUSH3 0x23D JUMP JUMPDEST PUSH3 0x2D5 JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 EQ PUSH3 0x396 JUMPI POP DUP2 SWAP1 PUSH3 0x391 SWAP4 SWAP5 PUSH1 0x0 SWAP3 PUSH3 0xE7 JUMPI POP POP DUP2 PUSH1 0x1 SHL SWAP2 PUSH1 0x0 NOT SWAP1 PUSH1 0x3 SHL SHR NOT AND OR SWAP1 JUMP JUMPDEST PUSH1 0x3 SSTORE JUMP JUMPDEST PUSH1 0x3 PUSH1 0x0 MSTORE PUSH1 0x1F NOT DUP4 AND SWAP5 SWAP1 SWAP2 SWAP1 PUSH32 0xC2575A0E9E593C00F959F8C92F12DB2869C3395A3B0502D05E2516446F71F85B SWAP3 PUSH1 0x0 SWAP1 JUMPDEST DUP8 DUP3 LT PUSH3 0x405 JUMPI POP POP DUP4 PUSH1 0x1 SWAP6 SWAP7 LT PUSH3 0x3EB JUMPI JUMPDEST POP POP POP DUP2 SHL ADD PUSH1 0x3 SSTORE JUMP JUMPDEST ADD MLOAD PUSH1 0x0 NOT PUSH1 0xF8 DUP5 PUSH1 0x3 SHL AND SHR NOT AND SWAP1 SSTORE CODESIZE DUP1 DUP1 PUSH3 0x3E0 JUMP JUMPDEST DUP1 PUSH1 0x1 DUP6 SWAP7 DUP3 SWAP5 SWAP7 DUP7 ADD MLOAD DUP2 SSTORE ADD SWAP6 ADD SWAP4 ADD SWAP1 PUSH3 0x3CA JUMP INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT ISZERO PUSH2 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0xF7 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0xF2 JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0xED JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0xE8 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0xE3 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0xDE JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0xD9 JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0xD4 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0xCF JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0xCA JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0xC5 JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0xC0 JUMPI DUP1 PUSH4 0xC87B56DD EQ PUSH2 0xBB JUMPI PUSH4 0xE985E9C5 EQ PUSH2 0xB6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x871 JUMP JUMPDEST PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x6E1 JUMP JUMPDEST PUSH2 0x61B JUMP JUMPDEST PUSH2 0x5A7 JUMP JUMPDEST PUSH2 0x578 JUMP JUMPDEST PUSH2 0x555 JUMP JUMPDEST PUSH2 0x541 JUMP JUMPDEST PUSH2 0x4E9 JUMP JUMPDEST PUSH2 0x3F9 JUMP JUMPDEST PUSH2 0x360 JUMP JUMPDEST PUSH2 0x251 JUMP JUMPDEST PUSH2 0x12B JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 DUP2 AND SUB PUSH2 0x126 JUMPI JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH1 0x4 CALLDATALOAD PUSH2 0x16B DUP2 PUSH2 0xFC JUMP JUMPDEST AND PUSH32 0x1FFC9A700000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP1 DUP2 ISZERO PUSH2 0x1D3 JUMPI JUMPDEST DUP2 ISZERO PUSH2 0x1A9 JUMPI JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST PUSH32 0x5B5E139F00000000000000000000000000000000000000000000000000000000 SWAP2 POP EQ CODESIZE PUSH2 0x19E JUMP JUMPDEST PUSH32 0x80AC58CD00000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP2 POP PUSH2 0x197 JUMP JUMPDEST SWAP2 SWAP1 DUP3 MLOAD SWAP3 DUP4 DUP3 MSTORE PUSH1 0x0 JUMPDEST DUP5 DUP2 LT PUSH2 0x229 JUMPI POP POP DUP3 PUSH1 0x0 PUSH1 0x20 DUP1 SWAP5 SWAP6 DUP5 ADD ADD MSTORE PUSH1 0x1F DUP1 NOT SWAP2 ADD AND ADD ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP2 DUP4 ADD DUP2 ADD MLOAD DUP5 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0x208 JUMP JUMPDEST SWAP1 PUSH1 0x20 PUSH2 0x24E SWAP3 DUP2 DUP2 MSTORE ADD SWAP1 PUSH2 0x1FD JUMP JUMPDEST SWAP1 JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x35D JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x2 SLOAD SWAP1 PUSH1 0x1 SWAP2 DUP1 PUSH1 0x1 SHR SWAP3 PUSH1 0x1 DUP3 AND SWAP3 DUP4 ISZERO PUSH2 0x353 JUMPI JUMPDEST PUSH1 0x20 SWAP3 PUSH1 0x20 DUP7 LT DUP6 EQ PUSH2 0x33F JUMPI DUP6 DUP9 MSTORE PUSH1 0x20 DUP9 ADD SWAP5 SWAP1 DUP2 ISZERO PUSH2 0x31E JUMPI POP PUSH1 0x1 EQ PUSH2 0x2C5 JUMPI JUMPDEST PUSH2 0x2C1 DUP8 PUSH2 0x2B5 DUP2 DUP10 SUB DUP3 PUSH2 0x7AF JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 DUP3 PUSH2 0x23D JUMP JUMPDEST SUB SWAP1 RETURN JUMPDEST PUSH1 0x2 PUSH1 0x0 MSTORE SWAP5 POP SWAP2 SWAP3 SWAP2 PUSH32 0x405787FA12A823E0F2B7631CC41B3BA8828B3321CA811111FA75CD3AA3BB5ACE JUMPDEST DUP4 DUP7 LT PUSH2 0x30D JUMPI POP POP POP SWAP2 ADD SWAP1 POP PUSH2 0x2B5 DUP3 PUSH2 0x2C1 CODESIZE DUP1 PUSH2 0x2A5 JUMP JUMPDEST DUP1 SLOAD DUP6 DUP8 ADD MSTORE SWAP5 DUP3 ADD SWAP5 DUP2 ADD PUSH2 0x2F1 JUMP JUMPDEST PUSH1 0xFF NOT AND DUP6 MSTORE POP POP POP POP SWAP1 ISZERO ISZERO PUSH1 0x5 SHL ADD SWAP1 POP PUSH2 0x2B5 DUP3 PUSH2 0x2C1 CODESIZE DUP1 PUSH2 0x2A5 JUMP JUMPDEST PUSH1 0x24 DUP3 PUSH4 0x4E487B71 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE REVERT JUMPDEST SWAP4 PUSH1 0x7F AND SWAP4 PUSH2 0x280 JUMP JUMPDEST DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x37D DUP2 PUSH2 0xB68 JUMP JUMPDEST ISZERO PUSH2 0x3A3 JUMPI PUSH1 0x0 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH32 0xCF4700E400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x126 JUMPI JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x126 JUMPI JUMP JUMPDEST PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x40D PUSH2 0x3CD JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 PUSH2 0x423 DUP4 PUSH2 0xC52 JUMP JUMPDEST AND DUP1 CALLER SUB PUSH2 0x48D JUMPI JUMPDEST PUSH1 0x0 SWAP4 DUP4 DUP6 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 DUP6 KECCAK256 SWAP3 AND SWAP2 DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 DUP3 SLOAD AND OR SWAP1 SSTORE PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 DUP5 DUP1 LOG4 DUP1 RETURN JUMPDEST DUP1 PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0xFF PUSH2 0x4B9 CALLER PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH2 0x42C JUMPI PUSH32 0xCFB3B94200000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH1 0x0 SLOAD PUSH1 0x1 SLOAD SWAP1 SUB PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH1 0x60 SWAP1 PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 PUSH1 0x4 CALLDATALOAD DUP3 DUP2 AND DUP2 SUB PUSH2 0x126 JUMPI SWAP2 PUSH1 0x24 CALLDATALOAD SWAP1 DUP2 AND DUP2 SUB PUSH2 0x126 JUMPI SWAP1 PUSH1 0x44 CALLDATALOAD SWAP1 JUMP JUMPDEST PUSH2 0x553 PUSH2 0x54D CALLDATASIZE PUSH2 0x50C JUMP JUMPDEST SWAP2 PUSH2 0x954 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x553 PUSH2 0x561 CALLDATASIZE PUSH2 0x50C JUMP JUMPDEST SWAP1 PUSH1 0x40 MLOAD SWAP3 PUSH2 0x56F DUP5 PUSH2 0x78E JUMP JUMPDEST PUSH1 0x0 DUP5 MSTORE PUSH2 0xB0C JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x59E PUSH1 0x4 CALLDATALOAD PUSH2 0xC52 JUMP JUMPDEST AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x5C8 PUSH2 0x3CD JUMP JUMPDEST AND DUP1 ISZERO PUSH2 0x5F1 JUMPI PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x20 PUSH8 0xFFFFFFFFFFFFFFFF PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH32 0x8F4EB60400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x35D JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x3 SLOAD SWAP1 PUSH1 0x1 SWAP2 DUP1 PUSH1 0x1 SHR SWAP3 PUSH1 0x1 DUP3 AND SWAP3 DUP4 ISZERO PUSH2 0x6D7 JUMPI JUMPDEST PUSH1 0x20 SWAP3 PUSH1 0x20 DUP7 LT DUP6 EQ PUSH2 0x33F JUMPI DUP6 DUP9 MSTORE PUSH1 0x20 DUP9 ADD SWAP5 SWAP1 DUP2 ISZERO PUSH2 0x31E JUMPI POP PUSH1 0x1 EQ PUSH2 0x67E JUMPI PUSH2 0x2C1 DUP8 PUSH2 0x2B5 DUP2 DUP10 SUB DUP3 PUSH2 0x7AF JUMP JUMPDEST PUSH1 0x3 PUSH1 0x0 MSTORE SWAP5 POP SWAP2 SWAP3 SWAP2 PUSH32 0xC2575A0E9E593C00F959F8C92F12DB2869C3395A3B0502D05E2516446F71F85B JUMPDEST DUP4 DUP7 LT PUSH2 0x6C6 JUMPI POP POP POP SWAP2 ADD SWAP1 POP PUSH2 0x2B5 DUP3 PUSH2 0x2C1 CODESIZE DUP1 PUSH2 0x2A5 JUMP JUMPDEST DUP1 SLOAD DUP6 DUP8 ADD MSTORE SWAP5 DUP3 ADD SWAP5 DUP2 ADD PUSH2 0x6AA JUMP JUMPDEST SWAP4 PUSH1 0x7F AND SWAP4 PUSH2 0x64A JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x6FA PUSH2 0x3CD JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD SWAP1 DUP2 ISZERO ISZERO DUP1 SWAP3 SUB PUSH2 0x126 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 CALLER PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH2 0x73B DUP2 PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH1 0xFF NOT DUP2 SLOAD AND PUSH1 0xFF DUP6 AND OR SWAP1 SSTORE PUSH1 0x40 MLOAD SWAP3 DUP4 MSTORE AND SWAP1 PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 PUSH1 0x20 CALLER SWAP3 LOG3 STOP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x7AA JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH2 0x778 JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x7AA JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x7AA JUMPI PUSH1 0x1F ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x80 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x801 PUSH2 0x3CD JUMP JUMPDEST PUSH2 0x809 PUSH2 0x3E3 JUMP JUMPDEST PUSH1 0x64 CALLDATALOAD SWAP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT PUSH2 0x126 JUMPI CALLDATASIZE PUSH1 0x23 DUP5 ADD SLT ISZERO PUSH2 0x126 JUMPI DUP3 PUSH1 0x4 ADD CALLDATALOAD SWAP2 PUSH2 0x836 DUP4 PUSH2 0x7D1 JUMP JUMPDEST SWAP3 PUSH2 0x844 PUSH1 0x40 MLOAD SWAP5 DUP6 PUSH2 0x7AF JUMP JUMPDEST DUP1 DUP5 MSTORE CALLDATASIZE PUSH1 0x24 DUP3 DUP8 ADD ADD GT PUSH2 0x126 JUMPI PUSH1 0x20 DUP2 PUSH1 0x0 SWAP3 PUSH1 0x24 PUSH2 0x553 SWAP9 ADD DUP4 DUP9 ADD CALLDATACOPY DUP6 ADD ADD MSTORE PUSH1 0x44 CALLDATALOAD SWAP2 PUSH2 0xB0C JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x88D PUSH1 0x4 CALLDATALOAD PUSH2 0xB68 JUMP JUMPDEST ISZERO PUSH2 0x8C8 JUMPI PUSH1 0x0 PUSH1 0x40 MLOAD PUSH2 0x8A0 DUP2 PUSH2 0x78E JUMP JUMPDEST MSTORE PUSH2 0x2C1 PUSH1 0x40 MLOAD PUSH2 0x8B0 DUP2 PUSH2 0x78E JUMP JUMPDEST PUSH1 0x0 DUP2 MSTORE PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 PUSH1 0x20 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP1 PUSH2 0x1FD JUMP JUMPDEST PUSH32 0xA14C4B5000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH1 0xFF PUSH2 0x948 PUSH2 0x912 PUSH2 0x3CD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x922 PUSH2 0x3E3 JUMP JUMPDEST SWAP2 AND PUSH1 0x0 MSTORE PUSH1 0x7 DUP5 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST SWAP2 SWAP1 SWAP2 PUSH2 0x960 DUP3 PUSH2 0xC52 JUMP JUMPDEST SWAP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 SWAP3 AND SWAP4 DUP5 DUP4 DUP3 AND SUB PUSH2 0xB07 JUMPI PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH2 0x9A3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND CALLER SWAP1 DUP2 EQ SWAP1 DUP4 EQ OR ISZERO SWAP1 JUMP JUMPDEST ISZERO SWAP1 JUMP JUMPDEST PUSH2 0xAB7 JUMPI JUMPDEST PUSH2 0xAAD JUMPI JUMPDEST POP PUSH2 0x9CB DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x0 NOT ADD SWAP1 SSTORE PUSH2 0x9F0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND TIMESTAMP PUSH1 0xA0 SHL OR PUSH1 0x1 PUSH1 0xE1 SHL OR PUSH2 0xA20 DUP6 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH1 0x1 PUSH1 0xE1 SHL DUP2 AND ISZERO PUSH2 0xA63 JUMPI JUMPDEST POP AND DUP1 SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF PUSH1 0x0 DUP1 LOG4 ISZERO PUSH2 0xA5E JUMPI JUMP JUMPDEST PUSH2 0xC17 JUMP JUMPDEST PUSH1 0x1 DUP5 ADD PUSH2 0xA7B DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD ISZERO PUSH2 0xA88 JUMPI JUMPDEST POP PUSH2 0xA2E JUMP JUMPDEST PUSH1 0x0 SLOAD DUP2 EQ PUSH2 0xA82 JUMPI PUSH2 0xAA5 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE CODESIZE DUP1 PUSH2 0xA82 JUMP JUMPDEST PUSH1 0x0 SWAP1 SSTORE CODESIZE PUSH2 0x9AD JUMP JUMPDEST PUSH2 0xAFD PUSH2 0x99F PUSH2 0xAF6 CALLER PUSH2 0xADE DUP12 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST ISZERO PUSH2 0x9A8 JUMPI PUSH2 0xBED JUMP JUMPDEST PUSH2 0xBC3 JUMP JUMPDEST SWAP3 SWAP2 SWAP1 PUSH2 0xB1A DUP3 DUP3 DUP7 PUSH2 0x954 JUMP JUMPDEST DUP1 EXTCODESIZE PUSH2 0xB27 JUMPI JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0xB30 SWAP4 PUSH2 0xD14 JUMP JUMPDEST ISZERO PUSH2 0xB3E JUMPI CODESIZE DUP1 DUP1 DUP1 PUSH2 0xB21 JUMP JUMPDEST PUSH32 0xD1A57ED600000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 SWAP2 PUSH1 0x0 DUP1 SLOAD DUP3 LT PUSH2 0xB7A JUMPI POP POP JUMP JUMPDEST SWAP2 SWAP3 POP JUMPDEST DUP1 DUP3 MSTORE PUSH1 0x4 DUP1 PUSH1 0x20 MSTORE PUSH1 0x40 DUP4 KECCAK256 SLOAD DUP1 PUSH2 0xBB5 JUMPI POP DUP2 ISZERO PUSH2 0xBA2 JUMPI POP PUSH1 0x0 NOT ADD PUSH2 0xB7E JUMP JUMPDEST DUP3 PUSH1 0x11 PUSH1 0x24 SWAP3 PUSH4 0x4E487B71 PUSH1 0xE0 SHL DUP4 MSTORE MSTORE REVERT JUMPDEST PUSH1 0x1 PUSH1 0xE0 SHL AND ISZERO SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0xA114810000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x59C896BE00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0xEA553B3400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH2 0xC66 DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD SWAP1 DUP2 ISZERO PUSH2 0xC7D JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND PUSH2 0xC41 JUMPI SWAP1 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 SWAP1 PUSH1 0x0 SLOAD DUP2 LT ISZERO PUSH2 0xC41 JUMPI JUMPDEST PUSH1 0x0 NOT ADD PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 DUP2 ISZERO PUSH2 0xCC8 JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND ISZERO PUSH2 0xCC3 JUMPI PUSH1 0x4 DUP3 PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL DUP2 MSTORE REVERT JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST SWAP1 POP PUSH2 0xC8D JUMP JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x126 JUMPI MLOAD PUSH2 0x24E DUP2 PUSH2 0xFC JUMP JUMPDEST RETURNDATASIZE ISZERO PUSH2 0xD0F JUMPI RETURNDATASIZE SWAP1 PUSH2 0xCF5 DUP3 PUSH2 0x7D1 JUMP JUMPDEST SWAP2 PUSH2 0xD03 PUSH1 0x40 MLOAD SWAP4 DUP5 PUSH2 0x7AF JUMP JUMPDEST DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY JUMP JUMPDEST PUSH1 0x60 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x20 SWAP2 PUSH2 0xD77 SWAP4 PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 MLOAD DUP1 SWAP8 DUP2 SWAP7 DUP3 SWAP6 DUP5 PUSH32 0x150B7A0200000000000000000000000000000000000000000000000000000000 SWAP13 DUP14 DUP7 MSTORE CALLER PUSH1 0x4 DUP8 ADD MSTORE AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD MSTORE PUSH1 0x80 PUSH1 0x64 DUP5 ADD MSTORE PUSH1 0x84 DUP4 ADD SWAP1 PUSH2 0x1FD JUMP JUMPDEST SUB SWAP4 AND GAS CALL PUSH1 0x0 SWAP2 DUP2 PUSH2 0xDCC JUMPI JUMPDEST POP PUSH2 0xDA6 JUMPI PUSH2 0xD92 PUSH2 0xCE4 JUMP JUMPDEST DUP1 MLOAD ISZERO PUSH2 0xDA1 JUMPI DUP1 MLOAD SWAP1 PUSH1 0x20 ADD REVERT JUMPDEST PUSH2 0xB3E JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND EQ SWAP1 JUMP JUMPDEST PUSH2 0xDEF SWAP2 SWAP3 POP PUSH1 0x20 RETURNDATASIZE PUSH1 0x20 GT PUSH2 0xDF6 JUMPI JUMPDEST PUSH2 0xDE7 DUP2 DUP4 PUSH2 0x7AF JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0xCCF JUMP JUMPDEST SWAP1 CODESIZE PUSH2 0xD85 JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0xDDD JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB2 DUP14 0xE2 0x21 BLOBBASEFEE TSTORE 0xD2 0xCC 0x28 0xB2 0xCB 0xEE 0x1E PUSH16 0x518FFDD1EB9AB7B9FB5BAB69A5E6D059 SWAP9 POP PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "1053:48812:10:-:0;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1053:48812:10;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;5327:13;1053:48812;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5327:13;1053:48812;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;1053:48812:10;;;;;5327:13;1053:48812;;;;-1:-1:-1;;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5327:13;1053:48812;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1053:48812:10;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1053:48812:10;;;-1:-1:-1;;;;;1053:48812:10;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;1053:48812:10;;;;;;;;;;-1:-1:-1;;1053:48812:10;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;1053:48812:10;;;;;;;;-1:-1:-1;1053:48812:10;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;-1:-1:-1;1053:48812:10;5327:13;-1:-1:-1;1053:48812:10;;-1:-1:-1;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;1053:48812:10;;;;;;;;;;;;:::o;:::-;-1:-1:-1;1053:48812:10;5350:17;-1:-1:-1;1053:48812:10;;-1:-1:-1;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;1053:48812:10;;;;;;;;;;-1:-1:-1;;;;;1053:48812:10;;;;;;;5350:17;1053:48812;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5350:17;1053:48812;:::o;:::-;5350:17;1053:48812;;-1:-1:-1;;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5350:17;1053:48812;:::o;:::-;;;;;;;5350:17;1053:48812;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" + }, + "deployedBytecode": { + "functionDebugData": { + "abi_decode_address": { + "entryPoint": 995, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "abi_decode_address_4365": { + "entryPoint": 973, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "abi_decode_addresst_addresst_uint256": { + "entryPoint": 1292, + "id": null, + "parameterSlots": 1, + "returnSlots": 3 + }, + "abi_decode_bytes4_fromMemory": { + "entryPoint": 3279, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_string": { + "entryPoint": 573, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "abi_encode_string_to_string": { + "entryPoint": 509, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "array_allocation_size_bytes": { + "entryPoint": 2001, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "array_dataslot_string_storage": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "array_dataslot_string_storage_4363": { + "entryPoint": null, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "array_storeLengthForEncoding_string": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "cleanup_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "decrement_wrapping_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "external_fun_approve": { + "entryPoint": 1017, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_balanceOf": { + "entryPoint": 1447, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_getApproved": { + "entryPoint": 864, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_isApprovedForAll": { + "entryPoint": 2290, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_name": { + "entryPoint": 593, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_ownerOf": { + "entryPoint": 1400, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_safeTransferFrom": { + "entryPoint": 2029, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_safeTransferFrom_2434": { + "entryPoint": 1365, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_setApprovalForAll": { + "entryPoint": 1761, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_supportsInterface": { + "entryPoint": 299, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_symbol": { + "entryPoint": 1563, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_tokenURI": { + "entryPoint": 2161, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_totalSupply": { + "entryPoint": 1257, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "external_fun_transferFrom": { + "entryPoint": 1345, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "extract_returndata": { + "entryPoint": 3300, + "id": null, + "parameterSlots": 0, + "returnSlots": 1 + }, + "finalize_allocation": { + "entryPoint": 1967, + "id": null, + "parameterSlots": 2, + "returnSlots": 0 + }, + "finalize_allocation_6584": { + "entryPoint": 1934, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + }, + "fun_checkContractOnERC721Received": { + "entryPoint": 3348, + "id": 2556, + "parameterSlots": 4, + "returnSlots": 1 + }, + "fun_exists": { + "entryPoint": 2920, + "id": 2199, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_getApprovedSlotAndAddress": { + "entryPoint": null, + "id": 2242, + "parameterSlots": 1, + "returnSlots": 2 + }, + "fun_isSenderApprovedOrOwner": { + "entryPoint": null, + "id": 2223, + "parameterSlots": 3, + "returnSlots": 1 + }, + "fun_packOwnershipData": { + "entryPoint": null, + "id": 2050, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_packedOwnershipOf": { + "entryPoint": 3154, + "id": 1984, + "parameterSlots": 1, + "returnSlots": 1 + }, + "fun_revert": { + "entryPoint": 3137, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_4386": { + "entryPoint": 3011, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_4388": { + "entryPoint": 3053, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_4394": { + "entryPoint": 3095, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_revert_4407": { + "entryPoint": null, + "id": 3427, + "parameterSlots": 0, + "returnSlots": 0 + }, + "fun_safeTransferFrom": { + "entryPoint": 2828, + "id": 2474, + "parameterSlots": 4, + "returnSlots": 0 + }, + "fun_transferFrom": { + "entryPoint": 2388, + "id": 2415, + "parameterSlots": 3, + "returnSlots": 0 + }, + "increment_wrapping_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_address_uint256_of_address": { + "entryPoint": null, + "id": null, + "parameterSlots": 2, + "returnSlots": 1 + }, + "mapping_index_access_mapping_address_uint256_of_address_4387": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_address_uint256_of_address_4389": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "mapping_index_access_mapping_uint256_struct_TokenApprovalRef_storage_of_uint256": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "panic_error_0x41": { + "entryPoint": 1912, + "id": null, + "parameterSlots": 0, + "returnSlots": 0 + }, + "read_from_storage_split_offset_bool": { + "entryPoint": null, + "id": null, + "parameterSlots": 1, + "returnSlots": 1 + }, + "validator_revert_bytes4": { + "entryPoint": 252, + "id": null, + "parameterSlots": 1, + "returnSlots": 0 + } + }, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146100f757806306fdde03146100f2578063081812fc146100ed578063095ea7b3146100e857806318160ddd146100e357806323b872dd146100de57806342842e0e146100d95780636352211e146100d457806370a08231146100cf57806395d89b41146100ca578063a22cb465146100c5578063b88d4fde146100c0578063c87b56dd146100bb5763e985e9c5146100b657600080fd5b6108f2565b610871565b6107ed565b6106e1565b61061b565b6105a7565b610578565b610555565b610541565b6104e9565b6103f9565b610360565b610251565b61012b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361012657565b600080fd5b346101265760203660031901126101265760207fffffffff0000000000000000000000000000000000000000000000000000000060043561016b816100fc565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156101d3575b81156101a9575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861019e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610197565b919082519283825260005b848110610229575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610208565b90602061024e9281815201906101fd565b90565b346101265760008060031936011261035d576040519080600254906001918060011c9260018216928315610353575b60209260208610851461033f57858852602088019490811561031e57506001146102c5575b6102c1876102b5818903826107af565b6040519182918261023d565b0390f35b600260005294509192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b83861061030d57505050910190506102b5826102c138806102a5565b8054858701529482019481016102f1565b60ff191685525050505090151560051b0190506102b5826102c138806102a5565b602482634e487b7160e01b81526022600452fd5b93607f1693610280565b80fd5b346101265760203660031901126101265760043561037d81610b68565b156103a357600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361012657565b602435906001600160a01b038216820361012657565b60403660031901126101265761040d6103cd565b6024356001600160a01b03918261042383610c52565b1680330361048d575b600093838552600660205260408520921691827fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff6104b9336040600020906001600160a01b0316600052602052604060002090565b541661042c577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346101265760003660031901126101265760206000546001549003604051908152f35b6060906003190112610126576001600160a01b0390600435828116810361012657916024359081168103610126579060443590565b61055361054d3661050c565b91610954565b005b6105536105613661050c565b906040519261056f8461078e565b60008452610b0c565b346101265760203660031901126101265760206001600160a01b0361059e600435610c52565b16604051908152f35b34610126576020366003190112610126576001600160a01b036105c86103cd565b1680156105f1576000526005602052602067ffffffffffffffff60406000205416604051908152f35b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b346101265760008060031936011261035d576040519080600354906001918060011c92600182169283156106d7575b60209260208610851461033f57858852602088019490811561031e575060011461067e576102c1876102b5818903826107af565b600360005294509192917fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8386106106c657505050910190506102b5826102c138806102a5565b8054858701529482019481016106aa565b93607f169361064a565b34610126576040366003190112610126576106fa6103cd565b60243590811515809203610126576001600160a01b039033600052600760205261073b816040600020906001600160a01b0316600052602052604060002090565b60ff1981541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff8211176107aa57604052565b610778565b90601f8019910116810190811067ffffffffffffffff8211176107aa57604052565b67ffffffffffffffff81116107aa57601f01601f191660200190565b6080366003190112610126576108016103cd565b6108096103e3565b6064359167ffffffffffffffff8311610126573660238401121561012657826004013591610836836107d1565b9261084460405194856107af565b80845236602482870101116101265760208160009260246105539801838801378501015260443591610b0c565b346101265760203660031901126101265761088d600435610b68565b156108c85760006040516108a08161078e565b526102c16040516108b08161078e565b600081526040519182916020835260208301906101fd565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461012657604036600319011261012657602060ff6109486109126103cd565b6001600160a01b036109226103e3565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b91909161096082610c52565b926001600160a01b03809216938483821603610b0757600084815260066020526040902080546109a36001600160a01b03881633908114908314171590565b1590565b610ab7575b610aad575b506109cb856001600160a01b03166000526005602052604060002090565b80546000190190556109f0826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b17610a20856000526004602052604060002090565b55600160e11b811615610a63575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a415610a5e57565b610c17565b60018401610a7b816000526004602052604060002090565b5415610a88575b50610a2e565b6000548114610a8257610aa5906000526004602052604060002090565b553880610a82565b60009055386109ad565b610afd61099f610af633610ade8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b5460ff1690565b156109a857610bed565b610bc3565b929190610b1a828286610954565b803b610b27575b50505050565b610b3093610d14565b15610b3e5738808080610b21565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210610b7a575050565b9192505b808252600480602052604083205480610bb557508115610ba2575060001901610b7e565b826011602492634e487b7160e01b835252fd5b600160e01b16159392505050565b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b610c66816000526004602052604060002090565b54908115610c7d5750600160e01b8116610c415790565b9050600090600054811015610c41575b60001901600081815260046020526040902054908115610cc85750600160e01b811615610cc357600482636f96cda160e11b8152fd5b905090565b9050610c8d565b90816020910312610126575161024e816100fc565b3d15610d0f573d90610cf5826107d1565b91610d0360405193846107af565b82523d6000602084013e565b606090565b92602091610d779360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906101fd565b0393165af160009181610dcc575b50610da657610d92610ce4565b805115610da157805190602001fd5b610b3e565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b610def91925060203d602011610df6575b610de781836107af565b810190610ccf565b9038610d85565b503d610ddd56fea2646970667358221220b28de2214a5dd2cc28b2cbee1e6f518ffdd1eb9ab7b9fb5bab69a5e6d059985064736f6c63430008180033", + "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT ISZERO PUSH2 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0xF7 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0xF2 JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0xED JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0xE8 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0xE3 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0xDE JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0xD9 JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0xD4 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0xCF JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0xCA JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0xC5 JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0xC0 JUMPI DUP1 PUSH4 0xC87B56DD EQ PUSH2 0xBB JUMPI PUSH4 0xE985E9C5 EQ PUSH2 0xB6 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x871 JUMP JUMPDEST PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x6E1 JUMP JUMPDEST PUSH2 0x61B JUMP JUMPDEST PUSH2 0x5A7 JUMP JUMPDEST PUSH2 0x578 JUMP JUMPDEST PUSH2 0x555 JUMP JUMPDEST PUSH2 0x541 JUMP JUMPDEST PUSH2 0x4E9 JUMP JUMPDEST PUSH2 0x3F9 JUMP JUMPDEST PUSH2 0x360 JUMP JUMPDEST PUSH2 0x251 JUMP JUMPDEST PUSH2 0x12B JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 DUP2 AND SUB PUSH2 0x126 JUMPI JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH1 0x4 CALLDATALOAD PUSH2 0x16B DUP2 PUSH2 0xFC JUMP JUMPDEST AND PUSH32 0x1FFC9A700000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP1 DUP2 ISZERO PUSH2 0x1D3 JUMPI JUMPDEST DUP2 ISZERO PUSH2 0x1A9 JUMPI JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST PUSH32 0x5B5E139F00000000000000000000000000000000000000000000000000000000 SWAP2 POP EQ CODESIZE PUSH2 0x19E JUMP JUMPDEST PUSH32 0x80AC58CD00000000000000000000000000000000000000000000000000000000 DUP2 EQ SWAP2 POP PUSH2 0x197 JUMP JUMPDEST SWAP2 SWAP1 DUP3 MLOAD SWAP3 DUP4 DUP3 MSTORE PUSH1 0x0 JUMPDEST DUP5 DUP2 LT PUSH2 0x229 JUMPI POP POP DUP3 PUSH1 0x0 PUSH1 0x20 DUP1 SWAP5 SWAP6 DUP5 ADD ADD MSTORE PUSH1 0x1F DUP1 NOT SWAP2 ADD AND ADD ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP2 DUP4 ADD DUP2 ADD MLOAD DUP5 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0x208 JUMP JUMPDEST SWAP1 PUSH1 0x20 PUSH2 0x24E SWAP3 DUP2 DUP2 MSTORE ADD SWAP1 PUSH2 0x1FD JUMP JUMPDEST SWAP1 JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x35D JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x2 SLOAD SWAP1 PUSH1 0x1 SWAP2 DUP1 PUSH1 0x1 SHR SWAP3 PUSH1 0x1 DUP3 AND SWAP3 DUP4 ISZERO PUSH2 0x353 JUMPI JUMPDEST PUSH1 0x20 SWAP3 PUSH1 0x20 DUP7 LT DUP6 EQ PUSH2 0x33F JUMPI DUP6 DUP9 MSTORE PUSH1 0x20 DUP9 ADD SWAP5 SWAP1 DUP2 ISZERO PUSH2 0x31E JUMPI POP PUSH1 0x1 EQ PUSH2 0x2C5 JUMPI JUMPDEST PUSH2 0x2C1 DUP8 PUSH2 0x2B5 DUP2 DUP10 SUB DUP3 PUSH2 0x7AF JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 DUP3 PUSH2 0x23D JUMP JUMPDEST SUB SWAP1 RETURN JUMPDEST PUSH1 0x2 PUSH1 0x0 MSTORE SWAP5 POP SWAP2 SWAP3 SWAP2 PUSH32 0x405787FA12A823E0F2B7631CC41B3BA8828B3321CA811111FA75CD3AA3BB5ACE JUMPDEST DUP4 DUP7 LT PUSH2 0x30D JUMPI POP POP POP SWAP2 ADD SWAP1 POP PUSH2 0x2B5 DUP3 PUSH2 0x2C1 CODESIZE DUP1 PUSH2 0x2A5 JUMP JUMPDEST DUP1 SLOAD DUP6 DUP8 ADD MSTORE SWAP5 DUP3 ADD SWAP5 DUP2 ADD PUSH2 0x2F1 JUMP JUMPDEST PUSH1 0xFF NOT AND DUP6 MSTORE POP POP POP POP SWAP1 ISZERO ISZERO PUSH1 0x5 SHL ADD SWAP1 POP PUSH2 0x2B5 DUP3 PUSH2 0x2C1 CODESIZE DUP1 PUSH2 0x2A5 JUMP JUMPDEST PUSH1 0x24 DUP3 PUSH4 0x4E487B71 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE REVERT JUMPDEST SWAP4 PUSH1 0x7F AND SWAP4 PUSH2 0x280 JUMP JUMPDEST DUP1 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x4 CALLDATALOAD PUSH2 0x37D DUP2 PUSH2 0xB68 JUMP JUMPDEST ISZERO PUSH2 0x3A3 JUMPI PUSH1 0x0 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH32 0xCF4700E400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x4 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x126 JUMPI JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND DUP3 SUB PUSH2 0x126 JUMPI JUMP JUMPDEST PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x40D PUSH2 0x3CD JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 PUSH2 0x423 DUP4 PUSH2 0xC52 JUMP JUMPDEST AND DUP1 CALLER SUB PUSH2 0x48D JUMPI JUMPDEST PUSH1 0x0 SWAP4 DUP4 DUP6 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 DUP6 KECCAK256 SWAP3 AND SWAP2 DUP3 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 DUP3 SLOAD AND OR SWAP1 SSTORE PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 DUP5 DUP1 LOG4 DUP1 RETURN JUMPDEST DUP1 PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0xFF PUSH2 0x4B9 CALLER PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH2 0x42C JUMPI PUSH32 0xCFB3B94200000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x0 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH1 0x0 SLOAD PUSH1 0x1 SLOAD SWAP1 SUB PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH1 0x60 SWAP1 PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 PUSH1 0x4 CALLDATALOAD DUP3 DUP2 AND DUP2 SUB PUSH2 0x126 JUMPI SWAP2 PUSH1 0x24 CALLDATALOAD SWAP1 DUP2 AND DUP2 SUB PUSH2 0x126 JUMPI SWAP1 PUSH1 0x44 CALLDATALOAD SWAP1 JUMP JUMPDEST PUSH2 0x553 PUSH2 0x54D CALLDATASIZE PUSH2 0x50C JUMP JUMPDEST SWAP2 PUSH2 0x954 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x553 PUSH2 0x561 CALLDATASIZE PUSH2 0x50C JUMP JUMPDEST SWAP1 PUSH1 0x40 MLOAD SWAP3 PUSH2 0x56F DUP5 PUSH2 0x78E JUMP JUMPDEST PUSH1 0x0 DUP5 MSTORE PUSH2 0xB0C JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x59E PUSH1 0x4 CALLDATALOAD PUSH2 0xC52 JUMP JUMPDEST AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x5C8 PUSH2 0x3CD JUMP JUMPDEST AND DUP1 ISZERO PUSH2 0x5F1 JUMPI PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x20 PUSH8 0xFFFFFFFFFFFFFFFF PUSH1 0x40 PUSH1 0x0 KECCAK256 SLOAD AND PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE RETURN JUMPDEST PUSH32 0x8F4EB60400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x0 DUP1 PUSH1 0x3 NOT CALLDATASIZE ADD SLT PUSH2 0x35D JUMPI PUSH1 0x40 MLOAD SWAP1 DUP1 PUSH1 0x3 SLOAD SWAP1 PUSH1 0x1 SWAP2 DUP1 PUSH1 0x1 SHR SWAP3 PUSH1 0x1 DUP3 AND SWAP3 DUP4 ISZERO PUSH2 0x6D7 JUMPI JUMPDEST PUSH1 0x20 SWAP3 PUSH1 0x20 DUP7 LT DUP6 EQ PUSH2 0x33F JUMPI DUP6 DUP9 MSTORE PUSH1 0x20 DUP9 ADD SWAP5 SWAP1 DUP2 ISZERO PUSH2 0x31E JUMPI POP PUSH1 0x1 EQ PUSH2 0x67E JUMPI PUSH2 0x2C1 DUP8 PUSH2 0x2B5 DUP2 DUP10 SUB DUP3 PUSH2 0x7AF JUMP JUMPDEST PUSH1 0x3 PUSH1 0x0 MSTORE SWAP5 POP SWAP2 SWAP3 SWAP2 PUSH32 0xC2575A0E9E593C00F959F8C92F12DB2869C3395A3B0502D05E2516446F71F85B JUMPDEST DUP4 DUP7 LT PUSH2 0x6C6 JUMPI POP POP POP SWAP2 ADD SWAP1 POP PUSH2 0x2B5 DUP3 PUSH2 0x2C1 CODESIZE DUP1 PUSH2 0x2A5 JUMP JUMPDEST DUP1 SLOAD DUP6 DUP8 ADD MSTORE SWAP5 DUP3 ADD SWAP5 DUP2 ADD PUSH2 0x6AA JUMP JUMPDEST SWAP4 PUSH1 0x7F AND SWAP4 PUSH2 0x64A JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x6FA PUSH2 0x3CD JUMP JUMPDEST PUSH1 0x24 CALLDATALOAD SWAP1 DUP2 ISZERO ISZERO DUP1 SWAP3 SUB PUSH2 0x126 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 CALLER PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH2 0x73B DUP2 PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST PUSH1 0xFF NOT DUP2 SLOAD AND PUSH1 0xFF DUP6 AND OR SWAP1 SSTORE PUSH1 0x40 MLOAD SWAP3 DUP4 MSTORE AND SWAP1 PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 PUSH1 0x20 CALLER SWAP3 LOG3 STOP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x7AA JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH2 0x778 JUMP JUMPDEST SWAP1 PUSH1 0x1F DUP1 NOT SWAP2 ADD AND DUP2 ADD SWAP1 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR PUSH2 0x7AA JUMPI PUSH1 0x40 MSTORE JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x7AA JUMPI PUSH1 0x1F ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x80 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x801 PUSH2 0x3CD JUMP JUMPDEST PUSH2 0x809 PUSH2 0x3E3 JUMP JUMPDEST PUSH1 0x64 CALLDATALOAD SWAP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT PUSH2 0x126 JUMPI CALLDATASIZE PUSH1 0x23 DUP5 ADD SLT ISZERO PUSH2 0x126 JUMPI DUP3 PUSH1 0x4 ADD CALLDATALOAD SWAP2 PUSH2 0x836 DUP4 PUSH2 0x7D1 JUMP JUMPDEST SWAP3 PUSH2 0x844 PUSH1 0x40 MLOAD SWAP5 DUP6 PUSH2 0x7AF JUMP JUMPDEST DUP1 DUP5 MSTORE CALLDATASIZE PUSH1 0x24 DUP3 DUP8 ADD ADD GT PUSH2 0x126 JUMPI PUSH1 0x20 DUP2 PUSH1 0x0 SWAP3 PUSH1 0x24 PUSH2 0x553 SWAP9 ADD DUP4 DUP9 ADD CALLDATACOPY DUP6 ADD ADD MSTORE PUSH1 0x44 CALLDATALOAD SWAP2 PUSH2 0xB0C JUMP JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x20 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH2 0x88D PUSH1 0x4 CALLDATALOAD PUSH2 0xB68 JUMP JUMPDEST ISZERO PUSH2 0x8C8 JUMPI PUSH1 0x0 PUSH1 0x40 MLOAD PUSH2 0x8A0 DUP2 PUSH2 0x78E JUMP JUMPDEST MSTORE PUSH2 0x2C1 PUSH1 0x40 MLOAD PUSH2 0x8B0 DUP2 PUSH2 0x78E JUMP JUMPDEST PUSH1 0x0 DUP2 MSTORE PUSH1 0x40 MLOAD SWAP2 DUP3 SWAP2 PUSH1 0x20 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP1 PUSH2 0x1FD JUMP JUMPDEST PUSH32 0xA14C4B5000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST CALLVALUE PUSH2 0x126 JUMPI PUSH1 0x40 CALLDATASIZE PUSH1 0x3 NOT ADD SLT PUSH2 0x126 JUMPI PUSH1 0x20 PUSH1 0xFF PUSH2 0x948 PUSH2 0x912 PUSH2 0x3CD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x922 PUSH2 0x3E3 JUMP JUMPDEST SWAP2 AND PUSH1 0x0 MSTORE PUSH1 0x7 DUP5 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD AND PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE RETURN JUMPDEST SWAP2 SWAP1 SWAP2 PUSH2 0x960 DUP3 PUSH2 0xC52 JUMP JUMPDEST SWAP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 SWAP3 AND SWAP4 DUP5 DUP4 DUP3 AND SUB PUSH2 0xB07 JUMPI PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH2 0x9A3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND CALLER SWAP1 DUP2 EQ SWAP1 DUP4 EQ OR ISZERO SWAP1 JUMP JUMPDEST ISZERO SWAP1 JUMP JUMPDEST PUSH2 0xAB7 JUMPI JUMPDEST PUSH2 0xAAD JUMPI JUMPDEST POP PUSH2 0x9CB DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x0 NOT ADD SWAP1 SSTORE PUSH2 0x9F0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND TIMESTAMP PUSH1 0xA0 SHL OR PUSH1 0x1 PUSH1 0xE1 SHL OR PUSH2 0xA20 DUP6 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE PUSH1 0x1 PUSH1 0xE1 SHL DUP2 AND ISZERO PUSH2 0xA63 JUMPI JUMPDEST POP AND DUP1 SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF PUSH1 0x0 DUP1 LOG4 ISZERO PUSH2 0xA5E JUMPI JUMP JUMPDEST PUSH2 0xC17 JUMP JUMPDEST PUSH1 0x1 DUP5 ADD PUSH2 0xA7B DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD ISZERO PUSH2 0xA88 JUMPI JUMPDEST POP PUSH2 0xA2E JUMP JUMPDEST PUSH1 0x0 SLOAD DUP2 EQ PUSH2 0xA82 JUMPI PUSH2 0xAA5 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SSTORE CODESIZE DUP1 PUSH2 0xA82 JUMP JUMPDEST PUSH1 0x0 SWAP1 SSTORE CODESIZE PUSH2 0x9AD JUMP JUMPDEST PUSH2 0xAFD PUSH2 0x99F PUSH2 0xAF6 CALLER PUSH2 0xADE DUP12 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x7 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 MSTORE PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST ISZERO PUSH2 0x9A8 JUMPI PUSH2 0xBED JUMP JUMPDEST PUSH2 0xBC3 JUMP JUMPDEST SWAP3 SWAP2 SWAP1 PUSH2 0xB1A DUP3 DUP3 DUP7 PUSH2 0x954 JUMP JUMPDEST DUP1 EXTCODESIZE PUSH2 0xB27 JUMPI JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0xB30 SWAP4 PUSH2 0xD14 JUMP JUMPDEST ISZERO PUSH2 0xB3E JUMPI CODESIZE DUP1 DUP1 DUP1 PUSH2 0xB21 JUMP JUMPDEST PUSH32 0xD1A57ED600000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 SWAP2 PUSH1 0x0 DUP1 SLOAD DUP3 LT PUSH2 0xB7A JUMPI POP POP JUMP JUMPDEST SWAP2 SWAP3 POP JUMPDEST DUP1 DUP3 MSTORE PUSH1 0x4 DUP1 PUSH1 0x20 MSTORE PUSH1 0x40 DUP4 KECCAK256 SLOAD DUP1 PUSH2 0xBB5 JUMPI POP DUP2 ISZERO PUSH2 0xBA2 JUMPI POP PUSH1 0x0 NOT ADD PUSH2 0xB7E JUMP JUMPDEST DUP3 PUSH1 0x11 PUSH1 0x24 SWAP3 PUSH4 0x4E487B71 PUSH1 0xE0 SHL DUP4 MSTORE MSTORE REVERT JUMPDEST PUSH1 0x1 PUSH1 0xE0 SHL AND ISZERO SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0xA114810000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0x59C896BE00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH32 0xEA553B3400000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x0 REVERT JUMPDEST PUSH2 0xC66 DUP2 PUSH1 0x0 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 PUSH1 0x0 KECCAK256 SWAP1 JUMP JUMPDEST SLOAD SWAP1 DUP2 ISZERO PUSH2 0xC7D JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND PUSH2 0xC41 JUMPI SWAP1 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 SWAP1 PUSH1 0x0 SLOAD DUP2 LT ISZERO PUSH2 0xC41 JUMPI JUMPDEST PUSH1 0x0 NOT ADD PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 DUP2 ISZERO PUSH2 0xCC8 JUMPI POP PUSH1 0x1 PUSH1 0xE0 SHL DUP2 AND ISZERO PUSH2 0xCC3 JUMPI PUSH1 0x4 DUP3 PUSH4 0x6F96CDA1 PUSH1 0xE1 SHL DUP2 MSTORE REVERT JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST SWAP1 POP PUSH2 0xC8D JUMP JUMPDEST SWAP1 DUP2 PUSH1 0x20 SWAP2 SUB SLT PUSH2 0x126 JUMPI MLOAD PUSH2 0x24E DUP2 PUSH2 0xFC JUMP JUMPDEST RETURNDATASIZE ISZERO PUSH2 0xD0F JUMPI RETURNDATASIZE SWAP1 PUSH2 0xCF5 DUP3 PUSH2 0x7D1 JUMP JUMPDEST SWAP2 PUSH2 0xD03 PUSH1 0x40 MLOAD SWAP4 DUP5 PUSH2 0x7AF JUMP JUMPDEST DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY JUMP JUMPDEST PUSH1 0x60 SWAP1 JUMP JUMPDEST SWAP3 PUSH1 0x20 SWAP2 PUSH2 0xD77 SWAP4 PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH1 0x40 MLOAD DUP1 SWAP8 DUP2 SWAP7 DUP3 SWAP6 DUP5 PUSH32 0x150B7A0200000000000000000000000000000000000000000000000000000000 SWAP13 DUP14 DUP7 MSTORE CALLER PUSH1 0x4 DUP8 ADD MSTORE AND PUSH1 0x24 DUP6 ADD MSTORE PUSH1 0x44 DUP5 ADD MSTORE PUSH1 0x80 PUSH1 0x64 DUP5 ADD MSTORE PUSH1 0x84 DUP4 ADD SWAP1 PUSH2 0x1FD JUMP JUMPDEST SUB SWAP4 AND GAS CALL PUSH1 0x0 SWAP2 DUP2 PUSH2 0xDCC JUMPI JUMPDEST POP PUSH2 0xDA6 JUMPI PUSH2 0xD92 PUSH2 0xCE4 JUMP JUMPDEST DUP1 MLOAD ISZERO PUSH2 0xDA1 JUMPI DUP1 MLOAD SWAP1 PUSH1 0x20 ADD REVERT JUMPDEST PUSH2 0xB3E JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND EQ SWAP1 JUMP JUMPDEST PUSH2 0xDEF SWAP2 SWAP3 POP PUSH1 0x20 RETURNDATASIZE PUSH1 0x20 GT PUSH2 0xDF6 JUMPI JUMPDEST PUSH2 0xDE7 DUP2 DUP4 PUSH2 0x7AF JUMP JUMPDEST DUP2 ADD SWAP1 PUSH2 0xCCF JUMP JUMPDEST SWAP1 CODESIZE PUSH2 0xD85 JUMP JUMPDEST POP RETURNDATASIZE PUSH2 0xDDD JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB2 DUP14 0xE2 0x21 BLOBBASEFEE TSTORE 0xD2 0xCC 0x28 0xB2 0xCB 0xEE 0x1E PUSH16 0x518FFDD1EB9AB7B9FB5BAB69A5E6D059 SWAP9 POP PUSH5 0x736F6C6343 STOP ADDMOD XOR STOP CALLER ", + "sourceMap": "1053:48812:10:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;;;;;;:::o;:::-;;;;;;;;;;-1:-1:-1;;1053:48812:10;;;;;;;;;;;:::i;:::-;;;11092:25;;:101;;;;;1053:48812;11092:177;;;;1053:48812;;;;;;;;;;11092:177;1053:48812;11244:25;;;11092:177;;;:101;1053:48812;11168:25;;;-1:-1:-1;11092:101:10;;1053:48812;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;11659:5;1053:48812;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;11659:5;1053:48812;;;-1:-1:-1;1053:48812:10;;;;;;;;;;-1:-1:-1;;;1053:48812:10;;;-1:-1:-1;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1053:48812:10;;;-1:-1:-1;;;;1053:48812:10;;;;;;;-1:-1:-1;1053:48812:10;;;;;;;;;;-1:-1:-1;;;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1053:48812:10;;;;;;18736:16;;;:::i;:::-;18735:17;18731:73;;-1:-1:-1;1053:48812:10;18822:15;1053:48812;;;-1:-1:-1;;;;;1053:48812:10;-1:-1:-1;1053:48812:10;;;;;;;;;18731:73;18762:41;-1:-1:-1;49766:91:10;1053:48812;-1:-1:-1;49766:91:10;1053:48812;;;;-1:-1:-1;;;;;1053:48812:10;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;1053:48812:10;;;;;;:::o;:::-;;;-1:-1:-1;;1053:48812:10;;;;;;:::i;:::-;;;-1:-1:-1;;;;;13048:27:10;;;;;:::i;:::-;1053:48812;47819:10;;41521:28;41500:198;;1053:48812;-1:-1:-1;1053:48812:10;;;;41708:15;1053:48812;;;;;;;;;;;;;;;;41758:28;;;;1053:48812;;41500:198;2943:14;-1:-1:-1;2943:14:10;19687:18;1053:48812;2943:14;1053:48812;19687:35;47819:10;1053:48812;-1:-1:-1;2943:14:10;;-1:-1:-1;;;;;1053:48812:10;2943:14;;;;;;;;;19687:35;1053:48812;;41500:198;41563:135;41640:42;-1:-1:-1;49766:91:10;;-1:-1:-1;49766:91:10;1053:48812;;;;;;-1:-1:-1;;1053:48812:10;;;;;;;7328:12;1053:48812;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;:::i;:::-;;;:::i;:::-;;;26475:39;1053:48812;;;:::i;:::-;;;;;;;;:::i;:::-;;;;26475:39;:::i;1053:48812::-;;;;;;-1:-1:-1;;1053:48812:10;;;;;-1:-1:-1;;;;;13048:27:10;1053:48812;;13048:27;:::i;:::-;1053:48812;;;;;;;;;;;;;-1:-1:-1;;1053:48812:10;;;;-1:-1:-1;;;;;1053:48812:10;;:::i;:::-;;8665:19;;8661:69;;-1:-1:-1;2943:14:10;8747:18;1053:48812;2943:14;1053:48812;1518:13;2943:14;-1:-1:-1;2943:14:10;1053:48812;8747:55;2943:14;1053:48812;;;;;8661:69;8694:35;-1:-1:-1;49766:91:10;1053:48812;-1:-1:-1;49766:91:10;1053:48812;;;;;;;;;;;;;;;;;11830:7;1053:48812;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11830:7;1053:48812;;;-1:-1:-1;1053:48812:10;;;;;;;;;;-1:-1:-1;;;1053:48812:10;;;-1:-1:-1;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1053:48812:10;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;47819:10:10;;-1:-1:-1;2943:14:10;19280:18;1053:48812;2943:14;19280:49;2943:14;1053:48812;-1:-1:-1;2943:14:10;;-1:-1:-1;;;;;1053:48812:10;2943:14;;;;;;;;;19280:49;1053:48812;;;;;;;;;;;;;;;;;47819:10;19355:55;1053:48812;47819:10;19355:55;;1053:48812;;-1:-1:-1;;;1053:48812:10;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;1053:48812:10;;;;:::o;:::-;;;-1:-1:-1;;1053:48812:10;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;1053:48812:10;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;1053:48812:10;;;;12048:16;1053:48812;;12048:16;:::i;:::-;12047:17;12043:68;;-1:-1:-1;1053:48812:10;;;;;:::i;:::-;;;;;;;;:::i;:::-;-1:-1:-1;1053:48812:10;;;;;;;;;;;;;;;:::i;12043:68::-;12074:36;-1:-1:-1;49766:91:10;1053:48812;-1:-1:-1;49766:91:10;1053:48812;;;;;;-1:-1:-1;;1053:48812:10;;;;;;19687:35;1053:48812;;:::i;:::-;-1:-1:-1;;;;;1053:48812:10;;:::i;:::-;;;-1:-1:-1;2943:14:10;19687:18;2943:14;;1053:48812;-1:-1:-1;2943:14:10;;-1:-1:-1;;;;;1053:48812:10;2943:14;;;;;;;;;19687:35;1053:48812;;;;;;;;;;22796:3447;;;;22963:27;;;:::i;:::-;1053:48812;-1:-1:-1;;;;;1053:48812:10;;;;;;;;23173:45;23169:95;;-1:-1:-1;1053:48812:10;;;21929:15;1053:48812;;;;;22057:132;;23463:69;-1:-1:-1;;;;;21135:472:10;;47819:10;21135:472;;;;;;;23463:69;;1053:48812;23464:68;23463:69;;1053:48812;23463:69;23459:188;;22796:3447;23764:190;;22796:3447;24316:24;;;-1:-1:-1;;;;;1053:48812:10;2943:14;;24316:18;2943:14;;;;;;;24316:24;1053:48812;;-1:-1:-1;;2943:14:10;;;24384:22;;-1:-1:-1;;;;;1053:48812:10;2943:14;;24316:18;2943:14;;;;;;;24384:22;1053:48812;;2943:14;;;;-1:-1:-1;;;;;17192:331:10;;;;;;-1:-1:-1;;;17192:331:10;24670:26;;1053:48812;;24670:17;1053:48812;;;;;;;24670:26;2943:14;-1:-1:-1;;;24959:47:10;;:52;24955:617;;22796:3447;1053:48812;;25749:367;;;-1:-1:-1;25749:367:10;;26129:13;26125:58;;22796:3447::o;26125:58::-;26152:30;:::i;24955:617::-;25063:1;1053:48812;;25184:30;;1053:48812;;24670:17;1053:48812;;;;;;;25184:30;1053:48812;25184:35;25180:378;;24955:617;;;;25180:378;-1:-1:-1;1053:48812:10;25301:239;;25180:378;25301:239;25465:30;;1053:48812;;24670:17;1053:48812;;;;;;;25465:30;2943:14;25301:239;;25180:378;;23764:190;;;;;;;23459:188;23550:44;19687:35;;47819:10;19687:25;;-1:-1:-1;;;;;1053:48812:10;2943:14;;19687:18;2943:14;;;;;;;19687:25;2943:14;-1:-1:-1;;;;;1053:48812:10;2943:14;;;;;;;;;19687:35;1053:48812;;;;;23550:44;23546:101;23459:188;23546:101;23604:42;:::i;23169:95::-;23228:35;:::i;27102:405::-;;;;27294:7;;;;;:::i;:::-;27316:14;;27312:189;;27102:405;;;;;:::o;27312:189::-;27354:56;;;:::i;:::-;27353:57;27349:152;;27312:189;;;;;;27349:152;27438:47;27334:1;49766:91;;27334:1;49766:91;19978:465;;1053:48812;20043:11;1053:48812;;;20221:23;;20217:210;;19978:465;;:::o;20217:210::-;20264:14;;-1:-1:-1;20296:60:10;1053:48812;;;20313:17;1053:48812;;;;;;;20303:42;;;1053:48812;;;;;-1:-1:-1;;;1053:48812:10;20296:60;;1053:48812;;;;;-1:-1:-1;;;1053:48812:10;;;;20303:42;-1:-1:-1;;;20383:24:10;:29;;20217:210;-1:-1:-1;;;19978:465:10:o;49703:160::-;23228:35;49766:91;;;;;49703:160;23604:42;49766:91;;;;;49703:160;26152:30;49766:91;;;;;49703:160;-1:-1:-1;;;49766:91:10;;;;;14380:2173;14528:26;;1053:48812;;24670:17;1053:48812;;;;;;;14528:26;1053:48812;14847:11;;;14843:1270;;16435:24;-1:-1:-1;;;16435:24:10;;16507:38;16431:48;16466:13;:::o;14843:1270::-;6048:1;;;1053:48812;6048:1;1053:48812;14882:24;;;14878:77;;15502:597;-1:-1:-1;;2943:14:10;;1053:48812;;;24670:17;1053:48812;;;;;;15654:11;;;15650:25;;15701:24;-1:-1:-1;;;15701:24:10;;:29;15697:48;;49766:91;;-1:-1:-1;;;49766:91:10;;;15697:48;15732:13;;;:::o;15650:25::-;15502:597;-1:-1:-1;15502:597:10;;1053:48812;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;1053:48812:10;;;;:::o;:::-;;;:::o;29533:673::-;;29711:88;29533:673;1053:48812;29533:673;-1:-1:-1;;;;;;1053:48812:10;;;;;;;;;;29711:88;;;;47819:10;29711:88;;;1053:48812;;;;;;;;;;;;;;;;;;;;:::i;:::-;29711:88;1053:48812;;29711:88;;-1:-1:-1;;29711:88:10;;;29533:673;-1:-1:-1;29707:493:10;;29943:257;;:::i;:::-;1053:48812;;29989:18;29985:113;;30111:79;;;29711:88;30111:79;;29985:113;30035:47;:::i;29707:493::-;1053:48812;;29867:64;29860:71;:::o;29711:88::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;" + }, + "methodIdentifiers": { + "approve(address,uint256)": "095ea7b3", + "balanceOf(address)": "70a08231", + "getApproved(uint256)": "081812fc", + "isApprovedForAll(address,address)": "e985e9c5", + "name()": "06fdde03", + "ownerOf(uint256)": "6352211e", + "safeTransferFrom(address,address,uint256)": "42842e0e", + "safeTransferFrom(address,address,uint256,bytes)": "b88d4fde", + "setApprovalForAll(address,bool)": "a22cb465", + "supportsInterface(bytes4)": "01ffc9a7", + "symbol()": "95d89b41", + "tokenURI(uint256)": "c87b56dd", + "totalSupply()": "18160ddd", + "transferFrom(address,address,uint256)": "23b872dd" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ApprovalCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ApprovalQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BalanceQueryForZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintERC2309QuantityExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintZeroQuantity\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotCompatibleWithSpotMints\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnerQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnershipNotInitializedForExtraData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SequentialMintExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SequentialUpToTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpotMintTokenIdTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromIncorrectOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToNonERC721ReceiverImplementer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"URIQueryForNonexistentToken\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"fromTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toTokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"ConsecutiveTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"result\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) Non-Fungible Token Standard, including the Metadata extension. Optimized for lower gas during batch mints. Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) starting from `_startTokenId()`. The `_sequentialUpTo()` function can be overriden to enable spot mints (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. Assumptions: - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when `owner` enables `approved` to manage the `tokenId` token.\"},\"ApprovalForAll(address,address,bool)\":{\"details\":\"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\"},\"ConsecutiveTransfer(uint256,uint256,address,address)\":{\"details\":\"Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, as defined in the [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. See {_mintERC2309} for more details.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `tokenId` token is transferred from `from` to `to`.\"}},\"kind\":\"dev\",\"methods\":{\"approve(address,uint256)\":{\"details\":\"Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. Requirements: - The caller must own the token or be an approved operator.\"},\"balanceOf(address)\":{\"details\":\"Returns the number of tokens in `owner`'s account.\"},\"getApproved(uint256)\":{\"details\":\"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist.\"},\"isApprovedForAll(address,address)\":{\"details\":\"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}.\"},\"name()\":{\"details\":\"Returns the token collection name.\"},\"ownerOf(uint256)\":{\"details\":\"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"Equivalent to `safeTransferFrom(from, to, tokenId, '')`.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) to learn more about how these ids are created. This function call must use less than 30000 gas.\"},\"symbol()\":{\"details\":\"Returns the token collection symbol.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the Uniform Resource Identifier (URI) for `tokenId` token.\"},\"totalSupply()\":{\"details\":\"Returns the total number of tokens in existence. Burned tokens will reduce the count. To get the total number of tokens minted, please see {_totalMinted}.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Transfers `tokenId` from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.\"}},\"title\":\"ERC721A\",\"version\":1},\"userdoc\":{\"errors\":{\"ApprovalCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"ApprovalQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"BalanceQueryForZeroAddress()\":[{\"notice\":\"Cannot query the balance for the zero address.\"}],\"MintERC2309QuantityExceedsLimit()\":[{\"notice\":\"The `quantity` minted with ERC2309 exceeds the safety limit.\"}],\"MintToZeroAddress()\":[{\"notice\":\"Cannot mint to the zero address.\"}],\"MintZeroQuantity()\":[{\"notice\":\"The quantity of tokens minted must be more than zero.\"}],\"NotCompatibleWithSpotMints()\":[{\"notice\":\"The feature is not compatible with spot mints.\"}],\"OwnerQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"OwnershipNotInitializedForExtraData()\":[{\"notice\":\"The `extraData` cannot be set on an unintialized ownership slot.\"}],\"SequentialMintExceedsLimit()\":[{\"notice\":\"The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.\"}],\"SequentialUpToTooSmall()\":[{\"notice\":\"`_sequentialUpTo()` must be greater than `_startTokenId()`.\"}],\"SpotMintTokenIdTooSmall()\":[{\"notice\":\"Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.\"}],\"TokenAlreadyExists()\":[{\"notice\":\"Cannot mint over a token that already exists.\"}],\"TransferCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"TransferFromIncorrectOwner()\":[{\"notice\":\"The token must be owned by `from`.\"}],\"TransferToNonERC721ReceiverImplementer()\":[{\"notice\":\"Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.\"}],\"TransferToZeroAddress()\":[{\"notice\":\"Cannot transfer to the zero address.\"}],\"URIQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}]},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"erc721a/contracts/ERC721A.sol\":\"ERC721A\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"erc721a/contracts/ERC721A.sol\":{\"keccak256\":\"0xede758d13ccce2f54a4bcd16816456109b290759d43988205539cf632f4c8a55\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b63befef8f79ec44ebe5db096767cab6772485c2b01a431759e7fcdcf7fd0bb1\",\"dweb:/ipfs/QmV45KT2ai7PnVRhpJKjB29A15VGnhsvxxBFrrUSwhe2fr\"]},\"erc721a/contracts/IERC721A.sol\":{\"keccak256\":\"0xc9a2a00612e0d121aef3f716877ada17177d5b2d5a4c780d22cade46da2ff294\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1435542fc553d2fb9181191f126a1f97e2cc5570c2459c862f54ba415a22bf02\",\"dweb:/ipfs/QmaQJ14ajkHgymY5TtoxHnpiN5u4TpwXCqKr2B6DM8SHkn\"]}},\"version\":1}" + }, + "ERC721A__IERC721Receiver": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "onERC721Received(address,address,uint256,bytes)": "150b7a02" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of ERC721 token receiver.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"erc721a/contracts/ERC721A.sol\":\"ERC721A__IERC721Receiver\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"erc721a/contracts/ERC721A.sol\":{\"keccak256\":\"0xede758d13ccce2f54a4bcd16816456109b290759d43988205539cf632f4c8a55\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b63befef8f79ec44ebe5db096767cab6772485c2b01a431759e7fcdcf7fd0bb1\",\"dweb:/ipfs/QmV45KT2ai7PnVRhpJKjB29A15VGnhsvxxBFrrUSwhe2fr\"]},\"erc721a/contracts/IERC721A.sol\":{\"keccak256\":\"0xc9a2a00612e0d121aef3f716877ada17177d5b2d5a4c780d22cade46da2ff294\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1435542fc553d2fb9181191f126a1f97e2cc5570c2459c862f54ba415a22bf02\",\"dweb:/ipfs/QmaQJ14ajkHgymY5TtoxHnpiN5u4TpwXCqKr2B6DM8SHkn\"]}},\"version\":1}" + } + }, + "erc721a/contracts/IERC721A.sol": { + "IERC721A": { + "abi": [ + { + "inputs": [], + "name": "ApprovalCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "ApprovalQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "BalanceQueryForZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintERC2309QuantityExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "MintToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "MintZeroQuantity", + "type": "error" + }, + { + "inputs": [], + "name": "NotCompatibleWithSpotMints", + "type": "error" + }, + { + "inputs": [], + "name": "OwnerQueryForNonexistentToken", + "type": "error" + }, + { + "inputs": [], + "name": "OwnershipNotInitializedForExtraData", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialMintExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "SequentialUpToTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "SpotMintTokenIdTooSmall", + "type": "error" + }, + { + "inputs": [], + "name": "TokenAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "TransferCallerNotOwnerNorApproved", + "type": "error" + }, + { + "inputs": [], + "name": "TransferFromIncorrectOwner", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToNonERC721ReceiverImplementer", + "type": "error" + }, + { + "inputs": [], + "name": "TransferToZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "URIQueryForNonexistentToken", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "fromTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "toTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "ConsecutiveTransfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ], + "evm": { + "bytecode": { + "functionDebugData": {}, + "generatedSources": [], + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "deployedBytecode": { + "functionDebugData": {}, + "generatedSources": [], + "immutableReferences": {}, + "linkReferences": {}, + "object": "", + "opcodes": "", + "sourceMap": "" + }, + "methodIdentifiers": { + "approve(address,uint256)": "095ea7b3", + "balanceOf(address)": "70a08231", + "getApproved(uint256)": "081812fc", + "isApprovedForAll(address,address)": "e985e9c5", + "name()": "06fdde03", + "ownerOf(uint256)": "6352211e", + "safeTransferFrom(address,address,uint256)": "42842e0e", + "safeTransferFrom(address,address,uint256,bytes)": "b88d4fde", + "setApprovalForAll(address,bool)": "a22cb465", + "supportsInterface(bytes4)": "01ffc9a7", + "symbol()": "95d89b41", + "tokenURI(uint256)": "c87b56dd", + "totalSupply()": "18160ddd", + "transferFrom(address,address,uint256)": "23b872dd" + } + }, + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"ApprovalCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ApprovalQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BalanceQueryForZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintERC2309QuantityExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintZeroQuantity\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotCompatibleWithSpotMints\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnerQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnershipNotInitializedForExtraData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SequentialMintExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SequentialUpToTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpotMintTokenIdTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromIncorrectOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToNonERC721ReceiverImplementer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"URIQueryForNonexistentToken\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"fromTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toTokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"ConsecutiveTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of ERC721A.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when `owner` enables `approved` to manage the `tokenId` token.\"},\"ApprovalForAll(address,address,bool)\":{\"details\":\"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\"},\"ConsecutiveTransfer(uint256,uint256,address,address)\":{\"details\":\"Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, as defined in the [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. See {_mintERC2309} for more details.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `tokenId` token is transferred from `from` to `to`.\"}},\"kind\":\"dev\",\"methods\":{\"approve(address,uint256)\":{\"details\":\"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the number of tokens in `owner`'s account.\"},\"getApproved(uint256)\":{\"details\":\"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist.\"},\"isApprovedForAll(address,address)\":{\"details\":\"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}.\"},\"name()\":{\"details\":\"Returns the token collection name.\"},\"ownerOf(uint256)\":{\"details\":\"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"Equivalent to `safeTransferFrom(from, to, tokenId, '')`.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) to learn more about how these ids are created. This function call must use less than 30000 gas.\"},\"symbol()\":{\"details\":\"Returns the token collection symbol.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the Uniform Resource Identifier (URI) for `tokenId` token.\"},\"totalSupply()\":{\"details\":\"Returns the total number of tokens in existence. Burned tokens will reduce the count. To get the total number of tokens minted, please see {_totalMinted}.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Transfers `tokenId` from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.\"}},\"version\":1},\"userdoc\":{\"errors\":{\"ApprovalCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"ApprovalQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"BalanceQueryForZeroAddress()\":[{\"notice\":\"Cannot query the balance for the zero address.\"}],\"MintERC2309QuantityExceedsLimit()\":[{\"notice\":\"The `quantity` minted with ERC2309 exceeds the safety limit.\"}],\"MintToZeroAddress()\":[{\"notice\":\"Cannot mint to the zero address.\"}],\"MintZeroQuantity()\":[{\"notice\":\"The quantity of tokens minted must be more than zero.\"}],\"NotCompatibleWithSpotMints()\":[{\"notice\":\"The feature is not compatible with spot mints.\"}],\"OwnerQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"OwnershipNotInitializedForExtraData()\":[{\"notice\":\"The `extraData` cannot be set on an unintialized ownership slot.\"}],\"SequentialMintExceedsLimit()\":[{\"notice\":\"The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.\"}],\"SequentialUpToTooSmall()\":[{\"notice\":\"`_sequentialUpTo()` must be greater than `_startTokenId()`.\"}],\"SpotMintTokenIdTooSmall()\":[{\"notice\":\"Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.\"}],\"TokenAlreadyExists()\":[{\"notice\":\"Cannot mint over a token that already exists.\"}],\"TransferCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"TransferFromIncorrectOwner()\":[{\"notice\":\"The token must be owned by `from`.\"}],\"TransferToNonERC721ReceiverImplementer()\":[{\"notice\":\"Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.\"}],\"TransferToZeroAddress()\":[{\"notice\":\"Cannot transfer to the zero address.\"}],\"URIQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}]},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"erc721a/contracts/IERC721A.sol\":\"IERC721A\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"erc721a/contracts/IERC721A.sol\":{\"keccak256\":\"0xc9a2a00612e0d121aef3f716877ada17177d5b2d5a4c780d22cade46da2ff294\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1435542fc553d2fb9181191f126a1f97e2cc5570c2459c862f54ba415a22bf02\",\"dweb:/ipfs/QmaQJ14ajkHgymY5TtoxHnpiN5u4TpwXCqKr2B6DM8SHkn\"]}},\"version\":1}" + } + } + } + } +} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/deployed_addresses.json b/entropy/RAR/contract/ignition/deployments/chain-421614/deployed_addresses.json new file mode 100644 index 0000000..7948c7b --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/deployed_addresses.json @@ -0,0 +1,5 @@ +{ + "AppModule#RandomSeed": "0xA13C674F8A8715E157BA42237A6b1Dff24EE274F", + "AppModule#CoinFlip": "0x762353AdF1342ba85f6dDEac0446E2DA43ab84bf", + "AppModule#PlaylistReputationNFT": "0x0532d0A87B6013a8A086C37D39BC1EB013abC2f4" +} diff --git a/entropy/RAR/contract/ignition/deployments/chain-421614/journal.jsonl b/entropy/RAR/contract/ignition/deployments/chain-421614/journal.jsonl new file mode 100644 index 0000000..9ba2dc6 --- /dev/null +++ b/entropy/RAR/contract/ignition/deployments/chain-421614/journal.jsonl @@ -0,0 +1,19 @@ + +{"chainId":421614,"type":"DEPLOYMENT_INITIALIZE"} +{"artifactId":"AppModule#RandomSeed","constructorArgs":["0x549ebba8036ab746611b4ffa1423eb0a4df61440"],"contractName":"RandomSeed","dependencies":[],"from":"0xaada3a46d4a94593cab32484279b86a4afd149b0","futureId":"AppModule#RandomSeed","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}} +{"futureId":"AppModule#RandomSeed","networkInteraction":{"data":"0x60803461007457601f61049e38819003918201601f19168301916001600160401b038311848410176100795780849260209460405283398101031261007457516001600160a01b0381169081900361007457600080546001600160a01b03191691909117905560405161040e90816100908239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060408181526004908136101561001657600080fd5b600092833560e01c90816347ce07cc146103575750806352a5f1f81461021e57806383220626146101ff5763e1da26c61461005057600080fd5b826003193601126101fb5773ffffffffffffffffffffffffffffffffffffffff835416908051917f8204b67a00000000000000000000000000000000000000000000000000000000835260209283818681855afa80156101f1578690610197575b6fffffffffffffffffffffffffffffffff91501693843410610155579083918351809681937f7b43155d0000000000000000000000000000000000000000000000000000000083525af190811561014c575061010b578280f35b81813d8311610145575b61011f8183610387565b81010312610141575167ffffffffffffffff81160361013e5738808280f35b80fd5b5080fd5b503d610115565b513d85823e3d90fd5b6064908484519162461bcd60e51b8352820152601060248201527f496e73756666696369656e7420666565000000000000000000000000000000006044820152fd5b508381813d83116101ea575b6101ad8183610387565b810103126101e657516fffffffffffffffffffffffffffffffff811681036101e6576fffffffffffffffffffffffffffffffff906100b1565b8580fd5b503d6101a3565b83513d88823e3d90fd5b8280fd5b8382346101415781600319360112610141576020906001549051908152f35b50346101fb5760603660031901126101fb57813567ffffffffffffffff8116036101fb5773ffffffffffffffffffffffffffffffffffffffff9160243583811603610353576044359284541680156103105733036102a85750816020917fc600f4f27b95655ff15fbda8c260832f9b9f6523c218ffcfaa2afda37ad563909360015551908152a180f35b6020608492519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b506020606492519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b84903461014157816003193601126101415773ffffffffffffffffffffffffffffffffffffffff60209254168152f35b90601f8019910116810190811067ffffffffffffffff8211176103a957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122040148961cbcee2b836102c073a7110e4e3b136bd516b7c37267477a91d1b03b064736f6c63430008180033000000000000000000000000549ebba8036ab746611b4ffa1423eb0a4df61440","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"} +{"futureId":"AppModule#RandomSeed","networkInteractionId":1,"nonce":5,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"200000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x6b6e96d8344eda27bbcde06fa75fcff3d0390b5f8312171a5b2bffbd1f8a3ca4"},"type":"TRANSACTION_SEND"} +{"futureId":"AppModule#RandomSeed","hash":"0x6b6e96d8344eda27bbcde06fa75fcff3d0390b5f8312171a5b2bffbd1f8a3ca4","networkInteractionId":1,"receipt":{"blockHash":"0xe063f8d3fde7e0d322973dd69454e7243803b62a3f629d11fb357c6689aa8d82","blockNumber":205736182,"contractAddress":"0xA13C674F8A8715E157BA42237A6b1Dff24EE274F","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"} +{"futureId":"AppModule#RandomSeed","result":{"address":"0xA13C674F8A8715E157BA42237A6b1Dff24EE274F","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"} +{"artifactId":"AppModule#CoinFlip","constructorArgs":["0x549ebba8036ab746611b4ffa1423eb0a4df61440","0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344"],"contractName":"CoinFlip","dependencies":[],"from":"0xaada3a46d4a94593cab32484279b86a4afd149b0","futureId":"AppModule#CoinFlip","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}} +{"futureId":"AppModule#CoinFlip","networkInteraction":{"data":"0x60803461008d57601f61077f38819003918201601f19168301916001600160401b0383118484101761009257808492604094855283398101031261008d57610052602061004b836100a8565b92016100a8565b600080546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556040516106c290816100bd8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008d5756fe608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c9081630d37b537146105655750806337e61d6f146102315780633bba000b1461052857806352a5f1f8146102e75780639f392c2b146102a7578063a3333e59146102315763da9f755003610013578160031936011261022d576001600160a01b03825416928151936341025b3d60e11b855260209485818481855afa90811561022357906fffffffffffffffffffffffffffffffff9186916101f6575b5016918234106101cf579085918451809481937f7b43155d0000000000000000000000000000000000000000000000000000000083525af19081156101c3579082918491610175575b5067ffffffffffffffff169283815260028552203373ffffffffffffffffffffffffffffffffffffffff198254161790557f50290f0ecdf820ec0a238e6e34494463b11e1f2e7e5dfaf475541266aab117d18180518481523386820152a151908152f35b809250858092503d83116101bc575b61018e818361062c565b810103126101b8575167ffffffffffffffff811681036101b857819067ffffffffffffffff610111565b8280fd5b503d610184565b505051903d90823e3d90fd5b83517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b6102169150873d891161021c575b61020e818361062c565b810190610664565b386100c8565b503d610204565b84513d87823e3d90fd5b5080fd5b503461022d57602036600319011261022d5780916001600160a01b036102556105fa565b168152600360205220906102a382549160ff6001850154169360ff60036002830154920154169151948594859260609295949195608085019685521515602085015260408401521515910152565b0390f35b503461022d57602036600319011261022d576001600160a01b038160209367ffffffffffffffff6102d6610615565b168152600285522054169051908152f35b503461022d57606036600319011261022d57610301610615565b6001600160a01b039160243583811603610524576044358385541680156104e15733036104785767ffffffffffffffff80931693848652602090600282528387205416948515610436578351600184161595608082019081118282101761042357916103f086949260609896947f6386b02f5ac582b91afce0d71662e77cdc26d30336dc9e5af24a6d2d659fda939a98528481526003888c6103d48785018b81528a808701934285528f880195600187528152868b522095518655511515600186019060ff801983541691151516179055565b51600284015551151591019060ff801983541691151516179055565b88526002815282882073ffffffffffffffffffffffffffffffffffffffff1981541690558251948552840152820152a180f35b60248960418c634e487b7160e01b835252fd5b6064888386519162461bcd60e51b8352820152600f60248201527f496e76616c6964207265717565737400000000000000000000000000000000006044820152fd5b608486602084519162461bcd60e51b8352820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606487602085519162461bcd60e51b8352820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b8380fd5b503461022d57602036600319011261022d5760ff6003826020946001600160a01b036105526105fa565b1681528286522001541690519015158152f35b929390503461052457836003193601126105245782602091816001600160a01b038754166341025b3d60e11b82525afa9182156105f057602093926105bf575b506fffffffffffffffffffffffffffffffff905191168152f35b6fffffffffffffffffffffffffffffffff9192506105e990843d861161021c5761020e818361062c565b91906105a5565b81513d85823e3d90fd5b600435906001600160a01b038216820361061057565b600080fd5b6004359067ffffffffffffffff8216820361061057565b90601f8019910116810190811067ffffffffffffffff82111761064e57604052565b634e487b7160e01b600052604160045260246000fd5b9081602091031261061057516fffffffffffffffffffffffffffffffff81168103610610579056fea264697066735822122048e072da4fa8f2a219aa7973eff209bfd0c1c381c67926fd30361497ef53717064736f6c63430008180033000000000000000000000000549ebba8036ab746611b4ffa1423eb0a4df614400000000000000000000000006cc14824ea2918f5de5c2f75a9da968ad4bd6344","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"} +{"futureId":"AppModule#CoinFlip","networkInteractionId":1,"nonce":7,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"200000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xb20670c56f2de242e41f45a906094fe9b6a2c969ce62b84de3c4199144b10345"},"type":"TRANSACTION_SEND"} +{"futureId":"AppModule#CoinFlip","hash":"0xb20670c56f2de242e41f45a906094fe9b6a2c969ce62b84de3c4199144b10345","networkInteractionId":1,"receipt":{"blockHash":"0xce8cbb2f49bd557317236eb8779ae91d0a5738e98ae7d1e52498248f16b3a1e1","blockNumber":206455843,"contractAddress":"0x762353AdF1342ba85f6dDEac0446E2DA43ab84bf","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"} +{"futureId":"AppModule#CoinFlip","result":{"address":"0x762353AdF1342ba85f6dDEac0446E2DA43ab84bf","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"} + + +{"artifactId":"AppModule#PlaylistReputationNFT","constructorArgs":["0x549ebba8036ab746611b4ffa1423eb0a4df61440","0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344"],"contractName":"PlaylistReputationNFT","dependencies":[],"from":"0xaada3a46d4a94593cab32484279b86a4afd149b0","futureId":"AppModule#PlaylistReputationNFT","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}} +{"futureId":"AppModule#PlaylistReputationNFT","networkInteraction":{"data":"0x6080604052346200021e57620026d960408138039182620000208162000259565b9384928339810103126200021e5762000039816200027f565b6200004860208093016200027f565b6200005262000294565b926a0506c61796c6973745265760ac1b8185015262000070620002a5565b640504c5245560dc1b82820152845190916001600160401b0382116200021857620000a882620000a2600254620002b6565b620002f3565b80601f83116001146200018357509080620000e292620000eb95969760009262000177575b50508160011b916000199060031b1c19161790565b600255620003a9565b6000805533156200015e576200012c6200014e926200010a3362000497565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516121f89081620004e18239f35b604051631e4fbdf760e01b815260006004820152602490fd5b015190503880620000cd565b6002600052601f198316969091907f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace926000905b898210620001ff57505090839291600194620000eb97989910620001e5575b505050811b01600255620003a9565b015160001960f88460031b161c19169055388080620001d6565b80600185968294968601518155019501930190620001b7565b62000223565b600080fd5b634e487b7160e01b600052604160045260246000fd5b60408051919082016001600160401b038111838210176200021857604052565b6040519190601f01601f191682016001600160401b038111838210176200021857604052565b51906001600160a01b03821682036200021e57565b6200029e62000239565b90600b8252565b620002af62000239565b9060058252565b90600182811c92168015620002e8575b6020831014620002d257565b634e487b7160e01b600052602260045260246000fd5b91607f1691620002c6565b601f811162000300575050565b60009060026000526020600020906020601f850160051c8301941062000343575b601f0160051c01915b8281106200033757505050565b8181556001016200032a565b909250829062000321565b601f81116200035b575050565b60009060036000526020600020906020601f850160051c830194106200039e575b601f0160051c01915b8281106200039257505050565b81815560010162000385565b90925082906200037c565b80519091906001600160401b0381116200021857620003d581620003cf600354620002b6565b6200034e565b602080601f83116001146200040f575081906200040a9394600092620001775750508160011b916000199060031b1c19161790565b600355565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b8782106200047e57505083600195961062000464575b505050811b01600355565b015160001960f88460031b161c1916905538808062000459565b8060018596829496860151815501950193019062000443565b600980546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a356fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d357806323b872dd146101ce57806341ac50b3146101c957806342545825146101c457806342842e0e146101bf5780634535f1c1146101ba57806352a5f1f8146101b55780636352211e146101b057806370a08231146101ab578063715018a6146101a657806377ee63f1146101a15780638462151c1461019c57806385de8b3c146101975780638da5cb5b1461019257806395d89b411461018d578063a22cb46514610188578063a7384a4c14610183578063a9182f3f1461017e578063b88d4fde14610179578063baccd1d214610174578063c87b56dd1461016f578063d213c0f21461016a578063e985e9c514610165578063ecc6362f146101605763f2fde38b1461015b57600080fd5b61154b565b6114c2565b611383565b611367565b6112e6565b6112a7565b61124c565b6110c8565b610ea9565b610ddd565b610d35565b610d0e565b610aeb565b610a0c565b6109b4565b61094b565b610920565b6108f1565b6107f8565b6107ca565b6107a7565b61075a565b610614565b610600565b6105a8565b6104c3565b61042a565b610341565b61021b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361021657565b600080fd5b346102165760203660031901126102165760207fffffffff0000000000000000000000000000000000000000000000000000000060043561025b816101ec565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156102c3575b8115610299575b506040519015158152f35b7f5b5e139f000000000000000000000000000000000000000000000000000000009150143861028e565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610287565b919082519283825260005b848110610319575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016102f8565b90602061033e9281815201906102ed565b90565b346102165760008060031936011261042757604051908060025490610365826113e5565b808552916020916001918281169081156103fa57506001146103a2575b61039e86610392818803826111c8565b6040519182918261032d565b0390f35b9350600284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8385106103e7575050505081016020016103928261039e38610382565b80548686018401529382019381016103ca565b905086955061039e9693506020925061039294915060ff191682840152151560051b820101929338610382565b80fd5b346102165760203660031901126102165760043561044781611d50565b1561046d57600052600660205260206001600160a01b0360406000205416604051908152f35b7fcf4700e40000000000000000000000000000000000000000000000000000000060005260046000fd5b600435906001600160a01b038216820361021657565b602435906001600160a01b038216820361021657565b6040366003190112610216576104d7610497565b6024356001600160a01b0391826104ed83611e4c565b1680330361054c575b6000938385526006602052604085209216918273ffffffffffffffffffffffffffffffffffffffff198254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b80600052600760205260ff610578336040600020906001600160a01b0316600052602052604060002090565b54166104f6577fcfb3b9420000000000000000000000000000000000000000000000000000000060005260046000fd5b346102165760003660031901126102165760206000546001549003604051908152f35b6060906003190112610216576001600160a01b0390600435828116810361021657916024359081168103610216579060443590565b61061261060c366105cb565b916115f7565b005b346102165760203660031901126102165760043561063961063482611d50565b6117a4565b33600052600e60205261067361066e61066a61066384604060002090600052602052604060002090565b5460ff1690565b1590565b6117ef565b61069c610697600461068f84600052600c602052604060002090565b015460ff1690565b61183a565b7fa15ea89cb51fc8f208d4fa88319ed1c6e182726c46c64f91dca36f6d7fe2ab2061074c60026106d684600052600c602052604060002090565b0160646106e3825461189b565b11610751576106f2815461189b565b81555b61073561072885610719336001600160a01b0316600052600e602052604060002090565b90600052602052604060002090565b805460ff19166001179055565b546040805191825233602083015290918291820190565b0390a2005b606481556106f5565b34610216576040366003190112610216576001600160a01b0361077b610497565b16600052600e6020526040600020602435600052602052602060ff604060002054166040519015158152f35b6106126107b3366105cb565b90604051926107c1846111ac565b60008452611cf4565b34610216576000366003190112610216576020604051601e8152f35b67ffffffffffffffff81160361021657565b3461021657606036600319011261021657600435610815816107e6565b61081d6104ad565b506001600160a01b03600a541680156108ad573303610843576106129060443590611ed6565b608460405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920456e74726f70792063616e2063616c6c20746869732066756e637460448201527f696f6e00000000000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601760248201527f456e74726f70792061646472657373206e6f74207365740000000000000000006044820152fd5b346102165760203660031901126102165760206001600160a01b03610917600435611e4c565b16604051908152f35b3461021657602036600319011261021657602061094361093e610497565b6118ae565b604051908152f35b346102165760008060031936011261042757610965611ff8565b806001600160a01b0360095473ffffffffffffffffffffffffffffffffffffffff198116600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021657600036600319011261021657602060405160058152f35b602090602060408183019282815285518094520193019160005b8281106109f8575050505090565b8351855293810193928101926001016109ea565b3461021657602036600319011261021657610a25610497565b600080610a31836118ae565b91610a3b83611902565b93604091610a4c60405196876111c8565b848652601f19610a5b86611902565b01366020880137610a6a61191a565b506001600160a01b0391821692845b868603610a8e576040518061039e8a826109d0565b610a978161203c565b80830151610ae257516001600160a01b0316848116610ad9575b506001908585851614610ac5575b01610a79565b80610ad3838901988b611950565b52610abf565b92506001610ab1565b50600190610abf565b6020806003193601126102165760043590610b0861063483611d50565b610b24610697600461068f85600052600c602052604060002090565b610b466002610b3d84600052600c602052604060002090565b0154151561197a565b610b67610b5b600a546001600160a01b031690565b6001600160a01b031690565b90610b7a600b546001600160a01b031690565b6040517fb88c91480000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015290928282602481845afa908115610cdc576fffffffffffffffffffffffffffffffff610c3a928594600091610ce1575b501694610bee863410156119f9565b6040519586809481937f19cb825f0000000000000000000000000000000000000000000000000000000083526004830160206000919392936001600160a01b0360408201951681520152565b03925af18015610cdc577f6b73c3afb9de0065bce909a5c6990021f060efc3b19313411293559b0238e0739261074c92600092610caf575b505083610c938267ffffffffffffffff16600052600d602052604060002090565b5560405167ffffffffffffffff90911681529081906020820190565b610cce9250803d10610cd5575b610cc681836111c8565b810190611a44565b3880610c72565b503d610cbc565b6119ed565b610d019150853d8711610d07575b610cf981836111c8565b8101906119c5565b38610bdf565b503d610cef565b346102165760003660031901126102165760206001600160a01b0360095416604051908152f35b346102165760008060031936011261042757604051908060035490610d59826113e5565b808552916020916001918281169081156103fa5750600114610d855761039e86610392818803826111c8565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510610dca575050505081016020016103928261039e38610382565b8054868601840152938201938101610dad565b3461021657604036600319011261021657610df6610497565b6024358015159182820361021657610e4b6001600160a01b0392336000526007602052610e3a836040600020906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b9181601f840112156102165782359167ffffffffffffffff8311610216576020838186019501011161021657565b3461021657606036600319011261021657610ec2610497565b67ffffffffffffffff9060243582811161021657610ee4903690600401610e7b565b909260443590811161021657610efe903690600401610e7b565b600094916001600160a01b03865495610f2a81600160e11b906001600160a01b034260a01b9116171790565b610f3e886000526004602052604060002090565b55610f5c816001600160a01b03166000526005602052604060002090565b6801000000000000000181540190551695861561106f57600186810197879180805b61102a575b505050508594927fc3c15e44adc8e6b4ddd1ca6261359e4970bb28b9530420d68222c21d2e80bcc2949261039e98611017935561100b610fc16111ea565b610fcc368888611215565b8152610fd9368585611215565b6020820152603260408201524260608201526001608082015261100689600052600c602052604060002090565b611b85565b60405194859485611ccd565b0390a26040519081529081906020820190565b1561105e575b83818484877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4610f7e565b809201918983036110305780610f83565b611d93565b6020815260a060806110aa611094855184602087015260c08601906102ed565b6020860151858203601f190160408701526102ed565b93604081015160608501526060810151828501520151151591015290565b346102165760203660031901126102165761039e6004356040906000608083516110f18161118b565b60608152606060208201528285820152826060820152015261111561063482611d50565b600052600c602052806000209060ff60048251936111328561118b565b61113b8161141f565b85526111496001820161141f565b602086015260028101548486015260038101546060860152015416151560808301525191829182611074565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff8211176111a757604052565b611175565b6020810190811067ffffffffffffffff8211176111a757604052565b90601f8019910116810190811067ffffffffffffffff8211176111a757604052565b604051906111f78261118b565b565b67ffffffffffffffff81116111a757601f01601f191660200190565b929192611221826111f9565b9161122f60405193846111c8565b829481845281830111610216578281602093846000960137010152565b608036600319011261021657611260610497565b6112686104ad565b6064359167ffffffffffffffff831161021657366023840112156102165761129d610612933690602481600401359101611215565b9160443591611cf4565b346102165760203660031901126102165767ffffffffffffffff6004356112cd816107e6565b16600052600d6020526020604060002054604051908152f35b3461021657602036600319011261021657611302600435611d50565b1561133d576000604051611315816111ac565b5261039e604051611325816111ac565b600081526040519182916020835260208301906102ed565b7fa14c4b500000000000000000000000000000000000000000000000000000000060005260046000fd5b3461021657600036600319011261021657602060405160648152f35b3461021657604036600319011261021657602060ff6113d96113a3610497565b6001600160a01b036113b36104ad565b9116600052600784526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b90600182811c92168015611415575b60208310146113ff57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113f4565b90604051918260008254611432816113e5565b908184526020946001916001811690816000146114a05750600114611461575b5050506111f7925003836111c8565b600090815285812095935091905b8183106114885750506111f79350820101388080611452565b8554888401850152948501948794509183019161146f565b925050506111f794925060ff191682840152151560051b820101388080611452565b3461021657602036600319011261021657600435600052600c60205261152760406000206114ef8161141f565b906114fc6001820161141f565b60028201549161153560ff60046003840154930154169260405196879660a0885260a08801906102ed565b9086820360208801526102ed565b9260408501526060840152151560808301520390f35b3461021657602036600319011261021657611564610497565b61156c611ff8565b6001600160a01b038091169081156115c6576009548273ffffffffffffffffffffffffffffffffffffffff19821617600955167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b91909161160382611e4c565b926001600160a01b0380921693848382160361179f57600084815260066020526040902080546116426001600160a01b03881633908114908314171590565b611756575b61174c575b5061166a856001600160a01b03166000526005602052604060002090565b805460001901905561168f826001600160a01b03166000526005602052604060002090565b805460010190556001600160a01b0382164260a01b17600160e11b176116bf856000526004602052604060002090565b55600160e11b811615611702575b501680927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4156116fd57565b611e11565b6001840161171a816000526004602052604060002090565b5415611727575b506116cd565b600054811461172157611744906000526004602052604060002090565b553880611721565b600090553861164c565b61179561066a6106633361177d8b6001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b1561164757611de7565b611dbd565b156117ab57565b606460405162461bcd60e51b815260206004820152601760248201527f506c61796c69737420646f6573206e6f742065786973740000000000000000006044820152fd5b156117f657565b606460405162461bcd60e51b815260206004820152601f60248201527f416c726561647920766f74656420666f72207468697320706c61796c697374006044820152fd5b1561184157565b606460405162461bcd60e51b815260206004820152601460248201527f506c61796c69737420697320696e6163746976650000000000000000000000006044820152fd5b634e487b7160e01b600052601160045260246000fd5b90600582018092116118a957565b611885565b6001600160a01b031680156118d857600052600560205267ffffffffffffffff6040600020541690565b7f8f4eb6040000000000000000000000000000000000000000000000000000000060005260046000fd5b67ffffffffffffffff81116111a75760051b60200190565b604051906080820182811067ffffffffffffffff8211176111a75760405260006060838281528260208201528260408201520152565b80518210156119645760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561198157565b606460405162461bcd60e51b815260206004820152601d60248201527f52657075746174696f6e20616c7265616479206174206d696e696d756d0000006044820152fd5b9081602091031261021657516fffffffffffffffffffffffffffffffff811681036102165790565b6040513d6000823e3d90fd5b15611a0057565b606460405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768206665657300000000000000000000000000000000006044820152fd5b90816020910312610216575161033e816107e6565b90601f8111611a6757505050565b6000916000526020600020906020601f850160051c83019410611aa5575b601f0160051c01915b828110611a9a57505050565b818155600101611a8e565b9092508290611a85565b919091825167ffffffffffffffff81116111a757611ad781611ad184546113e5565b84611a59565b602080601f8311600114611b1a57508190611b0b939495600092611b0f575b50508160011b916000199060031b1c19161790565b9055565b015190503880611af6565b90601f19831695611b3085600052602060002090565b926000905b888210611b6d57505083600195969710611b54575b505050811b019055565b015160001960f88460031b161c19169055388080611b4a565b80600185968294968601518155019501930190611b35565b919091825192835167ffffffffffffffff81116111a757611bb081611baa85546113e5565b85611a59565b602080601f8311600114611c305750600492611bee83611c1d946080946111f7999a600092611b0f5750508160011b916000199060031b1c19161790565b85555b611c02602082015160018701611aaf565b60408101516002860155606081015160038601550151151590565b91019060ff801983541691151516179055565b90601f19831696611c4686600052602060002090565b926000905b898210611c945750508360809360049693600193611c1d976111f79b9c10611c7b575b505050811b018555611bf1565b015160001960f88460031b161c19169055388080611c6e565b80600185968294968601518155019501930190611c4b565b908060209392818452848401376000828201840152601f01601f1916010190565b9290611ce69061033e9593604086526040860191611cac565b926020818503910152611cac565b929190611d028282866115f7565b803b611d0f575b50505050565b611d18936120d9565b15611d265738808080611d09565b7fd1a57ed60000000000000000000000000000000000000000000000000000000060005260046000fd5b90600091600080548210611d62575050565b92505b8083526004602052604083205480611d87575080156118a95760001901611d65565b600160e01b1615925050565b7f2e0763000000000000000000000000000000000000000000000000000000000060005260046000fd5b7fa11481000000000000000000000000000000000000000000000000000000000060005260046000fd5b7f59c896be0000000000000000000000000000000000000000000000000000000060005260046000fd5b7fea553b340000000000000000000000000000000000000000000000000000000060005260046000fd5b636f96cda160e11b60005260046000fd5b611e60816000526004602052604060002090565b54908115611e775750600160e01b8116611e3b5790565b9050600090600054811015611e3b575b60001901600081815260046020526040902054908115611ec25750600160e01b811615611ebd57600482636f96cda160e11b8152fd5b905090565b9050611e87565b919082039182116118a957565b9067ffffffffffffffff8216600052600d602052604060002054918215611fb45782611f3a92601e6064611f16600097600052600c602052604060002090565b920610611f3d575b505067ffffffffffffffff16600052600d602052604060002090565b55565b611f968160027f7a497b48779931a19dd3c9f9f85ea0edf18e2ed7f9e0478ed1fcd451fd9d56b39301908154600a81048091118914611fa057611f8291508254611ec9565b81555b546040519081529081906020820190565b0390a23880611f1e565b50878255600401805460ff19169055611f85565b606460405162461bcd60e51b815260206004820152601160248201527f52657175657374206e6f7420666f756e640000000000000000000000000000006044820152fd5b6001600160a01b0360095416330361200c57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b61204461191a565b50600052600460205260406000205461205b61191a565b906001600160a01b038116825267ffffffffffffffff8160a01c166020830152600160e01b81161515604083015260e81c606082015290565b90816020910312610216575161033e816101ec565b3d156120d4573d906120ba826111f9565b916120c860405193846111c8565b82523d6000602084013e565b606090565b9260209161213c9360006001600160a01b03604051809781968295847f150b7a02000000000000000000000000000000000000000000000000000000009c8d865233600487015216602485015260448401526080606484015260848301906102ed565b0393165af160009181612191575b5061216b576121576120a9565b80511561216657805190602001fd5b611d26565b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6121b491925060203d6020116121bb575b6121ac81836111c8565b810190612094565b903861214a565b503d6121a256fea2646970667358221220649ab3cc62c09364c79c73543aa7b741fe67ac724ca30a13292c9240418700c164736f6c63430008180033000000000000000000000000549ebba8036ab746611b4ffa1423eb0a4df614400000000000000000000000006cc14824ea2918f5de5c2f75a9da968ad4bd6344","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"} +{"futureId":"AppModule#PlaylistReputationNFT","networkInteractionId":1,"nonce":20,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"200000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8a001c74f19f3863b5f3da18dc0cd82f85b69fc0135661a04c0c57b7225550c9"},"type":"TRANSACTION_SEND"} +{"futureId":"AppModule#PlaylistReputationNFT","hash":"0x8a001c74f19f3863b5f3da18dc0cd82f85b69fc0135661a04c0c57b7225550c9","networkInteractionId":1,"receipt":{"blockHash":"0x42baad859e6cc63e1a48df626295289892cb0aa4d0ff0cc4566a0efc1b9335a7","blockNumber":207751574,"contractAddress":"0x0532d0A87B6013a8A086C37D39BC1EB013abC2f4","logs":[{"address":"0x0532d0A87B6013a8A086C37D39BC1EB013abC2f4","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000aada3a46d4a94593cab32484279b86a4afd149b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"} +{"futureId":"AppModule#PlaylistReputationNFT","result":{"address":"0x0532d0A87B6013a8A086C37D39BC1EB013abC2f4","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"} \ No newline at end of file diff --git a/entropy/RAR/contract/ignition/modules/App.ts b/entropy/RAR/contract/ignition/modules/App.ts new file mode 100644 index 0000000..dbd4be8 --- /dev/null +++ b/entropy/RAR/contract/ignition/modules/App.ts @@ -0,0 +1,18 @@ +import { buildModule } from "@nomicfoundation/hardhat-ignition/modules"; + +const AppModule = buildModule("AppModule", (m) => { + const EntropyAddress = "0x549ebba8036ab746611b4ffa1423eb0a4df61440"; + const ProviderAddress = "0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344"; + + const randomSeed = m.contract("RandomSeed", [EntropyAddress]); + const coinFlip = m.contract("CoinFlip", [EntropyAddress, ProviderAddress]); + const playlistReputationNFT = m.contract("PlaylistReputationNFT", [EntropyAddress, ProviderAddress]); + + return { + randomSeed, + coinFlip, + playlistReputationNFT + }; +}); + +export default AppModule; diff --git a/entropy/RAR/contract/package.json b/entropy/RAR/contract/package.json new file mode 100644 index 0000000..53e7522 --- /dev/null +++ b/entropy/RAR/contract/package.json @@ -0,0 +1,14 @@ +{ + "name": "hardhat-project", + "devDependencies": { + "@nomicfoundation/hardhat-toolbox-viem": "^3.0.0", + "@openzeppelin/contracts": "^5.0.2", + "@pythnetwork/entropy-sdk-solidity": "^2.0.0", + "dotenv": "^16.4.5", + "erc721a": "^4.3.0", + "hardhat": "^2.22.4" + }, + "dependencies": { + "@nomicfoundation/hardhat-ignition-ethers": "^0.15.4" + } +} diff --git a/entropy/RAR/contract/test/Lock.ts b/entropy/RAR/contract/test/Lock.ts new file mode 100644 index 0000000..ecf8ad3 --- /dev/null +++ b/entropy/RAR/contract/test/Lock.ts @@ -0,0 +1,134 @@ +import { + time, + loadFixture, +} from "@nomicfoundation/hardhat-toolbox-viem/network-helpers"; +import { expect } from "chai"; +import hre from "hardhat"; +import { getAddress, parseGwei } from "viem"; + +describe("Lock", function () { + // We define a fixture to reuse the same setup in every test. + // We use loadFixture to run this setup once, snapshot that state, + // and reset Hardhat Network to that snapshot in every test. + async function deployOneYearLockFixture() { + const ONE_YEAR_IN_SECS = 365 * 24 * 60 * 60; + + const lockedAmount = parseGwei("1"); + const unlockTime = BigInt((await time.latest()) + ONE_YEAR_IN_SECS); + + // Contracts are deployed using the first signer/account by default + const [owner, otherAccount] = await hre.viem.getWalletClients(); + + const lock = await hre.viem.deployContract("Lock", [unlockTime], { + value: lockedAmount, + }); + + const publicClient = await hre.viem.getPublicClient(); + + return { + lock, + unlockTime, + lockedAmount, + owner, + otherAccount, + publicClient, + }; + } + + describe("Deployment", function () { + it("Should set the right unlockTime", async function () { + const { lock, unlockTime } = await loadFixture(deployOneYearLockFixture); + + expect(await lock.read.unlockTime()).to.equal(unlockTime); + }); + + it("Should set the right owner", async function () { + const { lock, owner } = await loadFixture(deployOneYearLockFixture); + + expect(await lock.read.owner()).to.equal( + getAddress(owner.account.address) + ); + }); + + it("Should receive and store the funds to lock", async function () { + const { lock, lockedAmount, publicClient } = await loadFixture( + deployOneYearLockFixture + ); + + expect( + await publicClient.getBalance({ + address: lock.address, + }) + ).to.equal(lockedAmount); + }); + + it("Should fail if the unlockTime is not in the future", async function () { + // We don't use the fixture here because we want a different deployment + const latestTime = BigInt(await time.latest()); + await expect( + hre.viem.deployContract("Lock", [latestTime], { + value: 1n, + }) + ).to.be.rejectedWith("Unlock time should be in the future"); + }); + }); + + describe("Withdrawals", function () { + describe("Validations", function () { + it("Should revert with the right error if called too soon", async function () { + const { lock } = await loadFixture(deployOneYearLockFixture); + + await expect(lock.write.withdraw()).to.be.rejectedWith( + "You can't withdraw yet" + ); + }); + + it("Should revert with the right error if called from another account", async function () { + const { lock, unlockTime, otherAccount } = await loadFixture( + deployOneYearLockFixture + ); + + // We can increase the time in Hardhat Network + await time.increaseTo(unlockTime); + + // We retrieve the contract with a different account to send a transaction + const lockAsOtherAccount = await hre.viem.getContractAt( + "Lock", + lock.address, + { client: { wallet: otherAccount } } + ); + await expect(lockAsOtherAccount.write.withdraw()).to.be.rejectedWith( + "You aren't the owner" + ); + }); + + it("Shouldn't fail if the unlockTime has arrived and the owner calls it", async function () { + const { lock, unlockTime } = await loadFixture( + deployOneYearLockFixture + ); + + // Transactions are sent using the first signer by default + await time.increaseTo(unlockTime); + + await expect(lock.write.withdraw()).to.be.fulfilled; + }); + }); + + describe("Events", function () { + it("Should emit an event on withdrawals", async function () { + const { lock, unlockTime, lockedAmount, publicClient } = + await loadFixture(deployOneYearLockFixture); + + await time.increaseTo(unlockTime); + + const hash = await lock.write.withdraw(); + await publicClient.waitForTransactionReceipt({ hash }); + + // get the withdrawal events in the latest block + const withdrawalEvents = await lock.getEvents.Withdrawal(); + expect(withdrawalEvents).to.have.lengthOf(1); + expect(withdrawalEvents[0].args.amount).to.equal(lockedAmount); + }); + }); + }); +}); diff --git a/entropy/RAR/contract/tsconfig.json b/entropy/RAR/contract/tsconfig.json new file mode 100644 index 0000000..574e785 --- /dev/null +++ b/entropy/RAR/contract/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "resolveJsonModule": true + } +} diff --git a/entropy/RAR/package-lock.json b/entropy/RAR/package-lock.json new file mode 100644 index 0000000..9603fe2 --- /dev/null +++ b/entropy/RAR/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "rar", + "lockfileVersion": 3, + "requires": true, + "packages": {} +}