Documentation
¶
Index ¶
- Variables
- type Attestation
- type AuthData
- type IERC721SaleFunctionsSaleDetails
- type PayloadCall
- type Sale
- type SaleCaller
- func (_Sale *SaleCaller) AcceptImplicitRequest(opts *bind.CallOpts, wallet common.Address, attestation Attestation, ...) ([32]byte, error)
- func (_Sale *SaleCaller) CheckMerkleProof(opts *bind.CallOpts, root [32]byte, proof [][32]byte, addr common.Address, ...) (bool, error)
- func (_Sale *SaleCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Sale *SaleCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_Sale *SaleCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_Sale *SaleCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_Sale *SaleCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_Sale *SaleCaller) ItemsContract(opts *bind.CallOpts) (common.Address, error)
- func (_Sale *SaleCaller) SaleDetails(opts *bind.CallOpts) (IERC721SaleFunctionsSaleDetails, error)
- func (_Sale *SaleCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- type SaleCallerRaw
- type SaleCallerSession
- func (_Sale *SaleCallerSession) AcceptImplicitRequest(wallet common.Address, attestation Attestation, call PayloadCall) ([32]byte, error)
- func (_Sale *SaleCallerSession) CheckMerkleProof(root [32]byte, proof [][32]byte, addr common.Address, salt [32]byte) (bool, error)
- func (_Sale *SaleCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Sale *SaleCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Sale *SaleCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Sale *SaleCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Sale *SaleCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Sale *SaleCallerSession) ItemsContract() (common.Address, error)
- func (_Sale *SaleCallerSession) SaleDetails() (IERC721SaleFunctionsSaleDetails, error)
- func (_Sale *SaleCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- type SaleFilterer
- func (_Sale *SaleFilterer) FilterItemsMinted(opts *bind.FilterOpts) (*SaleItemsMintedIterator, error)
- func (_Sale *SaleFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*SaleRoleAdminChangedIterator, error)
- func (_Sale *SaleFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*SaleRoleGrantedIterator, error)
- func (_Sale *SaleFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*SaleRoleRevokedIterator, error)
- func (_Sale *SaleFilterer) FilterSaleDetailsUpdated(opts *bind.FilterOpts) (*SaleSaleDetailsUpdatedIterator, error)
- func (_Sale *SaleFilterer) ParseItemsMinted(log types.Log) (*SaleItemsMinted, error)
- func (_Sale *SaleFilterer) ParseRoleAdminChanged(log types.Log) (*SaleRoleAdminChanged, error)
- func (_Sale *SaleFilterer) ParseRoleGranted(log types.Log) (*SaleRoleGranted, error)
- func (_Sale *SaleFilterer) ParseRoleRevoked(log types.Log) (*SaleRoleRevoked, error)
- func (_Sale *SaleFilterer) ParseSaleDetailsUpdated(log types.Log) (*SaleSaleDetailsUpdated, error)
- func (_Sale *SaleFilterer) WatchItemsMinted(opts *bind.WatchOpts, sink chan<- *SaleItemsMinted) (event.Subscription, error)
- func (_Sale *SaleFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SaleRoleAdminChanged, role [][32]byte, ...) (event.Subscription, error)
- func (_Sale *SaleFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SaleRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_Sale *SaleFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SaleRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_Sale *SaleFilterer) WatchSaleDetailsUpdated(opts *bind.WatchOpts, sink chan<- *SaleSaleDetailsUpdated) (event.Subscription, error)
- type SaleItemsMinted
- type SaleItemsMintedIterator
- type SaleRaw
- func (_Sale *SaleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Sale *SaleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Sale *SaleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SaleRoleAdminChanged
- type SaleRoleAdminChangedIterator
- type SaleRoleGranted
- type SaleRoleGrantedIterator
- type SaleRoleRevoked
- type SaleRoleRevokedIterator
- type SaleSaleDetailsUpdated
- type SaleSaleDetailsUpdatedIterator
- type SaleSession
- func (_Sale *SaleSession) AcceptImplicitRequest(wallet common.Address, attestation Attestation, call PayloadCall) ([32]byte, error)
- func (_Sale *SaleSession) CheckMerkleProof(root [32]byte, proof [][32]byte, addr common.Address, salt [32]byte) (bool, error)
- func (_Sale *SaleSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Sale *SaleSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Sale *SaleSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Sale *SaleSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Sale *SaleSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Sale *SaleSession) Initialize(owner common.Address, items common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleSession) ItemsContract() (common.Address, error)
- func (_Sale *SaleSession) Mint(to common.Address, amount *big.Int, paymentToken common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleSession) SaleDetails() (IERC721SaleFunctionsSaleDetails, error)
- func (_Sale *SaleSession) SetImplicitModeProjectId(projectId [32]byte) (*types.Transaction, error)
- func (_Sale *SaleSession) SetImplicitModeValidator(validator common.Address) (*types.Transaction, error)
- func (_Sale *SaleSession) SetSaleDetails(remainingSupply *big.Int, cost *big.Int, paymentToken common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Sale *SaleSession) WithdrawERC20(token common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Sale *SaleSession) WithdrawETH(to common.Address, value *big.Int) (*types.Transaction, error)
- type SaleTransactor
- func (_Sale *SaleTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactor) Initialize(opts *bind.TransactOpts, owner common.Address, items common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactor) SetImplicitModeProjectId(opts *bind.TransactOpts, projectId [32]byte) (*types.Transaction, error)
- func (_Sale *SaleTransactor) SetImplicitModeValidator(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactor) SetSaleDetails(opts *bind.TransactOpts, remainingSupply *big.Int, cost *big.Int, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactor) WithdrawERC20(opts *bind.TransactOpts, token common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactor) WithdrawETH(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
- type SaleTransactorRaw
- type SaleTransactorSession
- func (_Sale *SaleTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) Initialize(owner common.Address, items common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) Mint(to common.Address, amount *big.Int, paymentToken common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) SetImplicitModeProjectId(projectId [32]byte) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) SetImplicitModeValidator(validator common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) SetSaleDetails(remainingSupply *big.Int, cost *big.Int, paymentToken common.Address, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) WithdrawERC20(token common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) WithdrawETH(to common.Address, value *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var SaleABI = SaleMetaData.ABI
SaleABI is the input ABI used to generate the binding from. Deprecated: Use SaleMetaData.ABI instead.
var SaleMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InsufficientPayment\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"InsufficientSupply\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSaleDetails\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"MerkleProofInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SaleInactive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WithdrawFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ItemsMinted\",\"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\":false,\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"name\":\"SaleDetailsUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"approvedSigner\",\"type\":\"address\"},{\"internalType\":\"bytes4\",\"name\":\"identityType\",\"type\":\"bytes4\"},{\"internalType\":\"bytes32\",\"name\":\"issuerHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"audienceHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"applicationData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"redirectUrl\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"issuedAt\",\"type\":\"uint64\"}],\"internalType\":\"structAuthData\",\"name\":\"authData\",\"type\":\"tuple\"}],\"internalType\":\"structAttestation\",\"name\":\"attestation\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"delegateCall\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"onlyFallback\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"behaviorOnError\",\"type\":\"uint256\"}],\"internalType\":\"structPayload.Call\",\"name\":\"call\",\"type\":\"tuple\"}],\"name\":\"acceptImplicitRequest\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"checkMerkleProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"items\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"implicitModeValidator\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"implicitModeProjectId\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"itemsContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxTotal\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"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\":[],\"name\":\"saleDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structIERC721SaleFunctions.SaleDetails\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"projectId\",\"type\":\"bytes32\"}],\"name\":\"setImplicitModeProjectId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"}],\"name\":\"setImplicitModeValidator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"name\":\"setSaleDetails\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"withdrawERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"withdrawETH\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
SaleMetaData contains all meta data concerning the Sale contract.
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type Attestation struct { ApprovedSigner common.Address IdentityType [4]byte IssuerHash [32]byte AudienceHash [32]byte ApplicationData []byte AuthData AuthData }
Attestation is an auto generated low-level Go binding around an user-defined struct.
type IERC721SaleFunctionsSaleDetails ¶
type IERC721SaleFunctionsSaleDetails struct { RemainingSupply *big.Int Cost *big.Int PaymentToken common.Address StartTime uint64 EndTime uint64 MerkleRoot [32]byte }
IERC721SaleFunctionsSaleDetails is an auto generated low-level Go binding around an user-defined struct.
type PayloadCall ¶
type PayloadCall struct { To common.Address Value *big.Int Data []byte GasLimit *big.Int DelegateCall bool OnlyFallback bool BehaviorOnError *big.Int }
PayloadCall is an auto generated low-level Go binding around an user-defined struct.
type Sale ¶
type Sale struct { SaleCaller // Read-only binding to the contract SaleTransactor // Write-only binding to the contract SaleFilterer // Log filterer for contract events }
Sale is an auto generated Go binding around an Ethereum contract.
type SaleCaller ¶
type SaleCaller struct {
// contains filtered or unexported fields
}
SaleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSaleCaller ¶
func NewSaleCaller(address common.Address, caller bind.ContractCaller) (*SaleCaller, error)
NewSaleCaller creates a new read-only instance of Sale, bound to a specific deployed contract.
func (*SaleCaller) AcceptImplicitRequest ¶
func (_Sale *SaleCaller) AcceptImplicitRequest(opts *bind.CallOpts, wallet common.Address, attestation Attestation, call PayloadCall) ([32]byte, error)
AcceptImplicitRequest is a free data retrieval call binding the contract method 0x9d043a66.
Solidity: function acceptImplicitRequest(address wallet, (address,bytes4,bytes32,bytes32,bytes,(string,uint64)) attestation, (address,uint256,bytes,uint256,bool,bool,uint256) call) view returns(bytes32)
func (*SaleCaller) CheckMerkleProof ¶
func (_Sale *SaleCaller) CheckMerkleProof(opts *bind.CallOpts, root [32]byte, proof [][32]byte, addr common.Address, salt [32]byte) (bool, error)
CheckMerkleProof is a free data retrieval call binding the contract method 0xbad43661.
Solidity: function checkMerkleProof(bytes32 root, bytes32[] proof, address addr, bytes32 salt) view returns(bool)
func (*SaleCaller) DEFAULTADMINROLE ¶
func (_Sale *SaleCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*SaleCaller) GetRoleAdmin ¶
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*SaleCaller) GetRoleMember ¶
func (_Sale *SaleCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*SaleCaller) GetRoleMemberCount ¶
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*SaleCaller) HasRole ¶
func (_Sale *SaleCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*SaleCaller) ItemsContract ¶
ItemsContract is a free data retrieval call binding the contract method 0xa971e842.
Solidity: function itemsContract() view returns(address)
func (*SaleCaller) SaleDetails ¶
func (_Sale *SaleCaller) SaleDetails(opts *bind.CallOpts) (IERC721SaleFunctionsSaleDetails, error)
SaleDetails is a free data retrieval call binding the contract method 0x3474a4a6.
Solidity: function saleDetails() view returns((uint256,uint256,address,uint64,uint64,bytes32))
func (*SaleCaller) SupportsInterface ¶
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
type SaleCallerRaw ¶
type SaleCallerRaw struct {
Contract *SaleCaller // Generic read-only contract binding to access the raw methods on
}
SaleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SaleCallerRaw) Call ¶
func (_Sale *SaleCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type SaleCallerSession ¶
type SaleCallerSession struct { Contract *SaleCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SaleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SaleCallerSession) AcceptImplicitRequest ¶
func (_Sale *SaleCallerSession) AcceptImplicitRequest(wallet common.Address, attestation Attestation, call PayloadCall) ([32]byte, error)
AcceptImplicitRequest is a free data retrieval call binding the contract method 0x9d043a66.
Solidity: function acceptImplicitRequest(address wallet, (address,bytes4,bytes32,bytes32,bytes,(string,uint64)) attestation, (address,uint256,bytes,uint256,bool,bool,uint256) call) view returns(bytes32)
func (*SaleCallerSession) CheckMerkleProof ¶
func (_Sale *SaleCallerSession) CheckMerkleProof(root [32]byte, proof [][32]byte, addr common.Address, salt [32]byte) (bool, error)
CheckMerkleProof is a free data retrieval call binding the contract method 0xbad43661.
Solidity: function checkMerkleProof(bytes32 root, bytes32[] proof, address addr, bytes32 salt) view returns(bool)
func (*SaleCallerSession) DEFAULTADMINROLE ¶
func (_Sale *SaleCallerSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*SaleCallerSession) GetRoleAdmin ¶
func (_Sale *SaleCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*SaleCallerSession) GetRoleMember ¶
func (_Sale *SaleCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*SaleCallerSession) GetRoleMemberCount ¶
func (_Sale *SaleCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*SaleCallerSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*SaleCallerSession) ItemsContract ¶
func (_Sale *SaleCallerSession) ItemsContract() (common.Address, error)
ItemsContract is a free data retrieval call binding the contract method 0xa971e842.
Solidity: function itemsContract() view returns(address)
func (*SaleCallerSession) SaleDetails ¶
func (_Sale *SaleCallerSession) SaleDetails() (IERC721SaleFunctionsSaleDetails, error)
SaleDetails is a free data retrieval call binding the contract method 0x3474a4a6.
Solidity: function saleDetails() view returns((uint256,uint256,address,uint64,uint64,bytes32))
func (*SaleCallerSession) SupportsInterface ¶
func (_Sale *SaleCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
type SaleFilterer ¶
type SaleFilterer struct {
// contains filtered or unexported fields
}
SaleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSaleFilterer ¶
func NewSaleFilterer(address common.Address, filterer bind.ContractFilterer) (*SaleFilterer, error)
NewSaleFilterer creates a new log filterer instance of Sale, bound to a specific deployed contract.
func (*SaleFilterer) FilterItemsMinted ¶
func (_Sale *SaleFilterer) FilterItemsMinted(opts *bind.FilterOpts) (*SaleItemsMintedIterator, error)
FilterItemsMinted is a free log retrieval operation binding the contract event 0xf32d98590495ee51bacb93809409a188e7ab8268b70b4c969d9da3a883c539f7.
Solidity: event ItemsMinted(address to, uint256 amount)
func (*SaleFilterer) FilterRoleAdminChanged ¶
func (_Sale *SaleFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*SaleRoleAdminChangedIterator, error)
FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*SaleFilterer) FilterRoleGranted ¶
func (_Sale *SaleFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SaleRoleGrantedIterator, error)
FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*SaleFilterer) FilterRoleRevoked ¶
func (_Sale *SaleFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SaleRoleRevokedIterator, error)
FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*SaleFilterer) FilterSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) FilterSaleDetailsUpdated(opts *bind.FilterOpts) (*SaleSaleDetailsUpdatedIterator, error)
FilterSaleDetailsUpdated is a free log retrieval operation binding the contract event 0xabec13ca1773eed55d54d2f64593c33fa520ee45cac73a162f13928a2ebee233.
Solidity: event SaleDetailsUpdated(uint256 remainingSupply, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot)
func (*SaleFilterer) ParseItemsMinted ¶
func (_Sale *SaleFilterer) ParseItemsMinted(log types.Log) (*SaleItemsMinted, error)
ParseItemsMinted is a log parse operation binding the contract event 0xf32d98590495ee51bacb93809409a188e7ab8268b70b4c969d9da3a883c539f7.
Solidity: event ItemsMinted(address to, uint256 amount)
func (*SaleFilterer) ParseRoleAdminChanged ¶
func (_Sale *SaleFilterer) ParseRoleAdminChanged(log types.Log) (*SaleRoleAdminChanged, error)
ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*SaleFilterer) ParseRoleGranted ¶
func (_Sale *SaleFilterer) ParseRoleGranted(log types.Log) (*SaleRoleGranted, error)
ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*SaleFilterer) ParseRoleRevoked ¶
func (_Sale *SaleFilterer) ParseRoleRevoked(log types.Log) (*SaleRoleRevoked, error)
ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*SaleFilterer) ParseSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) ParseSaleDetailsUpdated(log types.Log) (*SaleSaleDetailsUpdated, error)
ParseSaleDetailsUpdated is a log parse operation binding the contract event 0xabec13ca1773eed55d54d2f64593c33fa520ee45cac73a162f13928a2ebee233.
Solidity: event SaleDetailsUpdated(uint256 remainingSupply, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot)
func (*SaleFilterer) WatchItemsMinted ¶
func (_Sale *SaleFilterer) WatchItemsMinted(opts *bind.WatchOpts, sink chan<- *SaleItemsMinted) (event.Subscription, error)
WatchItemsMinted is a free log subscription operation binding the contract event 0xf32d98590495ee51bacb93809409a188e7ab8268b70b4c969d9da3a883c539f7.
Solidity: event ItemsMinted(address to, uint256 amount)
func (*SaleFilterer) WatchRoleAdminChanged ¶
func (_Sale *SaleFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SaleRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)
WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*SaleFilterer) WatchRoleGranted ¶
func (_Sale *SaleFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SaleRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*SaleFilterer) WatchRoleRevoked ¶
func (_Sale *SaleFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SaleRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*SaleFilterer) WatchSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) WatchSaleDetailsUpdated(opts *bind.WatchOpts, sink chan<- *SaleSaleDetailsUpdated) (event.Subscription, error)
WatchSaleDetailsUpdated is a free log subscription operation binding the contract event 0xabec13ca1773eed55d54d2f64593c33fa520ee45cac73a162f13928a2ebee233.
Solidity: event SaleDetailsUpdated(uint256 remainingSupply, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot)
type SaleItemsMinted ¶
type SaleItemsMinted struct { To common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
SaleItemsMinted represents a ItemsMinted event raised by the Sale contract.
type SaleItemsMintedIterator ¶
type SaleItemsMintedIterator struct { Event *SaleItemsMinted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SaleItemsMintedIterator is returned from FilterItemsMinted and is used to iterate over the raw logs and unpacked data for ItemsMinted events raised by the Sale contract.
func (*SaleItemsMintedIterator) Close ¶
func (it *SaleItemsMintedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SaleItemsMintedIterator) Error ¶
func (it *SaleItemsMintedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SaleItemsMintedIterator) Next ¶
func (it *SaleItemsMintedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SaleRaw ¶
type SaleRaw struct {
Contract *Sale // Generic contract binding to access the raw methods on
}
SaleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SaleRaw) Call ¶
func (_Sale *SaleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*SaleRaw) Transact ¶
func (_Sale *SaleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SaleRaw) Transfer ¶
func (_Sale *SaleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type SaleRoleAdminChanged ¶
type SaleRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
SaleRoleAdminChanged represents a RoleAdminChanged event raised by the Sale contract.
type SaleRoleAdminChangedIterator ¶
type SaleRoleAdminChangedIterator struct { Event *SaleRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SaleRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Sale contract.
func (*SaleRoleAdminChangedIterator) Close ¶
func (it *SaleRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SaleRoleAdminChangedIterator) Error ¶
func (it *SaleRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SaleRoleAdminChangedIterator) Next ¶
func (it *SaleRoleAdminChangedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SaleRoleGranted ¶
type SaleRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
SaleRoleGranted represents a RoleGranted event raised by the Sale contract.
type SaleRoleGrantedIterator ¶
type SaleRoleGrantedIterator struct { Event *SaleRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SaleRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Sale contract.
func (*SaleRoleGrantedIterator) Close ¶
func (it *SaleRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SaleRoleGrantedIterator) Error ¶
func (it *SaleRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SaleRoleGrantedIterator) Next ¶
func (it *SaleRoleGrantedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SaleRoleRevoked ¶
type SaleRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
SaleRoleRevoked represents a RoleRevoked event raised by the Sale contract.
type SaleRoleRevokedIterator ¶
type SaleRoleRevokedIterator struct { Event *SaleRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SaleRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Sale contract.
func (*SaleRoleRevokedIterator) Close ¶
func (it *SaleRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SaleRoleRevokedIterator) Error ¶
func (it *SaleRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SaleRoleRevokedIterator) Next ¶
func (it *SaleRoleRevokedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SaleSaleDetailsUpdated ¶
type SaleSaleDetailsUpdated struct { RemainingSupply *big.Int Cost *big.Int PaymentToken common.Address StartTime uint64 EndTime uint64 MerkleRoot [32]byte Raw types.Log // Blockchain specific contextual infos }
SaleSaleDetailsUpdated represents a SaleDetailsUpdated event raised by the Sale contract.
type SaleSaleDetailsUpdatedIterator ¶
type SaleSaleDetailsUpdatedIterator struct { Event *SaleSaleDetailsUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SaleSaleDetailsUpdatedIterator is returned from FilterSaleDetailsUpdated and is used to iterate over the raw logs and unpacked data for SaleDetailsUpdated events raised by the Sale contract.
func (*SaleSaleDetailsUpdatedIterator) Close ¶
func (it *SaleSaleDetailsUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SaleSaleDetailsUpdatedIterator) Error ¶
func (it *SaleSaleDetailsUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SaleSaleDetailsUpdatedIterator) Next ¶
func (it *SaleSaleDetailsUpdatedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SaleSession ¶
type SaleSession struct { Contract *Sale // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SaleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SaleSession) AcceptImplicitRequest ¶
func (_Sale *SaleSession) AcceptImplicitRequest(wallet common.Address, attestation Attestation, call PayloadCall) ([32]byte, error)
AcceptImplicitRequest is a free data retrieval call binding the contract method 0x9d043a66.
Solidity: function acceptImplicitRequest(address wallet, (address,bytes4,bytes32,bytes32,bytes,(string,uint64)) attestation, (address,uint256,bytes,uint256,bool,bool,uint256) call) view returns(bytes32)
func (*SaleSession) CheckMerkleProof ¶
func (_Sale *SaleSession) CheckMerkleProof(root [32]byte, proof [][32]byte, addr common.Address, salt [32]byte) (bool, error)
CheckMerkleProof is a free data retrieval call binding the contract method 0xbad43661.
Solidity: function checkMerkleProof(bytes32 root, bytes32[] proof, address addr, bytes32 salt) view returns(bool)
func (*SaleSession) DEFAULTADMINROLE ¶
func (_Sale *SaleSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*SaleSession) GetRoleAdmin ¶
func (_Sale *SaleSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*SaleSession) GetRoleMember ¶
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*SaleSession) GetRoleMemberCount ¶
func (_Sale *SaleSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*SaleSession) GrantRole ¶
func (_Sale *SaleSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*SaleSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*SaleSession) Initialize ¶
func (_Sale *SaleSession) Initialize(owner common.Address, items common.Address, implicitModeValidator common.Address, implicitModeProjectId [32]byte) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x63acc14d.
Solidity: function initialize(address owner, address items, address implicitModeValidator, bytes32 implicitModeProjectId) returns()
func (*SaleSession) ItemsContract ¶
func (_Sale *SaleSession) ItemsContract() (common.Address, error)
ItemsContract is a free data retrieval call binding the contract method 0xa971e842.
Solidity: function itemsContract() view returns(address)
func (*SaleSession) Mint ¶
func (_Sale *SaleSession) Mint(to common.Address, amount *big.Int, paymentToken common.Address, maxTotal *big.Int, proof [][32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x0668d0bb.
Solidity: function mint(address to, uint256 amount, address paymentToken, uint256 maxTotal, bytes32[] proof) payable returns()
func (*SaleSession) RenounceRole ¶
func (_Sale *SaleSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*SaleSession) RevokeRole ¶
func (_Sale *SaleSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*SaleSession) SaleDetails ¶
func (_Sale *SaleSession) SaleDetails() (IERC721SaleFunctionsSaleDetails, error)
SaleDetails is a free data retrieval call binding the contract method 0x3474a4a6.
Solidity: function saleDetails() view returns((uint256,uint256,address,uint64,uint64,bytes32))
func (*SaleSession) SetImplicitModeProjectId ¶
func (_Sale *SaleSession) SetImplicitModeProjectId(projectId [32]byte) (*types.Transaction, error)
SetImplicitModeProjectId is a paid mutator transaction binding the contract method 0xed4c2ac7.
Solidity: function setImplicitModeProjectId(bytes32 projectId) returns()
func (*SaleSession) SetImplicitModeValidator ¶
func (_Sale *SaleSession) SetImplicitModeValidator(validator common.Address) (*types.Transaction, error)
SetImplicitModeValidator is a paid mutator transaction binding the contract method 0x0bb310de.
Solidity: function setImplicitModeValidator(address validator) returns()
func (*SaleSession) SetSaleDetails ¶
func (_Sale *SaleSession) SetSaleDetails(remainingSupply *big.Int, cost *big.Int, paymentToken common.Address, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetSaleDetails is a paid mutator transaction binding the contract method 0x8c17030f.
Solidity: function setSaleDetails(uint256 remainingSupply, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()
func (*SaleSession) SupportsInterface ¶
func (_Sale *SaleSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*SaleSession) WithdrawERC20 ¶
func (_Sale *SaleSession) WithdrawERC20(token common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.
Solidity: function withdrawERC20(address token, address to, uint256 value) returns()
func (*SaleSession) WithdrawETH ¶
func (_Sale *SaleSession) WithdrawETH(to common.Address, value *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address to, uint256 value) returns()
type SaleTransactor ¶
type SaleTransactor struct {
// contains filtered or unexported fields
}
SaleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSaleTransactor ¶
func NewSaleTransactor(address common.Address, transactor bind.ContractTransactor) (*SaleTransactor, error)
NewSaleTransactor creates a new write-only instance of Sale, bound to a specific deployed contract.
func (*SaleTransactor) GrantRole ¶
func (_Sale *SaleTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*SaleTransactor) Initialize ¶
func (_Sale *SaleTransactor) Initialize(opts *bind.TransactOpts, owner common.Address, items common.Address, implicitModeValidator common.Address, implicitModeProjectId [32]byte) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x63acc14d.
Solidity: function initialize(address owner, address items, address implicitModeValidator, bytes32 implicitModeProjectId) returns()
func (*SaleTransactor) Mint ¶
func (_Sale *SaleTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int, paymentToken common.Address, maxTotal *big.Int, proof [][32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x0668d0bb.
Solidity: function mint(address to, uint256 amount, address paymentToken, uint256 maxTotal, bytes32[] proof) payable returns()
func (*SaleTransactor) RenounceRole ¶
func (_Sale *SaleTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*SaleTransactor) RevokeRole ¶
func (_Sale *SaleTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*SaleTransactor) SetImplicitModeProjectId ¶
func (_Sale *SaleTransactor) SetImplicitModeProjectId(opts *bind.TransactOpts, projectId [32]byte) (*types.Transaction, error)
SetImplicitModeProjectId is a paid mutator transaction binding the contract method 0xed4c2ac7.
Solidity: function setImplicitModeProjectId(bytes32 projectId) returns()
func (*SaleTransactor) SetImplicitModeValidator ¶
func (_Sale *SaleTransactor) SetImplicitModeValidator(opts *bind.TransactOpts, validator common.Address) (*types.Transaction, error)
SetImplicitModeValidator is a paid mutator transaction binding the contract method 0x0bb310de.
Solidity: function setImplicitModeValidator(address validator) returns()
func (*SaleTransactor) SetSaleDetails ¶
func (_Sale *SaleTransactor) SetSaleDetails(opts *bind.TransactOpts, remainingSupply *big.Int, cost *big.Int, paymentToken common.Address, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetSaleDetails is a paid mutator transaction binding the contract method 0x8c17030f.
Solidity: function setSaleDetails(uint256 remainingSupply, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()
func (*SaleTransactor) WithdrawERC20 ¶
func (_Sale *SaleTransactor) WithdrawERC20(opts *bind.TransactOpts, token common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.
Solidity: function withdrawERC20(address token, address to, uint256 value) returns()
func (*SaleTransactor) WithdrawETH ¶
func (_Sale *SaleTransactor) WithdrawETH(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address to, uint256 value) returns()
type SaleTransactorRaw ¶
type SaleTransactorRaw struct {
Contract *SaleTransactor // Generic write-only contract binding to access the raw methods on
}
SaleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SaleTransactorRaw) Transact ¶
func (_Sale *SaleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SaleTransactorRaw) Transfer ¶
func (_Sale *SaleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type SaleTransactorSession ¶
type SaleTransactorSession struct { Contract *SaleTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SaleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SaleTransactorSession) GrantRole ¶
func (_Sale *SaleTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*SaleTransactorSession) Initialize ¶
func (_Sale *SaleTransactorSession) Initialize(owner common.Address, items common.Address, implicitModeValidator common.Address, implicitModeProjectId [32]byte) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x63acc14d.
Solidity: function initialize(address owner, address items, address implicitModeValidator, bytes32 implicitModeProjectId) returns()
func (*SaleTransactorSession) Mint ¶
func (_Sale *SaleTransactorSession) Mint(to common.Address, amount *big.Int, paymentToken common.Address, maxTotal *big.Int, proof [][32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x0668d0bb.
Solidity: function mint(address to, uint256 amount, address paymentToken, uint256 maxTotal, bytes32[] proof) payable returns()
func (*SaleTransactorSession) RenounceRole ¶
func (_Sale *SaleTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*SaleTransactorSession) RevokeRole ¶
func (_Sale *SaleTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*SaleTransactorSession) SetImplicitModeProjectId ¶
func (_Sale *SaleTransactorSession) SetImplicitModeProjectId(projectId [32]byte) (*types.Transaction, error)
SetImplicitModeProjectId is a paid mutator transaction binding the contract method 0xed4c2ac7.
Solidity: function setImplicitModeProjectId(bytes32 projectId) returns()
func (*SaleTransactorSession) SetImplicitModeValidator ¶
func (_Sale *SaleTransactorSession) SetImplicitModeValidator(validator common.Address) (*types.Transaction, error)
SetImplicitModeValidator is a paid mutator transaction binding the contract method 0x0bb310de.
Solidity: function setImplicitModeValidator(address validator) returns()
func (*SaleTransactorSession) SetSaleDetails ¶
func (_Sale *SaleTransactorSession) SetSaleDetails(remainingSupply *big.Int, cost *big.Int, paymentToken common.Address, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetSaleDetails is a paid mutator transaction binding the contract method 0x8c17030f.
Solidity: function setSaleDetails(uint256 remainingSupply, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()
func (*SaleTransactorSession) WithdrawERC20 ¶
func (_Sale *SaleTransactorSession) WithdrawERC20(token common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.
Solidity: function withdrawERC20(address token, address to, uint256 value) returns()
func (*SaleTransactorSession) WithdrawETH ¶
func (_Sale *SaleTransactorSession) WithdrawETH(to common.Address, value *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address to, uint256 value) returns()