KNC

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 KNCABI = "" /* 4091-byte string literal not displayed */

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

Variables

View Source
var File_KNC_KNC_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 Burn

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

func (*Burn) Descriptor deprecated

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

Deprecated: Use Burn.ProtoReflect.Descriptor instead.

func (*Burn) GetBurner

func (x *Burn) GetBurner() []byte

func (*Burn) GetTs

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

func (*Burn) GetValue

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

func (*Burn) ProtoMessage

func (*Burn) ProtoMessage()

func (*Burn) ProtoReflect

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

func (*Burn) Reset

func (x *Burn) Reset()

func (*Burn) String

func (x *Burn) String() string

type KNC

type KNC struct {
	KNCCaller     // Read-only binding to the contract
	KNCTransactor // Write-only binding to the contract
	KNCFilterer   // Log filterer for contract events
}

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

func NewKNC

func NewKNC(address common.Address, backend bind.ContractBackend) (*KNC, error)

NewKNC creates a new instance of KNC, bound to a specific deployed contract.

type KNCApproval

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

KNCApproval represents a Approval event raised by the KNC contract.

type KNCApprovalIterator

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

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

func (*KNCApprovalIterator) Close

func (it *KNCApprovalIterator) Close() error

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

func (*KNCApprovalIterator) Error

func (it *KNCApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*KNCApprovalIterator) Next

func (it *KNCApprovalIterator) 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 KNCBurn

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

KNCBurn represents a Burn event raised by the KNC contract.

type KNCBurnIterator

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

KNCBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the KNC contract.

func (*KNCBurnIterator) Close

func (it *KNCBurnIterator) Close() error

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

func (*KNCBurnIterator) Error

func (it *KNCBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*KNCBurnIterator) Next

func (it *KNCBurnIterator) 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 KNCCaller

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

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

func NewKNCCaller

func NewKNCCaller(address common.Address, caller bind.ContractCaller) (*KNCCaller, error)

NewKNCCaller creates a new read-only instance of KNC, bound to a specific deployed contract.

func (*KNCCaller) Allowance

func (_KNC *KNCCaller) 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 (*KNCCaller) BalanceOf

func (_KNC *KNCCaller) 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 (*KNCCaller) Decimals

func (_KNC *KNCCaller) 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 (*KNCCaller) Name

func (_KNC *KNCCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() returns(string)

func (*KNCCaller) Owner

func (_KNC *KNCCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() returns(address)

func (*KNCCaller) SaleEndTime

func (_KNC *KNCCaller) SaleEndTime(opts *bind.CallOpts) (*big.Int, error)

SaleEndTime is a free data retrieval call binding the contract method 0xed338ff1.

Solidity: function saleEndTime() returns(uint256)

func (*KNCCaller) SaleStartTime

func (_KNC *KNCCaller) SaleStartTime(opts *bind.CallOpts) (*big.Int, error)

SaleStartTime is a free data retrieval call binding the contract method 0x1cbaee2d.

Solidity: function saleStartTime() returns(uint256)

func (*KNCCaller) Symbol

func (_KNC *KNCCaller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() returns(string)

func (*KNCCaller) TokenSaleContract

func (_KNC *KNCCaller) TokenSaleContract(opts *bind.CallOpts) (common.Address, error)

TokenSaleContract is a free data retrieval call binding the contract method 0x5d5aa277.

Solidity: function tokenSaleContract() returns(address)

func (*KNCCaller) TotalSupply

func (_KNC *KNCCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() returns(uint256)

type KNCCallerRaw

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

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

func (*KNCCallerRaw) Call

func (_KNC *KNCCallerRaw) 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 KNCCallerSession

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

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

func (*KNCCallerSession) Allowance

func (_KNC *KNCCallerSession) 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 (*KNCCallerSession) BalanceOf

func (_KNC *KNCCallerSession) 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 (*KNCCallerSession) Decimals

func (_KNC *KNCCallerSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() returns(uint256)

func (*KNCCallerSession) Name

func (_KNC *KNCCallerSession) Name() (string, error)

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

Solidity: function name() returns(string)

func (*KNCCallerSession) Owner

func (_KNC *KNCCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() returns(address)

func (*KNCCallerSession) SaleEndTime

func (_KNC *KNCCallerSession) SaleEndTime() (*big.Int, error)

SaleEndTime is a free data retrieval call binding the contract method 0xed338ff1.

Solidity: function saleEndTime() returns(uint256)

func (*KNCCallerSession) SaleStartTime

func (_KNC *KNCCallerSession) SaleStartTime() (*big.Int, error)

SaleStartTime is a free data retrieval call binding the contract method 0x1cbaee2d.

Solidity: function saleStartTime() returns(uint256)

func (*KNCCallerSession) Symbol

func (_KNC *KNCCallerSession) Symbol() (string, error)

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

Solidity: function symbol() returns(string)

func (*KNCCallerSession) TokenSaleContract

func (_KNC *KNCCallerSession) TokenSaleContract() (common.Address, error)

TokenSaleContract is a free data retrieval call binding the contract method 0x5d5aa277.

Solidity: function tokenSaleContract() returns(address)

func (*KNCCallerSession) TotalSupply

func (_KNC *KNCCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() returns(uint256)

type KNCFilterer

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

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

func NewKNCFilterer

func NewKNCFilterer(address common.Address, filterer bind.ContractFilterer) (*KNCFilterer, error)

NewKNCFilterer creates a new log filterer instance of KNC, bound to a specific deployed contract.

func (*KNCFilterer) FilterApproval

func (_KNC *KNCFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*KNCApprovalIterator, 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 (*KNCFilterer) FilterBurn

func (_KNC *KNCFilterer) FilterBurn(opts *bind.FilterOpts, _burner []common.Address) (*KNCBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed _burner, uint256 _value)

func (*KNCFilterer) FilterTransfer

func (_KNC *KNCFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*KNCTransferIterator, 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 (*KNCFilterer) ParseApproval

func (_KNC *KNCFilterer) ParseApproval(log types.Log) (*KNCApproval, error)

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

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

func (*KNCFilterer) ParseBurn

func (_KNC *KNCFilterer) ParseBurn(log types.Log) (*KNCBurn, error)

ParseBurn is a log parse operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed _burner, uint256 _value)

func (*KNCFilterer) ParseTransfer

func (_KNC *KNCFilterer) ParseTransfer(log types.Log) (*KNCTransfer, error)

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

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

func (*KNCFilterer) WatchApproval

func (_KNC *KNCFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *KNCApproval, _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 (*KNCFilterer) WatchBurn

func (_KNC *KNCFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *KNCBurn, _burner []common.Address) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed _burner, uint256 _value)

func (*KNCFilterer) WatchTransfer

func (_KNC *KNCFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *KNCTransfer, _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 KNCRaw

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

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

func (*KNCRaw) Call

func (_KNC *KNCRaw) 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 (*KNCRaw) Transact

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

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

func (*KNCRaw) Transfer

func (_KNC *KNCRaw) 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 KNCSession

type KNCSession struct {
	Contract     *KNC              // 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
}

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

func (*KNCSession) Allowance

func (_KNC *KNCSession) 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 (*KNCSession) Approve

func (_KNC *KNCSession) 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)

func (*KNCSession) BalanceOf

func (_KNC *KNCSession) 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 (*KNCSession) Burn

func (_KNC *KNCSession) Burn(_value *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 _value) returns(bool)

func (*KNCSession) BurnFrom

func (_KNC *KNCSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address _from, uint256 _value) returns(bool)

func (*KNCSession) Decimals

func (_KNC *KNCSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() returns(uint256)

func (*KNCSession) EmergencyERC20Drain

func (_KNC *KNCSession) EmergencyERC20Drain(token common.Address, amount *big.Int) (*types.Transaction, error)

EmergencyERC20Drain is a paid mutator transaction binding the contract method 0xdb0e16f1.

Solidity: function emergencyERC20Drain(address token, uint256 amount) returns()

func (*KNCSession) Name

func (_KNC *KNCSession) Name() (string, error)

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

Solidity: function name() returns(string)

func (*KNCSession) Owner

func (_KNC *KNCSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() returns(address)

func (*KNCSession) SaleEndTime

func (_KNC *KNCSession) SaleEndTime() (*big.Int, error)

SaleEndTime is a free data retrieval call binding the contract method 0xed338ff1.

Solidity: function saleEndTime() returns(uint256)

func (*KNCSession) SaleStartTime

func (_KNC *KNCSession) SaleStartTime() (*big.Int, error)

SaleStartTime is a free data retrieval call binding the contract method 0x1cbaee2d.

Solidity: function saleStartTime() returns(uint256)

func (*KNCSession) Symbol

func (_KNC *KNCSession) Symbol() (string, error)

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

Solidity: function symbol() returns(string)

func (*KNCSession) TokenSaleContract

func (_KNC *KNCSession) TokenSaleContract() (common.Address, error)

TokenSaleContract is a free data retrieval call binding the contract method 0x5d5aa277.

Solidity: function tokenSaleContract() returns(address)

func (*KNCSession) TotalSupply

func (_KNC *KNCSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() returns(uint256)

func (*KNCSession) Transfer

func (_KNC *KNCSession) 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)

func (*KNCSession) TransferFrom

func (_KNC *KNCSession) 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)

func (*KNCSession) TransferOwnership

func (_KNC *KNCSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type KNCTransactor

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

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

func NewKNCTransactor

func NewKNCTransactor(address common.Address, transactor bind.ContractTransactor) (*KNCTransactor, error)

NewKNCTransactor creates a new write-only instance of KNC, bound to a specific deployed contract.

func (*KNCTransactor) Approve

func (_KNC *KNCTransactor) 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)

func (*KNCTransactor) Burn

func (_KNC *KNCTransactor) Burn(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 _value) returns(bool)

func (*KNCTransactor) BurnFrom

func (_KNC *KNCTransactor) BurnFrom(opts *bind.TransactOpts, _from common.Address, _value *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address _from, uint256 _value) returns(bool)

func (*KNCTransactor) EmergencyERC20Drain

func (_KNC *KNCTransactor) EmergencyERC20Drain(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

EmergencyERC20Drain is a paid mutator transaction binding the contract method 0xdb0e16f1.

Solidity: function emergencyERC20Drain(address token, uint256 amount) returns()

func (*KNCTransactor) Transfer

func (_KNC *KNCTransactor) 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)

func (*KNCTransactor) TransferFrom

func (_KNC *KNCTransactor) 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)

func (*KNCTransactor) TransferOwnership

func (_KNC *KNCTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type KNCTransactorRaw

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

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

func (*KNCTransactorRaw) Transact

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

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

func (*KNCTransactorRaw) Transfer

func (_KNC *KNCTransactorRaw) 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 KNCTransactorSession

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

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

func (*KNCTransactorSession) Approve

func (_KNC *KNCTransactorSession) 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)

func (*KNCTransactorSession) Burn

func (_KNC *KNCTransactorSession) Burn(_value *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 _value) returns(bool)

func (*KNCTransactorSession) BurnFrom

func (_KNC *KNCTransactorSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address _from, uint256 _value) returns(bool)

func (*KNCTransactorSession) EmergencyERC20Drain

func (_KNC *KNCTransactorSession) EmergencyERC20Drain(token common.Address, amount *big.Int) (*types.Transaction, error)

EmergencyERC20Drain is a paid mutator transaction binding the contract method 0xdb0e16f1.

Solidity: function emergencyERC20Drain(address token, uint256 amount) returns()

func (*KNCTransactorSession) Transfer

func (_KNC *KNCTransactorSession) 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)

func (*KNCTransactorSession) TransferFrom

func (_KNC *KNCTransactorSession) 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)

func (*KNCTransactorSession) TransferOwnership

func (_KNC *KNCTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type KNCTransfer

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

KNCTransfer represents a Transfer event raised by the KNC contract.

type KNCTransferIterator

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

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

func (*KNCTransferIterator) Close

func (it *KNCTransferIterator) Close() error

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

func (*KNCTransferIterator) Error

func (it *KNCTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*KNCTransferIterator) Next

func (it *KNCTransferIterator) 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 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