badge

package
v0.0.0-...-1369677 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BadgeABI = BadgeMetaData.ABI

BadgeABI is the input ABI used to generate the binding from. Deprecated: Use BadgeMetaData.ABI instead.

View Source
var BadgeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_addresses\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"mintBat\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_baseUri\",\"type\":\"string\"}],\"name\":\"setBaseUri\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"upgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"Upgrade\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseUri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINT_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

BadgeMetaData contains all meta data concerning the Badge contract.

Functions

This section is empty.

Types

type Badge

type Badge struct {
	BadgeCaller     // Read-only binding to the contract
	BadgeTransactor // Write-only binding to the contract
	BadgeFilterer   // Log filterer for contract events
}

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

func NewBadge

func NewBadge(address common.Address, backend bind.ContractBackend) (*Badge, error)

NewBadge creates a new instance of Badge, bound to a specific deployed contract.

type BadgeApproval

type BadgeApproval struct {
	Owner    common.Address
	Approved common.Address
	TokenId  *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

BadgeApproval represents a Approval event raised by the Badge contract.

type BadgeApprovalForAll

type BadgeApprovalForAll struct {
	Owner    common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

BadgeApprovalForAll represents a ApprovalForAll event raised by the Badge contract.

type BadgeApprovalForAllIterator

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

BadgeApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the Badge contract.

func (*BadgeApprovalForAllIterator) Close

func (it *BadgeApprovalForAllIterator) Close() error

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

func (*BadgeApprovalForAllIterator) Error

func (it *BadgeApprovalForAllIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BadgeApprovalForAllIterator) Next

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

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

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

func (*BadgeApprovalIterator) Close

func (it *BadgeApprovalIterator) Close() error

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

func (*BadgeApprovalIterator) Error

func (it *BadgeApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BadgeApprovalIterator) Next

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

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

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

func NewBadgeCaller

func NewBadgeCaller(address common.Address, caller bind.ContractCaller) (*BadgeCaller, error)

NewBadgeCaller creates a new read-only instance of Badge, bound to a specific deployed contract.

func (*BadgeCaller) BalanceOf

func (_Badge *BadgeCaller) 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) view returns(uint256)

func (*BadgeCaller) BaseUri

func (_Badge *BadgeCaller) BaseUri(opts *bind.CallOpts) (string, error)

BaseUri is a free data retrieval call binding the contract method 0x9abc8320.

Solidity: function baseUri() view returns(string)

func (*BadgeCaller) DEFAULTADMINROLE

func (_Badge *BadgeCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*BadgeCaller) GetApproved

func (_Badge *BadgeCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*BadgeCaller) GetRoleAdmin

func (_Badge *BadgeCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*BadgeCaller) HasRole

func (_Badge *BadgeCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*BadgeCaller) IsApprovedForAll

func (_Badge *BadgeCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*BadgeCaller) MINTROLE

func (_Badge *BadgeCaller) MINTROLE(opts *bind.CallOpts) ([32]byte, error)

MINTROLE is a free data retrieval call binding the contract method 0xe9a9c850.

Solidity: function MINT_ROLE() view returns(bytes32)

func (*BadgeCaller) Name

func (_Badge *BadgeCaller) 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 (*BadgeCaller) OwnerOf

func (_Badge *BadgeCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*BadgeCaller) SupportsInterface

func (_Badge *BadgeCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*BadgeCaller) Symbol

func (_Badge *BadgeCaller) 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 (*BadgeCaller) TokenByIndex

func (_Badge *BadgeCaller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*BadgeCaller) TokenOfOwnerByIndex

func (_Badge *BadgeCaller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*BadgeCaller) TokenURI

func (_Badge *BadgeCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

func (*BadgeCaller) TotalSupply

func (_Badge *BadgeCaller) 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 BadgeCallerRaw

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

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

func (*BadgeCallerRaw) Call

func (_Badge *BadgeCallerRaw) 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 BadgeCallerSession

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

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

func (*BadgeCallerSession) BalanceOf

func (_Badge *BadgeCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*BadgeCallerSession) BaseUri

func (_Badge *BadgeCallerSession) BaseUri() (string, error)

BaseUri is a free data retrieval call binding the contract method 0x9abc8320.

Solidity: function baseUri() view returns(string)

func (*BadgeCallerSession) DEFAULTADMINROLE

func (_Badge *BadgeCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*BadgeCallerSession) GetApproved

func (_Badge *BadgeCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*BadgeCallerSession) GetRoleAdmin

func (_Badge *BadgeCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*BadgeCallerSession) HasRole

func (_Badge *BadgeCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*BadgeCallerSession) IsApprovedForAll

func (_Badge *BadgeCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*BadgeCallerSession) MINTROLE

func (_Badge *BadgeCallerSession) MINTROLE() ([32]byte, error)

MINTROLE is a free data retrieval call binding the contract method 0xe9a9c850.

Solidity: function MINT_ROLE() view returns(bytes32)

func (*BadgeCallerSession) Name

func (_Badge *BadgeCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*BadgeCallerSession) OwnerOf

func (_Badge *BadgeCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*BadgeCallerSession) SupportsInterface

func (_Badge *BadgeCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*BadgeCallerSession) Symbol

func (_Badge *BadgeCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*BadgeCallerSession) TokenByIndex

func (_Badge *BadgeCallerSession) TokenByIndex(index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*BadgeCallerSession) TokenOfOwnerByIndex

func (_Badge *BadgeCallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*BadgeCallerSession) TokenURI

func (_Badge *BadgeCallerSession) TokenURI(tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

func (*BadgeCallerSession) TotalSupply

func (_Badge *BadgeCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type BadgeFilterer

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

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

func NewBadgeFilterer

func NewBadgeFilterer(address common.Address, filterer bind.ContractFilterer) (*BadgeFilterer, error)

NewBadgeFilterer creates a new log filterer instance of Badge, bound to a specific deployed contract.

func (*BadgeFilterer) FilterApproval

func (_Badge *BadgeFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*BadgeApprovalIterator, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*BadgeFilterer) FilterApprovalForAll

func (_Badge *BadgeFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*BadgeApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*BadgeFilterer) FilterRoleAdminChanged

func (_Badge *BadgeFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*BadgeRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*BadgeFilterer) FilterRoleGranted

func (_Badge *BadgeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BadgeRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*BadgeFilterer) FilterRoleRevoked

func (_Badge *BadgeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BadgeRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*BadgeFilterer) FilterTransfer

func (_Badge *BadgeFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*BadgeTransferIterator, error)

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

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

func (*BadgeFilterer) FilterUpgrade

func (_Badge *BadgeFilterer) FilterUpgrade(opts *bind.FilterOpts) (*BadgeUpgradeIterator, error)

FilterUpgrade is a free log retrieval operation binding the contract event 0x32dbe502947ef95b0ab624f3da1fbd2ee2f15b491022d2cbfd3ca44b2f542c10.

Solidity: event Upgrade(address owner, uint256 tokenId, uint256[] tokenIds)

func (*BadgeFilterer) ParseApproval

func (_Badge *BadgeFilterer) ParseApproval(log types.Log) (*BadgeApproval, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*BadgeFilterer) ParseApprovalForAll

func (_Badge *BadgeFilterer) ParseApprovalForAll(log types.Log) (*BadgeApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*BadgeFilterer) ParseRoleAdminChanged

func (_Badge *BadgeFilterer) ParseRoleAdminChanged(log types.Log) (*BadgeRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*BadgeFilterer) ParseRoleGranted

func (_Badge *BadgeFilterer) ParseRoleGranted(log types.Log) (*BadgeRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*BadgeFilterer) ParseRoleRevoked

func (_Badge *BadgeFilterer) ParseRoleRevoked(log types.Log) (*BadgeRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*BadgeFilterer) ParseTransfer

func (_Badge *BadgeFilterer) ParseTransfer(log types.Log) (*BadgeTransfer, error)

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

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

func (*BadgeFilterer) ParseUpgrade

func (_Badge *BadgeFilterer) ParseUpgrade(log types.Log) (*BadgeUpgrade, error)

ParseUpgrade is a log parse operation binding the contract event 0x32dbe502947ef95b0ab624f3da1fbd2ee2f15b491022d2cbfd3ca44b2f542c10.

Solidity: event Upgrade(address owner, uint256 tokenId, uint256[] tokenIds)

func (*BadgeFilterer) WatchApproval

func (_Badge *BadgeFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BadgeApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*BadgeFilterer) WatchApprovalForAll

func (_Badge *BadgeFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *BadgeApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*BadgeFilterer) WatchRoleAdminChanged

func (_Badge *BadgeFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *BadgeRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*BadgeFilterer) WatchRoleGranted

func (_Badge *BadgeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *BadgeRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*BadgeFilterer) WatchRoleRevoked

func (_Badge *BadgeFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *BadgeRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*BadgeFilterer) WatchTransfer

func (_Badge *BadgeFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *BadgeTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (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 indexed tokenId)

func (*BadgeFilterer) WatchUpgrade

func (_Badge *BadgeFilterer) WatchUpgrade(opts *bind.WatchOpts, sink chan<- *BadgeUpgrade) (event.Subscription, error)

WatchUpgrade is a free log subscription operation binding the contract event 0x32dbe502947ef95b0ab624f3da1fbd2ee2f15b491022d2cbfd3ca44b2f542c10.

Solidity: event Upgrade(address owner, uint256 tokenId, uint256[] tokenIds)

type BadgeRaw

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

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

func (*BadgeRaw) Call

func (_Badge *BadgeRaw) 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 (*BadgeRaw) Transact

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

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

func (*BadgeRaw) Transfer

func (_Badge *BadgeRaw) 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 BadgeRoleAdminChanged

type BadgeRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

BadgeRoleAdminChanged represents a RoleAdminChanged event raised by the Badge contract.

type BadgeRoleAdminChangedIterator

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

BadgeRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Badge contract.

func (*BadgeRoleAdminChangedIterator) Close

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

func (*BadgeRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BadgeRoleAdminChangedIterator) Next

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 BadgeRoleGranted

type BadgeRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BadgeRoleGranted represents a RoleGranted event raised by the Badge contract.

type BadgeRoleGrantedIterator

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

BadgeRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Badge contract.

func (*BadgeRoleGrantedIterator) Close

func (it *BadgeRoleGrantedIterator) Close() error

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

func (*BadgeRoleGrantedIterator) Error

func (it *BadgeRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BadgeRoleGrantedIterator) Next

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

type BadgeRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BadgeRoleRevoked represents a RoleRevoked event raised by the Badge contract.

type BadgeRoleRevokedIterator

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

BadgeRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Badge contract.

func (*BadgeRoleRevokedIterator) Close

func (it *BadgeRoleRevokedIterator) Close() error

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

func (*BadgeRoleRevokedIterator) Error

func (it *BadgeRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BadgeRoleRevokedIterator) Next

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

type BadgeSession struct {
	Contract     *Badge            // 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
}

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

func (*BadgeSession) Approve

func (_Badge *BadgeSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*BadgeSession) BalanceOf

func (_Badge *BadgeSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*BadgeSession) BaseUri

func (_Badge *BadgeSession) BaseUri() (string, error)

BaseUri is a free data retrieval call binding the contract method 0x9abc8320.

Solidity: function baseUri() view returns(string)

func (*BadgeSession) Burn

func (_Badge *BadgeSession) Burn(tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function burn(uint256 tokenId) returns()

func (*BadgeSession) DEFAULTADMINROLE

func (_Badge *BadgeSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*BadgeSession) GetApproved

func (_Badge *BadgeSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*BadgeSession) GetRoleAdmin

func (_Badge *BadgeSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*BadgeSession) GrantRole

func (_Badge *BadgeSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*BadgeSession) HasRole

func (_Badge *BadgeSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*BadgeSession) IsApprovedForAll

func (_Badge *BadgeSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*BadgeSession) MINTROLE

func (_Badge *BadgeSession) MINTROLE() ([32]byte, error)

MINTROLE is a free data retrieval call binding the contract method 0xe9a9c850.

Solidity: function MINT_ROLE() view returns(bytes32)

func (*BadgeSession) Mint

func (_Badge *BadgeSession) Mint(_address common.Address, _tokenId *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _address, uint256 _tokenId) returns()

func (*BadgeSession) MintBat

func (_Badge *BadgeSession) MintBat(_addresses []common.Address, _tokenIds []*big.Int) (*types.Transaction, error)

MintBat is a paid mutator transaction binding the contract method 0x4c7b2aa1.

Solidity: function mintBat(address[] _addresses, uint256[] _tokenIds) returns()

func (*BadgeSession) Name

func (_Badge *BadgeSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*BadgeSession) OnERC721Received

func (_Badge *BadgeSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*BadgeSession) OwnerOf

func (_Badge *BadgeSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*BadgeSession) RenounceRole

func (_Badge *BadgeSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*BadgeSession) RevokeRole

func (_Badge *BadgeSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*BadgeSession) SafeTransferFrom

func (_Badge *BadgeSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*BadgeSession) SafeTransferFrom0

func (_Badge *BadgeSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns()

func (*BadgeSession) SetApprovalForAll

func (_Badge *BadgeSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*BadgeSession) SetBaseUri

func (_Badge *BadgeSession) SetBaseUri(_baseUri string) (*types.Transaction, error)

SetBaseUri is a paid mutator transaction binding the contract method 0xa0bcfc7f.

Solidity: function setBaseUri(string _baseUri) returns()

func (*BadgeSession) SupportsInterface

func (_Badge *BadgeSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*BadgeSession) Symbol

func (_Badge *BadgeSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*BadgeSession) TokenByIndex

func (_Badge *BadgeSession) TokenByIndex(index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*BadgeSession) TokenOfOwnerByIndex

func (_Badge *BadgeSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*BadgeSession) TokenURI

func (_Badge *BadgeSession) TokenURI(tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

func (*BadgeSession) TotalSupply

func (_Badge *BadgeSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*BadgeSession) TransferFrom

func (_Badge *BadgeSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

func (*BadgeSession) Upgrade

func (_Badge *BadgeSession) Upgrade(tokenId *big.Int, tokenIds []*big.Int) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x464e494c.

Solidity: function upgrade(uint256 tokenId, uint256[] tokenIds) returns()

type BadgeTransactor

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

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

func NewBadgeTransactor

func NewBadgeTransactor(address common.Address, transactor bind.ContractTransactor) (*BadgeTransactor, error)

NewBadgeTransactor creates a new write-only instance of Badge, bound to a specific deployed contract.

func (*BadgeTransactor) Approve

func (_Badge *BadgeTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*BadgeTransactor) Burn

func (_Badge *BadgeTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function burn(uint256 tokenId) returns()

func (*BadgeTransactor) GrantRole

func (_Badge *BadgeTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*BadgeTransactor) Mint

func (_Badge *BadgeTransactor) Mint(opts *bind.TransactOpts, _address common.Address, _tokenId *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _address, uint256 _tokenId) returns()

func (*BadgeTransactor) MintBat

func (_Badge *BadgeTransactor) MintBat(opts *bind.TransactOpts, _addresses []common.Address, _tokenIds []*big.Int) (*types.Transaction, error)

MintBat is a paid mutator transaction binding the contract method 0x4c7b2aa1.

Solidity: function mintBat(address[] _addresses, uint256[] _tokenIds) returns()

func (*BadgeTransactor) OnERC721Received

func (_Badge *BadgeTransactor) OnERC721Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*BadgeTransactor) RenounceRole

func (_Badge *BadgeTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*BadgeTransactor) RevokeRole

func (_Badge *BadgeTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*BadgeTransactor) SafeTransferFrom

func (_Badge *BadgeTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*BadgeTransactor) SafeTransferFrom0

func (_Badge *BadgeTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns()

func (*BadgeTransactor) SetApprovalForAll

func (_Badge *BadgeTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*BadgeTransactor) SetBaseUri

func (_Badge *BadgeTransactor) SetBaseUri(opts *bind.TransactOpts, _baseUri string) (*types.Transaction, error)

SetBaseUri is a paid mutator transaction binding the contract method 0xa0bcfc7f.

Solidity: function setBaseUri(string _baseUri) returns()

func (*BadgeTransactor) TransferFrom

func (_Badge *BadgeTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

func (*BadgeTransactor) Upgrade

func (_Badge *BadgeTransactor) Upgrade(opts *bind.TransactOpts, tokenId *big.Int, tokenIds []*big.Int) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x464e494c.

Solidity: function upgrade(uint256 tokenId, uint256[] tokenIds) returns()

type BadgeTransactorRaw

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

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

func (*BadgeTransactorRaw) Transact

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

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

func (*BadgeTransactorRaw) Transfer

func (_Badge *BadgeTransactorRaw) 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 BadgeTransactorSession

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

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

func (*BadgeTransactorSession) Approve

func (_Badge *BadgeTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*BadgeTransactorSession) Burn

func (_Badge *BadgeTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function burn(uint256 tokenId) returns()

func (*BadgeTransactorSession) GrantRole

func (_Badge *BadgeTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*BadgeTransactorSession) Mint

func (_Badge *BadgeTransactorSession) Mint(_address common.Address, _tokenId *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _address, uint256 _tokenId) returns()

func (*BadgeTransactorSession) MintBat

func (_Badge *BadgeTransactorSession) MintBat(_addresses []common.Address, _tokenIds []*big.Int) (*types.Transaction, error)

MintBat is a paid mutator transaction binding the contract method 0x4c7b2aa1.

Solidity: function mintBat(address[] _addresses, uint256[] _tokenIds) returns()

func (*BadgeTransactorSession) OnERC721Received

func (_Badge *BadgeTransactorSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*BadgeTransactorSession) RenounceRole

func (_Badge *BadgeTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*BadgeTransactorSession) RevokeRole

func (_Badge *BadgeTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*BadgeTransactorSession) SafeTransferFrom

func (_Badge *BadgeTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*BadgeTransactorSession) SafeTransferFrom0

func (_Badge *BadgeTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns()

func (*BadgeTransactorSession) SetApprovalForAll

func (_Badge *BadgeTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*BadgeTransactorSession) SetBaseUri

func (_Badge *BadgeTransactorSession) SetBaseUri(_baseUri string) (*types.Transaction, error)

SetBaseUri is a paid mutator transaction binding the contract method 0xa0bcfc7f.

Solidity: function setBaseUri(string _baseUri) returns()

func (*BadgeTransactorSession) TransferFrom

func (_Badge *BadgeTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

func (*BadgeTransactorSession) Upgrade

func (_Badge *BadgeTransactorSession) Upgrade(tokenId *big.Int, tokenIds []*big.Int) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x464e494c.

Solidity: function upgrade(uint256 tokenId, uint256[] tokenIds) returns()

type BadgeTransfer

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

BadgeTransfer represents a Transfer event raised by the Badge contract.

type BadgeTransferIterator

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

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

func (*BadgeTransferIterator) Close

func (it *BadgeTransferIterator) Close() error

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

func (*BadgeTransferIterator) Error

func (it *BadgeTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BadgeTransferIterator) Next

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

type BadgeUpgrade struct {
	Owner    common.Address
	TokenId  *big.Int
	TokenIds []*big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

BadgeUpgrade represents a Upgrade event raised by the Badge contract.

type BadgeUpgradeIterator

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

BadgeUpgradeIterator is returned from FilterUpgrade and is used to iterate over the raw logs and unpacked data for Upgrade events raised by the Badge contract.

func (*BadgeUpgradeIterator) Close

func (it *BadgeUpgradeIterator) Close() error

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

func (*BadgeUpgradeIterator) Error

func (it *BadgeUpgradeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BadgeUpgradeIterator) Next

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