Documentation ¶
Index ¶
- Variables
- type Passport
- type PassportCaller
- func (_Passport *PassportCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Passport *PassportCaller) GetModeratorIdentifier(opts *bind.CallOpts) ([32]byte, error)
- func (_Passport *PassportCaller) GetOwner(opts *bind.CallOpts) (common.Address, error)
- func (_Passport *PassportCaller) GetPassportByAddress(opts *bind.CallOpts, user_wallet common.Address) (TGPassportPassport, error)
- func (_Passport *PassportCaller) GetPassportByNickName(opts *bind.CallOpts, user_name_ string) (TGPassportPassport, error)
- func (_Passport *PassportCaller) GetPassportByTgId(opts *bind.CallOpts, tgId_ int64) (TGPassportPassport, error)
- func (_Passport *PassportCaller) GetPassportFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Passport *PassportCaller) GetPassportWalletByID(opts *bind.CallOpts, tgId_ int64) (common.Address, error)
- func (_Passport *PassportCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_Passport *PassportCaller) GetTgIdByAddress(opts *bind.CallOpts, user_wallet common.Address) (int64, error)
- func (_Passport *PassportCaller) GetTrust(opts *bind.CallOpts, from int64, to int64) (bool, error)
- func (_Passport *PassportCaller) GetWalletByNickName(opts *bind.CallOpts, user_name_ string) (common.Address, error)
- func (_Passport *PassportCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_Passport *PassportCaller) Moderator(opts *bind.CallOpts) ([32]byte, error)
- func (_Passport *PassportCaller) OpinionChanged(opts *bind.CallOpts, arg0 int64, arg1 *big.Int) (int64, error)
- func (_Passport *PassportCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Passport *PassportCaller) Passports(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_Passport *PassportCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_Passport *PassportCaller) TgIdToAddress(opts *bind.CallOpts, arg0 int64) (common.Address, error)
- func (_Passport *PassportCaller) TrustGlobal(opts *bind.CallOpts, arg0 int64, arg1 int64) (bool, error)
- func (_Passport *PassportCaller) UsernameWallets(opts *bind.CallOpts, arg0 string) (common.Address, error)
- type PassportCallerRaw
- type PassportCallerSession
- func (_Passport *PassportCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Passport *PassportCallerSession) GetModeratorIdentifier() ([32]byte, error)
- func (_Passport *PassportCallerSession) GetOwner() (common.Address, error)
- func (_Passport *PassportCallerSession) GetPassportByAddress(user_wallet common.Address) (TGPassportPassport, error)
- func (_Passport *PassportCallerSession) GetPassportByNickName(user_name_ string) (TGPassportPassport, error)
- func (_Passport *PassportCallerSession) GetPassportByTgId(tgId_ int64) (TGPassportPassport, error)
- func (_Passport *PassportCallerSession) GetPassportFee() (*big.Int, error)
- func (_Passport *PassportCallerSession) GetPassportWalletByID(tgId_ int64) (common.Address, error)
- func (_Passport *PassportCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Passport *PassportCallerSession) GetTgIdByAddress(user_wallet common.Address) (int64, error)
- func (_Passport *PassportCallerSession) GetTrust(from int64, to int64) (bool, error)
- func (_Passport *PassportCallerSession) GetWalletByNickName(user_name_ string) (common.Address, error)
- func (_Passport *PassportCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Passport *PassportCallerSession) Moderator() ([32]byte, error)
- func (_Passport *PassportCallerSession) OpinionChanged(arg0 int64, arg1 *big.Int) (int64, error)
- func (_Passport *PassportCallerSession) Owner() (common.Address, error)
- func (_Passport *PassportCallerSession) Passports(arg0 common.Address) (struct{ ... }, error)
- func (_Passport *PassportCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Passport *PassportCallerSession) TgIdToAddress(arg0 int64) (common.Address, error)
- func (_Passport *PassportCallerSession) TrustGlobal(arg0 int64, arg1 int64) (bool, error)
- func (_Passport *PassportCallerSession) UsernameWallets(arg0 string) (common.Address, error)
- type PassportFilterer
- func (_Passport *PassportFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*PassportOwnershipTransferredIterator, error)
- func (_Passport *PassportFilterer) FilterPassportApplied(opts *bind.FilterOpts) (*PassportPassportAppliedIterator, error)
- func (_Passport *PassportFilterer) FilterPassportAppliedIndexed(opts *bind.FilterOpts, applyerTg []int64) (*PassportPassportAppliedIndexedIterator, error)
- func (_Passport *PassportFilterer) FilterPassportApproved(opts *bind.FilterOpts) (*PassportPassportApprovedIterator, error)
- func (_Passport *PassportFilterer) FilterPassportDenied(opts *bind.FilterOpts) (*PassportPassportDeniedIterator, error)
- func (_Passport *PassportFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*PassportRoleAdminChangedIterator, error)
- func (_Passport *PassportFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*PassportRoleGrantedIterator, error)
- func (_Passport *PassportFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*PassportRoleRevokedIterator, error)
- func (_Passport *PassportFilterer) FilterTrustChanged(opts *bind.FilterOpts, to []int64) (*PassportTrustChangedIterator, error)
- func (_Passport *PassportFilterer) ParseOwnershipTransferred(log types.Log) (*PassportOwnershipTransferred, error)
- func (_Passport *PassportFilterer) ParsePassportApplied(log types.Log) (*PassportPassportApplied, error)
- func (_Passport *PassportFilterer) ParsePassportAppliedIndexed(log types.Log) (*PassportPassportAppliedIndexed, error)
- func (_Passport *PassportFilterer) ParsePassportApproved(log types.Log) (*PassportPassportApproved, error)
- func (_Passport *PassportFilterer) ParsePassportDenied(log types.Log) (*PassportPassportDenied, error)
- func (_Passport *PassportFilterer) ParseRoleAdminChanged(log types.Log) (*PassportRoleAdminChanged, error)
- func (_Passport *PassportFilterer) ParseRoleGranted(log types.Log) (*PassportRoleGranted, error)
- func (_Passport *PassportFilterer) ParseRoleRevoked(log types.Log) (*PassportRoleRevoked, error)
- func (_Passport *PassportFilterer) ParseTrustChanged(log types.Log) (*PassportTrustChanged, error)
- func (_Passport *PassportFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PassportOwnershipTransferred, ...) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchPassportApplied(opts *bind.WatchOpts, sink chan<- *PassportPassportApplied) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchPassportAppliedIndexed(opts *bind.WatchOpts, sink chan<- *PassportPassportAppliedIndexed, ...) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchPassportApproved(opts *bind.WatchOpts, sink chan<- *PassportPassportApproved) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchPassportDenied(opts *bind.WatchOpts, sink chan<- *PassportPassportDenied) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *PassportRoleAdminChanged, role [][32]byte, ...) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *PassportRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *PassportRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_Passport *PassportFilterer) WatchTrustChanged(opts *bind.WatchOpts, sink chan<- *PassportTrustChanged, to []int64) (event.Subscription, error)
- type PassportOwnershipTransferred
- type PassportOwnershipTransferredIterator
- type PassportPassportApplied
- type PassportPassportAppliedIndexed
- type PassportPassportAppliedIndexedIterator
- type PassportPassportAppliedIterator
- type PassportPassportApproved
- type PassportPassportApprovedIterator
- type PassportPassportDenied
- type PassportPassportDeniedIterator
- type PassportRaw
- func (_Passport *PassportRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Passport *PassportRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Passport *PassportRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PassportRoleAdminChanged
- type PassportRoleAdminChangedIterator
- type PassportRoleGranted
- type PassportRoleGrantedIterator
- type PassportRoleRevoked
- type PassportRoleRevokedIterator
- type PassportSession
- func (_Passport *PassportSession) ApplyForPassport(applyerTg int64, user_name_ string) (*types.Transaction, error)
- func (_Passport *PassportSession) ApprovePassport(passportToApprove common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Passport *PassportSession) DeclinePassport(passportToDecline common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) DeletePassport(passportToDecline common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) GetModeratorIdentifier() ([32]byte, error)
- func (_Passport *PassportSession) GetOwner() (common.Address, error)
- func (_Passport *PassportSession) GetPassportByAddress(user_wallet common.Address) (TGPassportPassport, error)
- func (_Passport *PassportSession) GetPassportByNickName(user_name_ string) (TGPassportPassport, error)
- func (_Passport *PassportSession) GetPassportByTgId(tgId_ int64) (TGPassportPassport, error)
- func (_Passport *PassportSession) GetPassportFee() (*big.Int, error)
- func (_Passport *PassportSession) GetPassportWalletByID(tgId_ int64) (common.Address, error)
- func (_Passport *PassportSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Passport *PassportSession) GetTgIdByAddress(user_wallet common.Address) (int64, error)
- func (_Passport *PassportSession) GetTrust(from int64, to int64) (bool, error)
- func (_Passport *PassportSession) GetWalletByNickName(user_name_ string) (common.Address, error)
- func (_Passport *PassportSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Passport *PassportSession) Moderator() ([32]byte, error)
- func (_Passport *PassportSession) OpinionChanged(arg0 int64, arg1 *big.Int) (int64, error)
- func (_Passport *PassportSession) Owner() (common.Address, error)
- func (_Passport *PassportSession) Passports(arg0 common.Address) (struct{ ... }, error)
- func (_Passport *PassportSession) RenounceOwnership() (*types.Transaction, error)
- func (_Passport *PassportSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) SetBotAddress(bot_ common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) SetPassportFee(passportFee_ *big.Int) (*types.Transaction, error)
- func (_Passport *PassportSession) SetTrustToID(from int64, to int64, trust bool) (*types.Transaction, error)
- func (_Passport *PassportSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Passport *PassportSession) TgIdToAddress(arg0 int64) (common.Address, error)
- func (_Passport *PassportSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Passport *PassportSession) TrustGlobal(arg0 int64, arg1 int64) (bool, error)
- func (_Passport *PassportSession) UpdateUserName(new_user_name_ string) (*types.Transaction, error)
- func (_Passport *PassportSession) UsernameWallets(arg0 string) (common.Address, error)
- type PassportTransactor
- func (_Passport *PassportTransactor) ApplyForPassport(opts *bind.TransactOpts, applyerTg int64, user_name_ string) (*types.Transaction, error)
- func (_Passport *PassportTransactor) ApprovePassport(opts *bind.TransactOpts, passportToApprove common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) DeclinePassport(opts *bind.TransactOpts, passportToDecline common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) DeletePassport(opts *bind.TransactOpts, passportToDecline common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Passport *PassportTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) SetBotAddress(opts *bind.TransactOpts, bot_ common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) SetPassportFee(opts *bind.TransactOpts, passportFee_ *big.Int) (*types.Transaction, error)
- func (_Passport *PassportTransactor) SetTrustToID(opts *bind.TransactOpts, from int64, to int64, trust bool) (*types.Transaction, error)
- func (_Passport *PassportTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactor) UpdateUserName(opts *bind.TransactOpts, new_user_name_ string) (*types.Transaction, error)
- type PassportTransactorRaw
- type PassportTransactorSession
- func (_Passport *PassportTransactorSession) ApplyForPassport(applyerTg int64, user_name_ string) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) ApprovePassport(passportToApprove common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) DeclinePassport(passportToDecline common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) DeletePassport(passportToDecline common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) SetBotAddress(bot_ common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) SetPassportFee(passportFee_ *big.Int) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) SetTrustToID(from int64, to int64, trust bool) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Passport *PassportTransactorSession) UpdateUserName(new_user_name_ string) (*types.Transaction, error)
- type PassportTrustChanged
- type PassportTrustChangedIterator
- type TGPassportPassport
Constants ¶
This section is empty.
Variables ¶
var PassportABI = PassportMetaData.ABI
PassportABI is the input ABI used to generate the binding from. Deprecated: Use PassportMetaData.ABI instead.
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\":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\"},{\"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\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"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\":\"address\",\"name\":\"bot_\",\"type\":\"address\"}],\"name\":\"SetBotAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[],\"name\":\"getModeratorIdentifier\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"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\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[],\"name\":\"moderator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"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\":\"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\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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 ¶
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) DEFAULTADMINROLE ¶ added in v1.0.0
func (_Passport *PassportCaller) 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 (*PassportCaller) GetModeratorIdentifier ¶ added in v1.0.0
func (_Passport *PassportCaller) GetModeratorIdentifier(opts *bind.CallOpts) ([32]byte, error)
GetModeratorIdentifier is a free data retrieval call binding the contract method 0x5d1ce88f.
Solidity: function getModeratorIdentifier() pure returns(bytes32)
func (*PassportCaller) GetOwner ¶
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 ¶
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) GetRoleAdmin ¶ added in v1.0.0
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
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
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) HasRole ¶ added in v1.0.0
func (_Passport *PassportCaller) 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 (*PassportCaller) Moderator ¶ added in v1.0.0
func (_Passport *PassportCaller) Moderator(opts *bind.CallOpts) ([32]byte, error)
Moderator is a free data retrieval call binding the contract method 0x38743904.
Solidity: function moderator() view returns(bytes32)
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 ¶
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) SupportsInterface ¶ added in v1.0.0
func (_Passport *PassportCaller) 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 (*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) DEFAULTADMINROLE ¶ added in v1.0.0
func (_Passport *PassportCallerSession) 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 (*PassportCallerSession) GetModeratorIdentifier ¶ added in v1.0.0
func (_Passport *PassportCallerSession) GetModeratorIdentifier() ([32]byte, error)
GetModeratorIdentifier is a free data retrieval call binding the contract method 0x5d1ce88f.
Solidity: function getModeratorIdentifier() pure returns(bytes32)
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) GetRoleAdmin ¶ added in v1.0.0
func (_Passport *PassportCallerSession) 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 (*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) HasRole ¶ added in v1.0.0
func (_Passport *PassportCallerSession) 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 (*PassportCallerSession) Moderator ¶ added in v1.0.0
func (_Passport *PassportCallerSession) Moderator() ([32]byte, error)
Moderator is a free data retrieval call binding the contract method 0x38743904.
Solidity: function moderator() view returns(bytes32)
func (*PassportCallerSession) OpinionChanged ¶ added in v0.0.10
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) SupportsInterface ¶ added in v1.0.0
func (_Passport *PassportCallerSession) 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 (*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) FilterRoleAdminChanged ¶ added in v1.0.0
func (_Passport *PassportFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*PassportRoleAdminChangedIterator, 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 (*PassportFilterer) FilterRoleGranted ¶ added in v1.0.0
func (_Passport *PassportFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*PassportRoleGrantedIterator, 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 (*PassportFilterer) FilterRoleRevoked ¶ added in v1.0.0
func (_Passport *PassportFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*PassportRoleRevokedIterator, 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 (*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) ParseRoleAdminChanged ¶ added in v1.0.0
func (_Passport *PassportFilterer) ParseRoleAdminChanged(log types.Log) (*PassportRoleAdminChanged, 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 (*PassportFilterer) ParseRoleGranted ¶ added in v1.0.0
func (_Passport *PassportFilterer) ParseRoleGranted(log types.Log) (*PassportRoleGranted, 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 (*PassportFilterer) ParseRoleRevoked ¶ added in v1.0.0
func (_Passport *PassportFilterer) ParseRoleRevoked(log types.Log) (*PassportRoleRevoked, 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 (*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) WatchRoleAdminChanged ¶ added in v1.0.0
func (_Passport *PassportFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *PassportRoleAdminChanged, 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 (*PassportFilterer) WatchRoleGranted ¶ added in v1.0.0
func (_Passport *PassportFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *PassportRoleGranted, 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 (*PassportFilterer) WatchRoleRevoked ¶ added in v1.0.0
func (_Passport *PassportFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *PassportRoleRevoked, 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 (*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 ¶
func (it *PassportOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportOwnershipTransferredIterator) Error ¶
func (it *PassportOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportOwnershipTransferredIterator) Next ¶
func (it *PassportOwnershipTransferredIterator) 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 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 ¶
func (it *PassportPassportAppliedIndexedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportPassportAppliedIndexedIterator) Error ¶
func (it *PassportPassportAppliedIndexedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportPassportAppliedIndexedIterator) Next ¶
func (it *PassportPassportAppliedIndexedIterator) 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 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 ¶
func (it *PassportPassportAppliedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportPassportAppliedIterator) Error ¶
func (it *PassportPassportAppliedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportPassportAppliedIterator) Next ¶
func (it *PassportPassportAppliedIterator) 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 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 ¶
func (it *PassportPassportApprovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportPassportApprovedIterator) Error ¶
func (it *PassportPassportApprovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportPassportApprovedIterator) Next ¶
func (it *PassportPassportApprovedIterator) 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 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 ¶
func (it *PassportPassportDeniedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportPassportDeniedIterator) Error ¶
func (it *PassportPassportDeniedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportPassportDeniedIterator) Next ¶
func (it *PassportPassportDeniedIterator) 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 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 PassportRoleAdminChanged ¶ added in v1.0.0
type PassportRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
PassportRoleAdminChanged represents a RoleAdminChanged event raised by the Passport contract.
type PassportRoleAdminChangedIterator ¶ added in v1.0.0
type PassportRoleAdminChangedIterator struct { Event *PassportRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PassportRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Passport contract.
func (*PassportRoleAdminChangedIterator) Close ¶ added in v1.0.0
func (it *PassportRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportRoleAdminChangedIterator) Error ¶ added in v1.0.0
func (it *PassportRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportRoleAdminChangedIterator) Next ¶ added in v1.0.0
func (it *PassportRoleAdminChangedIterator) 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 PassportRoleGranted ¶ added in v1.0.0
type PassportRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
PassportRoleGranted represents a RoleGranted event raised by the Passport contract.
type PassportRoleGrantedIterator ¶ added in v1.0.0
type PassportRoleGrantedIterator struct { Event *PassportRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PassportRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Passport contract.
func (*PassportRoleGrantedIterator) Close ¶ added in v1.0.0
func (it *PassportRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportRoleGrantedIterator) Error ¶ added in v1.0.0
func (it *PassportRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportRoleGrantedIterator) Next ¶ added in v1.0.0
func (it *PassportRoleGrantedIterator) 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 PassportRoleRevoked ¶ added in v1.0.0
type PassportRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
PassportRoleRevoked represents a RoleRevoked event raised by the Passport contract.
type PassportRoleRevokedIterator ¶ added in v1.0.0
type PassportRoleRevokedIterator struct { Event *PassportRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PassportRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Passport contract.
func (*PassportRoleRevokedIterator) Close ¶ added in v1.0.0
func (it *PassportRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PassportRoleRevokedIterator) Error ¶ added in v1.0.0
func (it *PassportRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PassportRoleRevokedIterator) Next ¶ added in v1.0.0
func (it *PassportRoleRevokedIterator) 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 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) DEFAULTADMINROLE ¶ added in v1.0.0
func (_Passport *PassportSession) 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 (*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) GetModeratorIdentifier ¶ added in v1.0.0
func (_Passport *PassportSession) GetModeratorIdentifier() ([32]byte, error)
GetModeratorIdentifier is a free data retrieval call binding the contract method 0x5d1ce88f.
Solidity: function getModeratorIdentifier() pure returns(bytes32)
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) GetRoleAdmin ¶ added in v1.0.0
func (_Passport *PassportSession) 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 (*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) GrantRole ¶ added in v1.0.0
func (_Passport *PassportSession) 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 (*PassportSession) HasRole ¶ added in v1.0.0
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*PassportSession) Moderator ¶ added in v1.0.0
func (_Passport *PassportSession) Moderator() ([32]byte, error)
Moderator is a free data retrieval call binding the contract method 0x38743904.
Solidity: function moderator() view returns(bytes32)
func (*PassportSession) OpinionChanged ¶ added in v0.0.10
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) RenounceRole ¶ added in v1.0.0
func (_Passport *PassportSession) 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 (*PassportSession) RevokeRole ¶ added in v1.0.0
func (_Passport *PassportSession) 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 (*PassportSession) SetBotAddress ¶ added in v1.0.0
func (_Passport *PassportSession) SetBotAddress(bot_ common.Address) (*types.Transaction, error)
SetBotAddress is a paid mutator transaction binding the contract method 0x2cd94ba4.
Solidity: function SetBotAddress(address bot_) 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) SupportsInterface ¶ added in v1.0.0
func (_Passport *PassportSession) 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 (*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) GrantRole ¶ added in v1.0.0
func (_Passport *PassportTransactor) 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 (*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) RenounceRole ¶ added in v1.0.0
func (_Passport *PassportTransactor) 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 (*PassportTransactor) RevokeRole ¶ added in v1.0.0
func (_Passport *PassportTransactor) 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 (*PassportTransactor) SetBotAddress ¶ added in v1.0.0
func (_Passport *PassportTransactor) SetBotAddress(opts *bind.TransactOpts, bot_ common.Address) (*types.Transaction, error)
SetBotAddress is a paid mutator transaction binding the contract method 0x2cd94ba4.
Solidity: function SetBotAddress(address bot_) 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) GrantRole ¶ added in v1.0.0
func (_Passport *PassportTransactorSession) 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 (*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) RenounceRole ¶ added in v1.0.0
func (_Passport *PassportTransactorSession) 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 (*PassportTransactorSession) RevokeRole ¶ added in v1.0.0
func (_Passport *PassportTransactorSession) 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 (*PassportTransactorSession) SetBotAddress ¶ added in v1.0.0
func (_Passport *PassportTransactorSession) SetBotAddress(bot_ common.Address) (*types.Transaction, error)
SetBotAddress is a paid mutator transaction binding the contract method 0x2cd94ba4.
Solidity: function SetBotAddress(address bot_) 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
func (it *PassportTrustChangedIterator) 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.