tokens

package
v0.0.0-...-0983048 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PErc20ABI = "" /* 3751-byte string literal not displayed */

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

Variables

View Source
var PErc20Bin = "" /* 7308-byte string literal not displayed */

PErc20Bin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type PErc20

type PErc20 struct {
	PErc20Caller     // Read-only binding to the contract
	PErc20Transactor // Write-only binding to the contract
	PErc20Filterer   // Log filterer for contract events
}

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

func DeployPErc20

func DeployPErc20(auth *bind.TransactOpts, backend bind.ContractBackend, n string, s string, d uint8) (common.Address, *types.Transaction, *PErc20, error)

DeployPErc20 deploys a new Ethereum contract, binding an instance of PErc20 to it.

func NewPErc20

func NewPErc20(address common.Address, backend bind.ContractBackend) (*PErc20, error)

NewPErc20 creates a new instance of PErc20, bound to a specific deployed contract.

type PErc20Approval

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

PErc20Approval represents a Approval event raised by the PErc20 contract.

type PErc20ApprovalIterator

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

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

func (*PErc20ApprovalIterator) Close

func (it *PErc20ApprovalIterator) Close() error

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

func (*PErc20ApprovalIterator) Error

func (it *PErc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PErc20ApprovalIterator) Next

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

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

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

func NewPErc20Caller

func NewPErc20Caller(address common.Address, caller bind.ContractCaller) (*PErc20Caller, error)

NewPErc20Caller creates a new read-only instance of PErc20, bound to a specific deployed contract.

func (*PErc20Caller) Allowance

func (_PErc20 *PErc20Caller) Allowance(opts *bind.CallOpts, o common.Address, s common.Address) (*big.Int, error)

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

Solidity: function allowance(address o, address s) view returns(uint256)

func (*PErc20Caller) BalanceOf

func (_PErc20 *PErc20Caller) BalanceOf(opts *bind.CallOpts, a common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address a) view returns(uint256)

func (*PErc20Caller) Decimals

func (_PErc20 *PErc20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*PErc20Caller) Name

func (_PErc20 *PErc20Caller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() view returns(string)

func (*PErc20Caller) Symbol

func (_PErc20 *PErc20Caller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() view returns(string)

func (*PErc20Caller) TotalSupply

func (_PErc20 *PErc20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type PErc20CallerRaw

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

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

func (*PErc20CallerRaw) Call

func (_PErc20 *PErc20CallerRaw) 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 PErc20CallerSession

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

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

func (*PErc20CallerSession) Allowance

func (_PErc20 *PErc20CallerSession) Allowance(o common.Address, s common.Address) (*big.Int, error)

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

Solidity: function allowance(address o, address s) view returns(uint256)

func (*PErc20CallerSession) BalanceOf

func (_PErc20 *PErc20CallerSession) BalanceOf(a common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address a) view returns(uint256)

func (*PErc20CallerSession) Decimals

func (_PErc20 *PErc20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*PErc20CallerSession) Name

func (_PErc20 *PErc20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*PErc20CallerSession) Symbol

func (_PErc20 *PErc20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*PErc20CallerSession) TotalSupply

func (_PErc20 *PErc20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type PErc20Filterer

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

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

func NewPErc20Filterer

func NewPErc20Filterer(address common.Address, filterer bind.ContractFilterer) (*PErc20Filterer, error)

NewPErc20Filterer creates a new log filterer instance of PErc20, bound to a specific deployed contract.

func (*PErc20Filterer) FilterApproval

func (_PErc20 *PErc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PErc20ApprovalIterator, 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 (*PErc20Filterer) FilterTransfer

func (_PErc20 *PErc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*PErc20TransferIterator, 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 (*PErc20Filterer) ParseApproval

func (_PErc20 *PErc20Filterer) ParseApproval(log types.Log) (*PErc20Approval, error)

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

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*PErc20Filterer) ParseTransfer

func (_PErc20 *PErc20Filterer) ParseTransfer(log types.Log) (*PErc20Transfer, error)

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

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*PErc20Filterer) WatchApproval

func (_PErc20 *PErc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PErc20Approval, 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 (*PErc20Filterer) WatchTransfer

func (_PErc20 *PErc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *PErc20Transfer, 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 PErc20Raw

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

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

func (*PErc20Raw) Call

func (_PErc20 *PErc20Raw) 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 (*PErc20Raw) Transact

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

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

func (*PErc20Raw) Transfer

func (_PErc20 *PErc20Raw) 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 PErc20Session

type PErc20Session struct {
	Contract     *PErc20           // 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
}

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

func (*PErc20Session) Allowance

func (_PErc20 *PErc20Session) Allowance(o common.Address, s common.Address) (*big.Int, error)

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

Solidity: function allowance(address o, address s) view returns(uint256)

func (*PErc20Session) Approve

func (_PErc20 *PErc20Session) Approve(s common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address s, uint256 a) returns(bool)

func (*PErc20Session) BalanceOf

func (_PErc20 *PErc20Session) BalanceOf(a common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address a) view returns(uint256)

func (*PErc20Session) Decimals

func (_PErc20 *PErc20Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*PErc20Session) DecreaseAllowance

func (_PErc20 *PErc20Session) DecreaseAllowance(s common.Address, a *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address s, uint256 a) returns(bool)

func (*PErc20Session) IncreaseAllowance

func (_PErc20 *PErc20Session) IncreaseAllowance(s common.Address, a *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address s, uint256 a) returns(bool)

func (*PErc20Session) Name

func (_PErc20 *PErc20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*PErc20Session) Symbol

func (_PErc20 *PErc20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*PErc20Session) TotalSupply

func (_PErc20 *PErc20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*PErc20Session) Transfer

func (_PErc20 *PErc20Session) Transfer(r common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address r, uint256 a) returns(bool)

func (*PErc20Session) TransferFrom

func (_PErc20 *PErc20Session) TransferFrom(s common.Address, r common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address s, address r, uint256 a) returns(bool)

type PErc20Transactor

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

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

func NewPErc20Transactor

func NewPErc20Transactor(address common.Address, transactor bind.ContractTransactor) (*PErc20Transactor, error)

NewPErc20Transactor creates a new write-only instance of PErc20, bound to a specific deployed contract.

func (*PErc20Transactor) Approve

func (_PErc20 *PErc20Transactor) Approve(opts *bind.TransactOpts, s common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address s, uint256 a) returns(bool)

func (*PErc20Transactor) DecreaseAllowance

func (_PErc20 *PErc20Transactor) DecreaseAllowance(opts *bind.TransactOpts, s common.Address, a *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address s, uint256 a) returns(bool)

func (*PErc20Transactor) IncreaseAllowance

func (_PErc20 *PErc20Transactor) IncreaseAllowance(opts *bind.TransactOpts, s common.Address, a *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address s, uint256 a) returns(bool)

func (*PErc20Transactor) Transfer

func (_PErc20 *PErc20Transactor) Transfer(opts *bind.TransactOpts, r common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address r, uint256 a) returns(bool)

func (*PErc20Transactor) TransferFrom

func (_PErc20 *PErc20Transactor) TransferFrom(opts *bind.TransactOpts, s common.Address, r common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address s, address r, uint256 a) returns(bool)

type PErc20TransactorRaw

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

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

func (*PErc20TransactorRaw) Transact

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

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

func (*PErc20TransactorRaw) Transfer

func (_PErc20 *PErc20TransactorRaw) 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 PErc20TransactorSession

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

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

func (*PErc20TransactorSession) Approve

func (_PErc20 *PErc20TransactorSession) Approve(s common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address s, uint256 a) returns(bool)

func (*PErc20TransactorSession) DecreaseAllowance

func (_PErc20 *PErc20TransactorSession) DecreaseAllowance(s common.Address, a *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address s, uint256 a) returns(bool)

func (*PErc20TransactorSession) IncreaseAllowance

func (_PErc20 *PErc20TransactorSession) IncreaseAllowance(s common.Address, a *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address s, uint256 a) returns(bool)

func (*PErc20TransactorSession) Transfer

func (_PErc20 *PErc20TransactorSession) Transfer(r common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address r, uint256 a) returns(bool)

func (*PErc20TransactorSession) TransferFrom

func (_PErc20 *PErc20TransactorSession) TransferFrom(s common.Address, r common.Address, a *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address s, address r, uint256 a) returns(bool)

type PErc20Transfer

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

PErc20Transfer represents a Transfer event raised by the PErc20 contract.

type PErc20TransferIterator

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

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

func (*PErc20TransferIterator) Close

func (it *PErc20TransferIterator) Close() error

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

func (*PErc20TransferIterator) Error

func (it *PErc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PErc20TransferIterator) Next

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

Jump to

Keyboard shortcuts

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