Passport

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PassportABI = PassportMetaData.ABI

PassportABI is the input ABI used to generate the binding from. Deprecated: Use PassportMetaData.ABI instead.

View Source
var PassportMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int64\",\"name\":\"from\",\"type\":\"int64\"},{\"indexed\":true,\"internalType\":\"int64\",\"name\":\"to\",\"type\":\"int64\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"trust\",\"type\":\"bool\"}],\"name\":\"TrustChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int64\",\"name\":\"applyerTg\",\"type\":\"int64\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"wallet_address\",\"type\":\"address\"}],\"name\":\"passportApplied\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"int64\",\"name\":\"applyerTg\",\"type\":\"int64\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"wallet_address\",\"type\":\"address\"}],\"name\":\"passportAppliedIndexed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int64\",\"name\":\"applyerTg\",\"type\":\"int64\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"wallet_address\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"}],\"name\":\"passportApproved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int64\",\"name\":\"applyerTg\",\"type\":\"int64\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"}],\"name\":\"passportDenied\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"applyerTg\",\"type\":\"int64\"},{\"internalType\":\"string\",\"name\":\"user_name_\",\"type\":\"string\"}],\"name\":\"ApplyForPassport\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"passportToApprove\",\"type\":\"address\"}],\"name\":\"ApprovePassport\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"passportToDecline\",\"type\":\"address\"}],\"name\":\"DeclinePassport\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"passportToDecline\",\"type\":\"address\"}],\"name\":\"DeletePassport\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user_wallet\",\"type\":\"address\"}],\"name\":\"GetPassportByAddress\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"userAddress\",\"type\":\"address\"},{\"internalType\":\"int64\",\"name\":\"tgId\",\"type\":\"int64\"},{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"userName\",\"type\":\"string\"}],\"internalType\":\"structTGPassport.Passport\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"user_name_\",\"type\":\"string\"}],\"name\":\"GetPassportByNickName\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"userAddress\",\"type\":\"address\"},{\"internalType\":\"int64\",\"name\":\"tgId\",\"type\":\"int64\"},{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"userName\",\"type\":\"string\"}],\"internalType\":\"structTGPassport.Passport\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"tgId_\",\"type\":\"int64\"}],\"name\":\"GetPassportByTgId\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"userAddress\",\"type\":\"address\"},{\"internalType\":\"int64\",\"name\":\"tgId\",\"type\":\"int64\"},{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"userName\",\"type\":\"string\"}],\"internalType\":\"structTGPassport.Passport\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetPassportFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"tgId_\",\"type\":\"int64\"}],\"name\":\"GetPassportWalletByID\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user_wallet\",\"type\":\"address\"}],\"name\":\"GetTgIdByAddress\",\"outputs\":[{\"internalType\":\"int64\",\"name\":\"tgid\",\"type\":\"int64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"from\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"to\",\"type\":\"int64\"}],\"name\":\"GetTrust\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"user_name_\",\"type\":\"string\"}],\"name\":\"GetWalletByNickName\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"passportFee_\",\"type\":\"uint256\"}],\"name\":\"SetPassportFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"from\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"to\",\"type\":\"int64\"},{\"internalType\":\"bool\",\"name\":\"trust\",\"type\":\"bool\"}],\"name\":\"SetTrustToID\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"new_user_name_\",\"type\":\"string\"}],\"name\":\"UpdateUserName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"\",\"type\":\"int64\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"opinion_changed\",\"outputs\":[{\"internalType\":\"int64\",\"name\":\"\",\"type\":\"int64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"passports\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"userAddress\",\"type\":\"address\"},{\"internalType\":\"int64\",\"name\":\"tgId\",\"type\":\"int64\"},{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"validatorAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"userName\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"\",\"type\":\"int64\"}],\"name\":\"tgIdToAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"\",\"type\":\"int64\"}],\"name\":\"trust_global\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"username_wallets\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

PassportMetaData contains all meta data concerning the Passport contract.

Functions

This section is empty.

Types

type Passport

type Passport struct {
	PassportCaller     // Read-only binding to the contract
	PassportTransactor // Write-only binding to the contract
	PassportFilterer   // Log filterer for contract events
}

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

func NewPassport

func NewPassport(address common.Address, backend bind.ContractBackend) (*Passport, error)

NewPassport creates a new instance of Passport, bound to a specific deployed contract.

type PassportCaller

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

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

func NewPassportCaller

func NewPassportCaller(address common.Address, caller bind.ContractCaller) (*PassportCaller, error)

NewPassportCaller creates a new read-only instance of Passport, bound to a specific deployed contract.

func (*PassportCaller) GetOwner

func (_Passport *PassportCaller) GetOwner(opts *bind.CallOpts) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x0ae50a39.

Solidity: function GetOwner() view returns(address)

func (*PassportCaller) GetPassportByAddress

func (_Passport *PassportCaller) GetPassportByAddress(opts *bind.CallOpts, user_wallet common.Address) (TGPassportPassport, error)

GetPassportByAddress is a free data retrieval call binding the contract method 0x1423ea07.

Solidity: function GetPassportByAddress(address user_wallet) view returns((address,int64,bool,address,string))

func (*PassportCaller) GetPassportByNickName

func (_Passport *PassportCaller) GetPassportByNickName(opts *bind.CallOpts, user_name_ string) (TGPassportPassport, error)

GetPassportByNickName is a free data retrieval call binding the contract method 0xb25047c2.

Solidity: function GetPassportByNickName(string user_name_) view returns((address,int64,bool,address,string))

func (*PassportCaller) GetPassportByTgId added in v0.0.10

func (_Passport *PassportCaller) GetPassportByTgId(opts *bind.CallOpts, tgId_ int64) (TGPassportPassport, error)

GetPassportByTgId is a free data retrieval call binding the contract method 0x65a5637e.

Solidity: function GetPassportByTgId(int64 tgId_) view returns((address,int64,bool,address,string))

func (*PassportCaller) GetPassportFee

func (_Passport *PassportCaller) GetPassportFee(opts *bind.CallOpts) (*big.Int, error)

GetPassportFee is a free data retrieval call binding the contract method 0x48dc1561.

Solidity: function GetPassportFee() view returns(uint256)

func (*PassportCaller) GetPassportWalletByID

func (_Passport *PassportCaller) GetPassportWalletByID(opts *bind.CallOpts, tgId_ int64) (common.Address, error)

GetPassportWalletByID is a free data retrieval call binding the contract method 0x0c2fc6e3.

Solidity: function GetPassportWalletByID(int64 tgId_) view returns(address)

func (*PassportCaller) GetTgIdByAddress added in v0.0.8

func (_Passport *PassportCaller) GetTgIdByAddress(opts *bind.CallOpts, user_wallet common.Address) (int64, error)

GetTgIdByAddress is a free data retrieval call binding the contract method 0x61cabe37.

Solidity: function GetTgIdByAddress(address user_wallet) view returns(int64 tgid)

func (*PassportCaller) GetTrust added in v0.0.10

func (_Passport *PassportCaller) GetTrust(opts *bind.CallOpts, from int64, to int64) (bool, error)

GetTrust is a free data retrieval call binding the contract method 0x4ac054bb.

Solidity: function GetTrust(int64 from, int64 to) view returns(bool)

func (*PassportCaller) GetWalletByNickName

func (_Passport *PassportCaller) GetWalletByNickName(opts *bind.CallOpts, user_name_ string) (common.Address, error)

GetWalletByNickName is a free data retrieval call binding the contract method 0xd2114e18.

Solidity: function GetWalletByNickName(string user_name_) view returns(address)

func (*PassportCaller) OpinionChanged added in v0.0.10

func (_Passport *PassportCaller) OpinionChanged(opts *bind.CallOpts, arg0 int64, arg1 *big.Int) (int64, error)

OpinionChanged is a free data retrieval call binding the contract method 0x6a8ec05e.

Solidity: function opinion_changed(int64 , uint256 ) view returns(int64)

func (*PassportCaller) Owner

func (_Passport *PassportCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PassportCaller) Passports

func (_Passport *PassportCaller) Passports(opts *bind.CallOpts, arg0 common.Address) (struct {
	UserAddress      common.Address
	TgId             int64
	Valid            bool
	ValidatorAddress common.Address
	UserName         string
}, error)

Passports is a free data retrieval call binding the contract method 0xe37c132b.

Solidity: function passports(address ) view returns(address userAddress, int64 tgId, bool valid, address validatorAddress, string userName)

func (*PassportCaller) TgIdToAddress

func (_Passport *PassportCaller) TgIdToAddress(opts *bind.CallOpts, arg0 int64) (common.Address, error)

TgIdToAddress is a free data retrieval call binding the contract method 0x9413c642.

Solidity: function tgIdToAddress(int64 ) view returns(address)

func (*PassportCaller) TrustGlobal added in v0.0.8

func (_Passport *PassportCaller) TrustGlobal(opts *bind.CallOpts, arg0 int64, arg1 int64) (bool, error)

TrustGlobal is a free data retrieval call binding the contract method 0x239f60fa.

Solidity: function trust_global(int64 , int64 ) view returns(bool)

func (*PassportCaller) UsernameWallets

func (_Passport *PassportCaller) UsernameWallets(opts *bind.CallOpts, arg0 string) (common.Address, error)

UsernameWallets is a free data retrieval call binding the contract method 0x59cca93b.

Solidity: function username_wallets(string ) view returns(address)

type PassportCallerRaw

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

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

func (*PassportCallerRaw) Call

func (_Passport *PassportCallerRaw) 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 PassportCallerSession

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

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

func (*PassportCallerSession) GetOwner

func (_Passport *PassportCallerSession) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x0ae50a39.

Solidity: function GetOwner() view returns(address)

func (*PassportCallerSession) GetPassportByAddress

func (_Passport *PassportCallerSession) GetPassportByAddress(user_wallet common.Address) (TGPassportPassport, error)

GetPassportByAddress is a free data retrieval call binding the contract method 0x1423ea07.

Solidity: function GetPassportByAddress(address user_wallet) view returns((address,int64,bool,address,string))

func (*PassportCallerSession) GetPassportByNickName

func (_Passport *PassportCallerSession) GetPassportByNickName(user_name_ string) (TGPassportPassport, error)

GetPassportByNickName is a free data retrieval call binding the contract method 0xb25047c2.

Solidity: function GetPassportByNickName(string user_name_) view returns((address,int64,bool,address,string))

func (*PassportCallerSession) GetPassportByTgId added in v0.0.10

func (_Passport *PassportCallerSession) GetPassportByTgId(tgId_ int64) (TGPassportPassport, error)

GetPassportByTgId is a free data retrieval call binding the contract method 0x65a5637e.

Solidity: function GetPassportByTgId(int64 tgId_) view returns((address,int64,bool,address,string))

func (*PassportCallerSession) GetPassportFee

func (_Passport *PassportCallerSession) GetPassportFee() (*big.Int, error)

GetPassportFee is a free data retrieval call binding the contract method 0x48dc1561.

Solidity: function GetPassportFee() view returns(uint256)

func (*PassportCallerSession) GetPassportWalletByID

func (_Passport *PassportCallerSession) GetPassportWalletByID(tgId_ int64) (common.Address, error)

GetPassportWalletByID is a free data retrieval call binding the contract method 0x0c2fc6e3.

Solidity: function GetPassportWalletByID(int64 tgId_) view returns(address)

func (*PassportCallerSession) GetTgIdByAddress added in v0.0.8

func (_Passport *PassportCallerSession) GetTgIdByAddress(user_wallet common.Address) (int64, error)

GetTgIdByAddress is a free data retrieval call binding the contract method 0x61cabe37.

Solidity: function GetTgIdByAddress(address user_wallet) view returns(int64 tgid)

func (*PassportCallerSession) GetTrust added in v0.0.10

func (_Passport *PassportCallerSession) GetTrust(from int64, to int64) (bool, error)

GetTrust is a free data retrieval call binding the contract method 0x4ac054bb.

Solidity: function GetTrust(int64 from, int64 to) view returns(bool)

func (*PassportCallerSession) GetWalletByNickName

func (_Passport *PassportCallerSession) GetWalletByNickName(user_name_ string) (common.Address, error)

GetWalletByNickName is a free data retrieval call binding the contract method 0xd2114e18.

Solidity: function GetWalletByNickName(string user_name_) view returns(address)

func (*PassportCallerSession) OpinionChanged added in v0.0.10

func (_Passport *PassportCallerSession) OpinionChanged(arg0 int64, arg1 *big.Int) (int64, error)

OpinionChanged is a free data retrieval call binding the contract method 0x6a8ec05e.

Solidity: function opinion_changed(int64 , uint256 ) view returns(int64)

func (*PassportCallerSession) Owner

func (_Passport *PassportCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PassportCallerSession) Passports

func (_Passport *PassportCallerSession) Passports(arg0 common.Address) (struct {
	UserAddress      common.Address
	TgId             int64
	Valid            bool
	ValidatorAddress common.Address
	UserName         string
}, error)

Passports is a free data retrieval call binding the contract method 0xe37c132b.

Solidity: function passports(address ) view returns(address userAddress, int64 tgId, bool valid, address validatorAddress, string userName)

func (*PassportCallerSession) TgIdToAddress

func (_Passport *PassportCallerSession) TgIdToAddress(arg0 int64) (common.Address, error)

TgIdToAddress is a free data retrieval call binding the contract method 0x9413c642.

Solidity: function tgIdToAddress(int64 ) view returns(address)

func (*PassportCallerSession) TrustGlobal added in v0.0.8

func (_Passport *PassportCallerSession) TrustGlobal(arg0 int64, arg1 int64) (bool, error)

TrustGlobal is a free data retrieval call binding the contract method 0x239f60fa.

Solidity: function trust_global(int64 , int64 ) view returns(bool)

func (*PassportCallerSession) UsernameWallets

func (_Passport *PassportCallerSession) UsernameWallets(arg0 string) (common.Address, error)

UsernameWallets is a free data retrieval call binding the contract method 0x59cca93b.

Solidity: function username_wallets(string ) view returns(address)

type PassportFilterer

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

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

func NewPassportFilterer

func NewPassportFilterer(address common.Address, filterer bind.ContractFilterer) (*PassportFilterer, error)

NewPassportFilterer creates a new log filterer instance of Passport, bound to a specific deployed contract.

func (*PassportFilterer) FilterOwnershipTransferred

func (_Passport *PassportFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PassportOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*PassportFilterer) FilterPassportApplied

func (_Passport *PassportFilterer) FilterPassportApplied(opts *bind.FilterOpts) (*PassportPassportAppliedIterator, error)

FilterPassportApplied is a free log retrieval operation binding the contract event 0xcb042d04619e497175f63ce8ec9b9127cb0bf344facc37db4fe8492c2ecfbb9e.

Solidity: event passportApplied(int64 applyerTg, address wallet_address)

func (*PassportFilterer) FilterPassportAppliedIndexed

func (_Passport *PassportFilterer) FilterPassportAppliedIndexed(opts *bind.FilterOpts, applyerTg []int64) (*PassportPassportAppliedIndexedIterator, error)

FilterPassportAppliedIndexed is a free log retrieval operation binding the contract event 0x2d329f0d038ded94203a58e5be2f2f41b14cbbc49cc1f89443696606f104658c.

Solidity: event passportAppliedIndexed(int64 indexed applyerTg, address wallet_address)

func (*PassportFilterer) FilterPassportApproved

func (_Passport *PassportFilterer) FilterPassportApproved(opts *bind.FilterOpts) (*PassportPassportApprovedIterator, error)

FilterPassportApproved is a free log retrieval operation binding the contract event 0xddda54aebd53f1c2d3f35d7107ddd15f71b313a804dda2179cded44927110cd0.

Solidity: event passportApproved(int64 applyerTg, address wallet_address, address issuer)

func (*PassportFilterer) FilterPassportDenied

func (_Passport *PassportFilterer) FilterPassportDenied(opts *bind.FilterOpts) (*PassportPassportDeniedIterator, error)

FilterPassportDenied is a free log retrieval operation binding the contract event 0x0511bec3ed97c7099362d7e7b0ed4fe8afe6f448a0dcf73f258be48dceb302db.

Solidity: event passportDenied(int64 applyerTg, address wallet)

func (*PassportFilterer) FilterTrustChanged added in v0.0.11

func (_Passport *PassportFilterer) FilterTrustChanged(opts *bind.FilterOpts, to []int64) (*PassportTrustChangedIterator, error)

FilterTrustChanged is a free log retrieval operation binding the contract event 0xb3ca43859da7280c9b07097e86cb568999c37fb4232a15e7ffbae5c6921c2bef.

Solidity: event TrustChanged(int64 from, int64 indexed to, bool trust)

func (*PassportFilterer) ParseOwnershipTransferred

func (_Passport *PassportFilterer) ParseOwnershipTransferred(log types.Log) (*PassportOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*PassportFilterer) ParsePassportApplied

func (_Passport *PassportFilterer) ParsePassportApplied(log types.Log) (*PassportPassportApplied, error)

ParsePassportApplied is a log parse operation binding the contract event 0xcb042d04619e497175f63ce8ec9b9127cb0bf344facc37db4fe8492c2ecfbb9e.

Solidity: event passportApplied(int64 applyerTg, address wallet_address)

func (*PassportFilterer) ParsePassportAppliedIndexed

func (_Passport *PassportFilterer) ParsePassportAppliedIndexed(log types.Log) (*PassportPassportAppliedIndexed, error)

ParsePassportAppliedIndexed is a log parse operation binding the contract event 0x2d329f0d038ded94203a58e5be2f2f41b14cbbc49cc1f89443696606f104658c.

Solidity: event passportAppliedIndexed(int64 indexed applyerTg, address wallet_address)

func (*PassportFilterer) ParsePassportApproved

func (_Passport *PassportFilterer) ParsePassportApproved(log types.Log) (*PassportPassportApproved, error)

ParsePassportApproved is a log parse operation binding the contract event 0xddda54aebd53f1c2d3f35d7107ddd15f71b313a804dda2179cded44927110cd0.

Solidity: event passportApproved(int64 applyerTg, address wallet_address, address issuer)

func (*PassportFilterer) ParsePassportDenied

func (_Passport *PassportFilterer) ParsePassportDenied(log types.Log) (*PassportPassportDenied, error)

ParsePassportDenied is a log parse operation binding the contract event 0x0511bec3ed97c7099362d7e7b0ed4fe8afe6f448a0dcf73f258be48dceb302db.

Solidity: event passportDenied(int64 applyerTg, address wallet)

func (*PassportFilterer) ParseTrustChanged added in v0.0.11

func (_Passport *PassportFilterer) ParseTrustChanged(log types.Log) (*PassportTrustChanged, error)

ParseTrustChanged is a log parse operation binding the contract event 0xb3ca43859da7280c9b07097e86cb568999c37fb4232a15e7ffbae5c6921c2bef.

Solidity: event TrustChanged(int64 from, int64 indexed to, bool trust)

func (*PassportFilterer) WatchOwnershipTransferred

func (_Passport *PassportFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PassportOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*PassportFilterer) WatchPassportApplied

func (_Passport *PassportFilterer) WatchPassportApplied(opts *bind.WatchOpts, sink chan<- *PassportPassportApplied) (event.Subscription, error)

WatchPassportApplied is a free log subscription operation binding the contract event 0xcb042d04619e497175f63ce8ec9b9127cb0bf344facc37db4fe8492c2ecfbb9e.

Solidity: event passportApplied(int64 applyerTg, address wallet_address)

func (*PassportFilterer) WatchPassportAppliedIndexed

func (_Passport *PassportFilterer) WatchPassportAppliedIndexed(opts *bind.WatchOpts, sink chan<- *PassportPassportAppliedIndexed, applyerTg []int64) (event.Subscription, error)

WatchPassportAppliedIndexed is a free log subscription operation binding the contract event 0x2d329f0d038ded94203a58e5be2f2f41b14cbbc49cc1f89443696606f104658c.

Solidity: event passportAppliedIndexed(int64 indexed applyerTg, address wallet_address)

func (*PassportFilterer) WatchPassportApproved

func (_Passport *PassportFilterer) WatchPassportApproved(opts *bind.WatchOpts, sink chan<- *PassportPassportApproved) (event.Subscription, error)

WatchPassportApproved is a free log subscription operation binding the contract event 0xddda54aebd53f1c2d3f35d7107ddd15f71b313a804dda2179cded44927110cd0.

Solidity: event passportApproved(int64 applyerTg, address wallet_address, address issuer)

func (*PassportFilterer) WatchPassportDenied

func (_Passport *PassportFilterer) WatchPassportDenied(opts *bind.WatchOpts, sink chan<- *PassportPassportDenied) (event.Subscription, error)

WatchPassportDenied is a free log subscription operation binding the contract event 0x0511bec3ed97c7099362d7e7b0ed4fe8afe6f448a0dcf73f258be48dceb302db.

Solidity: event passportDenied(int64 applyerTg, address wallet)

func (*PassportFilterer) WatchTrustChanged added in v0.0.11

func (_Passport *PassportFilterer) WatchTrustChanged(opts *bind.WatchOpts, sink chan<- *PassportTrustChanged, to []int64) (event.Subscription, error)

WatchTrustChanged is a free log subscription operation binding the contract event 0xb3ca43859da7280c9b07097e86cb568999c37fb4232a15e7ffbae5c6921c2bef.

Solidity: event TrustChanged(int64 from, int64 indexed to, bool trust)

type PassportOwnershipTransferred

type PassportOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

PassportOwnershipTransferred represents a OwnershipTransferred event raised by the Passport contract.

type PassportOwnershipTransferredIterator

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

PassportOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Passport contract.

func (*PassportOwnershipTransferredIterator) Close

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

func (*PassportOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PassportOwnershipTransferredIterator) 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 PassportPassportApplied

type PassportPassportApplied struct {
	ApplyerTg     int64
	WalletAddress common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

PassportPassportApplied represents a PassportApplied event raised by the Passport contract.

type PassportPassportAppliedIndexed

type PassportPassportAppliedIndexed struct {
	ApplyerTg     int64
	WalletAddress common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

PassportPassportAppliedIndexed represents a PassportAppliedIndexed event raised by the Passport contract.

type PassportPassportAppliedIndexedIterator

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

PassportPassportAppliedIndexedIterator is returned from FilterPassportAppliedIndexed and is used to iterate over the raw logs and unpacked data for PassportAppliedIndexed events raised by the Passport contract.

func (*PassportPassportAppliedIndexedIterator) Close

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

func (*PassportPassportAppliedIndexedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PassportPassportAppliedIndexedIterator) 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 PassportPassportAppliedIterator

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

PassportPassportAppliedIterator is returned from FilterPassportApplied and is used to iterate over the raw logs and unpacked data for PassportApplied events raised by the Passport contract.

func (*PassportPassportAppliedIterator) Close

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

func (*PassportPassportAppliedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PassportPassportAppliedIterator) 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 PassportPassportApproved

type PassportPassportApproved struct {
	ApplyerTg     int64
	WalletAddress common.Address
	Issuer        common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

PassportPassportApproved represents a PassportApproved event raised by the Passport contract.

type PassportPassportApprovedIterator

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

PassportPassportApprovedIterator is returned from FilterPassportApproved and is used to iterate over the raw logs and unpacked data for PassportApproved events raised by the Passport contract.

func (*PassportPassportApprovedIterator) Close

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

func (*PassportPassportApprovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PassportPassportApprovedIterator) 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 PassportPassportDenied

type PassportPassportDenied struct {
	ApplyerTg int64
	Wallet    common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

PassportPassportDenied represents a PassportDenied event raised by the Passport contract.

type PassportPassportDeniedIterator

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

PassportPassportDeniedIterator is returned from FilterPassportDenied and is used to iterate over the raw logs and unpacked data for PassportDenied events raised by the Passport contract.

func (*PassportPassportDeniedIterator) Close

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

func (*PassportPassportDeniedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PassportPassportDeniedIterator) 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 PassportRaw

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

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

func (*PassportRaw) Call

func (_Passport *PassportRaw) 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 (*PassportRaw) Transact

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

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

func (*PassportRaw) Transfer

func (_Passport *PassportRaw) 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 PassportSession

type PassportSession struct {
	Contract     *Passport         // 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
}

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

func (*PassportSession) ApplyForPassport

func (_Passport *PassportSession) ApplyForPassport(applyerTg int64, user_name_ string) (*types.Transaction, error)

ApplyForPassport is a paid mutator transaction binding the contract method 0xd5998aeb.

Solidity: function ApplyForPassport(int64 applyerTg, string user_name_) payable returns()

func (*PassportSession) ApprovePassport

func (_Passport *PassportSession) ApprovePassport(passportToApprove common.Address) (*types.Transaction, error)

ApprovePassport is a paid mutator transaction binding the contract method 0x1755e9e6.

Solidity: function ApprovePassport(address passportToApprove) returns()

func (*PassportSession) DeclinePassport

func (_Passport *PassportSession) DeclinePassport(passportToDecline common.Address) (*types.Transaction, error)

DeclinePassport is a paid mutator transaction binding the contract method 0x9421da61.

Solidity: function DeclinePassport(address passportToDecline) returns()

func (*PassportSession) DeletePassport

func (_Passport *PassportSession) DeletePassport(passportToDecline common.Address) (*types.Transaction, error)

DeletePassport is a paid mutator transaction binding the contract method 0x65104afc.

Solidity: function DeletePassport(address passportToDecline) returns()

func (*PassportSession) GetOwner

func (_Passport *PassportSession) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x0ae50a39.

Solidity: function GetOwner() view returns(address)

func (*PassportSession) GetPassportByAddress

func (_Passport *PassportSession) GetPassportByAddress(user_wallet common.Address) (TGPassportPassport, error)

GetPassportByAddress is a free data retrieval call binding the contract method 0x1423ea07.

Solidity: function GetPassportByAddress(address user_wallet) view returns((address,int64,bool,address,string))

func (*PassportSession) GetPassportByNickName

func (_Passport *PassportSession) GetPassportByNickName(user_name_ string) (TGPassportPassport, error)

GetPassportByNickName is a free data retrieval call binding the contract method 0xb25047c2.

Solidity: function GetPassportByNickName(string user_name_) view returns((address,int64,bool,address,string))

func (*PassportSession) GetPassportByTgId added in v0.0.10

func (_Passport *PassportSession) GetPassportByTgId(tgId_ int64) (TGPassportPassport, error)

GetPassportByTgId is a free data retrieval call binding the contract method 0x65a5637e.

Solidity: function GetPassportByTgId(int64 tgId_) view returns((address,int64,bool,address,string))

func (*PassportSession) GetPassportFee

func (_Passport *PassportSession) GetPassportFee() (*big.Int, error)

GetPassportFee is a free data retrieval call binding the contract method 0x48dc1561.

Solidity: function GetPassportFee() view returns(uint256)

func (*PassportSession) GetPassportWalletByID

func (_Passport *PassportSession) GetPassportWalletByID(tgId_ int64) (common.Address, error)

GetPassportWalletByID is a free data retrieval call binding the contract method 0x0c2fc6e3.

Solidity: function GetPassportWalletByID(int64 tgId_) view returns(address)

func (*PassportSession) GetTgIdByAddress added in v0.0.8

func (_Passport *PassportSession) GetTgIdByAddress(user_wallet common.Address) (int64, error)

GetTgIdByAddress is a free data retrieval call binding the contract method 0x61cabe37.

Solidity: function GetTgIdByAddress(address user_wallet) view returns(int64 tgid)

func (*PassportSession) GetTrust added in v0.0.10

func (_Passport *PassportSession) GetTrust(from int64, to int64) (bool, error)

GetTrust is a free data retrieval call binding the contract method 0x4ac054bb.

Solidity: function GetTrust(int64 from, int64 to) view returns(bool)

func (*PassportSession) GetWalletByNickName

func (_Passport *PassportSession) GetWalletByNickName(user_name_ string) (common.Address, error)

GetWalletByNickName is a free data retrieval call binding the contract method 0xd2114e18.

Solidity: function GetWalletByNickName(string user_name_) view returns(address)

func (*PassportSession) OpinionChanged added in v0.0.10

func (_Passport *PassportSession) OpinionChanged(arg0 int64, arg1 *big.Int) (int64, error)

OpinionChanged is a free data retrieval call binding the contract method 0x6a8ec05e.

Solidity: function opinion_changed(int64 , uint256 ) view returns(int64)

func (*PassportSession) Owner

func (_Passport *PassportSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PassportSession) Passports

func (_Passport *PassportSession) Passports(arg0 common.Address) (struct {
	UserAddress      common.Address
	TgId             int64
	Valid            bool
	ValidatorAddress common.Address
	UserName         string
}, error)

Passports is a free data retrieval call binding the contract method 0xe37c132b.

Solidity: function passports(address ) view returns(address userAddress, int64 tgId, bool valid, address validatorAddress, string userName)

func (*PassportSession) RenounceOwnership

func (_Passport *PassportSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*PassportSession) SetPassportFee

func (_Passport *PassportSession) SetPassportFee(passportFee_ *big.Int) (*types.Transaction, error)

SetPassportFee is a paid mutator transaction binding the contract method 0xd2125bd2.

Solidity: function SetPassportFee(uint256 passportFee_) returns()

func (*PassportSession) SetTrustToID added in v0.0.11

func (_Passport *PassportSession) SetTrustToID(from int64, to int64, trust bool) (*types.Transaction, error)

SetTrustToID is a paid mutator transaction binding the contract method 0xb910c898.

Solidity: function SetTrustToID(int64 from, int64 to, bool trust) returns()

func (*PassportSession) TgIdToAddress

func (_Passport *PassportSession) TgIdToAddress(arg0 int64) (common.Address, error)

TgIdToAddress is a free data retrieval call binding the contract method 0x9413c642.

Solidity: function tgIdToAddress(int64 ) view returns(address)

func (*PassportSession) TransferOwnership

func (_Passport *PassportSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*PassportSession) TrustGlobal added in v0.0.8

func (_Passport *PassportSession) TrustGlobal(arg0 int64, arg1 int64) (bool, error)

TrustGlobal is a free data retrieval call binding the contract method 0x239f60fa.

Solidity: function trust_global(int64 , int64 ) view returns(bool)

func (*PassportSession) UpdateUserName

func (_Passport *PassportSession) UpdateUserName(new_user_name_ string) (*types.Transaction, error)

UpdateUserName is a paid mutator transaction binding the contract method 0x21e6531d.

Solidity: function UpdateUserName(string new_user_name_) returns()

func (*PassportSession) UsernameWallets

func (_Passport *PassportSession) UsernameWallets(arg0 string) (common.Address, error)

UsernameWallets is a free data retrieval call binding the contract method 0x59cca93b.

Solidity: function username_wallets(string ) view returns(address)

type PassportTransactor

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

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

func NewPassportTransactor

func NewPassportTransactor(address common.Address, transactor bind.ContractTransactor) (*PassportTransactor, error)

NewPassportTransactor creates a new write-only instance of Passport, bound to a specific deployed contract.

func (*PassportTransactor) ApplyForPassport

func (_Passport *PassportTransactor) ApplyForPassport(opts *bind.TransactOpts, applyerTg int64, user_name_ string) (*types.Transaction, error)

ApplyForPassport is a paid mutator transaction binding the contract method 0xd5998aeb.

Solidity: function ApplyForPassport(int64 applyerTg, string user_name_) payable returns()

func (*PassportTransactor) ApprovePassport

func (_Passport *PassportTransactor) ApprovePassport(opts *bind.TransactOpts, passportToApprove common.Address) (*types.Transaction, error)

ApprovePassport is a paid mutator transaction binding the contract method 0x1755e9e6.

Solidity: function ApprovePassport(address passportToApprove) returns()

func (*PassportTransactor) DeclinePassport

func (_Passport *PassportTransactor) DeclinePassport(opts *bind.TransactOpts, passportToDecline common.Address) (*types.Transaction, error)

DeclinePassport is a paid mutator transaction binding the contract method 0x9421da61.

Solidity: function DeclinePassport(address passportToDecline) returns()

func (*PassportTransactor) DeletePassport

func (_Passport *PassportTransactor) DeletePassport(opts *bind.TransactOpts, passportToDecline common.Address) (*types.Transaction, error)

DeletePassport is a paid mutator transaction binding the contract method 0x65104afc.

Solidity: function DeletePassport(address passportToDecline) returns()

func (*PassportTransactor) RenounceOwnership

func (_Passport *PassportTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*PassportTransactor) SetPassportFee

func (_Passport *PassportTransactor) SetPassportFee(opts *bind.TransactOpts, passportFee_ *big.Int) (*types.Transaction, error)

SetPassportFee is a paid mutator transaction binding the contract method 0xd2125bd2.

Solidity: function SetPassportFee(uint256 passportFee_) returns()

func (*PassportTransactor) SetTrustToID added in v0.0.11

func (_Passport *PassportTransactor) SetTrustToID(opts *bind.TransactOpts, from int64, to int64, trust bool) (*types.Transaction, error)

SetTrustToID is a paid mutator transaction binding the contract method 0xb910c898.

Solidity: function SetTrustToID(int64 from, int64 to, bool trust) returns()

func (*PassportTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(address newOwner) returns()

func (*PassportTransactor) UpdateUserName

func (_Passport *PassportTransactor) UpdateUserName(opts *bind.TransactOpts, new_user_name_ string) (*types.Transaction, error)

UpdateUserName is a paid mutator transaction binding the contract method 0x21e6531d.

Solidity: function UpdateUserName(string new_user_name_) returns()

type PassportTransactorRaw

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

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

func (*PassportTransactorRaw) Transact

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

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

func (*PassportTransactorRaw) Transfer

func (_Passport *PassportTransactorRaw) 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 PassportTransactorSession

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

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

func (*PassportTransactorSession) ApplyForPassport

func (_Passport *PassportTransactorSession) ApplyForPassport(applyerTg int64, user_name_ string) (*types.Transaction, error)

ApplyForPassport is a paid mutator transaction binding the contract method 0xd5998aeb.

Solidity: function ApplyForPassport(int64 applyerTg, string user_name_) payable returns()

func (*PassportTransactorSession) ApprovePassport

func (_Passport *PassportTransactorSession) ApprovePassport(passportToApprove common.Address) (*types.Transaction, error)

ApprovePassport is a paid mutator transaction binding the contract method 0x1755e9e6.

Solidity: function ApprovePassport(address passportToApprove) returns()

func (*PassportTransactorSession) DeclinePassport

func (_Passport *PassportTransactorSession) DeclinePassport(passportToDecline common.Address) (*types.Transaction, error)

DeclinePassport is a paid mutator transaction binding the contract method 0x9421da61.

Solidity: function DeclinePassport(address passportToDecline) returns()

func (*PassportTransactorSession) DeletePassport

func (_Passport *PassportTransactorSession) DeletePassport(passportToDecline common.Address) (*types.Transaction, error)

DeletePassport is a paid mutator transaction binding the contract method 0x65104afc.

Solidity: function DeletePassport(address passportToDecline) returns()

func (*PassportTransactorSession) RenounceOwnership

func (_Passport *PassportTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*PassportTransactorSession) SetPassportFee

func (_Passport *PassportTransactorSession) SetPassportFee(passportFee_ *big.Int) (*types.Transaction, error)

SetPassportFee is a paid mutator transaction binding the contract method 0xd2125bd2.

Solidity: function SetPassportFee(uint256 passportFee_) returns()

func (*PassportTransactorSession) SetTrustToID added in v0.0.11

func (_Passport *PassportTransactorSession) SetTrustToID(from int64, to int64, trust bool) (*types.Transaction, error)

SetTrustToID is a paid mutator transaction binding the contract method 0xb910c898.

Solidity: function SetTrustToID(int64 from, int64 to, bool trust) returns()

func (*PassportTransactorSession) TransferOwnership

func (_Passport *PassportTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*PassportTransactorSession) UpdateUserName

func (_Passport *PassportTransactorSession) UpdateUserName(new_user_name_ string) (*types.Transaction, error)

UpdateUserName is a paid mutator transaction binding the contract method 0x21e6531d.

Solidity: function UpdateUserName(string new_user_name_) returns()

type PassportTrustChanged added in v0.0.11

type PassportTrustChanged struct {
	From  int64
	To    int64
	Trust bool
	Raw   types.Log // Blockchain specific contextual infos
}

PassportTrustChanged represents a TrustChanged event raised by the Passport contract.

type PassportTrustChangedIterator added in v0.0.11

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

PassportTrustChangedIterator is returned from FilterTrustChanged and is used to iterate over the raw logs and unpacked data for TrustChanged events raised by the Passport contract.

func (*PassportTrustChangedIterator) Close added in v0.0.11

func (it *PassportTrustChangedIterator) Close() error

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

func (*PassportTrustChangedIterator) Error added in v0.0.11

func (it *PassportTrustChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PassportTrustChangedIterator) Next added in v0.0.11

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 TGPassportPassport

type TGPassportPassport struct {
	UserAddress      common.Address
	TgId             int64
	Valid            bool
	ValidatorAddress common.Address
	UserName         string
}

TGPassportPassport is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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