powerc20

package
v0.10.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Powerc20ABI = Powerc20MetaData.ABI

Powerc20ABI is the input ABI used to generate the binding from. Deprecated: Use Powerc20MetaData.ABI instead.

View Source
var Powerc20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"_initialSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"_decimals_\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"_difficulty\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_miningLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_initialLimitPerMint\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_verifier\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSpender\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"challenge\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"difficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLimitPerMint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"limitPerMint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"}],\"name\":\"mine\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"minedNonces\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"miningLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"miningTimes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupplyCap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"uint256ToFr\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"verifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

Powerc20MetaData contains all meta data concerning the Powerc20 contract.

Functions

This section is empty.

Types

type Powerc20

type Powerc20 struct {
	Powerc20Caller     // Read-only binding to the contract
	Powerc20Transactor // Write-only binding to the contract
	Powerc20Filterer   // Log filterer for contract events
}

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

func NewPowerc20

func NewPowerc20(address common.Address, backend bind.ContractBackend) (*Powerc20, error)

NewPowerc20 creates a new instance of Powerc20, bound to a specific deployed contract.

type Powerc20Approval

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

Powerc20Approval represents a Approval event raised by the Powerc20 contract.

type Powerc20ApprovalIterator

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

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

func (*Powerc20ApprovalIterator) Close

func (it *Powerc20ApprovalIterator) Close() error

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

func (*Powerc20ApprovalIterator) Error

func (it *Powerc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Powerc20ApprovalIterator) Next

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

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

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

func NewPowerc20Caller

func NewPowerc20Caller(address common.Address, caller bind.ContractCaller) (*Powerc20Caller, error)

NewPowerc20Caller creates a new read-only instance of Powerc20, bound to a specific deployed contract.

func (*Powerc20Caller) Allowance

func (_Powerc20 *Powerc20Caller) 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) view returns(uint256)

func (*Powerc20Caller) BalanceOf

func (_Powerc20 *Powerc20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*Powerc20Caller) Challenge

func (_Powerc20 *Powerc20Caller) Challenge(opts *bind.CallOpts) (*big.Int, error)

Challenge is a free data retrieval call binding the contract method 0xd2ef7398.

Solidity: function challenge() view returns(uint256)

func (*Powerc20Caller) Decimals

func (_Powerc20 *Powerc20Caller) 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 (*Powerc20Caller) Difficulty

func (_Powerc20 *Powerc20Caller) Difficulty(opts *bind.CallOpts) (*big.Int, error)

Difficulty is a free data retrieval call binding the contract method 0x19cae462.

Solidity: function difficulty() view returns(uint256)

func (*Powerc20Caller) GetLimitPerMint

func (_Powerc20 *Powerc20Caller) GetLimitPerMint(opts *bind.CallOpts) (*big.Int, error)

GetLimitPerMint is a free data retrieval call binding the contract method 0xb32e82c0.

Solidity: function getLimitPerMint() view returns(uint256)

func (*Powerc20Caller) GetRemainingSupply

func (_Powerc20 *Powerc20Caller) GetRemainingSupply(opts *bind.CallOpts) (*big.Int, error)

GetRemainingSupply is a free data retrieval call binding the contract method 0xe4b7fb73.

Solidity: function getRemainingSupply() view returns(uint256)

func (*Powerc20Caller) LimitPerMint

func (_Powerc20 *Powerc20Caller) LimitPerMint(opts *bind.CallOpts) (*big.Int, error)

LimitPerMint is a free data retrieval call binding the contract method 0xe2ce9f51.

Solidity: function limitPerMint() view returns(uint256)

func (*Powerc20Caller) MinedNonces

func (_Powerc20 *Powerc20Caller) MinedNonces(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (bool, error)

MinedNonces is a free data retrieval call binding the contract method 0x342a252a.

Solidity: function minedNonces(address , uint256 ) view returns(bool)

func (*Powerc20Caller) MiningLimit

func (_Powerc20 *Powerc20Caller) MiningLimit(opts *bind.CallOpts) (*big.Int, error)

MiningLimit is a free data retrieval call binding the contract method 0xc2651503.

Solidity: function miningLimit() view returns(uint256)

func (*Powerc20Caller) MiningTimes

func (_Powerc20 *Powerc20Caller) MiningTimes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

MiningTimes is a free data retrieval call binding the contract method 0x2719881e.

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

func (*Powerc20Caller) Name

func (_Powerc20 *Powerc20Caller) 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 (*Powerc20Caller) Symbol

func (_Powerc20 *Powerc20Caller) 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 (*Powerc20Caller) TotalSupply

func (_Powerc20 *Powerc20Caller) 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)

func (*Powerc20Caller) TotalSupplyCap

func (_Powerc20 *Powerc20Caller) TotalSupplyCap(opts *bind.CallOpts) (*big.Int, error)

TotalSupplyCap is a free data retrieval call binding the contract method 0xbb102aea.

Solidity: function totalSupplyCap() view returns(uint256)

func (*Powerc20Caller) Uint256ToFr

func (_Powerc20 *Powerc20Caller) Uint256ToFr(opts *bind.CallOpts, _value *big.Int) ([32]byte, error)

Uint256ToFr is a free data retrieval call binding the contract method 0xbd228486.

Solidity: function uint256ToFr(uint256 _value) pure returns(bytes32)

func (*Powerc20Caller) Verifier

func (_Powerc20 *Powerc20Caller) Verifier(opts *bind.CallOpts) (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

type Powerc20CallerRaw

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

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

func (*Powerc20CallerRaw) Call

func (_Powerc20 *Powerc20CallerRaw) 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 Powerc20CallerSession

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

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

func (*Powerc20CallerSession) Allowance

func (_Powerc20 *Powerc20CallerSession) 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) view returns(uint256)

func (*Powerc20CallerSession) BalanceOf

func (_Powerc20 *Powerc20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*Powerc20CallerSession) Challenge

func (_Powerc20 *Powerc20CallerSession) Challenge() (*big.Int, error)

Challenge is a free data retrieval call binding the contract method 0xd2ef7398.

Solidity: function challenge() view returns(uint256)

func (*Powerc20CallerSession) Decimals

func (_Powerc20 *Powerc20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Powerc20CallerSession) Difficulty

func (_Powerc20 *Powerc20CallerSession) Difficulty() (*big.Int, error)

Difficulty is a free data retrieval call binding the contract method 0x19cae462.

Solidity: function difficulty() view returns(uint256)

func (*Powerc20CallerSession) GetLimitPerMint

func (_Powerc20 *Powerc20CallerSession) GetLimitPerMint() (*big.Int, error)

GetLimitPerMint is a free data retrieval call binding the contract method 0xb32e82c0.

Solidity: function getLimitPerMint() view returns(uint256)

func (*Powerc20CallerSession) GetRemainingSupply

func (_Powerc20 *Powerc20CallerSession) GetRemainingSupply() (*big.Int, error)

GetRemainingSupply is a free data retrieval call binding the contract method 0xe4b7fb73.

Solidity: function getRemainingSupply() view returns(uint256)

func (*Powerc20CallerSession) LimitPerMint

func (_Powerc20 *Powerc20CallerSession) LimitPerMint() (*big.Int, error)

LimitPerMint is a free data retrieval call binding the contract method 0xe2ce9f51.

Solidity: function limitPerMint() view returns(uint256)

func (*Powerc20CallerSession) MinedNonces

func (_Powerc20 *Powerc20CallerSession) MinedNonces(arg0 common.Address, arg1 *big.Int) (bool, error)

MinedNonces is a free data retrieval call binding the contract method 0x342a252a.

Solidity: function minedNonces(address , uint256 ) view returns(bool)

func (*Powerc20CallerSession) MiningLimit

func (_Powerc20 *Powerc20CallerSession) MiningLimit() (*big.Int, error)

MiningLimit is a free data retrieval call binding the contract method 0xc2651503.

Solidity: function miningLimit() view returns(uint256)

func (*Powerc20CallerSession) MiningTimes

func (_Powerc20 *Powerc20CallerSession) MiningTimes(arg0 common.Address) (*big.Int, error)

MiningTimes is a free data retrieval call binding the contract method 0x2719881e.

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

func (*Powerc20CallerSession) Name

func (_Powerc20 *Powerc20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Powerc20CallerSession) Symbol

func (_Powerc20 *Powerc20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Powerc20CallerSession) TotalSupply

func (_Powerc20 *Powerc20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Powerc20CallerSession) TotalSupplyCap

func (_Powerc20 *Powerc20CallerSession) TotalSupplyCap() (*big.Int, error)

TotalSupplyCap is a free data retrieval call binding the contract method 0xbb102aea.

Solidity: function totalSupplyCap() view returns(uint256)

func (*Powerc20CallerSession) Uint256ToFr

func (_Powerc20 *Powerc20CallerSession) Uint256ToFr(_value *big.Int) ([32]byte, error)

Uint256ToFr is a free data retrieval call binding the contract method 0xbd228486.

Solidity: function uint256ToFr(uint256 _value) pure returns(bytes32)

func (*Powerc20CallerSession) Verifier

func (_Powerc20 *Powerc20CallerSession) Verifier() (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

type Powerc20Filterer

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

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

func NewPowerc20Filterer

func NewPowerc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Powerc20Filterer, error)

NewPowerc20Filterer creates a new log filterer instance of Powerc20, bound to a specific deployed contract.

func (*Powerc20Filterer) FilterApproval

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

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

func (_Powerc20 *Powerc20Filterer) ParseApproval(log types.Log) (*Powerc20Approval, error)

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

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

func (*Powerc20Filterer) ParseTransfer

func (_Powerc20 *Powerc20Filterer) ParseTransfer(log types.Log) (*Powerc20Transfer, error)

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

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

func (*Powerc20Filterer) WatchApproval

func (_Powerc20 *Powerc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Powerc20Approval, 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 (*Powerc20Filterer) WatchTransfer

func (_Powerc20 *Powerc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Powerc20Transfer, 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 Powerc20Raw

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

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

func (*Powerc20Raw) Call

func (_Powerc20 *Powerc20Raw) 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 (*Powerc20Raw) Transact

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

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

func (*Powerc20Raw) Transfer

func (_Powerc20 *Powerc20Raw) 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 Powerc20Session

type Powerc20Session struct {
	Contract     *Powerc20         // 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
}

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

func (*Powerc20Session) Allowance

func (_Powerc20 *Powerc20Session) 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) view returns(uint256)

func (*Powerc20Session) Approve

func (_Powerc20 *Powerc20Session) 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 (*Powerc20Session) BalanceOf

func (_Powerc20 *Powerc20Session) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*Powerc20Session) Challenge

func (_Powerc20 *Powerc20Session) Challenge() (*big.Int, error)

Challenge is a free data retrieval call binding the contract method 0xd2ef7398.

Solidity: function challenge() view returns(uint256)

func (*Powerc20Session) Decimals

func (_Powerc20 *Powerc20Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Powerc20Session) Difficulty

func (_Powerc20 *Powerc20Session) Difficulty() (*big.Int, error)

Difficulty is a free data retrieval call binding the contract method 0x19cae462.

Solidity: function difficulty() view returns(uint256)

func (*Powerc20Session) GetLimitPerMint

func (_Powerc20 *Powerc20Session) GetLimitPerMint() (*big.Int, error)

GetLimitPerMint is a free data retrieval call binding the contract method 0xb32e82c0.

Solidity: function getLimitPerMint() view returns(uint256)

func (*Powerc20Session) GetRemainingSupply

func (_Powerc20 *Powerc20Session) GetRemainingSupply() (*big.Int, error)

GetRemainingSupply is a free data retrieval call binding the contract method 0xe4b7fb73.

Solidity: function getRemainingSupply() view returns(uint256)

func (*Powerc20Session) LimitPerMint

func (_Powerc20 *Powerc20Session) LimitPerMint() (*big.Int, error)

LimitPerMint is a free data retrieval call binding the contract method 0xe2ce9f51.

Solidity: function limitPerMint() view returns(uint256)

func (*Powerc20Session) Mine

func (_Powerc20 *Powerc20Session) Mine(nonce *big.Int, sender common.Address, proof []byte) (*types.Transaction, error)

Mine is a paid mutator transaction binding the contract method 0x050ce37a.

Solidity: function mine(uint256 nonce, address sender, bytes proof) returns()

func (*Powerc20Session) MinedNonces

func (_Powerc20 *Powerc20Session) MinedNonces(arg0 common.Address, arg1 *big.Int) (bool, error)

MinedNonces is a free data retrieval call binding the contract method 0x342a252a.

Solidity: function minedNonces(address , uint256 ) view returns(bool)

func (*Powerc20Session) MiningLimit

func (_Powerc20 *Powerc20Session) MiningLimit() (*big.Int, error)

MiningLimit is a free data retrieval call binding the contract method 0xc2651503.

Solidity: function miningLimit() view returns(uint256)

func (*Powerc20Session) MiningTimes

func (_Powerc20 *Powerc20Session) MiningTimes(arg0 common.Address) (*big.Int, error)

MiningTimes is a free data retrieval call binding the contract method 0x2719881e.

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

func (*Powerc20Session) Name

func (_Powerc20 *Powerc20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Powerc20Session) Symbol

func (_Powerc20 *Powerc20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Powerc20Session) TotalSupply

func (_Powerc20 *Powerc20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Powerc20Session) TotalSupplyCap

func (_Powerc20 *Powerc20Session) TotalSupplyCap() (*big.Int, error)

TotalSupplyCap is a free data retrieval call binding the contract method 0xbb102aea.

Solidity: function totalSupplyCap() view returns(uint256)

func (*Powerc20Session) Transfer

func (_Powerc20 *Powerc20Session) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Powerc20Session) TransferFrom

func (_Powerc20 *Powerc20Session) 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 (*Powerc20Session) Uint256ToFr

func (_Powerc20 *Powerc20Session) Uint256ToFr(_value *big.Int) ([32]byte, error)

Uint256ToFr is a free data retrieval call binding the contract method 0xbd228486.

Solidity: function uint256ToFr(uint256 _value) pure returns(bytes32)

func (*Powerc20Session) Verifier

func (_Powerc20 *Powerc20Session) Verifier() (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

type Powerc20Transactor

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

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

func NewPowerc20Transactor

func NewPowerc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Powerc20Transactor, error)

NewPowerc20Transactor creates a new write-only instance of Powerc20, bound to a specific deployed contract.

func (*Powerc20Transactor) Approve

func (_Powerc20 *Powerc20Transactor) 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 (*Powerc20Transactor) Mine

func (_Powerc20 *Powerc20Transactor) Mine(opts *bind.TransactOpts, nonce *big.Int, sender common.Address, proof []byte) (*types.Transaction, error)

Mine is a paid mutator transaction binding the contract method 0x050ce37a.

Solidity: function mine(uint256 nonce, address sender, bytes proof) returns()

func (*Powerc20Transactor) Transfer

func (_Powerc20 *Powerc20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Powerc20Transactor) TransferFrom

func (_Powerc20 *Powerc20Transactor) 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)

type Powerc20TransactorRaw

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

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

func (*Powerc20TransactorRaw) Transact

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

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

func (*Powerc20TransactorRaw) Transfer

func (_Powerc20 *Powerc20TransactorRaw) 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 Powerc20TransactorSession

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

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

func (*Powerc20TransactorSession) Approve

func (_Powerc20 *Powerc20TransactorSession) 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 (*Powerc20TransactorSession) Mine

func (_Powerc20 *Powerc20TransactorSession) Mine(nonce *big.Int, sender common.Address, proof []byte) (*types.Transaction, error)

Mine is a paid mutator transaction binding the contract method 0x050ce37a.

Solidity: function mine(uint256 nonce, address sender, bytes proof) returns()

func (*Powerc20TransactorSession) Transfer

func (_Powerc20 *Powerc20TransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Powerc20TransactorSession) TransferFrom

func (_Powerc20 *Powerc20TransactorSession) 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)

type Powerc20Transfer

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

Powerc20Transfer represents a Transfer event raised by the Powerc20 contract.

type Powerc20TransferIterator

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

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

func (*Powerc20TransferIterator) Close

func (it *Powerc20TransferIterator) Close() error

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

func (*Powerc20TransferIterator) Error

func (it *Powerc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Powerc20TransferIterator) Next

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