Treasury

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 TreasuryABI = TreasuryMetaData.ABI

TreasuryABI is the input ABI used to generate the binding from. Deprecated: Use TreasuryMetaData.ABI instead.

View Source
var TreasuryMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"addLiquidity\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"addWhitelists\",\"inputs\":[{\"name\":\"_accounts\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"busd\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"busdBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"busdHardCap\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"busdReceived\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"busdSlotCap\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"endSwap\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"extendUnlockTime\",\"inputs\":[{\"name\":\"_unlockTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"fund\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gmt\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gmtListingPrice\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gmtPresalePrice\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increaseBusdBasisPoints\",\"inputs\":[{\"name\":\"_busdBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_addresses\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_values\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"isInitialized\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isLiquidityAdded\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isSwapActive\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"removeWhitelists\",\"inputs\":[{\"name\":\"_accounts\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"router\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"setFund\",\"inputs\":[{\"name\":\"_fund\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"swap\",\"inputs\":[{\"name\":\"_busdAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"swapAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"swapWhitelist\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"unlockTime\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"updateWhitelist\",\"inputs\":[{\"name\":\"prevAccount\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nextAccount\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawToken\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"}]",
}

TreasuryMetaData contains all meta data concerning the Treasury contract.

Functions

This section is empty.

Types

type Treasury

type Treasury struct {
	TreasuryCaller     // Read-only binding to the contract
	TreasuryTransactor // Write-only binding to the contract
	TreasuryFilterer   // Log filterer for contract events
}

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

func NewTreasury

func NewTreasury(address common.Address, backend bind.ContractBackend) (*Treasury, error)

NewTreasury creates a new instance of Treasury, bound to a specific deployed contract.

type TreasuryCaller

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

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

func NewTreasuryCaller

func NewTreasuryCaller(address common.Address, caller bind.ContractCaller) (*TreasuryCaller, error)

NewTreasuryCaller creates a new read-only instance of Treasury, bound to a specific deployed contract.

func (*TreasuryCaller) Busd

func (_Treasury *TreasuryCaller) Busd(opts *bind.CallOpts) (common.Address, error)

Busd is a free data retrieval call binding the contract method 0x3ca5b234.

Solidity: function busd() view returns(address)

func (*TreasuryCaller) BusdBasisPoints

func (_Treasury *TreasuryCaller) BusdBasisPoints(opts *bind.CallOpts) (*big.Int, error)

BusdBasisPoints is a free data retrieval call binding the contract method 0x77b4da2c.

Solidity: function busdBasisPoints() view returns(uint256)

func (*TreasuryCaller) BusdHardCap

func (_Treasury *TreasuryCaller) BusdHardCap(opts *bind.CallOpts) (*big.Int, error)

BusdHardCap is a free data retrieval call binding the contract method 0x63bd4bdf.

Solidity: function busdHardCap() view returns(uint256)

func (*TreasuryCaller) BusdReceived

func (_Treasury *TreasuryCaller) BusdReceived(opts *bind.CallOpts) (*big.Int, error)

BusdReceived is a free data retrieval call binding the contract method 0xf6f4f55b.

Solidity: function busdReceived() view returns(uint256)

func (*TreasuryCaller) BusdSlotCap

func (_Treasury *TreasuryCaller) BusdSlotCap(opts *bind.CallOpts) (*big.Int, error)

BusdSlotCap is a free data retrieval call binding the contract method 0xdec9b196.

Solidity: function busdSlotCap() view returns(uint256)

func (*TreasuryCaller) Fund

func (_Treasury *TreasuryCaller) Fund(opts *bind.CallOpts) (common.Address, error)

Fund is a free data retrieval call binding the contract method 0xb60d4288.

Solidity: function fund() view returns(address)

func (*TreasuryCaller) Gmt

func (_Treasury *TreasuryCaller) Gmt(opts *bind.CallOpts) (common.Address, error)

Gmt is a free data retrieval call binding the contract method 0xf8322d24.

Solidity: function gmt() view returns(address)

func (*TreasuryCaller) GmtListingPrice

func (_Treasury *TreasuryCaller) GmtListingPrice(opts *bind.CallOpts) (*big.Int, error)

GmtListingPrice is a free data retrieval call binding the contract method 0x0963e9fc.

Solidity: function gmtListingPrice() view returns(uint256)

func (*TreasuryCaller) GmtPresalePrice

func (_Treasury *TreasuryCaller) GmtPresalePrice(opts *bind.CallOpts) (*big.Int, error)

GmtPresalePrice is a free data retrieval call binding the contract method 0x7c098091.

Solidity: function gmtPresalePrice() view returns(uint256)

func (*TreasuryCaller) Gov

func (_Treasury *TreasuryCaller) 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 (*TreasuryCaller) IsInitialized

func (_Treasury *TreasuryCaller) IsInitialized(opts *bind.CallOpts) (bool, error)

IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.

Solidity: function isInitialized() view returns(bool)

func (*TreasuryCaller) IsLiquidityAdded

func (_Treasury *TreasuryCaller) IsLiquidityAdded(opts *bind.CallOpts) (bool, error)

IsLiquidityAdded is a free data retrieval call binding the contract method 0x1e17ba39.

Solidity: function isLiquidityAdded() view returns(bool)

func (*TreasuryCaller) IsSwapActive

func (_Treasury *TreasuryCaller) IsSwapActive(opts *bind.CallOpts) (bool, error)

IsSwapActive is a free data retrieval call binding the contract method 0xe35bff96.

Solidity: function isSwapActive() view returns(bool)

func (*TreasuryCaller) Router

func (_Treasury *TreasuryCaller) Router(opts *bind.CallOpts) (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*TreasuryCaller) SwapAmounts

func (_Treasury *TreasuryCaller) SwapAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

SwapAmounts is a free data retrieval call binding the contract method 0x442bbad6.

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

func (*TreasuryCaller) SwapWhitelist

func (_Treasury *TreasuryCaller) SwapWhitelist(opts *bind.CallOpts, arg0 common.Address) (bool, error)

SwapWhitelist is a free data retrieval call binding the contract method 0xd0435961.

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

func (*TreasuryCaller) UnlockTime

func (_Treasury *TreasuryCaller) UnlockTime(opts *bind.CallOpts) (*big.Int, error)

UnlockTime is a free data retrieval call binding the contract method 0x251c1aa3.

Solidity: function unlockTime() view returns(uint256)

type TreasuryCallerRaw

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

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

func (*TreasuryCallerRaw) Call

func (_Treasury *TreasuryCallerRaw) 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 TreasuryCallerSession

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

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

func (*TreasuryCallerSession) Busd

func (_Treasury *TreasuryCallerSession) Busd() (common.Address, error)

Busd is a free data retrieval call binding the contract method 0x3ca5b234.

Solidity: function busd() view returns(address)

func (*TreasuryCallerSession) BusdBasisPoints

func (_Treasury *TreasuryCallerSession) BusdBasisPoints() (*big.Int, error)

BusdBasisPoints is a free data retrieval call binding the contract method 0x77b4da2c.

Solidity: function busdBasisPoints() view returns(uint256)

func (*TreasuryCallerSession) BusdHardCap

func (_Treasury *TreasuryCallerSession) BusdHardCap() (*big.Int, error)

BusdHardCap is a free data retrieval call binding the contract method 0x63bd4bdf.

Solidity: function busdHardCap() view returns(uint256)

func (*TreasuryCallerSession) BusdReceived

func (_Treasury *TreasuryCallerSession) BusdReceived() (*big.Int, error)

BusdReceived is a free data retrieval call binding the contract method 0xf6f4f55b.

Solidity: function busdReceived() view returns(uint256)

func (*TreasuryCallerSession) BusdSlotCap

func (_Treasury *TreasuryCallerSession) BusdSlotCap() (*big.Int, error)

BusdSlotCap is a free data retrieval call binding the contract method 0xdec9b196.

Solidity: function busdSlotCap() view returns(uint256)

func (*TreasuryCallerSession) Fund

func (_Treasury *TreasuryCallerSession) Fund() (common.Address, error)

Fund is a free data retrieval call binding the contract method 0xb60d4288.

Solidity: function fund() view returns(address)

func (*TreasuryCallerSession) Gmt

func (_Treasury *TreasuryCallerSession) Gmt() (common.Address, error)

Gmt is a free data retrieval call binding the contract method 0xf8322d24.

Solidity: function gmt() view returns(address)

func (*TreasuryCallerSession) GmtListingPrice

func (_Treasury *TreasuryCallerSession) GmtListingPrice() (*big.Int, error)

GmtListingPrice is a free data retrieval call binding the contract method 0x0963e9fc.

Solidity: function gmtListingPrice() view returns(uint256)

func (*TreasuryCallerSession) GmtPresalePrice

func (_Treasury *TreasuryCallerSession) GmtPresalePrice() (*big.Int, error)

GmtPresalePrice is a free data retrieval call binding the contract method 0x7c098091.

Solidity: function gmtPresalePrice() view returns(uint256)

func (*TreasuryCallerSession) Gov

func (_Treasury *TreasuryCallerSession) Gov() (common.Address, error)

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

Solidity: function gov() view returns(address)

func (*TreasuryCallerSession) IsInitialized

func (_Treasury *TreasuryCallerSession) IsInitialized() (bool, error)

IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.

Solidity: function isInitialized() view returns(bool)

func (*TreasuryCallerSession) IsLiquidityAdded

func (_Treasury *TreasuryCallerSession) IsLiquidityAdded() (bool, error)

IsLiquidityAdded is a free data retrieval call binding the contract method 0x1e17ba39.

Solidity: function isLiquidityAdded() view returns(bool)

func (*TreasuryCallerSession) IsSwapActive

func (_Treasury *TreasuryCallerSession) IsSwapActive() (bool, error)

IsSwapActive is a free data retrieval call binding the contract method 0xe35bff96.

Solidity: function isSwapActive() view returns(bool)

func (*TreasuryCallerSession) Router

func (_Treasury *TreasuryCallerSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*TreasuryCallerSession) SwapAmounts

func (_Treasury *TreasuryCallerSession) SwapAmounts(arg0 common.Address) (*big.Int, error)

SwapAmounts is a free data retrieval call binding the contract method 0x442bbad6.

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

func (*TreasuryCallerSession) SwapWhitelist

func (_Treasury *TreasuryCallerSession) SwapWhitelist(arg0 common.Address) (bool, error)

SwapWhitelist is a free data retrieval call binding the contract method 0xd0435961.

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

func (*TreasuryCallerSession) UnlockTime

func (_Treasury *TreasuryCallerSession) UnlockTime() (*big.Int, error)

UnlockTime is a free data retrieval call binding the contract method 0x251c1aa3.

Solidity: function unlockTime() view returns(uint256)

type TreasuryFilterer

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

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

func NewTreasuryFilterer

func NewTreasuryFilterer(address common.Address, filterer bind.ContractFilterer) (*TreasuryFilterer, error)

NewTreasuryFilterer creates a new log filterer instance of Treasury, bound to a specific deployed contract.

type TreasuryRaw

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

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

func (*TreasuryRaw) Call

func (_Treasury *TreasuryRaw) 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 (*TreasuryRaw) Transact

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

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

func (*TreasuryRaw) Transfer

func (_Treasury *TreasuryRaw) 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 TreasurySession

type TreasurySession struct {
	Contract     *Treasury         // 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
}

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

func (*TreasurySession) AddLiquidity

func (_Treasury *TreasurySession) AddLiquidity() (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0xe8078d94.

Solidity: function addLiquidity() returns()

func (*TreasurySession) AddWhitelists

func (_Treasury *TreasurySession) AddWhitelists(_accounts []common.Address) (*types.Transaction, error)

AddWhitelists is a paid mutator transaction binding the contract method 0xc8eaf28f.

Solidity: function addWhitelists(address[] _accounts) returns()

func (*TreasurySession) Busd

func (_Treasury *TreasurySession) Busd() (common.Address, error)

Busd is a free data retrieval call binding the contract method 0x3ca5b234.

Solidity: function busd() view returns(address)

func (*TreasurySession) BusdBasisPoints

func (_Treasury *TreasurySession) BusdBasisPoints() (*big.Int, error)

BusdBasisPoints is a free data retrieval call binding the contract method 0x77b4da2c.

Solidity: function busdBasisPoints() view returns(uint256)

func (*TreasurySession) BusdHardCap

func (_Treasury *TreasurySession) BusdHardCap() (*big.Int, error)

BusdHardCap is a free data retrieval call binding the contract method 0x63bd4bdf.

Solidity: function busdHardCap() view returns(uint256)

func (*TreasurySession) BusdReceived

func (_Treasury *TreasurySession) BusdReceived() (*big.Int, error)

BusdReceived is a free data retrieval call binding the contract method 0xf6f4f55b.

Solidity: function busdReceived() view returns(uint256)

func (*TreasurySession) BusdSlotCap

func (_Treasury *TreasurySession) BusdSlotCap() (*big.Int, error)

BusdSlotCap is a free data retrieval call binding the contract method 0xdec9b196.

Solidity: function busdSlotCap() view returns(uint256)

func (*TreasurySession) EndSwap

func (_Treasury *TreasurySession) EndSwap() (*types.Transaction, error)

EndSwap is a paid mutator transaction binding the contract method 0xe3cb6ea3.

Solidity: function endSwap() returns()

func (*TreasurySession) ExtendUnlockTime

func (_Treasury *TreasurySession) ExtendUnlockTime(_unlockTime *big.Int) (*types.Transaction, error)

ExtendUnlockTime is a paid mutator transaction binding the contract method 0xc2333ee8.

Solidity: function extendUnlockTime(uint256 _unlockTime) returns()

func (*TreasurySession) Fund

func (_Treasury *TreasurySession) Fund() (common.Address, error)

Fund is a free data retrieval call binding the contract method 0xb60d4288.

Solidity: function fund() view returns(address)

func (*TreasurySession) Gmt

func (_Treasury *TreasurySession) Gmt() (common.Address, error)

Gmt is a free data retrieval call binding the contract method 0xf8322d24.

Solidity: function gmt() view returns(address)

func (*TreasurySession) GmtListingPrice

func (_Treasury *TreasurySession) GmtListingPrice() (*big.Int, error)

GmtListingPrice is a free data retrieval call binding the contract method 0x0963e9fc.

Solidity: function gmtListingPrice() view returns(uint256)

func (*TreasurySession) GmtPresalePrice

func (_Treasury *TreasurySession) GmtPresalePrice() (*big.Int, error)

GmtPresalePrice is a free data retrieval call binding the contract method 0x7c098091.

Solidity: function gmtPresalePrice() view returns(uint256)

func (*TreasurySession) Gov

func (_Treasury *TreasurySession) Gov() (common.Address, error)

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

Solidity: function gov() view returns(address)

func (*TreasurySession) IncreaseBusdBasisPoints

func (_Treasury *TreasurySession) IncreaseBusdBasisPoints(_busdBasisPoints *big.Int) (*types.Transaction, error)

IncreaseBusdBasisPoints is a paid mutator transaction binding the contract method 0x21089a50.

Solidity: function increaseBusdBasisPoints(uint256 _busdBasisPoints) returns()

func (*TreasurySession) Initialize

func (_Treasury *TreasurySession) Initialize(_addresses []common.Address, _values []*big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7fbbe46f.

Solidity: function initialize(address[] _addresses, uint256[] _values) returns()

func (*TreasurySession) IsInitialized

func (_Treasury *TreasurySession) IsInitialized() (bool, error)

IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.

Solidity: function isInitialized() view returns(bool)

func (*TreasurySession) IsLiquidityAdded

func (_Treasury *TreasurySession) IsLiquidityAdded() (bool, error)

IsLiquidityAdded is a free data retrieval call binding the contract method 0x1e17ba39.

Solidity: function isLiquidityAdded() view returns(bool)

func (*TreasurySession) IsSwapActive

func (_Treasury *TreasurySession) IsSwapActive() (bool, error)

IsSwapActive is a free data retrieval call binding the contract method 0xe35bff96.

Solidity: function isSwapActive() view returns(bool)

func (*TreasurySession) RemoveWhitelists

func (_Treasury *TreasurySession) RemoveWhitelists(_accounts []common.Address) (*types.Transaction, error)

RemoveWhitelists is a paid mutator transaction binding the contract method 0x281bd798.

Solidity: function removeWhitelists(address[] _accounts) returns()

func (*TreasurySession) Router

func (_Treasury *TreasurySession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*TreasurySession) SetFund

func (_Treasury *TreasurySession) SetFund(_fund common.Address) (*types.Transaction, error)

SetFund is a paid mutator transaction binding the contract method 0x0e21750f.

Solidity: function setFund(address _fund) returns()

func (*TreasurySession) SetGov

func (_Treasury *TreasurySession) 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 (*TreasurySession) Swap

func (_Treasury *TreasurySession) Swap(_busdAmount *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x94b918de.

Solidity: function swap(uint256 _busdAmount) returns()

func (*TreasurySession) SwapAmounts

func (_Treasury *TreasurySession) SwapAmounts(arg0 common.Address) (*big.Int, error)

SwapAmounts is a free data retrieval call binding the contract method 0x442bbad6.

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

func (*TreasurySession) SwapWhitelist

func (_Treasury *TreasurySession) SwapWhitelist(arg0 common.Address) (bool, error)

SwapWhitelist is a free data retrieval call binding the contract method 0xd0435961.

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

func (*TreasurySession) UnlockTime

func (_Treasury *TreasurySession) UnlockTime() (*big.Int, error)

UnlockTime is a free data retrieval call binding the contract method 0x251c1aa3.

Solidity: function unlockTime() view returns(uint256)

func (*TreasurySession) UpdateWhitelist

func (_Treasury *TreasurySession) UpdateWhitelist(prevAccount common.Address, nextAccount common.Address) (*types.Transaction, error)

UpdateWhitelist is a paid mutator transaction binding the contract method 0xab2b04cf.

Solidity: function updateWhitelist(address prevAccount, address nextAccount) returns()

func (*TreasurySession) WithdrawToken

func (_Treasury *TreasurySession) WithdrawToken(_token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.

Solidity: function withdrawToken(address _token, address _account, uint256 _amount) returns()

type TreasuryTransactor

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

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

func NewTreasuryTransactor

func NewTreasuryTransactor(address common.Address, transactor bind.ContractTransactor) (*TreasuryTransactor, error)

NewTreasuryTransactor creates a new write-only instance of Treasury, bound to a specific deployed contract.

func (*TreasuryTransactor) AddLiquidity

func (_Treasury *TreasuryTransactor) AddLiquidity(opts *bind.TransactOpts) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0xe8078d94.

Solidity: function addLiquidity() returns()

func (*TreasuryTransactor) AddWhitelists

func (_Treasury *TreasuryTransactor) AddWhitelists(opts *bind.TransactOpts, _accounts []common.Address) (*types.Transaction, error)

AddWhitelists is a paid mutator transaction binding the contract method 0xc8eaf28f.

Solidity: function addWhitelists(address[] _accounts) returns()

func (*TreasuryTransactor) EndSwap

func (_Treasury *TreasuryTransactor) EndSwap(opts *bind.TransactOpts) (*types.Transaction, error)

EndSwap is a paid mutator transaction binding the contract method 0xe3cb6ea3.

Solidity: function endSwap() returns()

func (*TreasuryTransactor) ExtendUnlockTime

func (_Treasury *TreasuryTransactor) ExtendUnlockTime(opts *bind.TransactOpts, _unlockTime *big.Int) (*types.Transaction, error)

ExtendUnlockTime is a paid mutator transaction binding the contract method 0xc2333ee8.

Solidity: function extendUnlockTime(uint256 _unlockTime) returns()

func (*TreasuryTransactor) IncreaseBusdBasisPoints

func (_Treasury *TreasuryTransactor) IncreaseBusdBasisPoints(opts *bind.TransactOpts, _busdBasisPoints *big.Int) (*types.Transaction, error)

IncreaseBusdBasisPoints is a paid mutator transaction binding the contract method 0x21089a50.

Solidity: function increaseBusdBasisPoints(uint256 _busdBasisPoints) returns()

func (*TreasuryTransactor) Initialize

func (_Treasury *TreasuryTransactor) Initialize(opts *bind.TransactOpts, _addresses []common.Address, _values []*big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7fbbe46f.

Solidity: function initialize(address[] _addresses, uint256[] _values) returns()

func (*TreasuryTransactor) RemoveWhitelists

func (_Treasury *TreasuryTransactor) RemoveWhitelists(opts *bind.TransactOpts, _accounts []common.Address) (*types.Transaction, error)

RemoveWhitelists is a paid mutator transaction binding the contract method 0x281bd798.

Solidity: function removeWhitelists(address[] _accounts) returns()

func (*TreasuryTransactor) SetFund

func (_Treasury *TreasuryTransactor) SetFund(opts *bind.TransactOpts, _fund common.Address) (*types.Transaction, error)

SetFund is a paid mutator transaction binding the contract method 0x0e21750f.

Solidity: function setFund(address _fund) returns()

func (*TreasuryTransactor) SetGov

func (_Treasury *TreasuryTransactor) 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 (*TreasuryTransactor) Swap

func (_Treasury *TreasuryTransactor) Swap(opts *bind.TransactOpts, _busdAmount *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x94b918de.

Solidity: function swap(uint256 _busdAmount) returns()

func (*TreasuryTransactor) UpdateWhitelist

func (_Treasury *TreasuryTransactor) UpdateWhitelist(opts *bind.TransactOpts, prevAccount common.Address, nextAccount common.Address) (*types.Transaction, error)

UpdateWhitelist is a paid mutator transaction binding the contract method 0xab2b04cf.

Solidity: function updateWhitelist(address prevAccount, address nextAccount) returns()

func (*TreasuryTransactor) WithdrawToken

func (_Treasury *TreasuryTransactor) WithdrawToken(opts *bind.TransactOpts, _token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.

Solidity: function withdrawToken(address _token, address _account, uint256 _amount) returns()

type TreasuryTransactorRaw

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

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

func (*TreasuryTransactorRaw) Transact

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

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

func (*TreasuryTransactorRaw) Transfer

func (_Treasury *TreasuryTransactorRaw) 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 TreasuryTransactorSession

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

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

func (*TreasuryTransactorSession) AddLiquidity

func (_Treasury *TreasuryTransactorSession) AddLiquidity() (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0xe8078d94.

Solidity: function addLiquidity() returns()

func (*TreasuryTransactorSession) AddWhitelists

func (_Treasury *TreasuryTransactorSession) AddWhitelists(_accounts []common.Address) (*types.Transaction, error)

AddWhitelists is a paid mutator transaction binding the contract method 0xc8eaf28f.

Solidity: function addWhitelists(address[] _accounts) returns()

func (*TreasuryTransactorSession) EndSwap

func (_Treasury *TreasuryTransactorSession) EndSwap() (*types.Transaction, error)

EndSwap is a paid mutator transaction binding the contract method 0xe3cb6ea3.

Solidity: function endSwap() returns()

func (*TreasuryTransactorSession) ExtendUnlockTime

func (_Treasury *TreasuryTransactorSession) ExtendUnlockTime(_unlockTime *big.Int) (*types.Transaction, error)

ExtendUnlockTime is a paid mutator transaction binding the contract method 0xc2333ee8.

Solidity: function extendUnlockTime(uint256 _unlockTime) returns()

func (*TreasuryTransactorSession) IncreaseBusdBasisPoints

func (_Treasury *TreasuryTransactorSession) IncreaseBusdBasisPoints(_busdBasisPoints *big.Int) (*types.Transaction, error)

IncreaseBusdBasisPoints is a paid mutator transaction binding the contract method 0x21089a50.

Solidity: function increaseBusdBasisPoints(uint256 _busdBasisPoints) returns()

func (*TreasuryTransactorSession) Initialize

func (_Treasury *TreasuryTransactorSession) Initialize(_addresses []common.Address, _values []*big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7fbbe46f.

Solidity: function initialize(address[] _addresses, uint256[] _values) returns()

func (*TreasuryTransactorSession) RemoveWhitelists

func (_Treasury *TreasuryTransactorSession) RemoveWhitelists(_accounts []common.Address) (*types.Transaction, error)

RemoveWhitelists is a paid mutator transaction binding the contract method 0x281bd798.

Solidity: function removeWhitelists(address[] _accounts) returns()

func (*TreasuryTransactorSession) SetFund

func (_Treasury *TreasuryTransactorSession) SetFund(_fund common.Address) (*types.Transaction, error)

SetFund is a paid mutator transaction binding the contract method 0x0e21750f.

Solidity: function setFund(address _fund) returns()

func (*TreasuryTransactorSession) SetGov

func (_Treasury *TreasuryTransactorSession) 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 (*TreasuryTransactorSession) Swap

func (_Treasury *TreasuryTransactorSession) Swap(_busdAmount *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x94b918de.

Solidity: function swap(uint256 _busdAmount) returns()

func (*TreasuryTransactorSession) UpdateWhitelist

func (_Treasury *TreasuryTransactorSession) UpdateWhitelist(prevAccount common.Address, nextAccount common.Address) (*types.Transaction, error)

UpdateWhitelist is a paid mutator transaction binding the contract method 0xab2b04cf.

Solidity: function updateWhitelist(address prevAccount, address nextAccount) returns()

func (*TreasuryTransactorSession) WithdrawToken

func (_Treasury *TreasuryTransactorSession) WithdrawToken(_token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.

Solidity: function withdrawToken(address _token, address _account, uint256 _amount) returns()

Jump to

Keyboard shortcuts

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