@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
2,005 lines • 132 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "GalaxyMember",
"sourceName": "contracts/GalaxyMember.sol",
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "AccessControlBadConfirmation",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "bytes32",
"name": "neededRole",
"type": "bytes32"
}
],
"name": "AccessControlUnauthorizedAccount",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"name": "AddressEmptyCode",
"type": "error"
},
{
"inputs": [],
"name": "CheckpointUnorderedInsertion",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "ERC1967InvalidImplementation",
"type": "error"
},
{
"inputs": [],
"name": "ERC1967NonPayable",
"type": "error"
},
{
"inputs": [],
"name": "ERC721EnumerableForbiddenBatchMint",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "ERC721IncorrectOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ERC721InsufficientApproval",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "approver",
"type": "address"
}
],
"name": "ERC721InvalidApprover",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "ERC721InvalidOperator",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "ERC721InvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "ERC721InvalidReceiver",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "ERC721InvalidSender",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ERC721NonexistentToken",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "ERC721OutOfBoundsIndex",
"type": "error"
},
{
"inputs": [],
"name": "EnforcedPause",
"type": "error"
},
{
"inputs": [],
"name": "ExpectedPause",
"type": "error"
},
{
"inputs": [],
"name": "FailedInnerCall",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [],
"name": "ReentrancyGuardReentrantCall",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintDowncast",
"type": "error"
},
{
"inputs": [],
"name": "UUPSUnauthorizedCallContext",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "slot",
"type": "bytes32"
}
],
"name": "UUPSUnsupportedProxiableUUID",
"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": false,
"internalType": "uint256[]",
"name": "b3trToUpgradeToLevel",
"type": "uint256[]"
}
],
"name": "B3TRtoUpgradeToLevelUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "newAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "oldAddress",
"type": "address"
}
],
"name": "B3trGovernorAddressUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "string",
"name": "newBaseURI",
"type": "string"
},
{
"indexed": true,
"internalType": "string",
"name": "oldBaseURI",
"type": "string"
}
],
"name": "BaseURIUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "nodeTokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "level",
"type": "uint256"
}
],
"name": "LevelWhenAttached",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "nodeTokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "level",
"type": "uint256"
}
],
"name": "LevelWhenDetached",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldLevel",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newLevel",
"type": "uint256"
}
],
"name": "MaxLevelUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "nodeTokenId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "NodeAttached",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "nodeTokenId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "NodeDetached",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bool",
"name": "isPaused",
"type": "bool"
}
],
"name": "PublicMintingPaused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Selected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "newAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "oldAddress",
"type": "address"
}
],
"name": "StargateNFTAddressUpdated",
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "Upgraded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oldLevel",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newLevel",
"type": "uint256"
}
],
"name": "Upgraded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "newAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "oldAddress",
"type": "address"
}
],
"name": "XAllocationsGovernorAddressUpdated",
"type": "event"
},
{
"inputs": [],
"name": "CLOCK_MODE",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "CONTRACTS_ADDRESS_MANAGER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_LEVEL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MINTER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NODES_MANAGER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PAUSER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UPGRADER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UPGRADE_INTERFACE_VERSION",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeTokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "attachNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "b3tr",
"outputs": [
{
"internalType": "contract IB3TR",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "b3trGovernor",
"outputs": [
{
"internalType": "contract IB3TRGovernor",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "baseURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "clock",
"outputs": [
{
"internalType": "uint48",
"name": "",
"type": "uint48"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeTokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "detachNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "freeMint",
"outputs": [],
"stateMutability": "nonpayable",
"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": "getB3TRdonated",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getB3TRtoUpgrade",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
}
],
"name": "getB3TRtoUpgradeToLevel",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeId",
"type": "uint256"
}
],
"name": "getIdAttachedToNode",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nodeTokenId",
"type": "uint256"
}
],
"name": "getLevelAfterAttachingNode",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getLevelAfterDetachingNode",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getNodeIdAttached",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeId",
"type": "uint256"
}
],
"name": "getNodeLevelOf",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "nodeLevel",
"type": "uint8"
}
],
"name": "getNodeToFreeLevel",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "getSelectedTokenId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint48",
"name": "blockNumber",
"type": "uint48"
}
],
"name": "getSelectedTokenIdAtBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "getSelectedTokenInfoByOwner",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "tokenURI",
"type": "string"
},
{
"internalType": "uint256",
"name": "tokenLevel",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b3trToUpgrade",
"type": "uint256"
}
],
"internalType": "struct GalaxyMember.TokenInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getTokenInfoByTokenId",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "tokenURI",
"type": "string"
},
{
"internalType": "uint256",
"name": "tokenLevel",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b3trToUpgrade",
"type": "uint256"
}
],
"internalType": "struct GalaxyMember.TokenInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "page",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "size",
"type": "uint256"
}
],
"name": "getTokensInfoByOwner",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "tokenURI",
"type": "string"
},
{
"internalType": "uint256",
"name": "tokenLevel",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b3trToUpgrade",
"type": "uint256"
}
],
"internalType": "struct GalaxyMember.TokenInfo[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_stargateNFT",
"type": "address"
}
],
"name": "initializeV6",
"outputs": [],
"stateMutability": "nonpayable",
"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": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "levelOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "user",
"type": "address"
}
],
"name": "participatedInGovernance",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "paused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "proxiableUUID",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "callerConfirmation",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"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": "nonpayable",
"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": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenID",
"type": "uint256"
}
],
"name": "select",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenID",
"type": "uint256"
}
],
"name": "selectFor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "b3trToUpgradeToLevel",
"type": "uint256[]"
}
],
"name": "setB3TRtoUpgradeToLevel",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_b3trGovernor",
"type": "address"
}
],
"name": "setB3trGovernorAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "baseTokenURI",
"type": "string"
}
],
"name": "setBaseURI",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "isPaused",
"type": "bool"
}
],
"name": "setIsPublicMintingPaused",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
}
],
"name": "setMaxLevel",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "nodeLevel",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
}
],
"name": "setNodeToFreeUpgradeLevel",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_stargateNFT",
"type": "address"
}
],
"name": "setStargateNFTAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_xAllocationsGovernor",
"type": "address"
}
],
"name": "setXAllocationsGovernorAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "stargateNFT",
"outputs": [
{
"internalType": "contract IStargateNFT",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"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": "index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "treasury",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "upgrade",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newImplementation",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "upgradeToAndCall",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "xAllocationsGovernor",
"outputs": [
{
"internalType": "contract IXAllocationVotingGovernor",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60a0604052306080523480156200001557600080fd5b506200002062000026565b620000da565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000775760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d75780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051615732620001046000396000818161374c0152818161377501526138bd01526157326000f3fe60806040526004361061034b5760003560e01c80621db0dd1461035057806301ffc9a71461037257806306fdde03146103a7578063081812fc146103c9578063095ea7b3146103f6578063154edef11461041657806318160ddd1461043657806323b872dd14610459578063248a9ca3146104795780632b42df38146104995780632f2ff15d146104b95780632f745c59146104d9578063344f1ba5146104f957806336568abe1461051957806336a49a3c146105395780633af03ea8146105595780633c60f55d146105795780633d6dbee8146105995780633f4ba83a146105bb5780633ff453af146105d057806342842e0e1461060257806342966c681461062257806345977d03146106425780634a6565e1146106625780634bf5d7e9146106825780634f1ef286146106c85780634f6ccce7146106db57806351c438d1146106fb57806352d1902d1461071b57806354fd4d501461073057806355f804b31461075a578063582a486a1461077a5780635b5da5141461078f5780635b70ea9f146107af5780635c975abb146107c45780635d21e15b146107d95780635ecf68e9146107ee57806361d027b3146108035780636352211e14610818578063643ce418146108385780636c0360eb146108655780636d5e30321461087a57806370a082311461089a5780637893d736146108ba578063839a19d9146108cf5780638456cb59146108ef578063851f738e14610904578063865c380b1461093157806388371110146109515780638c5b76fb1461097157806391d148541461099157806391ddadf4146109b1578063952f2133146109dd578063958fc97d146109ff57806395d89b4114610a1f578063a1843bd014610a34578063a217fddf14610a54578063a22cb46514610a69578063a49062d414610a89578063a51d2e0b14610a9e578063aa3491eb14610abe578063ad3cb1cc14610ade578063b1ccbd2c14610b0f578063b88d4fde14610b2f578063c87b56dd14610b4f578063cc421d0714610b6f578063d206885d14610b8f578063d539139314610baf578063d547741f14610be3578063ddd8634d14610c03578063de4983a214610c23578063e617e49f14610c43578063e63ab1e914610c63578063e985e9c514610c85578063f72c0d8b14610ca5575b600080fd5b34801561035c57600080fd5b5061037061036b366004614ab7565b610cc7565b005b34801561037e57600080fd5b5061039261038d366004614af9565b610e26565b60405190151581526020015b60405180910390f35b3480156103b357600080fd5b506103bc610e37565b60405161039e9190614b66565b3480156103d557600080fd5b506103e96103e4366004614b79565b610ed8565b60405161039e9190614b92565b34801561040257600080fd5b50610370610411366004614bbb565b610eed565b34801561042257600080fd5b50610370610431366004614bd9565b610efc565b34801561044257600080fd5b5061044b61101f565b60405190815260200161039e565b34801561046557600080fd5b50610370610474366004614bf6565b611034565b34801561048557600080fd5b5061044b610494366004614b79565b6110bf565b3480156104a557600080fd5b5061044b6104b4366004614b79565b6110df565b3480156104c557600080fd5b506103706104d4366004614c37565b6110ff565b3480156104e557600080fd5b5061044b6104f4366004614bbb565b61111b565b34801561050557600080fd5b50610370610514366004614b79565b61117d565b34801561052557600080fd5b50610370610534366004614c37565b6112fb565b34801561054557600080fd5b50610370610554366004614bd9565b611333565b34801561056557600080fd5b50610370610574366004614bd9565b6113e1565b34801561058557600080fd5b5061044b610594366004614c67565b6114df565b3480156105a557600080fd5b5061044b6000805160206156dd83398151915281565b3480156105c757600080fd5b50610370611522565b3480156105dc57600080fd5b506105f06105eb366004614b79565b611545565b60405160ff909116815260200161039e565b34801561060e57600080fd5b5061037061061d366004614bf6565b6115c7565b34801561062e57600080fd5b5061037061063d366004614b79565b6115e2565b34801561064e57600080fd5b5061037061065d366004614b79565b61161b565b34801561066e57600080fd5b5061037061067d366004614ca0565b611a31565b34801561068e57600080fd5b5060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c7400000060208201526103bc565b6103706106d6366004614d7f565b611d80565b3480156106e757600080fd5b5061044b6106f6366004614b79565b611d9b565b34801561070757600080fd5b5061044b610716366004614b79565b611dfc565b34801561072757600080fd5b5061044b611e0f565b34801561073c57600080fd5b506040805180820190915260018152601b60f91b60208201526103bc565b34801561076657600080fd5b50610370610775366004614dce565b611e2c565b34801561078657600080fd5b506103e9611f05565b34801561079b57600080fd5b506103706107aa366004614e24565b611f23565b3480156107bb57600080fd5b50610370611f8b565b3480156107d057600080fd5b5061039261207a565b3480156107e557600080fd5b506103e961208f565b3480156107fa57600080fd5b506103e96120ab565b34801561080f57600080fd5b506103e96120c6565b34801561082457600080fd5b506103e9610833366004614b79565b6120e4565b34801561084457600080fd5b50610858610853366004614b79565b6120ef565b60405161039e9190614e80565b34801561087157600080fd5b506103bc61219f565b34801561088657600080fd5b5061044b610895366004614b79565b6121ae565b3480156108a657600080fd5b5061044b6108b5366004614bd9565b6121d1565b3480156108c657600080fd5b506103e9612229565b3480156108db57600080fd5b506103706108ea366004614b79565b612247565b3480156108fb57600080fd5b50610370612251565b34801561091057600080fd5b5061092461091f366004614e93565b612271565b60405161039e9190614ec8565b34801561093d57600080fd5b5061044b61094c366004614b79565b612455565b34801561095d57600080fd5b5061037061096c366004614ca0565b612473565b34801561097d57600080fd5b5061039261098c366004614bd9565b61276c565b34801561099d57600080fd5b506103926109ac366004614c37565b612950565b3480156109bd57600080fd5b506109c6612986565b60405165ffffffffffff909116815260200161039e565b3480156109e957600080fd5b5061044b6000805160206156bd83398151915281565b348015610a0b57600080fd5b5061044b610a1a366004614b79565b612990565b348015610a2b57600080fd5b506103bc6129a3565b348015610a4057600080fd5b5061044b610a4f366004614ca0565b6129c0565b348015610a6057600080fd5b5061044b600081565b348015610a7557600080fd5b50610370610a84366004614f2a565b6129cd565b348015610a9557600080fd5b5061044b6129d8565b348015610aaa57600080fd5b5061044b610ab9366004614b79565b6129ed565b348015610aca57600080fd5b50610370610ad9366004614bbb565b612a68565b348015610aea57600080fd5b506103bc604051806040016040528060058152602001640352e302e360dc1b81525081565b348015610b1b57600080fd5b50610370610b2a366004614f58565b612a7d565b348015610b3b57600080fd5b50610370610b4a366004614ffd565b612b95565b348015610b5b57600080fd5b506103bc610b6a366004614b79565b612bac565b348015610b7b57600080fd5b5061044b610b8a366004614b79565b612c3d565b348015610b9b57600080fd5b5061044b610baa366004614bd9565b612c53565b348015610bbb57600080fd5b5061044b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610bef57600080fd5b50610370610bfe366004614c37565b612c94565b348015610c0f57600080fd5b50610370610c1e366004614bd9565b612cb0565b348015610c2f57600080fd5b50610858610c3e366004614bd9565b612dae565b348015610c4f57600080fd5b5061044b610c5e366004615068565b612dcc565b348015610c6f57600080fd5b5061044b60008051602061569d83398151915281565b348015610c9157600080fd5b50610392610ca0366004615085565b612df2565b348015610cb157600080fd5b5061044b60008051602061563d83398151915281565b6000805160206156dd833981519152610cdf81612e31565b6001821015610d335760405162461bcd60e51b815260206004820152601b60248201527a11d85b185e1e53595b58995c8e881a5b9d985b1a59081b195d995b602a1b60448201526064015b60405180910390fd5b60018360ff161015610d875760405162461bcd60e51b815260206004820181905260248201527f47616c6178794d656d6265723a20696e76616c6964206e6f6465206c6576656c6044820152606401610d2a565b6000610d91612e3b565b90508060060154831115610e0b5760405162461bcd60e51b815260206004820152603b60248201527f47616c6178794d656d6265723a206c6576656c206d757374206265206c65737360448201527a081d1a185b881bdc88195c5d585b081d1bc813505617d311559153602a1b6064820152608401610d2a565b60ff9093166000908152600f90930160205250604090912055565b6000610e3182612e5f565b92915050565b60606000610e43612e84565b9050806000018054610e54906150b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e80906150b3565b8015610ecd5780601f10610ea257610100808354040283529160200191610ecd565b820191906000526020600020905b815481529060010190602001808311610eb057829003601f168201915b505050505091505090565b6000610ee382612ea8565b50610e3182612ee0565b610ef8