Versions in this module Expand all Collapse all v0 v0.0.1 Dec 9, 2023 Changes in this version + var ReferralStorageABI = ReferralStorageMetaData.ABI + var ReferralStorageMetaData = &bind.MetaData + type ReferralStorage struct + func NewReferralStorage(address common.Address, backend bind.ContractBackend) (*ReferralStorage, error) + type ReferralStorageCaller struct + func NewReferralStorageCaller(address common.Address, caller bind.ContractCaller) (*ReferralStorageCaller, error) + func (_ReferralStorage *ReferralStorageCaller) BASISPOINTS(opts *bind.CallOpts) (*big.Int, error) + func (_ReferralStorage *ReferralStorageCaller) CodeOwners(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error) + func (_ReferralStorage *ReferralStorageCaller) GetTraderReferralInfo(opts *bind.CallOpts, _account common.Address) ([32]byte, common.Address, error) + func (_ReferralStorage *ReferralStorageCaller) Gov(opts *bind.CallOpts) (common.Address, error) + func (_ReferralStorage *ReferralStorageCaller) IsHandler(opts *bind.CallOpts, arg0 common.Address) (bool, error) + func (_ReferralStorage *ReferralStorageCaller) ReferrerDiscountShares(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) + func (_ReferralStorage *ReferralStorageCaller) ReferrerTiers(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) + func (_ReferralStorage *ReferralStorageCaller) Tiers(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error) + func (_ReferralStorage *ReferralStorageCaller) TraderReferralCodes(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error) + type ReferralStorageCallerRaw struct + Contract *ReferralStorageCaller + func (_ReferralStorage *ReferralStorageCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type ReferralStorageCallerSession struct + CallOpts bind.CallOpts + Contract *ReferralStorageCaller + func (_ReferralStorage *ReferralStorageCallerSession) BASISPOINTS() (*big.Int, error) + func (_ReferralStorage *ReferralStorageCallerSession) CodeOwners(arg0 [32]byte) (common.Address, error) + func (_ReferralStorage *ReferralStorageCallerSession) GetTraderReferralInfo(_account common.Address) ([32]byte, common.Address, error) + func (_ReferralStorage *ReferralStorageCallerSession) Gov() (common.Address, error) + func (_ReferralStorage *ReferralStorageCallerSession) IsHandler(arg0 common.Address) (bool, error) + func (_ReferralStorage *ReferralStorageCallerSession) ReferrerDiscountShares(arg0 common.Address) (*big.Int, error) + func (_ReferralStorage *ReferralStorageCallerSession) ReferrerTiers(arg0 common.Address) (*big.Int, error) + func (_ReferralStorage *ReferralStorageCallerSession) Tiers(arg0 *big.Int) (struct{ ... }, error) + func (_ReferralStorage *ReferralStorageCallerSession) TraderReferralCodes(arg0 common.Address) ([32]byte, error) + type ReferralStorageFilterer struct + func NewReferralStorageFilterer(address common.Address, filterer bind.ContractFilterer) (*ReferralStorageFilterer, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterGovSetCodeOwner(opts *bind.FilterOpts) (*ReferralStorageGovSetCodeOwnerIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterRegisterCode(opts *bind.FilterOpts) (*ReferralStorageRegisterCodeIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterSetCodeOwner(opts *bind.FilterOpts) (*ReferralStorageSetCodeOwnerIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterSetHandler(opts *bind.FilterOpts) (*ReferralStorageSetHandlerIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterSetReferrerDiscountShare(opts *bind.FilterOpts) (*ReferralStorageSetReferrerDiscountShareIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterSetReferrerTier(opts *bind.FilterOpts) (*ReferralStorageSetReferrerTierIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterSetTier(opts *bind.FilterOpts) (*ReferralStorageSetTierIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) FilterSetTraderReferralCode(opts *bind.FilterOpts) (*ReferralStorageSetTraderReferralCodeIterator, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseGovSetCodeOwner(log types.Log) (*ReferralStorageGovSetCodeOwner, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseRegisterCode(log types.Log) (*ReferralStorageRegisterCode, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseSetCodeOwner(log types.Log) (*ReferralStorageSetCodeOwner, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseSetHandler(log types.Log) (*ReferralStorageSetHandler, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseSetReferrerDiscountShare(log types.Log) (*ReferralStorageSetReferrerDiscountShare, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseSetReferrerTier(log types.Log) (*ReferralStorageSetReferrerTier, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseSetTier(log types.Log) (*ReferralStorageSetTier, error) + func (_ReferralStorage *ReferralStorageFilterer) ParseSetTraderReferralCode(log types.Log) (*ReferralStorageSetTraderReferralCode, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchGovSetCodeOwner(opts *bind.WatchOpts, sink chan<- *ReferralStorageGovSetCodeOwner) (event.Subscription, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchRegisterCode(opts *bind.WatchOpts, sink chan<- *ReferralStorageRegisterCode) (event.Subscription, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchSetCodeOwner(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetCodeOwner) (event.Subscription, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchSetHandler(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetHandler) (event.Subscription, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchSetReferrerDiscountShare(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetReferrerDiscountShare) (event.Subscription, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchSetReferrerTier(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetReferrerTier) (event.Subscription, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchSetTier(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetTier) (event.Subscription, error) + func (_ReferralStorage *ReferralStorageFilterer) WatchSetTraderReferralCode(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetTraderReferralCode) (event.Subscription, error) + type ReferralStorageGovSetCodeOwner struct + Code [32]byte + NewAccount common.Address + Raw types.Log + type ReferralStorageGovSetCodeOwnerIterator struct + Event *ReferralStorageGovSetCodeOwner + func (it *ReferralStorageGovSetCodeOwnerIterator) Close() error + func (it *ReferralStorageGovSetCodeOwnerIterator) Error() error + func (it *ReferralStorageGovSetCodeOwnerIterator) Next() bool + type ReferralStorageRaw struct + Contract *ReferralStorage + func (_ReferralStorage *ReferralStorageRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_ReferralStorage *ReferralStorageRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ReferralStorageRegisterCode struct + Account common.Address + Code [32]byte + Raw types.Log + type ReferralStorageRegisterCodeIterator struct + Event *ReferralStorageRegisterCode + func (it *ReferralStorageRegisterCodeIterator) Close() error + func (it *ReferralStorageRegisterCodeIterator) Error() error + func (it *ReferralStorageRegisterCodeIterator) Next() bool + type ReferralStorageSession struct + CallOpts bind.CallOpts + Contract *ReferralStorage + TransactOpts bind.TransactOpts + func (_ReferralStorage *ReferralStorageSession) BASISPOINTS() (*big.Int, error) + func (_ReferralStorage *ReferralStorageSession) CodeOwners(arg0 [32]byte) (common.Address, error) + func (_ReferralStorage *ReferralStorageSession) GetTraderReferralInfo(_account common.Address) ([32]byte, common.Address, error) + func (_ReferralStorage *ReferralStorageSession) Gov() (common.Address, error) + func (_ReferralStorage *ReferralStorageSession) GovSetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) IsHandler(arg0 common.Address) (bool, error) + func (_ReferralStorage *ReferralStorageSession) ReferrerDiscountShares(arg0 common.Address) (*big.Int, error) + func (_ReferralStorage *ReferralStorageSession) ReferrerTiers(arg0 common.Address) (*big.Int, error) + func (_ReferralStorage *ReferralStorageSession) RegisterCode(_code [32]byte) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetGov(_gov common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetHandler(_handler common.Address, _isActive bool) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetReferrerDiscountShare(_discountShare *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetReferrerTier(_referrer common.Address, _tierId *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetTier(_tierId *big.Int, _totalRebate *big.Int, _discountShare *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetTraderReferralCode(_account common.Address, _code [32]byte) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) SetTraderReferralCodeByUser(_code [32]byte) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageSession) Tiers(arg0 *big.Int) (struct{ ... }, error) + func (_ReferralStorage *ReferralStorageSession) TraderReferralCodes(arg0 common.Address) ([32]byte, error) + type ReferralStorageSetCodeOwner struct + Account common.Address + Code [32]byte + NewAccount common.Address + Raw types.Log + type ReferralStorageSetCodeOwnerIterator struct + Event *ReferralStorageSetCodeOwner + func (it *ReferralStorageSetCodeOwnerIterator) Close() error + func (it *ReferralStorageSetCodeOwnerIterator) Error() error + func (it *ReferralStorageSetCodeOwnerIterator) Next() bool + type ReferralStorageSetHandler struct + Handler common.Address + IsActive bool + Raw types.Log + type ReferralStorageSetHandlerIterator struct + Event *ReferralStorageSetHandler + func (it *ReferralStorageSetHandlerIterator) Close() error + func (it *ReferralStorageSetHandlerIterator) Error() error + func (it *ReferralStorageSetHandlerIterator) Next() bool + type ReferralStorageSetReferrerDiscountShare struct + DiscountShare *big.Int + Raw types.Log + Referrer common.Address + type ReferralStorageSetReferrerDiscountShareIterator struct + Event *ReferralStorageSetReferrerDiscountShare + func (it *ReferralStorageSetReferrerDiscountShareIterator) Close() error + func (it *ReferralStorageSetReferrerDiscountShareIterator) Error() error + func (it *ReferralStorageSetReferrerDiscountShareIterator) Next() bool + type ReferralStorageSetReferrerTier struct + Raw types.Log + Referrer common.Address + TierId *big.Int + type ReferralStorageSetReferrerTierIterator struct + Event *ReferralStorageSetReferrerTier + func (it *ReferralStorageSetReferrerTierIterator) Close() error + func (it *ReferralStorageSetReferrerTierIterator) Error() error + func (it *ReferralStorageSetReferrerTierIterator) Next() bool + type ReferralStorageSetTier struct + DiscountShare *big.Int + Raw types.Log + TierId *big.Int + TotalRebate *big.Int + type ReferralStorageSetTierIterator struct + Event *ReferralStorageSetTier + func (it *ReferralStorageSetTierIterator) Close() error + func (it *ReferralStorageSetTierIterator) Error() error + func (it *ReferralStorageSetTierIterator) Next() bool + type ReferralStorageSetTraderReferralCode struct + Account common.Address + Code [32]byte + Raw types.Log + type ReferralStorageSetTraderReferralCodeIterator struct + Event *ReferralStorageSetTraderReferralCode + func (it *ReferralStorageSetTraderReferralCodeIterator) Close() error + func (it *ReferralStorageSetTraderReferralCodeIterator) Error() error + func (it *ReferralStorageSetTraderReferralCodeIterator) Next() bool + type ReferralStorageTransactor struct + func NewReferralStorageTransactor(address common.Address, transactor bind.ContractTransactor) (*ReferralStorageTransactor, error) + func (_ReferralStorage *ReferralStorageTransactor) GovSetCodeOwner(opts *bind.TransactOpts, _code [32]byte, _newAccount common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) RegisterCode(opts *bind.TransactOpts, _code [32]byte) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetCodeOwner(opts *bind.TransactOpts, _code [32]byte, _newAccount common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetHandler(opts *bind.TransactOpts, _handler common.Address, _isActive bool) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetReferrerDiscountShare(opts *bind.TransactOpts, _discountShare *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetReferrerTier(opts *bind.TransactOpts, _referrer common.Address, _tierId *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetTier(opts *bind.TransactOpts, _tierId *big.Int, _totalRebate *big.Int, ...) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetTraderReferralCode(opts *bind.TransactOpts, _account common.Address, _code [32]byte) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactor) SetTraderReferralCodeByUser(opts *bind.TransactOpts, _code [32]byte) (*types.Transaction, error) + type ReferralStorageTransactorRaw struct + Contract *ReferralStorageTransactor + func (_ReferralStorage *ReferralStorageTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ReferralStorageTransactorSession struct + Contract *ReferralStorageTransactor + TransactOpts bind.TransactOpts + func (_ReferralStorage *ReferralStorageTransactorSession) GovSetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) RegisterCode(_code [32]byte) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetHandler(_handler common.Address, _isActive bool) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetReferrerDiscountShare(_discountShare *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetReferrerTier(_referrer common.Address, _tierId *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetTier(_tierId *big.Int, _totalRebate *big.Int, _discountShare *big.Int) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetTraderReferralCode(_account common.Address, _code [32]byte) (*types.Transaction, error) + func (_ReferralStorage *ReferralStorageTransactorSession) SetTraderReferralCodeByUser(_code [32]byte) (*types.Transaction, error)