BAT

package
v0.0.0-...-a05b099 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BATABI = "" /* 4806-byte string literal not displayed */

BATABI is the input ABI used to generate the binding from.

Variables

View Source
var File_BAT_BAT_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Approval

type Approval struct {
	Ts      *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	Owner   []byte                 `protobuf:"bytes,2,opt,name=Owner,proto3" json:"Owner,omitempty"`     //	address
	Spender []byte                 `protobuf:"bytes,3,opt,name=Spender,proto3" json:"Spender,omitempty"` //	address
	Value   []byte                 `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"`     //	uint256
	// contains filtered or unexported fields
}

func (*Approval) Descriptor deprecated

func (*Approval) Descriptor() ([]byte, []int)

Deprecated: Use Approval.ProtoReflect.Descriptor instead.

func (*Approval) GetOwner

func (x *Approval) GetOwner() []byte

func (*Approval) GetSpender

func (x *Approval) GetSpender() []byte

func (*Approval) GetTs

func (x *Approval) GetTs() *timestamppb.Timestamp

func (*Approval) GetValue

func (x *Approval) GetValue() []byte

func (*Approval) ProtoMessage

func (*Approval) ProtoMessage()

func (*Approval) ProtoReflect

func (x *Approval) ProtoReflect() protoreflect.Message

func (*Approval) Reset

func (x *Approval) Reset()

func (*Approval) String

func (x *Approval) String() string

type BAT

type BAT struct {
	BATCaller     // Read-only binding to the contract
	BATTransactor // Write-only binding to the contract
	BATFilterer   // Log filterer for contract events
}

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

func NewBAT

func NewBAT(address common.Address, backend bind.ContractBackend) (*BAT, error)

NewBAT creates a new instance of BAT, bound to a specific deployed contract.

type BATApproval

type BATApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

BATApproval represents a Approval event raised by the BAT contract.

type BATApprovalIterator

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

BATApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the BAT contract.

func (*BATApprovalIterator) Close

func (it *BATApprovalIterator) Close() error

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

func (*BATApprovalIterator) Error

func (it *BATApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BATApprovalIterator) Next

func (it *BATApprovalIterator) Next() bool

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 BATCaller

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

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

func NewBATCaller

func NewBATCaller(address common.Address, caller bind.ContractCaller) (*BATCaller, error)

NewBATCaller creates a new read-only instance of BAT, bound to a specific deployed contract.

func (*BATCaller) Allowance

func (_BAT *BATCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) returns(uint256 remaining)

func (*BATCaller) BalanceOf

func (_BAT *BATCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) returns(uint256 balance)

func (*BATCaller) BatFund

func (_BAT *BATCaller) BatFund(opts *bind.CallOpts) (*big.Int, error)

BatFund is a free data retrieval call binding the contract method 0x229a4978.

Solidity: function batFund() returns(uint256)

func (*BATCaller) BatFundDeposit

func (_BAT *BATCaller) BatFundDeposit(opts *bind.CallOpts) (common.Address, error)

BatFundDeposit is a free data retrieval call binding the contract method 0x01a7a8c0.

Solidity: function batFundDeposit() returns(address)

func (*BATCaller) Decimals

func (_BAT *BATCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() returns(uint256)

func (*BATCaller) EthFundDeposit

func (_BAT *BATCaller) EthFundDeposit(opts *bind.CallOpts) (common.Address, error)

EthFundDeposit is a free data retrieval call binding the contract method 0xa81c3bdf.

Solidity: function ethFundDeposit() returns(address)

func (*BATCaller) FundingEndBlock

func (_BAT *BATCaller) FundingEndBlock(opts *bind.CallOpts) (*big.Int, error)

FundingEndBlock is a free data retrieval call binding the contract method 0x91b43d13.

Solidity: function fundingEndBlock() returns(uint256)

func (*BATCaller) FundingStartBlock

func (_BAT *BATCaller) FundingStartBlock(opts *bind.CallOpts) (*big.Int, error)

FundingStartBlock is a free data retrieval call binding the contract method 0xd648a647.

Solidity: function fundingStartBlock() returns(uint256)

func (*BATCaller) IsFinalized

func (_BAT *BATCaller) IsFinalized(opts *bind.CallOpts) (bool, error)

IsFinalized is a free data retrieval call binding the contract method 0x8d4e4083.

Solidity: function isFinalized() returns(bool)

func (*BATCaller) Name

func (_BAT *BATCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() returns(string)

func (*BATCaller) Symbol

func (_BAT *BATCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() returns(string)

func (*BATCaller) TokenCreationCap

func (_BAT *BATCaller) TokenCreationCap(opts *bind.CallOpts) (*big.Int, error)

TokenCreationCap is a free data retrieval call binding the contract method 0x6f7920fd.

Solidity: function tokenCreationCap() returns(uint256)

func (*BATCaller) TokenCreationMin

func (_BAT *BATCaller) TokenCreationMin(opts *bind.CallOpts) (*big.Int, error)

TokenCreationMin is a free data retrieval call binding the contract method 0xc039daf6.

Solidity: function tokenCreationMin() returns(uint256)

func (*BATCaller) TokenExchangeRate

func (_BAT *BATCaller) TokenExchangeRate(opts *bind.CallOpts) (*big.Int, error)

TokenExchangeRate is a free data retrieval call binding the contract method 0x4172d080.

Solidity: function tokenExchangeRate() returns(uint256)

func (*BATCaller) TotalSupply

func (_BAT *BATCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() returns(uint256)

func (*BATCaller) Version

func (_BAT *BATCaller) Version(opts *bind.CallOpts) (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() returns(string)

type BATCallerRaw

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

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

func (*BATCallerRaw) Call

func (_BAT *BATCallerRaw) 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 BATCallerSession

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

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

func (*BATCallerSession) Allowance

func (_BAT *BATCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) returns(uint256 remaining)

func (*BATCallerSession) BalanceOf

func (_BAT *BATCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) returns(uint256 balance)

func (*BATCallerSession) BatFund

func (_BAT *BATCallerSession) BatFund() (*big.Int, error)

BatFund is a free data retrieval call binding the contract method 0x229a4978.

Solidity: function batFund() returns(uint256)

func (*BATCallerSession) BatFundDeposit

func (_BAT *BATCallerSession) BatFundDeposit() (common.Address, error)

BatFundDeposit is a free data retrieval call binding the contract method 0x01a7a8c0.

Solidity: function batFundDeposit() returns(address)

func (*BATCallerSession) Decimals

func (_BAT *BATCallerSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() returns(uint256)

func (*BATCallerSession) EthFundDeposit

func (_BAT *BATCallerSession) EthFundDeposit() (common.Address, error)

EthFundDeposit is a free data retrieval call binding the contract method 0xa81c3bdf.

Solidity: function ethFundDeposit() returns(address)

func (*BATCallerSession) FundingEndBlock

func (_BAT *BATCallerSession) FundingEndBlock() (*big.Int, error)

FundingEndBlock is a free data retrieval call binding the contract method 0x91b43d13.

Solidity: function fundingEndBlock() returns(uint256)

func (*BATCallerSession) FundingStartBlock

func (_BAT *BATCallerSession) FundingStartBlock() (*big.Int, error)

FundingStartBlock is a free data retrieval call binding the contract method 0xd648a647.

Solidity: function fundingStartBlock() returns(uint256)

func (*BATCallerSession) IsFinalized

func (_BAT *BATCallerSession) IsFinalized() (bool, error)

IsFinalized is a free data retrieval call binding the contract method 0x8d4e4083.

Solidity: function isFinalized() returns(bool)

func (*BATCallerSession) Name

func (_BAT *BATCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() returns(string)

func (*BATCallerSession) Symbol

func (_BAT *BATCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() returns(string)

func (*BATCallerSession) TokenCreationCap

func (_BAT *BATCallerSession) TokenCreationCap() (*big.Int, error)

TokenCreationCap is a free data retrieval call binding the contract method 0x6f7920fd.

Solidity: function tokenCreationCap() returns(uint256)

func (*BATCallerSession) TokenCreationMin

func (_BAT *BATCallerSession) TokenCreationMin() (*big.Int, error)

TokenCreationMin is a free data retrieval call binding the contract method 0xc039daf6.

Solidity: function tokenCreationMin() returns(uint256)

func (*BATCallerSession) TokenExchangeRate

func (_BAT *BATCallerSession) TokenExchangeRate() (*big.Int, error)

TokenExchangeRate is a free data retrieval call binding the contract method 0x4172d080.

Solidity: function tokenExchangeRate() returns(uint256)

func (*BATCallerSession) TotalSupply

func (_BAT *BATCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() returns(uint256)

func (*BATCallerSession) Version

func (_BAT *BATCallerSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() returns(string)

type BATCreateBAT

type BATCreateBAT struct {
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

BATCreateBAT represents a CreateBAT event raised by the BAT contract.

type BATCreateBATIterator

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

BATCreateBATIterator is returned from FilterCreateBAT and is used to iterate over the raw logs and unpacked data for CreateBAT events raised by the BAT contract.

func (*BATCreateBATIterator) Close

func (it *BATCreateBATIterator) Close() error

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

func (*BATCreateBATIterator) Error

func (it *BATCreateBATIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BATCreateBATIterator) Next

func (it *BATCreateBATIterator) Next() bool

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 BATFilterer

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

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

func NewBATFilterer

func NewBATFilterer(address common.Address, filterer bind.ContractFilterer) (*BATFilterer, error)

NewBATFilterer creates a new log filterer instance of BAT, bound to a specific deployed contract.

func (*BATFilterer) FilterApproval

func (_BAT *BATFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*BATApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed _owner, address indexed _spender, uint256 _value)

func (*BATFilterer) FilterCreateBAT

func (_BAT *BATFilterer) FilterCreateBAT(opts *bind.FilterOpts, _to []common.Address) (*BATCreateBATIterator, error)

FilterCreateBAT is a free log retrieval operation binding the contract event 0xb33527d2e0d30b7aece2c5e82927985866c1b75173d671c14f4457bf67aa6910.

Solidity: event CreateBAT(address indexed _to, uint256 _value)

func (*BATFilterer) FilterLogRefund

func (_BAT *BATFilterer) FilterLogRefund(opts *bind.FilterOpts, _to []common.Address) (*BATLogRefundIterator, error)

FilterLogRefund is a free log retrieval operation binding the contract event 0xb6c0eca8138e097d71e2dd31e19a1266487f0553f170b7260ffe68bcbe9ff8a7.

Solidity: event LogRefund(address indexed _to, uint256 _value)

func (*BATFilterer) FilterTransfer

func (_BAT *BATFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*BATTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed _from, address indexed _to, uint256 _value)

func (*BATFilterer) ParseApproval

func (_BAT *BATFilterer) ParseApproval(log types.Log) (*BATApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed _owner, address indexed _spender, uint256 _value)

func (*BATFilterer) ParseCreateBAT

func (_BAT *BATFilterer) ParseCreateBAT(log types.Log) (*BATCreateBAT, error)

ParseCreateBAT is a log parse operation binding the contract event 0xb33527d2e0d30b7aece2c5e82927985866c1b75173d671c14f4457bf67aa6910.

Solidity: event CreateBAT(address indexed _to, uint256 _value)

func (*BATFilterer) ParseLogRefund

func (_BAT *BATFilterer) ParseLogRefund(log types.Log) (*BATLogRefund, error)

ParseLogRefund is a log parse operation binding the contract event 0xb6c0eca8138e097d71e2dd31e19a1266487f0553f170b7260ffe68bcbe9ff8a7.

Solidity: event LogRefund(address indexed _to, uint256 _value)

func (*BATFilterer) ParseTransfer

func (_BAT *BATFilterer) ParseTransfer(log types.Log) (*BATTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed _from, address indexed _to, uint256 _value)

func (*BATFilterer) WatchApproval

func (_BAT *BATFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BATApproval, _owner []common.Address, _spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed _owner, address indexed _spender, uint256 _value)

func (*BATFilterer) WatchCreateBAT

func (_BAT *BATFilterer) WatchCreateBAT(opts *bind.WatchOpts, sink chan<- *BATCreateBAT, _to []common.Address) (event.Subscription, error)

WatchCreateBAT is a free log subscription operation binding the contract event 0xb33527d2e0d30b7aece2c5e82927985866c1b75173d671c14f4457bf67aa6910.

Solidity: event CreateBAT(address indexed _to, uint256 _value)

func (*BATFilterer) WatchLogRefund

func (_BAT *BATFilterer) WatchLogRefund(opts *bind.WatchOpts, sink chan<- *BATLogRefund, _to []common.Address) (event.Subscription, error)

WatchLogRefund is a free log subscription operation binding the contract event 0xb6c0eca8138e097d71e2dd31e19a1266487f0553f170b7260ffe68bcbe9ff8a7.

Solidity: event LogRefund(address indexed _to, uint256 _value)

func (*BATFilterer) WatchTransfer

func (_BAT *BATFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *BATTransfer, _from []common.Address, _to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed _from, address indexed _to, uint256 _value)

type BATLogRefund

type BATLogRefund struct {
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

BATLogRefund represents a LogRefund event raised by the BAT contract.

type BATLogRefundIterator

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

BATLogRefundIterator is returned from FilterLogRefund and is used to iterate over the raw logs and unpacked data for LogRefund events raised by the BAT contract.

func (*BATLogRefundIterator) Close

func (it *BATLogRefundIterator) Close() error

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

func (*BATLogRefundIterator) Error

func (it *BATLogRefundIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BATLogRefundIterator) Next

func (it *BATLogRefundIterator) Next() bool

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 BATRaw

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

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

func (*BATRaw) Call

func (_BAT *BATRaw) 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 (*BATRaw) Transact

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

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

func (*BATRaw) Transfer

func (_BAT *BATRaw) 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 BATSession

type BATSession struct {
	Contract     *BAT              // 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
}

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

func (*BATSession) Allowance

func (_BAT *BATSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) returns(uint256 remaining)

func (*BATSession) Approve

func (_BAT *BATSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool success)

func (*BATSession) BalanceOf

func (_BAT *BATSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) returns(uint256 balance)

func (*BATSession) BatFund

func (_BAT *BATSession) BatFund() (*big.Int, error)

BatFund is a free data retrieval call binding the contract method 0x229a4978.

Solidity: function batFund() returns(uint256)

func (*BATSession) BatFundDeposit

func (_BAT *BATSession) BatFundDeposit() (common.Address, error)

BatFundDeposit is a free data retrieval call binding the contract method 0x01a7a8c0.

Solidity: function batFundDeposit() returns(address)

func (*BATSession) CreateTokens

func (_BAT *BATSession) CreateTokens() (*types.Transaction, error)

CreateTokens is a paid mutator transaction binding the contract method 0xb4427263.

Solidity: function createTokens() returns()

func (*BATSession) Decimals

func (_BAT *BATSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() returns(uint256)

func (*BATSession) EthFundDeposit

func (_BAT *BATSession) EthFundDeposit() (common.Address, error)

EthFundDeposit is a free data retrieval call binding the contract method 0xa81c3bdf.

Solidity: function ethFundDeposit() returns(address)

func (*BATSession) Finalize

func (_BAT *BATSession) Finalize() (*types.Transaction, error)

Finalize is a paid mutator transaction binding the contract method 0x4bb278f3.

Solidity: function finalize() returns()

func (*BATSession) FundingEndBlock

func (_BAT *BATSession) FundingEndBlock() (*big.Int, error)

FundingEndBlock is a free data retrieval call binding the contract method 0x91b43d13.

Solidity: function fundingEndBlock() returns(uint256)

func (*BATSession) FundingStartBlock

func (_BAT *BATSession) FundingStartBlock() (*big.Int, error)

FundingStartBlock is a free data retrieval call binding the contract method 0xd648a647.

Solidity: function fundingStartBlock() returns(uint256)

func (*BATSession) IsFinalized

func (_BAT *BATSession) IsFinalized() (bool, error)

IsFinalized is a free data retrieval call binding the contract method 0x8d4e4083.

Solidity: function isFinalized() returns(bool)

func (*BATSession) Name

func (_BAT *BATSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() returns(string)

func (*BATSession) Refund

func (_BAT *BATSession) Refund() (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x590e1ae3.

Solidity: function refund() returns()

func (*BATSession) Symbol

func (_BAT *BATSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() returns(string)

func (*BATSession) TokenCreationCap

func (_BAT *BATSession) TokenCreationCap() (*big.Int, error)

TokenCreationCap is a free data retrieval call binding the contract method 0x6f7920fd.

Solidity: function tokenCreationCap() returns(uint256)

func (*BATSession) TokenCreationMin

func (_BAT *BATSession) TokenCreationMin() (*big.Int, error)

TokenCreationMin is a free data retrieval call binding the contract method 0xc039daf6.

Solidity: function tokenCreationMin() returns(uint256)

func (*BATSession) TokenExchangeRate

func (_BAT *BATSession) TokenExchangeRate() (*big.Int, error)

TokenExchangeRate is a free data retrieval call binding the contract method 0x4172d080.

Solidity: function tokenExchangeRate() returns(uint256)

func (*BATSession) TotalSupply

func (_BAT *BATSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() returns(uint256)

func (*BATSession) Transfer

func (_BAT *BATSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool success)

func (*BATSession) TransferFrom

func (_BAT *BATSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success)

func (*BATSession) Version

func (_BAT *BATSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() returns(string)

type BATTransactor

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

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

func NewBATTransactor

func NewBATTransactor(address common.Address, transactor bind.ContractTransactor) (*BATTransactor, error)

NewBATTransactor creates a new write-only instance of BAT, bound to a specific deployed contract.

func (*BATTransactor) Approve

func (_BAT *BATTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool success)

func (*BATTransactor) CreateTokens

func (_BAT *BATTransactor) CreateTokens(opts *bind.TransactOpts) (*types.Transaction, error)

CreateTokens is a paid mutator transaction binding the contract method 0xb4427263.

Solidity: function createTokens() returns()

func (*BATTransactor) Finalize

func (_BAT *BATTransactor) Finalize(opts *bind.TransactOpts) (*types.Transaction, error)

Finalize is a paid mutator transaction binding the contract method 0x4bb278f3.

Solidity: function finalize() returns()

func (*BATTransactor) Refund

func (_BAT *BATTransactor) Refund(opts *bind.TransactOpts) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x590e1ae3.

Solidity: function refund() returns()

func (*BATTransactor) Transfer

func (_BAT *BATTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool success)

func (*BATTransactor) TransferFrom

func (_BAT *BATTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success)

type BATTransactorRaw

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

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

func (*BATTransactorRaw) Transact

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

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

func (*BATTransactorRaw) Transfer

func (_BAT *BATTransactorRaw) 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 BATTransactorSession

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

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

func (*BATTransactorSession) Approve

func (_BAT *BATTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool success)

func (*BATTransactorSession) CreateTokens

func (_BAT *BATTransactorSession) CreateTokens() (*types.Transaction, error)

CreateTokens is a paid mutator transaction binding the contract method 0xb4427263.

Solidity: function createTokens() returns()

func (*BATTransactorSession) Finalize

func (_BAT *BATTransactorSession) Finalize() (*types.Transaction, error)

Finalize is a paid mutator transaction binding the contract method 0x4bb278f3.

Solidity: function finalize() returns()

func (*BATTransactorSession) Refund

func (_BAT *BATTransactorSession) Refund() (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x590e1ae3.

Solidity: function refund() returns()

func (*BATTransactorSession) Transfer

func (_BAT *BATTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool success)

func (*BATTransactorSession) TransferFrom

func (_BAT *BATTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success)

type BATTransfer

type BATTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

BATTransfer represents a Transfer event raised by the BAT contract.

type BATTransferIterator

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

BATTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the BAT contract.

func (*BATTransferIterator) Close

func (it *BATTransferIterator) Close() error

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

func (*BATTransferIterator) Error

func (it *BATTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BATTransferIterator) Next

func (it *BATTransferIterator) Next() bool

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 CreateBAT

type CreateBAT struct {
	Ts    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	To    []byte                 `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"`       //	address
	Value []byte                 `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"` //	uint256
	// contains filtered or unexported fields
}

func (*CreateBAT) Descriptor deprecated

func (*CreateBAT) Descriptor() ([]byte, []int)

Deprecated: Use CreateBAT.ProtoReflect.Descriptor instead.

func (*CreateBAT) GetTo

func (x *CreateBAT) GetTo() []byte

func (*CreateBAT) GetTs

func (x *CreateBAT) GetTs() *timestamppb.Timestamp

func (*CreateBAT) GetValue

func (x *CreateBAT) GetValue() []byte

func (*CreateBAT) ProtoMessage

func (*CreateBAT) ProtoMessage()

func (*CreateBAT) ProtoReflect

func (x *CreateBAT) ProtoReflect() protoreflect.Message

func (*CreateBAT) Reset

func (x *CreateBAT) Reset()

func (*CreateBAT) String

func (x *CreateBAT) String() string

type LogRefund

type LogRefund struct {
	Ts    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	To    []byte                 `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"`       //	address
	Value []byte                 `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"` //	uint256
	// contains filtered or unexported fields
}

func (*LogRefund) Descriptor deprecated

func (*LogRefund) Descriptor() ([]byte, []int)

Deprecated: Use LogRefund.ProtoReflect.Descriptor instead.

func (*LogRefund) GetTo

func (x *LogRefund) GetTo() []byte

func (*LogRefund) GetTs

func (x *LogRefund) GetTs() *timestamppb.Timestamp

func (*LogRefund) GetValue

func (x *LogRefund) GetValue() []byte

func (*LogRefund) ProtoMessage

func (*LogRefund) ProtoMessage()

func (*LogRefund) ProtoReflect

func (x *LogRefund) ProtoReflect() protoreflect.Message

func (*LogRefund) Reset

func (x *LogRefund) Reset()

func (*LogRefund) String

func (x *LogRefund) String() string

type SmartContract

type SmartContract struct{}

func (*SmartContract) Message

func (sc *SmartContract) Message(eventName string, contractAbi *abi.ABI, vLog types.Log, timestamp *timestamppb.Timestamp) protoreflect.ProtoMessage

type Transfer

type Transfer struct {
	Ts    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	From  []byte                 `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`   //	address
	To    []byte                 `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`       //	address
	Value []byte                 `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` //	uint256
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetFrom

func (x *Transfer) GetFrom() []byte

func (*Transfer) GetTo

func (x *Transfer) GetTo() []byte

func (*Transfer) GetTs

func (x *Transfer) GetTs() *timestamppb.Timestamp

func (*Transfer) GetValue

func (x *Transfer) GetValue() []byte

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

Jump to

Keyboard shortcuts

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