ReferralStorage

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReferralStorageABI = ReferralStorageMetaData.ABI

ReferralStorageABI is the input ABI used to generate the binding from. Deprecated: Use ReferralStorageMetaData.ABI instead.

View Source
var ReferralStorageMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"BASIS_POINTS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"codeOwners\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTraderReferralInfo\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"govSetCodeOwner\",\"inputs\":[{\"name\":\"_code\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_newAccount\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"isHandler\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"referrerDiscountShares\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"referrerTiers\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"registerCode\",\"inputs\":[{\"name\":\"_code\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setCodeOwner\",\"inputs\":[{\"name\":\"_code\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_newAccount\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setHandler\",\"inputs\":[{\"name\":\"_handler\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isActive\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setReferrerDiscountShare\",\"inputs\":[{\"name\":\"_discountShare\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setReferrerTier\",\"inputs\":[{\"name\":\"_referrer\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tierId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setTier\",\"inputs\":[{\"name\":\"_tierId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_totalRebate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_discountShare\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setTraderReferralCode\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_code\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setTraderReferralCodeByUser\",\"inputs\":[{\"name\":\"_code\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"tiers\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"totalRebate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"discountShare\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"traderReferralCodes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"GovSetCodeOwner\",\"inputs\":[{\"name\":\"code\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"newAccount\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RegisterCode\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"code\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetCodeOwner\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"newAccount\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"code\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetHandler\",\"inputs\":[{\"name\":\"handler\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"isActive\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetReferrerDiscountShare\",\"inputs\":[{\"name\":\"referrer\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"discountShare\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetReferrerTier\",\"inputs\":[{\"name\":\"referrer\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tierId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetTier\",\"inputs\":[{\"name\":\"tierId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"totalRebate\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"discountShare\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetTraderReferralCode\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"code\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"}],\"anonymous\":false}]",
}

ReferralStorageMetaData contains all meta data concerning the ReferralStorage contract.

Functions

This section is empty.

Types

type ReferralStorage

type ReferralStorage struct {
	ReferralStorageCaller     // Read-only binding to the contract
	ReferralStorageTransactor // Write-only binding to the contract
	ReferralStorageFilterer   // Log filterer for contract events
}

ReferralStorage is an auto generated Go binding around an Ethereum contract.

func NewReferralStorage

func NewReferralStorage(address common.Address, backend bind.ContractBackend) (*ReferralStorage, error)

NewReferralStorage creates a new instance of ReferralStorage, bound to a specific deployed contract.

type ReferralStorageCaller

type ReferralStorageCaller struct {
	// contains filtered or unexported fields
}

ReferralStorageCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewReferralStorageCaller

func NewReferralStorageCaller(address common.Address, caller bind.ContractCaller) (*ReferralStorageCaller, error)

NewReferralStorageCaller creates a new read-only instance of ReferralStorage, bound to a specific deployed contract.

func (*ReferralStorageCaller) BASISPOINTS

func (_ReferralStorage *ReferralStorageCaller) BASISPOINTS(opts *bind.CallOpts) (*big.Int, error)

BASISPOINTS is a free data retrieval call binding the contract method 0xe1f1c4a7.

Solidity: function BASIS_POINTS() view returns(uint256)

func (*ReferralStorageCaller) CodeOwners

func (_ReferralStorage *ReferralStorageCaller) CodeOwners(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

CodeOwners is a free data retrieval call binding the contract method 0xc8b3c460.

Solidity: function codeOwners(bytes32 ) view returns(address)

func (*ReferralStorageCaller) GetTraderReferralInfo

func (_ReferralStorage *ReferralStorageCaller) GetTraderReferralInfo(opts *bind.CallOpts, _account common.Address) ([32]byte, common.Address, error)

GetTraderReferralInfo is a free data retrieval call binding the contract method 0x534ef883.

Solidity: function getTraderReferralInfo(address _account) view returns(bytes32, address)

func (*ReferralStorageCaller) Gov

func (_ReferralStorage *ReferralStorageCaller) Gov(opts *bind.CallOpts) (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*ReferralStorageCaller) IsHandler

func (_ReferralStorage *ReferralStorageCaller) IsHandler(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsHandler is a free data retrieval call binding the contract method 0x46ea87af.

Solidity: function isHandler(address ) view returns(bool)

func (*ReferralStorageCaller) ReferrerDiscountShares

func (_ReferralStorage *ReferralStorageCaller) ReferrerDiscountShares(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ReferrerDiscountShares is a free data retrieval call binding the contract method 0x71a6a790.

Solidity: function referrerDiscountShares(address ) view returns(uint256)

func (*ReferralStorageCaller) ReferrerTiers

func (_ReferralStorage *ReferralStorageCaller) ReferrerTiers(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ReferrerTiers is a free data retrieval call binding the contract method 0x1582a018.

Solidity: function referrerTiers(address ) view returns(uint256)

func (*ReferralStorageCaller) Tiers

func (_ReferralStorage *ReferralStorageCaller) Tiers(opts *bind.CallOpts, arg0 *big.Int) (struct {
	TotalRebate   *big.Int
	DiscountShare *big.Int
}, error)

Tiers is a free data retrieval call binding the contract method 0x039af9eb.

Solidity: function tiers(uint256 ) view returns(uint256 totalRebate, uint256 discountShare)

func (*ReferralStorageCaller) TraderReferralCodes

func (_ReferralStorage *ReferralStorageCaller) TraderReferralCodes(opts *bind.CallOpts, arg0 common.Address) ([32]byte, error)

TraderReferralCodes is a free data retrieval call binding the contract method 0x85725b58.

Solidity: function traderReferralCodes(address ) view returns(bytes32)

type ReferralStorageCallerRaw

type ReferralStorageCallerRaw struct {
	Contract *ReferralStorageCaller // Generic read-only contract binding to access the raw methods on
}

ReferralStorageCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ReferralStorageCallerRaw) Call

func (_ReferralStorage *ReferralStorageCallerRaw) 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 ReferralStorageCallerSession

type ReferralStorageCallerSession struct {
	Contract *ReferralStorageCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts          // Call options to use throughout this session
}

ReferralStorageCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ReferralStorageCallerSession) BASISPOINTS

func (_ReferralStorage *ReferralStorageCallerSession) BASISPOINTS() (*big.Int, error)

BASISPOINTS is a free data retrieval call binding the contract method 0xe1f1c4a7.

Solidity: function BASIS_POINTS() view returns(uint256)

func (*ReferralStorageCallerSession) CodeOwners

func (_ReferralStorage *ReferralStorageCallerSession) CodeOwners(arg0 [32]byte) (common.Address, error)

CodeOwners is a free data retrieval call binding the contract method 0xc8b3c460.

Solidity: function codeOwners(bytes32 ) view returns(address)

func (*ReferralStorageCallerSession) GetTraderReferralInfo

func (_ReferralStorage *ReferralStorageCallerSession) GetTraderReferralInfo(_account common.Address) ([32]byte, common.Address, error)

GetTraderReferralInfo is a free data retrieval call binding the contract method 0x534ef883.

Solidity: function getTraderReferralInfo(address _account) view returns(bytes32, address)

func (*ReferralStorageCallerSession) Gov

func (_ReferralStorage *ReferralStorageCallerSession) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*ReferralStorageCallerSession) IsHandler

func (_ReferralStorage *ReferralStorageCallerSession) IsHandler(arg0 common.Address) (bool, error)

IsHandler is a free data retrieval call binding the contract method 0x46ea87af.

Solidity: function isHandler(address ) view returns(bool)

func (*ReferralStorageCallerSession) ReferrerDiscountShares

func (_ReferralStorage *ReferralStorageCallerSession) ReferrerDiscountShares(arg0 common.Address) (*big.Int, error)

ReferrerDiscountShares is a free data retrieval call binding the contract method 0x71a6a790.

Solidity: function referrerDiscountShares(address ) view returns(uint256)

func (*ReferralStorageCallerSession) ReferrerTiers

func (_ReferralStorage *ReferralStorageCallerSession) ReferrerTiers(arg0 common.Address) (*big.Int, error)

ReferrerTiers is a free data retrieval call binding the contract method 0x1582a018.

Solidity: function referrerTiers(address ) view returns(uint256)

func (*ReferralStorageCallerSession) Tiers

func (_ReferralStorage *ReferralStorageCallerSession) Tiers(arg0 *big.Int) (struct {
	TotalRebate   *big.Int
	DiscountShare *big.Int
}, error)

Tiers is a free data retrieval call binding the contract method 0x039af9eb.

Solidity: function tiers(uint256 ) view returns(uint256 totalRebate, uint256 discountShare)

func (*ReferralStorageCallerSession) TraderReferralCodes

func (_ReferralStorage *ReferralStorageCallerSession) TraderReferralCodes(arg0 common.Address) ([32]byte, error)

TraderReferralCodes is a free data retrieval call binding the contract method 0x85725b58.

Solidity: function traderReferralCodes(address ) view returns(bytes32)

type ReferralStorageFilterer

type ReferralStorageFilterer struct {
	// contains filtered or unexported fields
}

ReferralStorageFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewReferralStorageFilterer

func NewReferralStorageFilterer(address common.Address, filterer bind.ContractFilterer) (*ReferralStorageFilterer, error)

NewReferralStorageFilterer creates a new log filterer instance of ReferralStorage, bound to a specific deployed contract.

func (*ReferralStorageFilterer) FilterGovSetCodeOwner

func (_ReferralStorage *ReferralStorageFilterer) FilterGovSetCodeOwner(opts *bind.FilterOpts) (*ReferralStorageGovSetCodeOwnerIterator, error)

FilterGovSetCodeOwner is a free log retrieval operation binding the contract event 0x6431f88c655dd0e2b8d09b6405c007c515c66d67f2998e69c902873a8c8f3e97.

Solidity: event GovSetCodeOwner(bytes32 code, address newAccount)

func (*ReferralStorageFilterer) FilterRegisterCode

func (_ReferralStorage *ReferralStorageFilterer) FilterRegisterCode(opts *bind.FilterOpts) (*ReferralStorageRegisterCodeIterator, error)

FilterRegisterCode is a free log retrieval operation binding the contract event 0x04f82286a2a3b2ee5c8555de8304dfe2ea70991613213184b73a9e408d2d8029.

Solidity: event RegisterCode(address account, bytes32 code)

func (*ReferralStorageFilterer) FilterSetCodeOwner

func (_ReferralStorage *ReferralStorageFilterer) FilterSetCodeOwner(opts *bind.FilterOpts) (*ReferralStorageSetCodeOwnerIterator, error)

FilterSetCodeOwner is a free log retrieval operation binding the contract event 0x5640856798d41ce9ca0a109b54c20a06eb99ba9c36ab4547115dafb8473cf397.

Solidity: event SetCodeOwner(address account, address newAccount, bytes32 code)

func (*ReferralStorageFilterer) FilterSetHandler

func (_ReferralStorage *ReferralStorageFilterer) FilterSetHandler(opts *bind.FilterOpts) (*ReferralStorageSetHandlerIterator, error)

FilterSetHandler is a free log retrieval operation binding the contract event 0xd373464a39404e5f98fdb4b152b8ba9a094561e97e5c4b4ea11eb18cd9e6695e.

Solidity: event SetHandler(address handler, bool isActive)

func (*ReferralStorageFilterer) FilterSetReferrerDiscountShare

func (_ReferralStorage *ReferralStorageFilterer) FilterSetReferrerDiscountShare(opts *bind.FilterOpts) (*ReferralStorageSetReferrerDiscountShareIterator, error)

FilterSetReferrerDiscountShare is a free log retrieval operation binding the contract event 0xbd224f3917462b0fa80805fe3ec29be3a37f664955aad6224e5ece036224c429.

Solidity: event SetReferrerDiscountShare(address referrer, uint256 discountShare)

func (*ReferralStorageFilterer) FilterSetReferrerTier

func (_ReferralStorage *ReferralStorageFilterer) FilterSetReferrerTier(opts *bind.FilterOpts) (*ReferralStorageSetReferrerTierIterator, error)

FilterSetReferrerTier is a free log retrieval operation binding the contract event 0x7696855cdbb94bb5a44cb0a95caff6f29173aa1cbfba193834b12b90827ce2bc.

Solidity: event SetReferrerTier(address referrer, uint256 tierId)

func (*ReferralStorageFilterer) FilterSetTier

func (_ReferralStorage *ReferralStorageFilterer) FilterSetTier(opts *bind.FilterOpts) (*ReferralStorageSetTierIterator, error)

FilterSetTier is a free log retrieval operation binding the contract event 0x4ebd23a492b2bd79586cb57cae40d7793408265f20320f68b478b971e696f4c7.

Solidity: event SetTier(uint256 tierId, uint256 totalRebate, uint256 discountShare)

func (*ReferralStorageFilterer) FilterSetTraderReferralCode

func (_ReferralStorage *ReferralStorageFilterer) FilterSetTraderReferralCode(opts *bind.FilterOpts) (*ReferralStorageSetTraderReferralCodeIterator, error)

FilterSetTraderReferralCode is a free log retrieval operation binding the contract event 0x43825f14567dda057e821be2e51a5aa79aa51f3907a647e3ed2bd486a01050f1.

Solidity: event SetTraderReferralCode(address account, bytes32 code)

func (*ReferralStorageFilterer) ParseGovSetCodeOwner

func (_ReferralStorage *ReferralStorageFilterer) ParseGovSetCodeOwner(log types.Log) (*ReferralStorageGovSetCodeOwner, error)

ParseGovSetCodeOwner is a log parse operation binding the contract event 0x6431f88c655dd0e2b8d09b6405c007c515c66d67f2998e69c902873a8c8f3e97.

Solidity: event GovSetCodeOwner(bytes32 code, address newAccount)

func (*ReferralStorageFilterer) ParseRegisterCode

func (_ReferralStorage *ReferralStorageFilterer) ParseRegisterCode(log types.Log) (*ReferralStorageRegisterCode, error)

ParseRegisterCode is a log parse operation binding the contract event 0x04f82286a2a3b2ee5c8555de8304dfe2ea70991613213184b73a9e408d2d8029.

Solidity: event RegisterCode(address account, bytes32 code)

func (*ReferralStorageFilterer) ParseSetCodeOwner

func (_ReferralStorage *ReferralStorageFilterer) ParseSetCodeOwner(log types.Log) (*ReferralStorageSetCodeOwner, error)

ParseSetCodeOwner is a log parse operation binding the contract event 0x5640856798d41ce9ca0a109b54c20a06eb99ba9c36ab4547115dafb8473cf397.

Solidity: event SetCodeOwner(address account, address newAccount, bytes32 code)

func (*ReferralStorageFilterer) ParseSetHandler

func (_ReferralStorage *ReferralStorageFilterer) ParseSetHandler(log types.Log) (*ReferralStorageSetHandler, error)

ParseSetHandler is a log parse operation binding the contract event 0xd373464a39404e5f98fdb4b152b8ba9a094561e97e5c4b4ea11eb18cd9e6695e.

Solidity: event SetHandler(address handler, bool isActive)

func (*ReferralStorageFilterer) ParseSetReferrerDiscountShare

func (_ReferralStorage *ReferralStorageFilterer) ParseSetReferrerDiscountShare(log types.Log) (*ReferralStorageSetReferrerDiscountShare, error)

ParseSetReferrerDiscountShare is a log parse operation binding the contract event 0xbd224f3917462b0fa80805fe3ec29be3a37f664955aad6224e5ece036224c429.

Solidity: event SetReferrerDiscountShare(address referrer, uint256 discountShare)

func (*ReferralStorageFilterer) ParseSetReferrerTier

func (_ReferralStorage *ReferralStorageFilterer) ParseSetReferrerTier(log types.Log) (*ReferralStorageSetReferrerTier, error)

ParseSetReferrerTier is a log parse operation binding the contract event 0x7696855cdbb94bb5a44cb0a95caff6f29173aa1cbfba193834b12b90827ce2bc.

Solidity: event SetReferrerTier(address referrer, uint256 tierId)

func (*ReferralStorageFilterer) ParseSetTier

func (_ReferralStorage *ReferralStorageFilterer) ParseSetTier(log types.Log) (*ReferralStorageSetTier, error)

ParseSetTier is a log parse operation binding the contract event 0x4ebd23a492b2bd79586cb57cae40d7793408265f20320f68b478b971e696f4c7.

Solidity: event SetTier(uint256 tierId, uint256 totalRebate, uint256 discountShare)

func (*ReferralStorageFilterer) ParseSetTraderReferralCode

func (_ReferralStorage *ReferralStorageFilterer) ParseSetTraderReferralCode(log types.Log) (*ReferralStorageSetTraderReferralCode, error)

ParseSetTraderReferralCode is a log parse operation binding the contract event 0x43825f14567dda057e821be2e51a5aa79aa51f3907a647e3ed2bd486a01050f1.

Solidity: event SetTraderReferralCode(address account, bytes32 code)

func (*ReferralStorageFilterer) WatchGovSetCodeOwner

func (_ReferralStorage *ReferralStorageFilterer) WatchGovSetCodeOwner(opts *bind.WatchOpts, sink chan<- *ReferralStorageGovSetCodeOwner) (event.Subscription, error)

WatchGovSetCodeOwner is a free log subscription operation binding the contract event 0x6431f88c655dd0e2b8d09b6405c007c515c66d67f2998e69c902873a8c8f3e97.

Solidity: event GovSetCodeOwner(bytes32 code, address newAccount)

func (*ReferralStorageFilterer) WatchRegisterCode

func (_ReferralStorage *ReferralStorageFilterer) WatchRegisterCode(opts *bind.WatchOpts, sink chan<- *ReferralStorageRegisterCode) (event.Subscription, error)

WatchRegisterCode is a free log subscription operation binding the contract event 0x04f82286a2a3b2ee5c8555de8304dfe2ea70991613213184b73a9e408d2d8029.

Solidity: event RegisterCode(address account, bytes32 code)

func (*ReferralStorageFilterer) WatchSetCodeOwner

func (_ReferralStorage *ReferralStorageFilterer) WatchSetCodeOwner(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetCodeOwner) (event.Subscription, error)

WatchSetCodeOwner is a free log subscription operation binding the contract event 0x5640856798d41ce9ca0a109b54c20a06eb99ba9c36ab4547115dafb8473cf397.

Solidity: event SetCodeOwner(address account, address newAccount, bytes32 code)

func (*ReferralStorageFilterer) WatchSetHandler

func (_ReferralStorage *ReferralStorageFilterer) WatchSetHandler(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetHandler) (event.Subscription, error)

WatchSetHandler is a free log subscription operation binding the contract event 0xd373464a39404e5f98fdb4b152b8ba9a094561e97e5c4b4ea11eb18cd9e6695e.

Solidity: event SetHandler(address handler, bool isActive)

func (*ReferralStorageFilterer) WatchSetReferrerDiscountShare

func (_ReferralStorage *ReferralStorageFilterer) WatchSetReferrerDiscountShare(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetReferrerDiscountShare) (event.Subscription, error)

WatchSetReferrerDiscountShare is a free log subscription operation binding the contract event 0xbd224f3917462b0fa80805fe3ec29be3a37f664955aad6224e5ece036224c429.

Solidity: event SetReferrerDiscountShare(address referrer, uint256 discountShare)

func (*ReferralStorageFilterer) WatchSetReferrerTier

func (_ReferralStorage *ReferralStorageFilterer) WatchSetReferrerTier(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetReferrerTier) (event.Subscription, error)

WatchSetReferrerTier is a free log subscription operation binding the contract event 0x7696855cdbb94bb5a44cb0a95caff6f29173aa1cbfba193834b12b90827ce2bc.

Solidity: event SetReferrerTier(address referrer, uint256 tierId)

func (*ReferralStorageFilterer) WatchSetTier

func (_ReferralStorage *ReferralStorageFilterer) WatchSetTier(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetTier) (event.Subscription, error)

WatchSetTier is a free log subscription operation binding the contract event 0x4ebd23a492b2bd79586cb57cae40d7793408265f20320f68b478b971e696f4c7.

Solidity: event SetTier(uint256 tierId, uint256 totalRebate, uint256 discountShare)

func (*ReferralStorageFilterer) WatchSetTraderReferralCode

func (_ReferralStorage *ReferralStorageFilterer) WatchSetTraderReferralCode(opts *bind.WatchOpts, sink chan<- *ReferralStorageSetTraderReferralCode) (event.Subscription, error)

WatchSetTraderReferralCode is a free log subscription operation binding the contract event 0x43825f14567dda057e821be2e51a5aa79aa51f3907a647e3ed2bd486a01050f1.

Solidity: event SetTraderReferralCode(address account, bytes32 code)

type ReferralStorageGovSetCodeOwner

type ReferralStorageGovSetCodeOwner struct {
	Code       [32]byte
	NewAccount common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

ReferralStorageGovSetCodeOwner represents a GovSetCodeOwner event raised by the ReferralStorage contract.

type ReferralStorageGovSetCodeOwnerIterator

type ReferralStorageGovSetCodeOwnerIterator struct {
	Event *ReferralStorageGovSetCodeOwner // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageGovSetCodeOwnerIterator is returned from FilterGovSetCodeOwner and is used to iterate over the raw logs and unpacked data for GovSetCodeOwner events raised by the ReferralStorage contract.

func (*ReferralStorageGovSetCodeOwnerIterator) Close

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

func (*ReferralStorageGovSetCodeOwnerIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageGovSetCodeOwnerIterator) 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 ReferralStorageRaw

type ReferralStorageRaw struct {
	Contract *ReferralStorage // Generic contract binding to access the raw methods on
}

ReferralStorageRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ReferralStorageRaw) Call

func (_ReferralStorage *ReferralStorageRaw) 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 (*ReferralStorageRaw) Transact

func (_ReferralStorage *ReferralStorageRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ReferralStorageRaw) Transfer

func (_ReferralStorage *ReferralStorageRaw) 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 ReferralStorageRegisterCode

type ReferralStorageRegisterCode struct {
	Account common.Address
	Code    [32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

ReferralStorageRegisterCode represents a RegisterCode event raised by the ReferralStorage contract.

type ReferralStorageRegisterCodeIterator

type ReferralStorageRegisterCodeIterator struct {
	Event *ReferralStorageRegisterCode // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageRegisterCodeIterator is returned from FilterRegisterCode and is used to iterate over the raw logs and unpacked data for RegisterCode events raised by the ReferralStorage contract.

func (*ReferralStorageRegisterCodeIterator) Close

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

func (*ReferralStorageRegisterCodeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageRegisterCodeIterator) 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 ReferralStorageSession

type ReferralStorageSession struct {
	Contract     *ReferralStorage  // 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
}

ReferralStorageSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ReferralStorageSession) BASISPOINTS

func (_ReferralStorage *ReferralStorageSession) BASISPOINTS() (*big.Int, error)

BASISPOINTS is a free data retrieval call binding the contract method 0xe1f1c4a7.

Solidity: function BASIS_POINTS() view returns(uint256)

func (*ReferralStorageSession) CodeOwners

func (_ReferralStorage *ReferralStorageSession) CodeOwners(arg0 [32]byte) (common.Address, error)

CodeOwners is a free data retrieval call binding the contract method 0xc8b3c460.

Solidity: function codeOwners(bytes32 ) view returns(address)

func (*ReferralStorageSession) GetTraderReferralInfo

func (_ReferralStorage *ReferralStorageSession) GetTraderReferralInfo(_account common.Address) ([32]byte, common.Address, error)

GetTraderReferralInfo is a free data retrieval call binding the contract method 0x534ef883.

Solidity: function getTraderReferralInfo(address _account) view returns(bytes32, address)

func (*ReferralStorageSession) Gov

func (_ReferralStorage *ReferralStorageSession) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*ReferralStorageSession) GovSetCodeOwner

func (_ReferralStorage *ReferralStorageSession) GovSetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error)

GovSetCodeOwner is a paid mutator transaction binding the contract method 0xdfcfa250.

Solidity: function govSetCodeOwner(bytes32 _code, address _newAccount) returns()

func (*ReferralStorageSession) IsHandler

func (_ReferralStorage *ReferralStorageSession) IsHandler(arg0 common.Address) (bool, error)

IsHandler is a free data retrieval call binding the contract method 0x46ea87af.

Solidity: function isHandler(address ) view returns(bool)

func (*ReferralStorageSession) ReferrerDiscountShares

func (_ReferralStorage *ReferralStorageSession) ReferrerDiscountShares(arg0 common.Address) (*big.Int, error)

ReferrerDiscountShares is a free data retrieval call binding the contract method 0x71a6a790.

Solidity: function referrerDiscountShares(address ) view returns(uint256)

func (*ReferralStorageSession) ReferrerTiers

func (_ReferralStorage *ReferralStorageSession) ReferrerTiers(arg0 common.Address) (*big.Int, error)

ReferrerTiers is a free data retrieval call binding the contract method 0x1582a018.

Solidity: function referrerTiers(address ) view returns(uint256)

func (*ReferralStorageSession) RegisterCode

func (_ReferralStorage *ReferralStorageSession) RegisterCode(_code [32]byte) (*types.Transaction, error)

RegisterCode is a paid mutator transaction binding the contract method 0x36def2c8.

Solidity: function registerCode(bytes32 _code) returns()

func (*ReferralStorageSession) SetCodeOwner

func (_ReferralStorage *ReferralStorageSession) SetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error)

SetCodeOwner is a paid mutator transaction binding the contract method 0xed843134.

Solidity: function setCodeOwner(bytes32 _code, address _newAccount) returns()

func (*ReferralStorageSession) SetGov

func (_ReferralStorage *ReferralStorageSession) SetGov(_gov common.Address) (*types.Transaction, error)

SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.

Solidity: function setGov(address _gov) returns()

func (*ReferralStorageSession) SetHandler

func (_ReferralStorage *ReferralStorageSession) SetHandler(_handler common.Address, _isActive bool) (*types.Transaction, error)

SetHandler is a paid mutator transaction binding the contract method 0x9cb7de4b.

Solidity: function setHandler(address _handler, bool _isActive) returns()

func (*ReferralStorageSession) SetReferrerDiscountShare

func (_ReferralStorage *ReferralStorageSession) SetReferrerDiscountShare(_discountShare *big.Int) (*types.Transaction, error)

SetReferrerDiscountShare is a paid mutator transaction binding the contract method 0x9c8e2de9.

Solidity: function setReferrerDiscountShare(uint256 _discountShare) returns()

func (*ReferralStorageSession) SetReferrerTier

func (_ReferralStorage *ReferralStorageSession) SetReferrerTier(_referrer common.Address, _tierId *big.Int) (*types.Transaction, error)

SetReferrerTier is a paid mutator transaction binding the contract method 0x3fb8b323.

Solidity: function setReferrerTier(address _referrer, uint256 _tierId) returns()

func (*ReferralStorageSession) SetTier

func (_ReferralStorage *ReferralStorageSession) SetTier(_tierId *big.Int, _totalRebate *big.Int, _discountShare *big.Int) (*types.Transaction, error)

SetTier is a paid mutator transaction binding the contract method 0x836a0187.

Solidity: function setTier(uint256 _tierId, uint256 _totalRebate, uint256 _discountShare) returns()

func (*ReferralStorageSession) SetTraderReferralCode

func (_ReferralStorage *ReferralStorageSession) SetTraderReferralCode(_account common.Address, _code [32]byte) (*types.Transaction, error)

SetTraderReferralCode is a paid mutator transaction binding the contract method 0x56b4b2ad.

Solidity: function setTraderReferralCode(address _account, bytes32 _code) returns()

func (*ReferralStorageSession) SetTraderReferralCodeByUser

func (_ReferralStorage *ReferralStorageSession) SetTraderReferralCodeByUser(_code [32]byte) (*types.Transaction, error)

SetTraderReferralCodeByUser is a paid mutator transaction binding the contract method 0xe1e01bf3.

Solidity: function setTraderReferralCodeByUser(bytes32 _code) returns()

func (*ReferralStorageSession) Tiers

func (_ReferralStorage *ReferralStorageSession) Tiers(arg0 *big.Int) (struct {
	TotalRebate   *big.Int
	DiscountShare *big.Int
}, error)

Tiers is a free data retrieval call binding the contract method 0x039af9eb.

Solidity: function tiers(uint256 ) view returns(uint256 totalRebate, uint256 discountShare)

func (*ReferralStorageSession) TraderReferralCodes

func (_ReferralStorage *ReferralStorageSession) TraderReferralCodes(arg0 common.Address) ([32]byte, error)

TraderReferralCodes is a free data retrieval call binding the contract method 0x85725b58.

Solidity: function traderReferralCodes(address ) view returns(bytes32)

type ReferralStorageSetCodeOwner

type ReferralStorageSetCodeOwner struct {
	Account    common.Address
	NewAccount common.Address
	Code       [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

ReferralStorageSetCodeOwner represents a SetCodeOwner event raised by the ReferralStorage contract.

type ReferralStorageSetCodeOwnerIterator

type ReferralStorageSetCodeOwnerIterator struct {
	Event *ReferralStorageSetCodeOwner // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageSetCodeOwnerIterator is returned from FilterSetCodeOwner and is used to iterate over the raw logs and unpacked data for SetCodeOwner events raised by the ReferralStorage contract.

func (*ReferralStorageSetCodeOwnerIterator) Close

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

func (*ReferralStorageSetCodeOwnerIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageSetCodeOwnerIterator) 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 ReferralStorageSetHandler

type ReferralStorageSetHandler struct {
	Handler  common.Address
	IsActive bool
	Raw      types.Log // Blockchain specific contextual infos
}

ReferralStorageSetHandler represents a SetHandler event raised by the ReferralStorage contract.

type ReferralStorageSetHandlerIterator

type ReferralStorageSetHandlerIterator struct {
	Event *ReferralStorageSetHandler // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageSetHandlerIterator is returned from FilterSetHandler and is used to iterate over the raw logs and unpacked data for SetHandler events raised by the ReferralStorage contract.

func (*ReferralStorageSetHandlerIterator) Close

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

func (*ReferralStorageSetHandlerIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageSetHandlerIterator) 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 ReferralStorageSetReferrerDiscountShare

type ReferralStorageSetReferrerDiscountShare struct {
	Referrer      common.Address
	DiscountShare *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

ReferralStorageSetReferrerDiscountShare represents a SetReferrerDiscountShare event raised by the ReferralStorage contract.

type ReferralStorageSetReferrerDiscountShareIterator

type ReferralStorageSetReferrerDiscountShareIterator struct {
	Event *ReferralStorageSetReferrerDiscountShare // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageSetReferrerDiscountShareIterator is returned from FilterSetReferrerDiscountShare and is used to iterate over the raw logs and unpacked data for SetReferrerDiscountShare events raised by the ReferralStorage contract.

func (*ReferralStorageSetReferrerDiscountShareIterator) Close

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

func (*ReferralStorageSetReferrerDiscountShareIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageSetReferrerDiscountShareIterator) 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 ReferralStorageSetReferrerTier

type ReferralStorageSetReferrerTier struct {
	Referrer common.Address
	TierId   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ReferralStorageSetReferrerTier represents a SetReferrerTier event raised by the ReferralStorage contract.

type ReferralStorageSetReferrerTierIterator

type ReferralStorageSetReferrerTierIterator struct {
	Event *ReferralStorageSetReferrerTier // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageSetReferrerTierIterator is returned from FilterSetReferrerTier and is used to iterate over the raw logs and unpacked data for SetReferrerTier events raised by the ReferralStorage contract.

func (*ReferralStorageSetReferrerTierIterator) Close

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

func (*ReferralStorageSetReferrerTierIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageSetReferrerTierIterator) 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 ReferralStorageSetTier

type ReferralStorageSetTier struct {
	TierId        *big.Int
	TotalRebate   *big.Int
	DiscountShare *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

ReferralStorageSetTier represents a SetTier event raised by the ReferralStorage contract.

type ReferralStorageSetTierIterator

type ReferralStorageSetTierIterator struct {
	Event *ReferralStorageSetTier // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageSetTierIterator is returned from FilterSetTier and is used to iterate over the raw logs and unpacked data for SetTier events raised by the ReferralStorage contract.

func (*ReferralStorageSetTierIterator) Close

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

func (*ReferralStorageSetTierIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageSetTierIterator) 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 ReferralStorageSetTraderReferralCode

type ReferralStorageSetTraderReferralCode struct {
	Account common.Address
	Code    [32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

ReferralStorageSetTraderReferralCode represents a SetTraderReferralCode event raised by the ReferralStorage contract.

type ReferralStorageSetTraderReferralCodeIterator

type ReferralStorageSetTraderReferralCodeIterator struct {
	Event *ReferralStorageSetTraderReferralCode // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ReferralStorageSetTraderReferralCodeIterator is returned from FilterSetTraderReferralCode and is used to iterate over the raw logs and unpacked data for SetTraderReferralCode events raised by the ReferralStorage contract.

func (*ReferralStorageSetTraderReferralCodeIterator) Close

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

func (*ReferralStorageSetTraderReferralCodeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralStorageSetTraderReferralCodeIterator) 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 ReferralStorageTransactor

type ReferralStorageTransactor struct {
	// contains filtered or unexported fields
}

ReferralStorageTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewReferralStorageTransactor

func NewReferralStorageTransactor(address common.Address, transactor bind.ContractTransactor) (*ReferralStorageTransactor, error)

NewReferralStorageTransactor creates a new write-only instance of ReferralStorage, bound to a specific deployed contract.

func (*ReferralStorageTransactor) GovSetCodeOwner

func (_ReferralStorage *ReferralStorageTransactor) GovSetCodeOwner(opts *bind.TransactOpts, _code [32]byte, _newAccount common.Address) (*types.Transaction, error)

GovSetCodeOwner is a paid mutator transaction binding the contract method 0xdfcfa250.

Solidity: function govSetCodeOwner(bytes32 _code, address _newAccount) returns()

func (*ReferralStorageTransactor) RegisterCode

func (_ReferralStorage *ReferralStorageTransactor) RegisterCode(opts *bind.TransactOpts, _code [32]byte) (*types.Transaction, error)

RegisterCode is a paid mutator transaction binding the contract method 0x36def2c8.

Solidity: function registerCode(bytes32 _code) returns()

func (*ReferralStorageTransactor) SetCodeOwner

func (_ReferralStorage *ReferralStorageTransactor) SetCodeOwner(opts *bind.TransactOpts, _code [32]byte, _newAccount common.Address) (*types.Transaction, error)

SetCodeOwner is a paid mutator transaction binding the contract method 0xed843134.

Solidity: function setCodeOwner(bytes32 _code, address _newAccount) returns()

func (*ReferralStorageTransactor) SetGov

func (_ReferralStorage *ReferralStorageTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)

SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.

Solidity: function setGov(address _gov) returns()

func (*ReferralStorageTransactor) SetHandler

func (_ReferralStorage *ReferralStorageTransactor) SetHandler(opts *bind.TransactOpts, _handler common.Address, _isActive bool) (*types.Transaction, error)

SetHandler is a paid mutator transaction binding the contract method 0x9cb7de4b.

Solidity: function setHandler(address _handler, bool _isActive) returns()

func (*ReferralStorageTransactor) SetReferrerDiscountShare

func (_ReferralStorage *ReferralStorageTransactor) SetReferrerDiscountShare(opts *bind.TransactOpts, _discountShare *big.Int) (*types.Transaction, error)

SetReferrerDiscountShare is a paid mutator transaction binding the contract method 0x9c8e2de9.

Solidity: function setReferrerDiscountShare(uint256 _discountShare) returns()

func (*ReferralStorageTransactor) SetReferrerTier

func (_ReferralStorage *ReferralStorageTransactor) SetReferrerTier(opts *bind.TransactOpts, _referrer common.Address, _tierId *big.Int) (*types.Transaction, error)

SetReferrerTier is a paid mutator transaction binding the contract method 0x3fb8b323.

Solidity: function setReferrerTier(address _referrer, uint256 _tierId) returns()

func (*ReferralStorageTransactor) SetTier

func (_ReferralStorage *ReferralStorageTransactor) SetTier(opts *bind.TransactOpts, _tierId *big.Int, _totalRebate *big.Int, _discountShare *big.Int) (*types.Transaction, error)

SetTier is a paid mutator transaction binding the contract method 0x836a0187.

Solidity: function setTier(uint256 _tierId, uint256 _totalRebate, uint256 _discountShare) returns()

func (*ReferralStorageTransactor) SetTraderReferralCode

func (_ReferralStorage *ReferralStorageTransactor) SetTraderReferralCode(opts *bind.TransactOpts, _account common.Address, _code [32]byte) (*types.Transaction, error)

SetTraderReferralCode is a paid mutator transaction binding the contract method 0x56b4b2ad.

Solidity: function setTraderReferralCode(address _account, bytes32 _code) returns()

func (*ReferralStorageTransactor) SetTraderReferralCodeByUser

func (_ReferralStorage *ReferralStorageTransactor) SetTraderReferralCodeByUser(opts *bind.TransactOpts, _code [32]byte) (*types.Transaction, error)

SetTraderReferralCodeByUser is a paid mutator transaction binding the contract method 0xe1e01bf3.

Solidity: function setTraderReferralCodeByUser(bytes32 _code) returns()

type ReferralStorageTransactorRaw

type ReferralStorageTransactorRaw struct {
	Contract *ReferralStorageTransactor // Generic write-only contract binding to access the raw methods on
}

ReferralStorageTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ReferralStorageTransactorRaw) Transact

func (_ReferralStorage *ReferralStorageTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ReferralStorageTransactorRaw) Transfer

func (_ReferralStorage *ReferralStorageTransactorRaw) 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 ReferralStorageTransactorSession

type ReferralStorageTransactorSession struct {
	Contract     *ReferralStorageTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
}

ReferralStorageTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ReferralStorageTransactorSession) GovSetCodeOwner

func (_ReferralStorage *ReferralStorageTransactorSession) GovSetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error)

GovSetCodeOwner is a paid mutator transaction binding the contract method 0xdfcfa250.

Solidity: function govSetCodeOwner(bytes32 _code, address _newAccount) returns()

func (*ReferralStorageTransactorSession) RegisterCode

func (_ReferralStorage *ReferralStorageTransactorSession) RegisterCode(_code [32]byte) (*types.Transaction, error)

RegisterCode is a paid mutator transaction binding the contract method 0x36def2c8.

Solidity: function registerCode(bytes32 _code) returns()

func (*ReferralStorageTransactorSession) SetCodeOwner

func (_ReferralStorage *ReferralStorageTransactorSession) SetCodeOwner(_code [32]byte, _newAccount common.Address) (*types.Transaction, error)

SetCodeOwner is a paid mutator transaction binding the contract method 0xed843134.

Solidity: function setCodeOwner(bytes32 _code, address _newAccount) returns()

func (*ReferralStorageTransactorSession) SetGov

func (_ReferralStorage *ReferralStorageTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)

SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.

Solidity: function setGov(address _gov) returns()

func (*ReferralStorageTransactorSession) SetHandler

func (_ReferralStorage *ReferralStorageTransactorSession) SetHandler(_handler common.Address, _isActive bool) (*types.Transaction, error)

SetHandler is a paid mutator transaction binding the contract method 0x9cb7de4b.

Solidity: function setHandler(address _handler, bool _isActive) returns()

func (*ReferralStorageTransactorSession) SetReferrerDiscountShare

func (_ReferralStorage *ReferralStorageTransactorSession) SetReferrerDiscountShare(_discountShare *big.Int) (*types.Transaction, error)

SetReferrerDiscountShare is a paid mutator transaction binding the contract method 0x9c8e2de9.

Solidity: function setReferrerDiscountShare(uint256 _discountShare) returns()

func (*ReferralStorageTransactorSession) SetReferrerTier

func (_ReferralStorage *ReferralStorageTransactorSession) SetReferrerTier(_referrer common.Address, _tierId *big.Int) (*types.Transaction, error)

SetReferrerTier is a paid mutator transaction binding the contract method 0x3fb8b323.

Solidity: function setReferrerTier(address _referrer, uint256 _tierId) returns()

func (*ReferralStorageTransactorSession) SetTier

func (_ReferralStorage *ReferralStorageTransactorSession) SetTier(_tierId *big.Int, _totalRebate *big.Int, _discountShare *big.Int) (*types.Transaction, error)

SetTier is a paid mutator transaction binding the contract method 0x836a0187.

Solidity: function setTier(uint256 _tierId, uint256 _totalRebate, uint256 _discountShare) returns()

func (*ReferralStorageTransactorSession) SetTraderReferralCode

func (_ReferralStorage *ReferralStorageTransactorSession) SetTraderReferralCode(_account common.Address, _code [32]byte) (*types.Transaction, error)

SetTraderReferralCode is a paid mutator transaction binding the contract method 0x56b4b2ad.

Solidity: function setTraderReferralCode(address _account, bytes32 _code) returns()

func (*ReferralStorageTransactorSession) SetTraderReferralCodeByUser

func (_ReferralStorage *ReferralStorageTransactorSession) SetTraderReferralCodeByUser(_code [32]byte) (*types.Transaction, error)

SetTraderReferralCodeByUser is a paid mutator transaction binding the contract method 0xe1e01bf3.

Solidity: function setTraderReferralCodeByUser(bytes32 _code) returns()

Jump to

Keyboard shortcuts

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