Documentation
¶
Index ¶
- Variables
- type Attestation
- type AuthData
- type IERC1155SaleFunctionsGlobalSaleDetails
- type IERC1155SaleFunctionsSaleDetails
- 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) GlobalSaleDetails(opts *bind.CallOpts) (IERC1155SaleFunctionsGlobalSaleDetails, error)
- func (_Sale *SaleCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_Sale *SaleCaller) PaymentToken(opts *bind.CallOpts) (common.Address, error)
- func (_Sale *SaleCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_Sale *SaleCaller) TokenSaleDetails(opts *bind.CallOpts, tokenId *big.Int) (IERC1155SaleFunctionsSaleDetails, error)
- func (_Sale *SaleCaller) TokenSaleDetailsBatch(opts *bind.CallOpts, tokenIds []*big.Int) ([]IERC1155SaleFunctionsSaleDetails, 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) GlobalSaleDetails() (IERC1155SaleFunctionsGlobalSaleDetails, error)
- func (_Sale *SaleCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Sale *SaleCallerSession) PaymentToken() (common.Address, error)
- func (_Sale *SaleCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Sale *SaleCallerSession) TokenSaleDetails(tokenId *big.Int) (IERC1155SaleFunctionsSaleDetails, error)
- func (_Sale *SaleCallerSession) TokenSaleDetailsBatch(tokenIds []*big.Int) ([]IERC1155SaleFunctionsSaleDetails, error)
- type SaleFilterer
- func (_Sale *SaleFilterer) FilterGlobalSaleDetailsUpdated(opts *bind.FilterOpts) (*SaleGlobalSaleDetailsUpdatedIterator, error)
- 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) FilterTokenSaleDetailsUpdated(opts *bind.FilterOpts) (*SaleTokenSaleDetailsUpdatedIterator, error)
- func (_Sale *SaleFilterer) ParseGlobalSaleDetailsUpdated(log types.Log) (*SaleGlobalSaleDetailsUpdated, 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) ParseTokenSaleDetailsUpdated(log types.Log) (*SaleTokenSaleDetailsUpdated, error)
- func (_Sale *SaleFilterer) WatchGlobalSaleDetailsUpdated(opts *bind.WatchOpts, sink chan<- *SaleGlobalSaleDetailsUpdated) (event.Subscription, 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) WatchTokenSaleDetailsUpdated(opts *bind.WatchOpts, sink chan<- *SaleTokenSaleDetailsUpdated) (event.Subscription, error)
- type SaleGlobalSaleDetailsUpdated
- type SaleGlobalSaleDetailsUpdatedIterator
- 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 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) GlobalSaleDetails() (IERC1155SaleFunctionsGlobalSaleDetails, 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) Mint(to common.Address, tokenIds []*big.Int, amounts []*big.Int, data []byte, ...) (*types.Transaction, error)
- func (_Sale *SaleSession) PaymentToken() (common.Address, 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) SetGlobalSaleDetails(minTokenId *big.Int, maxTokenId *big.Int, cost *big.Int, ...) (*types.Transaction, error)
- func (_Sale *SaleSession) SetImplicitModeProjectId(projectId [32]byte) (*types.Transaction, error)
- func (_Sale *SaleSession) SetImplicitModeValidator(validator common.Address) (*types.Transaction, error)
- func (_Sale *SaleSession) SetPaymentToken(paymentTokenAddr common.Address) (*types.Transaction, error)
- func (_Sale *SaleSession) SetTokenSaleDetails(tokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, ...) (*types.Transaction, error)
- func (_Sale *SaleSession) SetTokenSaleDetailsBatch(tokenIds []*big.Int, costs []*big.Int, remainingSupplies []*big.Int, ...) (*types.Transaction, error)
- func (_Sale *SaleSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Sale *SaleSession) TokenSaleDetails(tokenId *big.Int) (IERC1155SaleFunctionsSaleDetails, error)
- func (_Sale *SaleSession) TokenSaleDetailsBatch(tokenIds []*big.Int) ([]IERC1155SaleFunctionsSaleDetails, 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 SaleTokenSaleDetailsUpdated
- type SaleTokenSaleDetailsUpdatedIterator
- 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, tokenIds []*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) SetGlobalSaleDetails(opts *bind.TransactOpts, minTokenId *big.Int, maxTokenId *big.Int, ...) (*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) SetPaymentToken(opts *bind.TransactOpts, paymentTokenAddr common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactor) SetTokenSaleDetails(opts *bind.TransactOpts, tokenId *big.Int, cost *big.Int, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactor) SetTokenSaleDetailsBatch(opts *bind.TransactOpts, tokenIds []*big.Int, costs []*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, tokenIds []*big.Int, amounts []*big.Int, data []byte, ...) (*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) SetGlobalSaleDetails(minTokenId *big.Int, maxTokenId *big.Int, cost *big.Int, ...) (*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) SetPaymentToken(paymentTokenAddr common.Address) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) SetTokenSaleDetails(tokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, ...) (*types.Transaction, error)
- func (_Sale *SaleTransactorSession) SetTokenSaleDetailsBatch(tokenIds []*big.Int, costs []*big.Int, remainingSupplies []*big.Int, ...) (*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\":[],\"name\":\"GlobalSaleInactive\",\"type\":\"error\"},{\"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\":[],\"name\":\"InvalidTokenIds\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"SaleInactive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WithdrawFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"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\":\"GlobalSaleDetailsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"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\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"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\":\"TokenSaleDetailsUpdated\",\"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\":[],\"name\":\"globalSaleDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structIERC1155SaleFunctions.GlobalSaleDetails\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"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\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"expectedPaymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxTotal\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paymentToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"minTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"name\":\"setGlobalSaleDetails\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"address\",\"name\":\"paymentTokenAddr\",\"type\":\"address\"}],\"name\":\"setPaymentToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"name\":\"setTokenSaleDetails\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"costs\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"remainingSupplies\",\"type\":\"uint256[]\"},{\"internalType\":\"uint64[]\",\"name\":\"startTimes\",\"type\":\"uint64[]\"},{\"internalType\":\"uint64[]\",\"name\":\"endTimes\",\"type\":\"uint64[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleRoots\",\"type\":\"bytes32[]\"}],\"name\":\"setTokenSaleDetailsBatch\",\"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\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenSaleDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structIERC1155SaleFunctions.SaleDetails\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"tokenSaleDetailsBatch\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"startTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structIERC1155SaleFunctions.SaleDetails[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"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 IERC1155SaleFunctionsGlobalSaleDetails ¶
type IERC1155SaleFunctionsGlobalSaleDetails struct {
MinTokenId *big.Int
MaxTokenId *big.Int
Cost *big.Int
RemainingSupply *big.Int
StartTime uint64
EndTime uint64
MerkleRoot [32]byte
}
IERC1155SaleFunctionsGlobalSaleDetails is an auto generated low-level Go binding around an user-defined struct.
type IERC1155SaleFunctionsSaleDetails ¶
type IERC1155SaleFunctionsSaleDetails struct {
Cost *big.Int
RemainingSupply *big.Int
StartTime uint64
EndTime uint64
MerkleRoot [32]byte
}
IERC1155SaleFunctionsSaleDetails 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) GlobalSaleDetails ¶
func (_Sale *SaleCaller) GlobalSaleDetails(opts *bind.CallOpts) (IERC1155SaleFunctionsGlobalSaleDetails, error)
GlobalSaleDetails is a free data retrieval call binding the contract method 0x119cd50c.
Solidity: function globalSaleDetails() view returns((uint256,uint256,uint256,uint256,uint64,uint64,bytes32))
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) PaymentToken ¶
PaymentToken is a free data retrieval call binding the contract method 0x3013ce29.
Solidity: function paymentToken() view returns(address)
func (*SaleCaller) SupportsInterface ¶
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*SaleCaller) TokenSaleDetails ¶
func (_Sale *SaleCaller) TokenSaleDetails(opts *bind.CallOpts, tokenId *big.Int) (IERC1155SaleFunctionsSaleDetails, error)
TokenSaleDetails is a free data retrieval call binding the contract method 0x0869678c.
Solidity: function tokenSaleDetails(uint256 tokenId) view returns((uint256,uint256,uint64,uint64,bytes32))
func (*SaleCaller) TokenSaleDetailsBatch ¶
func (_Sale *SaleCaller) TokenSaleDetailsBatch(opts *bind.CallOpts, tokenIds []*big.Int) ([]IERC1155SaleFunctionsSaleDetails, error)
TokenSaleDetailsBatch is a free data retrieval call binding the contract method 0xff81434e.
Solidity: function tokenSaleDetailsBatch(uint256[] tokenIds) view returns((uint256,uint256,uint64,uint64,bytes32)[])
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) GlobalSaleDetails ¶
func (_Sale *SaleCallerSession) GlobalSaleDetails() (IERC1155SaleFunctionsGlobalSaleDetails, error)
GlobalSaleDetails is a free data retrieval call binding the contract method 0x119cd50c.
Solidity: function globalSaleDetails() view returns((uint256,uint256,uint256,uint256,uint64,uint64,bytes32))
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) PaymentToken ¶
func (_Sale *SaleCallerSession) PaymentToken() (common.Address, error)
PaymentToken is a free data retrieval call binding the contract method 0x3013ce29.
Solidity: function paymentToken() view returns(address)
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)
func (*SaleCallerSession) TokenSaleDetails ¶
func (_Sale *SaleCallerSession) TokenSaleDetails(tokenId *big.Int) (IERC1155SaleFunctionsSaleDetails, error)
TokenSaleDetails is a free data retrieval call binding the contract method 0x0869678c.
Solidity: function tokenSaleDetails(uint256 tokenId) view returns((uint256,uint256,uint64,uint64,bytes32))
func (*SaleCallerSession) TokenSaleDetailsBatch ¶
func (_Sale *SaleCallerSession) TokenSaleDetailsBatch(tokenIds []*big.Int) ([]IERC1155SaleFunctionsSaleDetails, error)
TokenSaleDetailsBatch is a free data retrieval call binding the contract method 0xff81434e.
Solidity: function tokenSaleDetailsBatch(uint256[] tokenIds) view returns((uint256,uint256,uint64,uint64,bytes32)[])
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) FilterGlobalSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) FilterGlobalSaleDetailsUpdated(opts *bind.FilterOpts) (*SaleGlobalSaleDetailsUpdatedIterator, error)
FilterGlobalSaleDetailsUpdated is a free log retrieval operation binding the contract event 0x099eb0c4bcb0e32c2243e81b424e1960f39d7ac2fe1598742f19aa8aec203acb.
Solidity: event GlobalSaleDetailsUpdated(uint256 minTokenId, uint256 maxTokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot)
func (*SaleFilterer) FilterItemsMinted ¶
func (_Sale *SaleFilterer) FilterItemsMinted(opts *bind.FilterOpts) (*SaleItemsMintedIterator, error)
FilterItemsMinted is a free log retrieval operation binding the contract event 0x23519238b590c499a2abcf44a33b5f431ac6ca51c22fad26bc2c3d08b97eaa21.
Solidity: event ItemsMinted(address to, uint256[] tokenIds, uint256[] amounts)
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) FilterTokenSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) FilterTokenSaleDetailsUpdated(opts *bind.FilterOpts) (*SaleTokenSaleDetailsUpdatedIterator, error)
FilterTokenSaleDetailsUpdated is a free log retrieval operation binding the contract event 0x8ced76aee4b96a1e218e7903610fc7d648023d9075677163a5b31396cb280f96.
Solidity: event TokenSaleDetailsUpdated(uint256 tokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot)
func (*SaleFilterer) ParseGlobalSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) ParseGlobalSaleDetailsUpdated(log types.Log) (*SaleGlobalSaleDetailsUpdated, error)
ParseGlobalSaleDetailsUpdated is a log parse operation binding the contract event 0x099eb0c4bcb0e32c2243e81b424e1960f39d7ac2fe1598742f19aa8aec203acb.
Solidity: event GlobalSaleDetailsUpdated(uint256 minTokenId, uint256 maxTokenId, uint256 cost, uint256 remainingSupply, 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 0x23519238b590c499a2abcf44a33b5f431ac6ca51c22fad26bc2c3d08b97eaa21.
Solidity: event ItemsMinted(address to, uint256[] tokenIds, uint256[] amounts)
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) ParseTokenSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) ParseTokenSaleDetailsUpdated(log types.Log) (*SaleTokenSaleDetailsUpdated, error)
ParseTokenSaleDetailsUpdated is a log parse operation binding the contract event 0x8ced76aee4b96a1e218e7903610fc7d648023d9075677163a5b31396cb280f96.
Solidity: event TokenSaleDetailsUpdated(uint256 tokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot)
func (*SaleFilterer) WatchGlobalSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) WatchGlobalSaleDetailsUpdated(opts *bind.WatchOpts, sink chan<- *SaleGlobalSaleDetailsUpdated) (event.Subscription, error)
WatchGlobalSaleDetailsUpdated is a free log subscription operation binding the contract event 0x099eb0c4bcb0e32c2243e81b424e1960f39d7ac2fe1598742f19aa8aec203acb.
Solidity: event GlobalSaleDetailsUpdated(uint256 minTokenId, uint256 maxTokenId, uint256 cost, uint256 remainingSupply, 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 0x23519238b590c499a2abcf44a33b5f431ac6ca51c22fad26bc2c3d08b97eaa21.
Solidity: event ItemsMinted(address to, uint256[] tokenIds, uint256[] amounts)
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) WatchTokenSaleDetailsUpdated ¶
func (_Sale *SaleFilterer) WatchTokenSaleDetailsUpdated(opts *bind.WatchOpts, sink chan<- *SaleTokenSaleDetailsUpdated) (event.Subscription, error)
WatchTokenSaleDetailsUpdated is a free log subscription operation binding the contract event 0x8ced76aee4b96a1e218e7903610fc7d648023d9075677163a5b31396cb280f96.
Solidity: event TokenSaleDetailsUpdated(uint256 tokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot)
type SaleGlobalSaleDetailsUpdated ¶
type SaleGlobalSaleDetailsUpdated struct {
MinTokenId *big.Int
MaxTokenId *big.Int
Cost *big.Int
RemainingSupply *big.Int
StartTime uint64
EndTime uint64
MerkleRoot [32]byte
Raw types.Log // Blockchain specific contextual infos
}
SaleGlobalSaleDetailsUpdated represents a GlobalSaleDetailsUpdated event raised by the Sale contract.
type SaleGlobalSaleDetailsUpdatedIterator ¶
type SaleGlobalSaleDetailsUpdatedIterator struct {
Event *SaleGlobalSaleDetailsUpdated // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SaleGlobalSaleDetailsUpdatedIterator is returned from FilterGlobalSaleDetailsUpdated and is used to iterate over the raw logs and unpacked data for GlobalSaleDetailsUpdated events raised by the Sale contract.
func (*SaleGlobalSaleDetailsUpdatedIterator) Close ¶
func (it *SaleGlobalSaleDetailsUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SaleGlobalSaleDetailsUpdatedIterator) Error ¶
func (it *SaleGlobalSaleDetailsUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SaleGlobalSaleDetailsUpdatedIterator) Next ¶
func (it *SaleGlobalSaleDetailsUpdatedIterator) 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 SaleItemsMinted ¶
type SaleItemsMinted struct {
To common.Address
TokenIds []*big.Int
Amounts []*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 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) GlobalSaleDetails ¶
func (_Sale *SaleSession) GlobalSaleDetails() (IERC1155SaleFunctionsGlobalSaleDetails, error)
GlobalSaleDetails is a free data retrieval call binding the contract method 0x119cd50c.
Solidity: function globalSaleDetails() view returns((uint256,uint256,uint256,uint256,uint64,uint64,bytes32))
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) Mint ¶
func (_Sale *SaleSession) Mint(to common.Address, tokenIds []*big.Int, amounts []*big.Int, data []byte, expectedPaymentToken common.Address, maxTotal *big.Int, proof [][32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x60e606f6.
Solidity: function mint(address to, uint256[] tokenIds, uint256[] amounts, bytes data, address expectedPaymentToken, uint256 maxTotal, bytes32[] proof) payable returns()
func (*SaleSession) PaymentToken ¶
func (_Sale *SaleSession) PaymentToken() (common.Address, error)
PaymentToken is a free data retrieval call binding the contract method 0x3013ce29.
Solidity: function paymentToken() view returns(address)
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) SetGlobalSaleDetails ¶
func (_Sale *SaleSession) SetGlobalSaleDetails(minTokenId *big.Int, maxTokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetGlobalSaleDetails is a paid mutator transaction binding the contract method 0xc81ee650.
Solidity: function setGlobalSaleDetails(uint256 minTokenId, uint256 maxTokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()
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) SetPaymentToken ¶
func (_Sale *SaleSession) SetPaymentToken(paymentTokenAddr common.Address) (*types.Transaction, error)
SetPaymentToken is a paid mutator transaction binding the contract method 0x6a326ab1.
Solidity: function setPaymentToken(address paymentTokenAddr) returns()
func (*SaleSession) SetTokenSaleDetails ¶
func (_Sale *SaleSession) SetTokenSaleDetails(tokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetTokenSaleDetails is a paid mutator transaction binding the contract method 0x4f651ccd.
Solidity: function setTokenSaleDetails(uint256 tokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()
func (*SaleSession) SetTokenSaleDetailsBatch ¶
func (_Sale *SaleSession) SetTokenSaleDetailsBatch(tokenIds []*big.Int, costs []*big.Int, remainingSupplies []*big.Int, startTimes []uint64, endTimes []uint64, merkleRoots [][32]byte) (*types.Transaction, error)
SetTokenSaleDetailsBatch is a paid mutator transaction binding the contract method 0xf07f04ff.
Solidity: function setTokenSaleDetailsBatch(uint256[] tokenIds, uint256[] costs, uint256[] remainingSupplies, uint64[] startTimes, uint64[] endTimes, bytes32[] merkleRoots) 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) TokenSaleDetails ¶
func (_Sale *SaleSession) TokenSaleDetails(tokenId *big.Int) (IERC1155SaleFunctionsSaleDetails, error)
TokenSaleDetails is a free data retrieval call binding the contract method 0x0869678c.
Solidity: function tokenSaleDetails(uint256 tokenId) view returns((uint256,uint256,uint64,uint64,bytes32))
func (*SaleSession) TokenSaleDetailsBatch ¶
func (_Sale *SaleSession) TokenSaleDetailsBatch(tokenIds []*big.Int) ([]IERC1155SaleFunctionsSaleDetails, error)
TokenSaleDetailsBatch is a free data retrieval call binding the contract method 0xff81434e.
Solidity: function tokenSaleDetailsBatch(uint256[] tokenIds) view returns((uint256,uint256,uint64,uint64,bytes32)[])
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 SaleTokenSaleDetailsUpdated ¶
type SaleTokenSaleDetailsUpdated struct {
TokenId *big.Int
Cost *big.Int
RemainingSupply *big.Int
StartTime uint64
EndTime uint64
MerkleRoot [32]byte
Raw types.Log // Blockchain specific contextual infos
}
SaleTokenSaleDetailsUpdated represents a TokenSaleDetailsUpdated event raised by the Sale contract.
type SaleTokenSaleDetailsUpdatedIterator ¶
type SaleTokenSaleDetailsUpdatedIterator struct {
Event *SaleTokenSaleDetailsUpdated // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
SaleTokenSaleDetailsUpdatedIterator is returned from FilterTokenSaleDetailsUpdated and is used to iterate over the raw logs and unpacked data for TokenSaleDetailsUpdated events raised by the Sale contract.
func (*SaleTokenSaleDetailsUpdatedIterator) Close ¶
func (it *SaleTokenSaleDetailsUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SaleTokenSaleDetailsUpdatedIterator) Error ¶
func (it *SaleTokenSaleDetailsUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SaleTokenSaleDetailsUpdatedIterator) Next ¶
func (it *SaleTokenSaleDetailsUpdatedIterator) 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 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, tokenIds []*big.Int, amounts []*big.Int, data []byte, expectedPaymentToken common.Address, maxTotal *big.Int, proof [][32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x60e606f6.
Solidity: function mint(address to, uint256[] tokenIds, uint256[] amounts, bytes data, address expectedPaymentToken, 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) SetGlobalSaleDetails ¶
func (_Sale *SaleTransactor) SetGlobalSaleDetails(opts *bind.TransactOpts, minTokenId *big.Int, maxTokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetGlobalSaleDetails is a paid mutator transaction binding the contract method 0xc81ee650.
Solidity: function setGlobalSaleDetails(uint256 minTokenId, uint256 maxTokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot) 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) SetPaymentToken ¶
func (_Sale *SaleTransactor) SetPaymentToken(opts *bind.TransactOpts, paymentTokenAddr common.Address) (*types.Transaction, error)
SetPaymentToken is a paid mutator transaction binding the contract method 0x6a326ab1.
Solidity: function setPaymentToken(address paymentTokenAddr) returns()
func (*SaleTransactor) SetTokenSaleDetails ¶
func (_Sale *SaleTransactor) SetTokenSaleDetails(opts *bind.TransactOpts, tokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetTokenSaleDetails is a paid mutator transaction binding the contract method 0x4f651ccd.
Solidity: function setTokenSaleDetails(uint256 tokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()
func (*SaleTransactor) SetTokenSaleDetailsBatch ¶
func (_Sale *SaleTransactor) SetTokenSaleDetailsBatch(opts *bind.TransactOpts, tokenIds []*big.Int, costs []*big.Int, remainingSupplies []*big.Int, startTimes []uint64, endTimes []uint64, merkleRoots [][32]byte) (*types.Transaction, error)
SetTokenSaleDetailsBatch is a paid mutator transaction binding the contract method 0xf07f04ff.
Solidity: function setTokenSaleDetailsBatch(uint256[] tokenIds, uint256[] costs, uint256[] remainingSupplies, uint64[] startTimes, uint64[] endTimes, bytes32[] merkleRoots) 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, tokenIds []*big.Int, amounts []*big.Int, data []byte, expectedPaymentToken common.Address, maxTotal *big.Int, proof [][32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x60e606f6.
Solidity: function mint(address to, uint256[] tokenIds, uint256[] amounts, bytes data, address expectedPaymentToken, 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) SetGlobalSaleDetails ¶
func (_Sale *SaleTransactorSession) SetGlobalSaleDetails(minTokenId *big.Int, maxTokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetGlobalSaleDetails is a paid mutator transaction binding the contract method 0xc81ee650.
Solidity: function setGlobalSaleDetails(uint256 minTokenId, uint256 maxTokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot) 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) SetPaymentToken ¶
func (_Sale *SaleTransactorSession) SetPaymentToken(paymentTokenAddr common.Address) (*types.Transaction, error)
SetPaymentToken is a paid mutator transaction binding the contract method 0x6a326ab1.
Solidity: function setPaymentToken(address paymentTokenAddr) returns()
func (*SaleTransactorSession) SetTokenSaleDetails ¶
func (_Sale *SaleTransactorSession) SetTokenSaleDetails(tokenId *big.Int, cost *big.Int, remainingSupply *big.Int, startTime uint64, endTime uint64, merkleRoot [32]byte) (*types.Transaction, error)
SetTokenSaleDetails is a paid mutator transaction binding the contract method 0x4f651ccd.
Solidity: function setTokenSaleDetails(uint256 tokenId, uint256 cost, uint256 remainingSupply, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()
func (*SaleTransactorSession) SetTokenSaleDetailsBatch ¶
func (_Sale *SaleTransactorSession) SetTokenSaleDetailsBatch(tokenIds []*big.Int, costs []*big.Int, remainingSupplies []*big.Int, startTimes []uint64, endTimes []uint64, merkleRoots [][32]byte) (*types.Transaction, error)
SetTokenSaleDetailsBatch is a paid mutator transaction binding the contract method 0xf07f04ff.
Solidity: function setTokenSaleDetailsBatch(uint256[] tokenIds, uint256[] costs, uint256[] remainingSupplies, uint64[] startTimes, uint64[] endTimes, bytes32[] merkleRoots) 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()