store

package
v0.0.0-...-23a414b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StoreABI = StoreMetaData.ABI

StoreABI is the input ABI used to generate the binding from. Deprecated: Use StoreMetaData.ABI instead.

View Source
var StoreMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vat_\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":true,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes4\",\"name\":\"sig\",\"type\":\"bytes4\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"usr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg1\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg2\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"LogNote\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"Pie\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"cage\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"chi\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"}],\"name\":\"deny\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"drip\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tmp\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"dsr\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"exit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"what\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"name\":\"file\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"what\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"file\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"join\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"live\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"pieBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"}],\"name\":\"rely\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"rho\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"vat\",\"outputs\":[{\"internalType\":\"contractVatLike\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"vow\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"wards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

StoreMetaData contains all meta data concerning the Store contract.

Functions

func QueryDaiConversionRate

func QueryDaiConversionRate(client *ethclient.Client) (string, error)

func QueryDaiConversionRateWithRetries

func QueryDaiConversionRateWithRetries(client *ethclient.Client, maxRetries int) (string, error)

Types

type Store

type Store struct {
	StoreCaller     // Read-only binding to the contract
	StoreTransactor // Write-only binding to the contract
	StoreFilterer   // Log filterer for contract events
}

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

func NewStore

func NewStore(address common.Address, backend bind.ContractBackend) (*Store, error)

NewStore creates a new instance of Store, bound to a specific deployed contract.

type StoreCaller

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

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

func NewStoreCaller

func NewStoreCaller(address common.Address, caller bind.ContractCaller) (*StoreCaller, error)

NewStoreCaller creates a new read-only instance of Store, bound to a specific deployed contract.

func (*StoreCaller) Chi

func (_Store *StoreCaller) Chi(opts *bind.CallOpts) (*big.Int, error)

Chi is a free data retrieval call binding the contract method 0xc92aecc4.

Solidity: function chi() view returns(uint256)

func (*StoreCaller) Dsr

func (_Store *StoreCaller) Dsr(opts *bind.CallOpts) (*big.Int, error)

Dsr is a free data retrieval call binding the contract method 0x487bf082.

Solidity: function dsr() view returns(uint256)

func (*StoreCaller) Live

func (_Store *StoreCaller) Live(opts *bind.CallOpts) (*big.Int, error)

Live is a free data retrieval call binding the contract method 0x957aa58c.

Solidity: function live() view returns(uint256)

func (*StoreCaller) Pie

func (_Store *StoreCaller) Pie(opts *bind.CallOpts) (*big.Int, error)

Pie is a free data retrieval call binding the contract method 0x2c69ed58.

Solidity: function Pie() view returns(uint256)

func (*StoreCaller) PieBalance

func (_Store *StoreCaller) PieBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

PieBalance is a free data retrieval call binding the contract method 0x8ab1bab5.

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

func (*StoreCaller) Rho

func (_Store *StoreCaller) Rho(opts *bind.CallOpts) (*big.Int, error)

Rho is a free data retrieval call binding the contract method 0x20aba08b.

Solidity: function rho() view returns(uint256)

func (*StoreCaller) Vat

func (_Store *StoreCaller) Vat(opts *bind.CallOpts) (common.Address, error)

Vat is a free data retrieval call binding the contract method 0x36569e77.

Solidity: function vat() view returns(address)

func (*StoreCaller) Vow

func (_Store *StoreCaller) Vow(opts *bind.CallOpts) (common.Address, error)

Vow is a free data retrieval call binding the contract method 0x626cb3c5.

Solidity: function vow() view returns(address)

func (*StoreCaller) Wards

func (_Store *StoreCaller) Wards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Wards is a free data retrieval call binding the contract method 0xbf353dbb.

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

type StoreCallerRaw

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

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

func (*StoreCallerRaw) Call

func (_Store *StoreCallerRaw) 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 StoreCallerSession

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

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

func (*StoreCallerSession) Chi

func (_Store *StoreCallerSession) Chi() (*big.Int, error)

Chi is a free data retrieval call binding the contract method 0xc92aecc4.

Solidity: function chi() view returns(uint256)

func (*StoreCallerSession) Dsr

func (_Store *StoreCallerSession) Dsr() (*big.Int, error)

Dsr is a free data retrieval call binding the contract method 0x487bf082.

Solidity: function dsr() view returns(uint256)

func (*StoreCallerSession) Live

func (_Store *StoreCallerSession) Live() (*big.Int, error)

Live is a free data retrieval call binding the contract method 0x957aa58c.

Solidity: function live() view returns(uint256)

func (*StoreCallerSession) Pie

func (_Store *StoreCallerSession) Pie() (*big.Int, error)

Pie is a free data retrieval call binding the contract method 0x2c69ed58.

Solidity: function Pie() view returns(uint256)

func (*StoreCallerSession) PieBalance

func (_Store *StoreCallerSession) PieBalance(arg0 common.Address) (*big.Int, error)

PieBalance is a free data retrieval call binding the contract method 0x8ab1bab5.

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

func (*StoreCallerSession) Rho

func (_Store *StoreCallerSession) Rho() (*big.Int, error)

Rho is a free data retrieval call binding the contract method 0x20aba08b.

Solidity: function rho() view returns(uint256)

func (*StoreCallerSession) Vat

func (_Store *StoreCallerSession) Vat() (common.Address, error)

Vat is a free data retrieval call binding the contract method 0x36569e77.

Solidity: function vat() view returns(address)

func (*StoreCallerSession) Vow

func (_Store *StoreCallerSession) Vow() (common.Address, error)

Vow is a free data retrieval call binding the contract method 0x626cb3c5.

Solidity: function vow() view returns(address)

func (*StoreCallerSession) Wards

func (_Store *StoreCallerSession) Wards(arg0 common.Address) (*big.Int, error)

Wards is a free data retrieval call binding the contract method 0xbf353dbb.

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

type StoreFilterer

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

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

func NewStoreFilterer

func NewStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*StoreFilterer, error)

NewStoreFilterer creates a new log filterer instance of Store, bound to a specific deployed contract.

type StoreRaw

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

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

func (*StoreRaw) Call

func (_Store *StoreRaw) 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 (*StoreRaw) Transact

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

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

func (*StoreRaw) Transfer

func (_Store *StoreRaw) 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 StoreSession

type StoreSession struct {
	Contract     *Store            // 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
}

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

func (*StoreSession) Cage

func (_Store *StoreSession) Cage() (*types.Transaction, error)

Cage is a paid mutator transaction binding the contract method 0x69245009.

Solidity: function cage() returns()

func (*StoreSession) Chi

func (_Store *StoreSession) Chi() (*big.Int, error)

Chi is a free data retrieval call binding the contract method 0xc92aecc4.

Solidity: function chi() view returns(uint256)

func (*StoreSession) Deny

func (_Store *StoreSession) Deny(guy common.Address) (*types.Transaction, error)

Deny is a paid mutator transaction binding the contract method 0x9c52a7f1.

Solidity: function deny(address guy) returns()

func (*StoreSession) Drip

func (_Store *StoreSession) Drip() (*types.Transaction, error)

Drip is a paid mutator transaction binding the contract method 0x9f678cca.

Solidity: function drip() returns(uint256 tmp)

func (*StoreSession) Dsr

func (_Store *StoreSession) Dsr() (*big.Int, error)

Dsr is a free data retrieval call binding the contract method 0x487bf082.

Solidity: function dsr() view returns(uint256)

func (*StoreSession) Exit

func (_Store *StoreSession) Exit(wad *big.Int) (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0x7f8661a1.

Solidity: function exit(uint256 wad) returns()

func (*StoreSession) File

func (_Store *StoreSession) File(what [32]byte, data *big.Int) (*types.Transaction, error)

File is a paid mutator transaction binding the contract method 0x29ae8114.

Solidity: function file(bytes32 what, uint256 data) returns()

func (*StoreSession) File0

func (_Store *StoreSession) File0(what [32]byte, addr common.Address) (*types.Transaction, error)

File0 is a paid mutator transaction binding the contract method 0xd4e8be83.

Solidity: function file(bytes32 what, address addr) returns()

func (*StoreSession) Join

func (_Store *StoreSession) Join(wad *big.Int) (*types.Transaction, error)

Join is a paid mutator transaction binding the contract method 0x049878f3.

Solidity: function join(uint256 wad) returns()

func (*StoreSession) Live

func (_Store *StoreSession) Live() (*big.Int, error)

Live is a free data retrieval call binding the contract method 0x957aa58c.

Solidity: function live() view returns(uint256)

func (*StoreSession) Pie

func (_Store *StoreSession) Pie() (*big.Int, error)

Pie is a free data retrieval call binding the contract method 0x2c69ed58.

Solidity: function Pie() view returns(uint256)

func (*StoreSession) PieBalance

func (_Store *StoreSession) PieBalance(arg0 common.Address) (*big.Int, error)

PieBalance is a free data retrieval call binding the contract method 0x8ab1bab5.

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

func (*StoreSession) Rely

func (_Store *StoreSession) Rely(guy common.Address) (*types.Transaction, error)

Rely is a paid mutator transaction binding the contract method 0x65fae35e.

Solidity: function rely(address guy) returns()

func (*StoreSession) Rho

func (_Store *StoreSession) Rho() (*big.Int, error)

Rho is a free data retrieval call binding the contract method 0x20aba08b.

Solidity: function rho() view returns(uint256)

func (*StoreSession) Vat

func (_Store *StoreSession) Vat() (common.Address, error)

Vat is a free data retrieval call binding the contract method 0x36569e77.

Solidity: function vat() view returns(address)

func (*StoreSession) Vow

func (_Store *StoreSession) Vow() (common.Address, error)

Vow is a free data retrieval call binding the contract method 0x626cb3c5.

Solidity: function vow() view returns(address)

func (*StoreSession) Wards

func (_Store *StoreSession) Wards(arg0 common.Address) (*big.Int, error)

Wards is a free data retrieval call binding the contract method 0xbf353dbb.

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

type StoreTransactor

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

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

func NewStoreTransactor

func NewStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*StoreTransactor, error)

NewStoreTransactor creates a new write-only instance of Store, bound to a specific deployed contract.

func (*StoreTransactor) Cage

func (_Store *StoreTransactor) Cage(opts *bind.TransactOpts) (*types.Transaction, error)

Cage is a paid mutator transaction binding the contract method 0x69245009.

Solidity: function cage() returns()

func (*StoreTransactor) Deny

func (_Store *StoreTransactor) Deny(opts *bind.TransactOpts, guy common.Address) (*types.Transaction, error)

Deny is a paid mutator transaction binding the contract method 0x9c52a7f1.

Solidity: function deny(address guy) returns()

func (*StoreTransactor) Drip

func (_Store *StoreTransactor) Drip(opts *bind.TransactOpts) (*types.Transaction, error)

Drip is a paid mutator transaction binding the contract method 0x9f678cca.

Solidity: function drip() returns(uint256 tmp)

func (*StoreTransactor) Exit

func (_Store *StoreTransactor) Exit(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0x7f8661a1.

Solidity: function exit(uint256 wad) returns()

func (*StoreTransactor) File

func (_Store *StoreTransactor) File(opts *bind.TransactOpts, what [32]byte, data *big.Int) (*types.Transaction, error)

File is a paid mutator transaction binding the contract method 0x29ae8114.

Solidity: function file(bytes32 what, uint256 data) returns()

func (*StoreTransactor) File0

func (_Store *StoreTransactor) File0(opts *bind.TransactOpts, what [32]byte, addr common.Address) (*types.Transaction, error)

File0 is a paid mutator transaction binding the contract method 0xd4e8be83.

Solidity: function file(bytes32 what, address addr) returns()

func (*StoreTransactor) Join

func (_Store *StoreTransactor) Join(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)

Join is a paid mutator transaction binding the contract method 0x049878f3.

Solidity: function join(uint256 wad) returns()

func (*StoreTransactor) Rely

func (_Store *StoreTransactor) Rely(opts *bind.TransactOpts, guy common.Address) (*types.Transaction, error)

Rely is a paid mutator transaction binding the contract method 0x65fae35e.

Solidity: function rely(address guy) returns()

type StoreTransactorRaw

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

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

func (*StoreTransactorRaw) Transact

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

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

func (*StoreTransactorRaw) Transfer

func (_Store *StoreTransactorRaw) 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 StoreTransactorSession

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

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

func (*StoreTransactorSession) Cage

func (_Store *StoreTransactorSession) Cage() (*types.Transaction, error)

Cage is a paid mutator transaction binding the contract method 0x69245009.

Solidity: function cage() returns()

func (*StoreTransactorSession) Deny

Deny is a paid mutator transaction binding the contract method 0x9c52a7f1.

Solidity: function deny(address guy) returns()

func (*StoreTransactorSession) Drip

func (_Store *StoreTransactorSession) Drip() (*types.Transaction, error)

Drip is a paid mutator transaction binding the contract method 0x9f678cca.

Solidity: function drip() returns(uint256 tmp)

func (*StoreTransactorSession) Exit

func (_Store *StoreTransactorSession) Exit(wad *big.Int) (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0x7f8661a1.

Solidity: function exit(uint256 wad) returns()

func (*StoreTransactorSession) File

func (_Store *StoreTransactorSession) File(what [32]byte, data *big.Int) (*types.Transaction, error)

File is a paid mutator transaction binding the contract method 0x29ae8114.

Solidity: function file(bytes32 what, uint256 data) returns()

func (*StoreTransactorSession) File0

func (_Store *StoreTransactorSession) File0(what [32]byte, addr common.Address) (*types.Transaction, error)

File0 is a paid mutator transaction binding the contract method 0xd4e8be83.

Solidity: function file(bytes32 what, address addr) returns()

func (*StoreTransactorSession) Join

func (_Store *StoreTransactorSession) Join(wad *big.Int) (*types.Transaction, error)

Join is a paid mutator transaction binding the contract method 0x049878f3.

Solidity: function join(uint256 wad) returns()

func (*StoreTransactorSession) Rely

Rely is a paid mutator transaction binding the contract method 0x65fae35e.

Solidity: function rely(address guy) returns()

Jump to

Keyboard shortcuts

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