Address Contract Verified
Address
0xD3214Ef2Ae5327468521be8d567e587b38E8aD79
Balance
0 ETH
Nonce
1
Code Size
10699 bytes
Creator
0xaDf49b9f...86C7 at tx 0xad2628cf...0b0be5
Indexed Transactions
0
Contract Bytecode
10699 bytes
0x6080604052600436106102725760003560e01c8063715018a61161014f578063a22cb465116100c1578063d5abeb011161007a578063d5abeb011461076a578063e8a3d48514610780578063e985e9c514610795578063f2fde38b146107d0578063f4a0a528146107f0578063fcd3533c1461081057600080fd5b8063a22cb465146106aa578063b1c9fe6e146106ca578063b88d4fde146106ea578063c03afb591461070a578063c87b56dd1461072a578063d547741f1461074a57600080fd5b80638da5cb5b116101135780638da5cb5b1461060f57806391d148541461062d578063938e3d7b1461064d57806395d89b411461066d578063a0712d6814610682578063a217fddf1461069557600080fd5b8063715018a61461059c57806373532802146105b15780637f1c7189146105d1578063827481ea146105e7578063853828b6146105fa57600080fd5b80632f2ff15d116101e857806343d3a20e116101ac57806343d3a20e146104e6578063484b973c1461050657806355f804b3146105265780636352211e146105465780636817c76c1461056657806370a082311461057c57600080fd5b80632f2ff15d1461045057806336568abe146104705780633660a0841461049057806342842e0e146104b057806343353561146104d057600080fd5b80631e7269c51161023a5780631e7269c514610361578063238ac9331461038e57806323b872dd146103ac578063248a9ca3146103cc578063282c51f3146103fc5780632b5f5a4c1461043057600080fd5b806301ffc9a71461027757806306fdde03146102ac578063081812fc146102ce578063095ea7b31461031c57806318160ddd1461033e575b600080fd5b34801561028357600080fd5b506102976102923660046122cd565b610830565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c1610850565b6040516102a3919061230e565b3480156102da57600080fd5b506103046102e9366004612341565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016102a3565b34801561032857600080fd5b5061033c610337366004612371565b6108de565b005b34801561034a57600080fd5b506103536109c5565b6040519081526020016102a3565b34801561036d57600080fd5b5061035361037c36600461239b565b60146020526000908152604090205481565b34801561039a57600080fd5b506008546001600160a01b0316610304565b3480156103b857600080fd5b5061033c6103c73660046123b6565b6109db565b3480156103d857600080fd5b506103536103e7366004612341565b60009081526009602052604090206001015490565b34801561040857600080fd5b506103537f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b34801561043c57600080fd5b5061033c61044b366004612341565b610ba2565b34801561045c57600080fd5b5061033c61046b3660046123f2565b610baf565b34801561047c57600080fd5b5061033c61048b3660046123f2565b610bd9565b34801561049c57600080fd5b5061033c6104ab36600461239b565b610c57565b3480156104bc57600080fd5b5061033c6104cb3660046123b6565b610ca8565b3480156104dc57600080fd5b50610353600e5481565b3480156104f257600080fd5b5061033c61050136600461239b565b610d78565b34801561051257600080fd5b5061033c610521366004612371565b610da2565b34801561053257600080fd5b5061033c610541366004612460565b610e4c565b34801561055257600080fd5b50610304610561366004612341565b610e61565b34801561057257600080fd5b50610353600d5481565b34801561058857600080fd5b5061035361059736600461239b565b610eb8565b3480156105a857600080fd5b5061033c610f1b565b3480156105bd57600080fd5b5061033c6105cc366004612341565b610f2f565b3480156105dd57600080fd5b50610353600b5481565b61033c6105f53660046124a2565b610f8e565b34801561060657600080fd5b5061033c6110ce565b34801561061b57600080fd5b506007546001600160a01b0316610304565b34801561063957600080fd5b506102976106483660046123f2565b611151565b34801561065957600080fd5b5061033c610668366004612460565b61117c565b34801561067957600080fd5b506102c1611191565b61033c610690366004612341565b61119e565b3480156106a157600080fd5b50610353600081565b3480156106b657600080fd5b5061033c6106c53660046124f5565b611298565b3480156106d657600080fd5b50600a5460ff166040516102a39190612547565b3480156106f657600080fd5b5061033c61070536600461256f565b611304565b34801561071657600080fd5b5061033c6107253660046125de565b6113c9565b34801561073657600080fd5b506102c1610745366004612341565b6113f8565b34801561075657600080fd5b5061033c6107653660046123f2565b611488565b34801561077657600080fd5b50610353600c5481565b34801561078c57600080fd5b506102c16114ad565b3480156107a157600080fd5b506102976107b03660046125ff565b600560209081526000928352604080842090915290825290205460ff1681565b3480156107dc57600080fd5b5061033c6107eb36600461239b565b61153f565b3480156107fc57600080fd5b5061033c61080b366004612341565b6115b8565b34801561081c57600080fd5b5061033c61082b3660046123f2565b6115c5565b600061083b826115f9565b8061084a575061084a82611647565b92915050565b6000805461085d90612629565b80601f016020809104026020016040519081016040528092919081815260200182805461088990612629565b80156108d65780601f106108ab576101008083540402835291602001916108d6565b820191906000526020600020905b8154815290600101906020018083116108b957829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061092757506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6109695760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600060016010546109d69190612679565b905090565b6000818152600260205260409020546001600160a01b03848116911614610a315760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610960565b6001600160a01b038216610a7b5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610960565b336001600160a01b0384161480610ab557506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610ad657506000818152600460205260409020546001600160a01b031633145b610b135760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610960565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610baa61167c565b600e55565b600082815260096020526040902060010154610bca816116d6565b610bd483836116e0565b505050565b6001600160a01b0381163314610c495760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610960565b610c538282611766565b5050565b610c5f61167c565b6001600160a01b038116610c86576040516326120ecd60e11b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610cb38383836109db565b6001600160a01b0382163b1580610d5c5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610d2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d50919061268c565b6001600160e01b031916145b610bd45760405162461bcd60e51b8152600401610960906126a9565b610d8061167c565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610daa61167c565b600654600003610dcd576040516337affdbf60e11b815260040160405180910390fd5b6000600655600c54601054600190610de69084906126d3565b610df09190612679565b1115610e0f5760405163704d6bf960e11b815260040160405180910390fd5b60005b81811015610e3857610e26836010546117cd565b60108054600190810190915501610e12565b50610e438282611899565b50506001600655565b610e5461167c565b6011610bd4828483612742565b6000818152600260205260409020546001600160a01b031680610eb35760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610960565b919050565b60006001600160a01b038216610eff5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610960565b506001600160a01b031660009081526003602052604090205490565b610f2361167c565b610f2d600061192c565b565b610f3761167c565b6001601054610f469190612679565b811015610f665760405163378d3bcb60e21b815260040160405180910390fd5b600b54811115610f89576040516333cbe1a360e01b815260040160405180910390fd5b600c55565b8380600d54610f9d9190612802565b341015610fbd5760405163356680b760e01b815260040160405180910390fd5b600a5460019060ff166002811115610fd757610fd7612531565b816002811115610fe957610fe9612531565b14611007576040516365a2ea6560e11b815260040160405180910390fd5b60065460000361102a576040516337affdbf60e11b815260040160405180910390fd5b60006006556110556110446008546001600160a01b031690565b61104e338861197e565b8686611a14565b61107257604051638baa579f60e01b815260040160405180910390fd5b33600090815260146020526040902054859061108f9088906126d3565b11156110ae5760405163020805f560e61b815260040160405180910390fd5b6110b786611a74565b6110c13387611899565b5050600160065550505050565b6110d661167c565b4760008190036110f957604051630686827b60e51b815260040160405180910390fd5b600f546040516001600160a01b03909116908290600081818185875af1925050503d8060008114611146576040519150601f19603f3d011682016040523d82523d6000602084013e61114b565b606091505b50505050565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61118461167c565b6012610bd4828483612742565b6001805461085d90612629565b8080600d546111ad9190612802565b3410156111cd5760405163356680b760e01b815260040160405180910390fd5b600a5460029060ff16818111156111e6576111e6612531565b8160028111156111f8576111f8612531565b14611216576040516365a2ea6560e11b815260040160405180910390fd5b600654600003611239576040516337affdbf60e11b815260040160405180910390fd5b60006006819055600e54338252601460205260409091205461125c9085906126d3565b111561127b5760405163020805f560e61b815260040160405180910390fd5b61128483611a74565b61128e3384611899565b5050600160065550565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61130f8585856109db565b6001600160a01b0384163b15806113a65750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906113579033908a90899089908990600401612819565b6020604051808303816000875af1158015611376573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139a919061268c565b6001600160e01b031916145b6113c25760405162461bcd60e51b8152600401610960906126a9565b5050505050565b6113d161167c565b600a805482919060ff191660018360028111156113f0576113f0612531565b021790555050565b6060600061140583610e61565b6001600160a01b03160361142c5760405163677510db60e11b815260040160405180910390fd5b6000611436611b01565b905060008151116114565760405180602001604052806000815250611481565b8061146084611b10565b60405160200161147192919061286d565b6040516020818303038152906040525b9392505050565b6000828152600960205260409020600101546114a3816116d6565b610bd48383611766565b6060601280546114bc90612629565b80601f01602080910402602001604051908101604052809291908181526020018280546114e890612629565b80156115355780601f1061150a57610100808354040283529160200191611535565b820191906000526020600020905b81548152906001019060200180831161151857829003601f168201915b5050505050905090565b61154761167c565b6001600160a01b0381166115ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610960565b6115b58161192c565b50565b6115c061167c565b600d55565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8486115ef816116d6565b610bd48383611c19565b60006301ffc9a760e01b6001600160e01b03198316148061162a57506380ac58cd60e01b6001600160e01b03198316145b8061084a5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b03198216637965db0b60e01b148061084a57506301ffc9a760e01b6001600160e01b031983161461084a565b6007546001600160a01b03163314610f2d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610960565b6115b58133611c61565b6116ea8282611151565b610c535760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556117223390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6117708282611151565b15610c535760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6117d78282611cba565b6001600160a01b0382163b158061187d5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af115801561184d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611871919061268c565b6001600160e01b031916145b610c535760405162461bcd60e51b8152600401610960906126a9565b6013546001600160a01b03166118c25760405163659f8d0f60e01b815260040160405180910390fd5b6013546040516340c10f1960e01b81526001600160a01b03848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561191057600080fd5b505af1158015611924573d6000803e3d6000fd5b505050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009061148190605401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000611a568484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611dc592505050565b6001600160a01b0316856001600160a01b0316149050949350505050565b600c54600182601054611a8791906126d3565b611a919190612679565b1115611ab05760405163704d6bf960e11b815260040160405180910390fd5b60005b81811015611ad957611ac7336010546117cd565b60108054600190810190915501611ab3565b503360009081526014602052604081208054839290611af99084906126d3565b909155505050565b6060601180546114bc90612629565b606081600003611b375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b615780611b4b8161289c565b9150611b5a9050600a836128cb565b9150611b3b565b60008167ffffffffffffffff811115611b7c57611b7c6126e6565b6040519080825280601f01601f191660200182016040528015611ba6576020820181803683370190505b5090505b8415611c1157611bbb600183612679565b9150611bc8600a866128df565b611bd39060306126d3565b60f81b818381518110611be857611be86128f3565b60200101906001600160f81b031916908160001a905350611c0a600a866128cb565b9450611baa565b949350505050565b6000611c2483610e61565b9050806001600160a01b0316826001600160a01b031614611c58576040516349e27cff60e01b815260040160405180910390fd5b610bd483611de9565b611c6b8282611151565b610c5357611c7881611eb6565b611c83836020611ec8565b604051602001611c94929190612909565b60408051601f198184030181529082905262461bcd60e51b82526109609160040161230e565b6001600160a01b038216611d045760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610960565b6000818152600260205260409020546001600160a01b031615611d5a5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610960565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806000611dd48585612064565b91509150611de1816120a9565b509392505050565b6000818152600260205260409020546001600160a01b031680611e3b5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610960565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606061084a6001600160a01b03831660145b60606000611ed7836002612802565b611ee29060026126d3565b67ffffffffffffffff811115611efa57611efa6126e6565b6040519080825280601f01601f191660200182016040528015611f24576020820181803683370190505b509050600360fc1b81600081518110611f3f57611f3f6128f3565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611f6e57611f6e6128f3565b60200101906001600160f81b031916908160001a9053506000611f92846002612802565b611f9d9060016126d3565b90505b6001811115612015576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611fd157611fd16128f3565b1a60f81b828281518110611fe757611fe76128f3565b60200101906001600160f81b031916908160001a90535060049490941c9361200e8161297e565b9050611fa0565b5083156114815760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610960565b600080825160410361209a5760208301516040840151606085015160001a61208e878285856121f3565b945094505050506120a2565b506000905060025b9250929050565b60008160048111156120bd576120bd612531565b036120c55750565b60018160048111156120d9576120d9612531565b036121265760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610960565b600281600481111561213a5761213a612531565b036121875760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610960565b600381600481111561219b5761219b612531565b036115b55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610960565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561222a57506000905060036122ae565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561227e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166122a7576000600192509250506122ae565b9150600090505b94509492505050565b6001600160e01b0319811681146115b557600080fd5b6000602082840312156122df57600080fd5b8135611481816122b7565b60005b838110156123055781810151838201526020016122ed565b50506000910152565b602081526000825180602084015261232d8160408501602087016122ea565b601f01601f19169190910160400192915050565b60006020828403121561235357600080fd5b5035919050565b80356001600160a01b0381168114610eb357600080fd5b6000806040838503121561238457600080fd5b61238d8361235a565b946020939093013593505050565b6000602082840312156123ad57600080fd5b6114818261235a565b6000806000606084860312156123cb57600080fd5b6123d48461235a565b92506123e26020850161235a565b9150604084013590509250925092565b6000806040838503121561240557600080fd5b823591506124156020840161235a565b90509250929050565b60008083601f84011261243057600080fd5b50813567ffffffffffffffff81111561244857600080fd5b6020830191508360208285010111156120a257600080fd5b6000806020838503121561247357600080fd5b823567ffffffffffffffff81111561248a57600080fd5b6124968582860161241e565b90969095509350505050565b600080600080606085870312156124b857600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156124dd57600080fd5b6124e98782880161241e565b95989497509550505050565b6000806040838503121561250857600080fd5b6125118361235a565b91506020830135801515811461252657600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016003831061256957634e487b7160e01b600052602160045260246000fd5b91905290565b60008060008060006080868803121561258757600080fd5b6125908661235a565b945061259e6020870161235a565b935060408601359250606086013567ffffffffffffffff8111156125c157600080fd5b6125cd8882890161241e565b969995985093965092949392505050565b6000602082840312156125f057600080fd5b81356003811061148157600080fd5b6000806040838503121561261257600080fd5b61261b8361235a565b91506124156020840161235a565b600181811c9082168061263d57607f821691505b60208210810361265d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561084a5761084a612663565b60006020828403121561269e57600080fd5b8151611481816122b7565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b8082018082111561084a5761084a612663565b634e487b7160e01b600052604160045260246000fd5b601f821115610bd457600081815260208120601f850160051c810160208610156127235750805b601f850160051c820191505b818110156119245782815560010161272f565b67ffffffffffffffff83111561275a5761275a6126e6565b61276e836127688354612629565b836126fc565b6000601f8411600181146127a2576000851561278a5750838201355b600019600387901b1c1916600186901b1783556113c2565b600083815260209020601f19861690835b828110156127d357868501358255602094850194600190920191016127b3565b50868210156127f05760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b808202811582820484141761084a5761084a612663565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000835161287f8184602088016122ea565b8351908301906128938183602088016122ea565b01949350505050565b6000600182016128ae576128ae612663565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826128da576128da6128b5565b500490565b6000826128ee576128ee6128b5565b500690565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516129418160178501602088016122ea565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516129728160288401602088016122ea565b01602801949350505050565b60008161298d5761298d612663565b50600019019056fea2646970667358221220a8bcc64007871c825dcce4d0f105c555c01ed8b35de2cad7afd18e08704c44c064736f6c63430008110033
Verified Source Code Full Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: Yes (200 runs)
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev 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.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
AccessControl.sol 247 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `_msgSender()` is missing `role`.
* Overriding this function changes the behavior of the {onlyRole} modifier.
*
* Format of the revert message is described in {_checkRole}.
*
* _Available since v4.6._
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(account),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* May emit a {RoleGranted} event.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}
Strings.sol 70 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}
ERC721.sol 231 lines
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;
/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
/*//////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event Transfer(address indexed from, address indexed to, uint256 indexed id);
event Approval(address indexed owner, address indexed spender, uint256 indexed id);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/*//////////////////////////////////////////////////////////////
METADATA STORAGE/LOGIC
//////////////////////////////////////////////////////////////*/
string public name;
string public symbol;
function tokenURI(uint256 id) public view virtual returns (string memory);
/*//////////////////////////////////////////////////////////////
ERC721 BALANCE/OWNER STORAGE
//////////////////////////////////////////////////////////////*/
mapping(uint256 => address) internal _ownerOf;
mapping(address => uint256) internal _balanceOf;
function ownerOf(uint256 id) public view virtual returns (address owner) {
require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
}
function balanceOf(address owner) public view virtual returns (uint256) {
require(owner != address(0), "ZERO_ADDRESS");
return _balanceOf[owner];
}
/*//////////////////////////////////////////////////////////////
ERC721 APPROVAL STORAGE
//////////////////////////////////////////////////////////////*/
mapping(uint256 => address) public getApproved;
mapping(address => mapping(address => bool)) public isApprovedForAll;
/*//////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
constructor(string memory _name, string memory _symbol) {
name = _name;
symbol = _symbol;
}
/*//////////////////////////////////////////////////////////////
ERC721 LOGIC
//////////////////////////////////////////////////////////////*/
function approve(address spender, uint256 id) public virtual {
address owner = _ownerOf[id];
require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");
getApproved[id] = spender;
emit Approval(owner, spender, id);
}
function setApprovalForAll(address operator, bool approved) public virtual {
isApprovedForAll[msg.sender][operator] = approved;
emit ApprovalForAll(msg.sender, operator, approved);
}
function transferFrom(
address from,
address to,
uint256 id
) public virtual {
require(from == _ownerOf[id], "WRONG_FROM");
require(to != address(0), "INVALID_RECIPIENT");
require(
msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
"NOT_AUTHORIZED"
);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
unchecked {
_balanceOf[from]--;
_balanceOf[to]++;
}
_ownerOf[id] = to;
delete getApproved[id];
emit Transfer(from, to, id);
}
function safeTransferFrom(
address from,
address to,
uint256 id
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function safeTransferFrom(
address from,
address to,
uint256 id,
bytes calldata data
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
/*//////////////////////////////////////////////////////////////
ERC165 LOGIC
//////////////////////////////////////////////////////////////*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return
interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
}
/*//////////////////////////////////////////////////////////////
INTERNAL MINT/BURN LOGIC
//////////////////////////////////////////////////////////////*/
function _mint(address to, uint256 id) internal virtual {
require(to != address(0), "INVALID_RECIPIENT");
require(_ownerOf[id] == address(0), "ALREADY_MINTED");
// Counter overflow is incredibly unrealistic.
unchecked {
_balanceOf[to]++;
}
_ownerOf[id] = to;
emit Transfer(address(0), to, id);
}
function _burn(uint256 id) internal virtual {
address owner = _ownerOf[id];
require(owner != address(0), "NOT_MINTED");
// Ownership check above ensures no underflow.
unchecked {
_balanceOf[owner]--;
}
delete _ownerOf[id];
delete getApproved[id];
emit Transfer(owner, address(0), id);
}
/*//////////////////////////////////////////////////////////////
INTERNAL SAFE MINT LOGIC
//////////////////////////////////////////////////////////////*/
function _safeMint(address to, uint256 id) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function _safeMint(
address to,
uint256 id,
bytes memory data
) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
}
/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
function onERC721Received(
address,
address,
uint256,
bytes calldata
) external virtual returns (bytes4) {
return ERC721TokenReceiver.onERC721Received.selector;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev 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.
*
* By default, the owner account will be the one that deploys the contract. 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.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
IAccessControl.sol 88 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}
Signable.sol 28 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import "./Errors.sol";
/// @title Contract that manages the signer/owner roles
abstract contract Signable is Ownable {
address private _signer;
constructor() {
_signer = msg.sender;
}
function signer() public view returns (address) {
return _signer;
}
/// @notice This method allow the owner change the signer role
/// @dev At first, the signer role and the owner role is associated to the same address
/// @param newSigner The address of the new signer
function transferSigner(address newSigner) external onlyOwner {
if (newSigner == address(0)) revert Errors.NewSignerCantBeZero();
_signer = newSigner;
}
}
Helpers.sol 26 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
library Helpers {
function uint2string(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
}
ERC165.sol 29 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
LedgerStaxNFT.sol 267 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import {ERC721} from "@rari-capital/solmate/src/tokens/ERC721.sol";
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "../Helpers.sol";
import "../artPass/IArtOfStaxMintPass.sol";
import "./ReentrancyGuard.sol";
import "./Signable.sol";
import "./Errors.sol";
contract LedgerStaxNFT is ERC721, ReentrancyGuard, Signable, AccessControl {
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
enum Phase {
NONE,
PRE_SALE,
MAIN_SALE
}
Phase private _phase;
uint256 public orginalMaxSupply;
uint256 public maxSupply;
uint256 public mintPrice = 0.3 ether;
uint256 public mintsPerAccountOnPublicSale = 5;
address private _withdrawalAddress;
uint256 private _nextTokenCount = 1;
string private _baseTokenURI;
string private _baseContractURI;
IArtOfStaxMintPass private _artOfStaxMintPass;
mapping(address => uint256) public minted;
modifier phaseRequired(Phase phase_) {
if (phase_ != _phase) revert Errors.MintNotAvailable();
_;
}
modifier costs(uint256 amount) {
if (msg.value < mintPrice * amount) revert Errors.InsufficientFunds();
_;
}
constructor(
uint256 _maxSupply,
string memory baseTokenURI_,
string memory baseContractURI_,
string memory _name,
string memory _symbol,
address withdrawalAddress_
) ERC721(_name, _symbol) {
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
maxSupply = _maxSupply;
orginalMaxSupply = _maxSupply;
_baseTokenURI = baseTokenURI_;
_baseContractURI = baseContractURI_;
_withdrawalAddress = withdrawalAddress_;
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721, AccessControl)
returns (bool)
{
return
ERC721.supportsInterface(interfaceId) ||
AccessControl.supportsInterface(interfaceId);
}
function ownerMint(address to, uint256 amount) external onlyOwner lock {
if (_nextTokenCount + amount - 1 > maxSupply)
revert Errors.SupplyLimitReached();
for (uint256 i; i < amount; ) {
_safeMint(to, _nextTokenCount);
unchecked {
++_nextTokenCount;
++i;
}
}
_mintArtOfStaxLogic(to, amount);
}
function preSaleMint(
uint256 amount,
uint256 maxAmount,
bytes calldata signature
) external payable costs(amount) phaseRequired(Phase.PRE_SALE) lock {
if (!_verify(signer(), _hash(msg.sender, maxAmount), signature))
revert Errors.InvalidSignature();
if (minted[msg.sender] + amount > maxAmount)
revert Errors.AccountAlreadyMintedMax();
_mintLogic(amount);
_mintArtOfStaxLogic(msg.sender, amount);
}
function mint(uint256 amount)
external
payable
costs(amount)
phaseRequired(Phase.MAIN_SALE)
lock
{
if (minted[msg.sender] + amount > mintsPerAccountOnPublicSale)
revert Errors.AccountAlreadyMintedMax();
_mintLogic(amount);
_mintArtOfStaxLogic(msg.sender, amount);
}
function burn(uint256 id, address tokenOwner)
external
onlyRole(BURNER_ROLE)
{
_burnLogic(id, tokenOwner);
}
function withdrawAll() external onlyOwner {
uint256 balance = address(this).balance;
if (balance == 0) revert Errors.NothingToWithdraw();
(_withdrawalAddress.call{value: balance}(""));
}
function setMintPrice(uint256 mintPrice_) external onlyOwner {
mintPrice = mintPrice_;
}
function reduceMaxSupply(uint256 newMaxSupply) external onlyOwner {
if (newMaxSupply < _nextTokenCount - 1)
revert Errors.MaxSupplyTooSmall();
if (newMaxSupply > orginalMaxSupply)
revert Errors.CanNotIncreaseMaxSupply();
maxSupply = newMaxSupply;
}
function setMintsPerAccountOnPublicSale(
uint256 mintsPerAccountOnPublicSale_
) external onlyOwner {
mintsPerAccountOnPublicSale = mintsPerAccountOnPublicSale_;
}
function setContractURI(string calldata baseContractURI_)
external
onlyOwner
{
_baseContractURI = baseContractURI_;
}
function setBaseURI(string calldata baseURI_) external onlyOwner {
_baseTokenURI = baseURI_;
}
function setPhase(Phase phase_) external onlyOwner {
_phase = phase_;
}
function setArtOfStaxMintPass(address artOfStaxMintPass_)
external
onlyOwner
{
_artOfStaxMintPass = IArtOfStaxMintPass(artOfStaxMintPass_);
}
function totalSupply() external view returns (uint256) {
return _nextTokenCount - 1;
}
function contractURI() external view returns (string memory) {
return _baseContractURI;
}
function phase() external view returns (Phase) {
return _phase;
}
function tokenURI(uint256 tokenId)
public
view
override
returns (string memory)
{
if (ownerOf(tokenId) == address(0)) revert Errors.TokenDoesNotExist();
string memory baseURI = _baseURI();
return
bytes(baseURI).length > 0
? string(
abi.encodePacked(baseURI, Helpers.uint2string(tokenId))
)
: "";
}
function _baseURI() internal view virtual returns (string memory) {
return _baseTokenURI;
}
function _mintLogic(uint256 amount) private {
if (_nextTokenCount + amount - 1 > maxSupply)
revert Errors.SupplyLimitReached();
for (uint256 i; i < amount; ) {
_safeMint(msg.sender, _nextTokenCount);
unchecked {
++_nextTokenCount;
++i;
}
}
minted[msg.sender] += amount;
}
function _verify(
address signer,
bytes32 hash,
bytes calldata signature
) private pure returns (bool) {
return signer == ECDSA.recover(hash, signature);
}
function _hash(address account, uint256 amount)
private
pure
returns (bytes32)
{
return
ECDSA.toEthSignedMessageHash(
keccak256(abi.encodePacked(account, amount))
);
}
function _burnLogic(uint256 id, address tokenOwner) private {
address owner_ = ownerOf(id);
if (tokenOwner != owner_) revert Errors.InvalidOwner();
_burn(id);
}
function _mintArtOfStaxLogic(address to, uint256 amount) private {
if (address(_artOfStaxMintPass) == address(0))
revert Errors.ArtOfStaxMintPassNotSet();
_artOfStaxMintPass.mint(to, amount);
}
// Contract by Alexander Zimin for Ledger
}
IArtOfStaxMintPass.sol 9 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
// TODO: Fix name
interface IArtOfStaxMintPass {
function mint(address to) external;
function mint(address to, uint256 amount) external;
}
ECDSA.sol 213 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV // Deprecated in v4.8
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}
IERC165.sol 25 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
Math.sol 345 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator
) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1);
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator,
Rounding rounding
) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10**64) {
value /= 10**64;
result += 64;
}
if (value >= 10**32) {
value /= 10**32;
result += 32;
}
if (value >= 10**16) {
value /= 10**16;
result += 16;
}
if (value >= 10**8) {
value /= 10**8;
result += 8;
}
if (value >= 10**4) {
value /= 10**4;
result += 4;
}
if (value >= 10**2) {
value /= 10**2;
result += 2;
}
if (value >= 10**1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
}
}
}
Errors.sol 23 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
library Errors {
error InsufficientFunds();
error TokenDoesNotExist();
error NothingToWithdraw();
error InvalidOwner();
error MintNotAvailable();
error SupplyLimitReached();
error ArtOfStaxMintPassNotSet();
error InvalidSignature();
error AccountAlreadyMintedMax();
error MaxSupplyTooSmall();
error CanNotIncreaseMaxSupply();
/* Signable.sol */
error NewSignerCantBeZero();
/* ReentrancyGuard.sol */
error ContractLocked();
}
ReentrancyGuard.sol 16 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import "./Errors.sol";
abstract contract ReentrancyGuard {
uint256 private unlocked = 1;
modifier lock() {
if (unlocked == 0) revert Errors.ContractLocked();
unlocked = 0;
_;
unlocked = 1;
}
}
Read Contract
BURNER_ROLE 0x282c51f3 → bytes32
DEFAULT_ADMIN_ROLE 0xa217fddf → bytes32
balanceOf 0x70a08231 → uint256
contractURI 0xe8a3d485 → string
getApproved 0x081812fc → address
getRoleAdmin 0x248a9ca3 → bytes32
hasRole 0x91d14854 → bool
isApprovedForAll 0xe985e9c5 → bool
maxSupply 0xd5abeb01 → uint256
mintPrice 0x6817c76c → uint256
minted 0x1e7269c5 → uint256
mintsPerAccountOnPublicSale 0x43353561 → uint256
name 0x06fdde03 → string
orginalMaxSupply 0x7f1c7189 → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
phase 0xb1c9fe6e → uint8
signer 0x238ac933 → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
Write Contract 23 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 id
burn 0xfcd3533c
uint256 id
address tokenOwner
grantRole 0x2f2ff15d
bytes32 role
address account
mint 0xa0712d68
uint256 amount
ownerMint 0x484b973c
address to
uint256 amount
preSaleMint 0x827481ea
uint256 amount
uint256 maxAmount
bytes signature
reduceMaxSupply 0x73532802
uint256 newMaxSupply
renounceOwnership 0x715018a6
No parameters
renounceRole 0x36568abe
bytes32 role
address account
revokeRole 0xd547741f
bytes32 role
address account
safeTransferFrom 0x42842e0e
address from
address to
uint256 id
safeTransferFrom 0xb88d4fde
address from
address to
uint256 id
bytes data
setApprovalForAll 0xa22cb465
address operator
bool approved
setArtOfStaxMintPass 0x43d3a20e
address artOfStaxMintPass_
setBaseURI 0x55f804b3
string baseURI_
setContractURI 0x938e3d7b
string baseContractURI_
setMintPrice 0xf4a0a528
uint256 mintPrice_
setMintsPerAccountOnPublicSale 0x2b5f5a4c
uint256 mintsPerAccountOnPublicSale_
setPhase 0xc03afb59
uint8 phase_
transferFrom 0x23b872dd
address from
address to
uint256 id
transferOwnership 0xf2fde38b
address newOwner
transferSigner 0x3660a084
address newSigner
withdrawAll 0x853828b6
No parameters
Recent Transactions
No transactions found for this address