seq_sale_erc721

package
v0.60.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SaleABI = SaleMetaData.ABI

SaleABI is the input ABI used to generate the binding from. Deprecated: Use SaleMetaData.ABI instead.

View Source
var SaleMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"mint\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"paymentToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"maxTotal\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"proof\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"saleDetails\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIERC721SaleFunctions.SaleDetails\",\"components\":[{\"name\":\"supplyCap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"cost\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"paymentToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"startTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"endTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"merkleRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"setSaleDetails\",\"inputs\":[{\"name\":\"supplyCap\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"cost\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"paymentToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"startTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"endTime\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"merkleRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"SaleDetailsUpdated\",\"inputs\":[{\"name\":\"supplyCap\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"cost\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"paymentToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"startTime\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"endTime\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"merkleRoot\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"InsufficientPayment\",\"inputs\":[{\"name\":\"currency\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"expected\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"actual\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"InsufficientSupply\",\"inputs\":[{\"name\":\"currentSupply\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxSupply\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"InvalidInitialization\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidSaleDetails\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SaleInactive\",\"inputs\":[]}]",
}

SaleMetaData contains all meta data concerning the Sale contract.

Functions

This section is empty.

Types

type IERC721SaleFunctionsSaleDetails

type IERC721SaleFunctionsSaleDetails struct {
	SupplyCap    *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 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.

func NewSale

func NewSale(address common.Address, backend bind.ContractBackend) (*Sale, error)

NewSale creates a new instance of Sale, bound to a specific deployed 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) 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))

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) SaleDetails

SaleDetails is a free data retrieval call binding the contract method 0x3474a4a6.

Solidity: function saleDetails() view returns((uint256,uint256,address,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) 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 supplyCap, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot)

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 supplyCap, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot)

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 supplyCap, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot)

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 SaleSaleDetailsUpdated

type SaleSaleDetailsUpdated struct {
	SupplyCap    *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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SaleSaleDetailsUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SaleSaleDetailsUpdatedIterator) Next

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) 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) 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) SetSaleDetails

func (_Sale *SaleSession) SetSaleDetails(supplyCap *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 supplyCap, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot) 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) 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) SetSaleDetails

func (_Sale *SaleTransactor) SetSaleDetails(opts *bind.TransactOpts, supplyCap *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 supplyCap, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot) 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) 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) SetSaleDetails

func (_Sale *SaleTransactorSession) SetSaleDetails(supplyCap *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 supplyCap, uint256 cost, address paymentToken, uint64 startTime, uint64 endTime, bytes32 merkleRoot) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL