0 txs
3.8k calls
constructor
constructor()
functions
checkOwnerRewards
viewfunction checkOwnerRewards(address owner) view returns (uint8 _rewardValue)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
listOwnerRewards
viewfunction listOwnerRewards(address owner) view returns (tuple[], uint256[], bool[], uint256)
listPillarz
viewfunction listPillarz() view returns (tuple[])
owner
viewfunction owner() view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
addPillar
nonpayablefunction addPillar(address contractAddress, string slug, uint256 tokenId, uint256 amount, uint8 tokenType, uint8 bonusAmount)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
removePillar
nonpayablefunction removePillar(address contractAddress, uint256 tokenId)
renounceOwnership
nonpayablefunction renounceOwnership()
renounceRole
nonpayablefunction renounceRole(bytes32 role, address callerConfirmation)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
setMaxBonus
nonpayablefunction setMaxBonus(uint8 _maxReward)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdraw
payablefunction withdraw() payable
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
errors
AccessControlBadConfirmation
error AccessControlBadConfirmation()
AccessControlUnauthorizedAccount
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
creation bytecode
0x60806040526003805460ff1916601917905534801561001c575f80fd5b50338061004257604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61004b8161005c565b506100565f336100ab565b5061013d565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f8281526001602090815260408083206001600160a01b038516845290915281205460ff16610134575f8381526001602081815260408084206001600160a01b0387168086529252808420805460ff19169093179092559051339286917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a4506001610137565b505f5b92915050565b61193b806200014b5f395ff3fe6080604052600436106100fa575f3560e01c8063715018a611610092578063a217fddf11610062578063a217fddf146102b0578063c3fb1839146102c3578063d0ff637e146102e2578063d547741f14610301578063f2fde38b14610320575f80fd5b8063715018a6146102385780638330edb91461024c5780638da5cb5b1461026b57806391d1485414610291575f80fd5b806338bf85a9116100cd57806338bf85a9146101af5780633ccfd60b146101d05780633ed1df34146101d85780634aa8917014610207575f80fd5b806301ffc9a7146100fe578063248a9ca3146101325780632f2ff15d1461016f57806336568abe14610190575b5f80fd5b348015610109575f80fd5b5061011d61011836600461131f565b61033f565b60405190151581526020015b60405180910390f35b34801561013d575f80fd5b5061016161014c36600461134d565b5f908152600160208190526040909120015490565b604051908152602001610129565b34801561017a575f80fd5b5061018e61018936600461137f565b61034f565b005b34801561019b575f80fd5b5061018e6101aa36600461137f565b61037a565b3480156101ba575f80fd5b506101c36103b2565b6040516101299190611493565b61018e6104ea565b3480156101e3575f80fd5b506101f76101f23660046114a5565b610554565b60405161012994939291906114be565b348015610212575f80fd5b506102266102213660046114a5565b6109eb565b60405160ff9091168152602001610129565b348015610243575f80fd5b5061018e610c72565b348015610257575f80fd5b5061018e610266366004611554565b610c85565b348015610276575f80fd5b505f546040516001600160a01b039091168152602001610129565b34801561029c575f80fd5b5061011d6102ab36600461137f565b610f37565b3480156102bb575f80fd5b506101615f81565b3480156102ce575f80fd5b5061018e6102dd36600461158c565b610f61565b3480156102ed575f80fd5b5061018e6102fc3660046115a5565b610f82565b34801561030c575f80fd5b5061018e61031b36600461137f565b61109b565b34801561032b575f80fd5b5061018e61033a3660046114a5565b6110c0565b5f61034982611102565b92915050565b5f828152600160208190526040909120015461036a81611136565b6103748383611140565b50505050565b6001600160a01b03811633146103a35760405163334bd91960e11b815260040160405180910390fd5b6103ad82826111b6565b505050565b60606002805480602002602001604051908101604052809291908181526020015f905b828210156104e1575f8481526020908190206040805160c081019091526005850290910180546001600160a01b03168252600181018054929391929184019161041d90611654565b80601f016020809104026020016040519081016040528092919081815260200182805461044990611654565b80156104945780601f1061046b57610100808354040283529160200191610494565b820191905f5260205f20905b81548152906001019060200180831161047757829003601f168201915b505050918352505060028201546020808301919091526003830154604083015260049092015460ff80821660608401526101009091041660809091015290825260019290920191016103d5565b50505050905090565b5f6104f481611136565b5f80546040516001600160a01b039091169047908381818185875af1925050503d805f811461053e576040519150601f19603f3d011682016040523d82523d5f602084013e610543565b606091505b5050905080610550575f80fd5b5050565b600254606090819081905f90818167ffffffffffffffff81111561057a5761057a61168c565b6040519080825280602002602001820160405280156105a3578160200160208202803683370190505b5090505f8267ffffffffffffffff8111156105c0576105c061168c565b6040519080825280602002602001820160405280156105e9578160200160208202803683370190505b5090505f805b848163ffffffff161015610885575f60028263ffffffff1681548110610617576106176116a0565b5f9182526020918290206040805160c0810190915260059092020180546001600160a01b03168252600181018054929391929184019161065690611654565b80601f016020809104026020016040519081016040528092919081815260200182805461068290611654565b80156106cd5780601f106106a4576101008083540402835291602001916106cd565b820191905f5260205f20905b8154815290600101906020018083116106b057829003601f168201915b5050509183525050600282015460208201526003820154604082015260049091015460ff80821660608401526101009091048116608092830152908201519192505f911681036107855781516040516370a0823160e01b81526001600160a01b038e81166004830152909116906370a0823190602401602060405180830381865afa15801561075e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078291906116b4565b90505b816080015160ff1660010361080c5781516040808401519051627eeac760e11b81526001600160a01b038f81166004830152602482019290925291169062fdd58e90604401602060405180830381865afa1580156107e5573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061080991906116b4565b90505b80858463ffffffff1681518110610825576108256116a0565b6020026020010181815250508160600151811061087b5760a082015161084e9060ff16856116df565b93506001868463ffffffff168151811061086a5761086a6116a0565b911515602092830291909101909101525b50506001016105ef565b5060035460ff168111610898578061089f565b60035460ff165b9050600282848383805480602002602001604051908101604052809291908181526020015f905b828210156109d2575f8481526020908190206040805160c081019091526005850290910180546001600160a01b03168252600181018054929391929184019161090e90611654565b80601f016020809104026020016040519081016040528092919081815260200182805461093a90611654565b80156109855780601f1061095c57610100808354040283529160200191610985565b820191905f5260205f20905b81548152906001019060200180831161096857829003601f168201915b505050918352505060028201546020808301919091526003830154604083015260049092015460ff80821660608401526101009091041660809091015290825260019290920191016108c6565b5050505093509750975097509750505050509193509193565b6002545f908190815b818163ffffffff16108015610a11575060035460ff908116908416105b15610c4c575f60028263ffffffff1681548110610a3057610a306116a0565b5f9182526020918290206040805160c0810190915260059092020180546001600160a01b031682526001810180549293919291840191610a6f90611654565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9b90611654565b8015610ae65780601f10610abd57610100808354040283529160200191610ae6565b820191905f5260205f20905b815481529060010190602001808311610ac957829003601f168201915b5050509183525050600282015460208201526003820154604082015260049091015460ff80821660608401526101009091048116608092830152908201519192505f91168103610b9e5781516040516370a0823160e01b81526001600160a01b038981166004830152909116906370a0823190602401602060405180830381865afa158015610b77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b9b91906116b4565b90505b816080015160ff16600103610c255781516040808401519051627eeac760e11b81526001600160a01b038a81166004830152602482019290925291169062fdd58e90604401602060405180830381865afa158015610bfe573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c2291906116b4565b90505b81606001518110610c425760a0820151610c3f90866116f2565b94505b50506001016109f4565b5060035460ff90811690831611610c635781610c6a565b60035460ff165b949350505050565b610c7a611221565b610c835f61124d565b565b5f610c8f81611136565b6002545f5b81811015610f30575f60028281548110610cb057610cb06116a0565b5f9182526020918290206040805160c0810190915260059092020180546001600160a01b031682526001810180549293919291840191610cef90611654565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1b90611654565b8015610d665780601f10610d3d57610100808354040283529160200191610d66565b820191905f5260205f20905b815481529060010190602001808311610d4957829003601f168201915b5050509183525050600282015460208201526003820154604082015260049091015460ff80821660608401526101009091041660809091015280519091506001600160a01b03808816911603610f2757608081015160ff161580610ddf5750806080015160ff166001148015610ddf5750848160400151145b15610f2757610def60018461170b565b821015610ec2576002610e0360018561170b565b81548110610e1357610e136116a0565b905f5260205f20906005020160028381548110610e3257610e326116a0565b5f9182526020909120825460059092020180546001600160a01b0319166001600160a01b03909216919091178155600180820190610e7290840182611762565b5060028281015490820155600380830154908201556004918201805492909101805460ff93841660ff19821681178355925461ffff19909116909217610100928390049093169091029190911790555b6002805480610ed357610ed3611837565b5f8281526020812060055f199093019283020180546001600160a01b031916815590610f0260018301826112d5565b505f600282018190556003820155600401805461ffff191690559055506103ad915050565b50600101610c94565b5050505050565b5f9182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b5f610f6b81611136565b506003805460ff191660ff92909216919091179055565b5f610f8c81611136565b60026040518060c001604052808a6001600160a01b0316815260200189898080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92018290525093855250505060208083018a90526040830189905260ff8881166060850152871660809093019290925283546001808201865594825290829020835160059092020180546001600160a01b0319166001600160a01b0390921691909117815590820151919290919082019061104e908261184b565b50604082015160028201556060820151600382015560808201516004909101805460a09093015160ff9081166101000261ffff199094169216919091179190911790555050505050505050565b5f82815260016020819052604090912001546110b681611136565b61037483836111b6565b6110c8611221565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6110ff8161124d565b50565b5f6001600160e01b03198216637965db0b60e01b148061034957506301ffc9a760e01b6001600160e01b0319831614610349565b6110ff813361129c565b5f61114b8383610f37565b6111af575f8381526001602081815260408084206001600160a01b0387168086529252808420805460ff19169093179092559051339286917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a4506001610349565b505f610349565b5f6111c18383610f37565b156111af575f8381526001602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610349565b5f546001600160a01b03163314610c835760405163118cdaa760e01b81523360048201526024016110ed565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6112a68282610f37565b6105505760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044016110ed565b5080546112e190611654565b5f825580601f106112f0575050565b601f0160209004905f5260205f20908101906110ff91905b8082111561131b575f8155600101611308565b5090565b5f6020828403121561132f575f80fd5b81356001600160e01b031981168114611346575f80fd5b9392505050565b5f6020828403121561135d575f80fd5b5035919050565b80356001600160a01b038116811461137a575f80fd5b919050565b5f8060408385031215611390575f80fd5b823591506113a060208401611364565b90509250929050565b5f82825180855260208086019550808260051b8401018186015f5b8481101561148657601f1986840381018a52825180516001600160a01b031685528581015160c087870181905281519087018190525f91905b8083101561141b5781830189015188840160e00152918801916113fd565b60e092505f83828a0101526040915081840151828901526060915081840151828901526080915081840151611454838a018260ff169052565b5060a09384015160ff8116898601529391509c88019c601f0190931695909501909401935050908301906001016113c4565b5090979650505050505050565b602081525f61134660208301846113a9565b5f602082840312156114b5575f80fd5b61134682611364565b608081525f6114d060808301876113a9565b8281036020848101919091528651808352878201928201905f5b81811015611506578451835293830193918301916001016114ea565b5050848103604086015286518082529082019250818701905f5b8181101561153e578251151585529383019391830191600101611520565b5050505060609290920192909252949350505050565b5f8060408385031215611565575f80fd5b61156e83611364565b946020939093013593505050565b803560ff8116811461137a575f80fd5b5f6020828403121561159c575f80fd5b6113468261157c565b5f805f805f805f60c0888a0312156115bb575f80fd5b6115c488611364565b9650602088013567ffffffffffffffff808211156115e0575f80fd5b818a0191508a601f8301126115f3575f80fd5b813581811115611601575f80fd5b8b6020828501011115611612575f80fd5b60208301985080975050505060408801359350606088013592506116386080890161157c565b915061164660a0890161157c565b905092959891949750929550565b600181811c9082168061166857607f821691505b60208210810361168657634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156116c4575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610349576103496116cb565b60ff8181168382160190811115610349576103496116cb565b81810381811115610349576103496116cb565b601f8211156103ad57805f5260205f20601f840160051c810160208510156117435750805b601f840160051c820191505b81811015610f30575f815560010161174f565b81810361176d575050565b6117778254611654565b67ffffffffffffffff81111561178f5761178f61168c565b6117a38161179d8454611654565b8461171e565b5f601f8211600181146117d4575f83156117bd5750848201545b5f19600385901b1c1916600184901b178455610f30565b5f8581526020808220868352908220601f198616925b8381101561180a57828601548255600195860195909101906020016117ea565b508583101561182757818501545f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603160045260245ffd5b815167ffffffffffffffff8111156118655761186561168c565b6118738161179d8454611654565b602080601f8311600181146118a6575f841561188f5750858301515b5f19600386901b1c1916600185901b1785556118fd565b5f85815260208120601f198616915b828110156118d4578886015182559484019460019091019084016118b5565b50858210156118f157878501515f19600388901b60f8161c191681555b505060018460011b0185555b50505050505056fea26469706673582212206a926ae09ce5f7274380caaa9f8e503e4430efd9eb622e286d179bcc128fd1f664736f6c63430008170033