Random Number Generator (RNG)

Contract Address

0xa96BcbeD7F01de6CEEd14fC86d90F21a36dE2143

Contract Functions

Contract Code

[
    {
        "inputs": [],
        "stateMutability": "nonpayable",
        "type": "constructor"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "spender",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "allowance",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "needed",
                "type": "uint256"
            }
        ],
        "name": "ERC20InsufficientAllowance",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "sender",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "balance",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "needed",
                "type": "uint256"
            }
        ],
        "name": "ERC20InsufficientBalance",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "approver",
                "type": "address"
            }
        ],
        "name": "ERC20InvalidApprover",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "receiver",
                "type": "address"
            }
        ],
        "name": "ERC20InvalidReceiver",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "sender",
                "type": "address"
            }
        ],
        "name": "ERC20InvalidSender",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "spender",
                "type": "address"
            }
        ],
        "name": "ERC20InvalidSpender",
        "type": "error"
    },
    {
        "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": "owner",
                "type": "address"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "spender",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "Approval",
        "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": "address",
                "name": "from",
                "type": "address"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "to",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "Transfer",
        "type": "event"
    },
    {
        "inputs": [],
        "name": "AvailableForPurchase",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint32",
                "name": "amount",
                "type": "uint32"
            }
        ],
        "name": "BuyWithDAI",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint32",
                "name": "amount",
                "type": "uint32"
            }
        ],
        "name": "BuyWithG5",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint32",
                "name": "amount",
                "type": "uint32"
            }
        ],
        "name": "BuyWithPI",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint32",
                "name": "amount",
                "type": "uint32"
            }
        ],
        "name": "BuyWithUSDC",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint32",
                "name": "amount",
                "type": "uint32"
            }
        ],
        "name": "BuyWithUSDT",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "Generate",
        "outputs": [
            {
                "internalType": "uint64",
                "name": "",
                "type": "uint64"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "View",
        "outputs": [
            {
                "components": [
                    {
                        "components": [
                            {
                                "internalType": "uint64",
                                "name": "Base",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Secret",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Signal",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Channel",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Pole",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Identity",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Foundation",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Element",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Dynamo",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Manifold",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Ring",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Barn",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Coordinate",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Tau",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Eta",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Kappa",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Alpha",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint8",
                                "name": "Nu",
                                "type": "uint8"
                            }
                        ],
                        "internalType": "struct Conjecture.Fa",
                        "name": "Rod",
                        "type": "tuple"
                    },
                    {
                        "components": [
                            {
                                "internalType": "uint64",
                                "name": "Base",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Secret",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Signal",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Channel",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Pole",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Identity",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Foundation",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Element",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Dynamo",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Manifold",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Ring",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Barn",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Coordinate",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Tau",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Eta",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Kappa",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint64",
                                "name": "Alpha",
                                "type": "uint64"
                            },
                            {
                                "internalType": "uint8",
                                "name": "Nu",
                                "type": "uint8"
                            }
                        ],
                        "internalType": "struct Conjecture.Fa",
                        "name": "Cone",
                        "type": "tuple"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Phi",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Eta",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Mu",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Xi",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Sigma",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Rho",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Upsilon",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Ohm",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Pi",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Omicron",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint64",
                        "name": "Omega",
                        "type": "uint64"
                    },
                    {
                        "internalType": "uint8",
                        "name": "Chi",
                        "type": "uint8"
                    }
                ],
                "internalType": "struct Dynamic.Faung",
                "name": "",
                "type": "tuple"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "owner",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "spender",
                "type": "address"
            }
        ],
        "name": "allowance",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "spender",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "approve",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            }
        ],
        "name": "balanceOf",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "burn",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "burnFrom",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "decimals",
        "outputs": [
            {
                "internalType": "uint8",
                "name": "",
                "type": "uint8"
            }
        ],
        "stateMutability": "view",
        "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": [],
        "name": "renounceOwnership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "symbol",
        "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": "to",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "transfer",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "from",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "to",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "transferFrom",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "newOwner",
                "type": "address"
            }
        ],
        "name": "transferOwnership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    }
]

Last updated