Pax

package
v0.0.0-...-b095981 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PAXABI = "" /* 1568-byte string literal not displayed */

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

Variables

View Source
var File_Pax_Pax_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AdminChanged

type AdminChanged struct {
	Ts            *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	PreviousAdmin []byte                 `protobuf:"bytes,2,opt,name=PreviousAdmin,proto3" json:"PreviousAdmin,omitempty"` //	address
	NewAdmin      []byte                 `protobuf:"bytes,3,opt,name=NewAdmin,proto3" json:"NewAdmin,omitempty"`           //	address
	// contains filtered or unexported fields
}

func (*AdminChanged) Descriptor deprecated

func (*AdminChanged) Descriptor() ([]byte, []int)

Deprecated: Use AdminChanged.ProtoReflect.Descriptor instead.

func (*AdminChanged) GetNewAdmin

func (x *AdminChanged) GetNewAdmin() []byte

func (*AdminChanged) GetPreviousAdmin

func (x *AdminChanged) GetPreviousAdmin() []byte

func (*AdminChanged) GetTs

func (x *AdminChanged) GetTs() *timestamppb.Timestamp

func (*AdminChanged) ProtoMessage

func (*AdminChanged) ProtoMessage()

func (*AdminChanged) ProtoReflect

func (x *AdminChanged) ProtoReflect() protoreflect.Message

func (*AdminChanged) Reset

func (x *AdminChanged) Reset()

func (*AdminChanged) String

func (x *AdminChanged) String() string

type PAX

type PAX struct {
	PAXCaller     // Read-only binding to the contract
	PAXTransactor // Write-only binding to the contract
	PAXFilterer   // Log filterer for contract events
}

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

func NewPAX

func NewPAX(address common.Address, backend bind.ContractBackend) (*PAX, error)

NewPAX creates a new instance of PAX, bound to a specific deployed contract.

type PAXAdminChanged

type PAXAdminChanged struct {
	PreviousAdmin common.Address
	NewAdmin      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

PAXAdminChanged represents a AdminChanged event raised by the PAX contract.

type PAXAdminChangedIterator

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

PAXAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the PAX contract.

func (*PAXAdminChangedIterator) Close

func (it *PAXAdminChangedIterator) Close() error

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

func (*PAXAdminChangedIterator) Error

func (it *PAXAdminChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PAXAdminChangedIterator) Next

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

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

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

func NewPAXCaller

func NewPAXCaller(address common.Address, caller bind.ContractCaller) (*PAXCaller, error)

NewPAXCaller creates a new read-only instance of PAX, bound to a specific deployed contract.

func (*PAXCaller) Admin

func (_PAX *PAXCaller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*PAXCaller) Implementation

func (_PAX *PAXCaller) Implementation(opts *bind.CallOpts) (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

type PAXCallerRaw

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

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

func (*PAXCallerRaw) Call

func (_PAX *PAXCallerRaw) 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 PAXCallerSession

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

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

func (*PAXCallerSession) Admin

func (_PAX *PAXCallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*PAXCallerSession) Implementation

func (_PAX *PAXCallerSession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

type PAXFilterer

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

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

func NewPAXFilterer

func NewPAXFilterer(address common.Address, filterer bind.ContractFilterer) (*PAXFilterer, error)

NewPAXFilterer creates a new log filterer instance of PAX, bound to a specific deployed contract.

func (*PAXFilterer) FilterAdminChanged

func (_PAX *PAXFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*PAXAdminChangedIterator, error)

FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*PAXFilterer) FilterUpgraded

func (_PAX *PAXFilterer) FilterUpgraded(opts *bind.FilterOpts) (*PAXUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address implementation)

func (*PAXFilterer) ParseAdminChanged

func (_PAX *PAXFilterer) ParseAdminChanged(log types.Log) (*PAXAdminChanged, error)

ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*PAXFilterer) ParseUpgraded

func (_PAX *PAXFilterer) ParseUpgraded(log types.Log) (*PAXUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address implementation)

func (*PAXFilterer) WatchAdminChanged

func (_PAX *PAXFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *PAXAdminChanged) (event.Subscription, error)

WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*PAXFilterer) WatchUpgraded

func (_PAX *PAXFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *PAXUpgraded) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address implementation)

type PAXRaw

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

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

func (*PAXRaw) Call

func (_PAX *PAXRaw) 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 (*PAXRaw) Transact

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

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

func (*PAXRaw) Transfer

func (_PAX *PAXRaw) 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 PAXSession

type PAXSession struct {
	Contract     *PAX              // 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
}

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

func (*PAXSession) Admin

func (_PAX *PAXSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*PAXSession) ChangeAdmin

func (_PAX *PAXSession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.

Solidity: function changeAdmin(address newAdmin) returns()

func (*PAXSession) Fallback

func (_PAX *PAXSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*PAXSession) Implementation

func (_PAX *PAXSession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*PAXSession) UpgradeTo

func (_PAX *PAXSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*PAXSession) UpgradeToAndCall

func (_PAX *PAXSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type PAXTransactor

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

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

func NewPAXTransactor

func NewPAXTransactor(address common.Address, transactor bind.ContractTransactor) (*PAXTransactor, error)

NewPAXTransactor creates a new write-only instance of PAX, bound to a specific deployed contract.

func (*PAXTransactor) ChangeAdmin

func (_PAX *PAXTransactor) ChangeAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.

Solidity: function changeAdmin(address newAdmin) returns()

func (*PAXTransactor) Fallback

func (_PAX *PAXTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*PAXTransactor) UpgradeTo

func (_PAX *PAXTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*PAXTransactor) UpgradeToAndCall

func (_PAX *PAXTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type PAXTransactorRaw

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

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

func (*PAXTransactorRaw) Transact

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

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

func (*PAXTransactorRaw) Transfer

func (_PAX *PAXTransactorRaw) 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 PAXTransactorSession

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

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

func (*PAXTransactorSession) ChangeAdmin

func (_PAX *PAXTransactorSession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.

Solidity: function changeAdmin(address newAdmin) returns()

func (*PAXTransactorSession) Fallback

func (_PAX *PAXTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*PAXTransactorSession) UpgradeTo

func (_PAX *PAXTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*PAXTransactorSession) UpgradeToAndCall

func (_PAX *PAXTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type PAXUpgraded

type PAXUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

PAXUpgraded represents a Upgraded event raised by the PAX contract.

type PAXUpgradedIterator

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

PAXUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the PAX contract.

func (*PAXUpgradedIterator) Close

func (it *PAXUpgradedIterator) Close() error

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

func (*PAXUpgradedIterator) Error

func (it *PAXUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PAXUpgradedIterator) Next

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

type SmartContract struct{}

func (*SmartContract) Message

func (sc *SmartContract) Message(eventName string, contractAbi *abi.ABI, vLog types.Log, timestamp *timestamppb.Timestamp) protoreflect.ProtoMessage

type Upgraded

type Upgraded struct {
	Ts             *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	Implementation []byte                 `protobuf:"bytes,2,opt,name=Implementation,proto3" json:"Implementation,omitempty"` //	address
	// contains filtered or unexported fields
}

func (*Upgraded) Descriptor deprecated

func (*Upgraded) Descriptor() ([]byte, []int)

Deprecated: Use Upgraded.ProtoReflect.Descriptor instead.

func (*Upgraded) GetImplementation

func (x *Upgraded) GetImplementation() []byte

func (*Upgraded) GetTs

func (x *Upgraded) GetTs() *timestamppb.Timestamp

func (*Upgraded) ProtoMessage

func (*Upgraded) ProtoMessage()

func (*Upgraded) ProtoReflect

func (x *Upgraded) ProtoReflect() protoreflect.Message

func (*Upgraded) Reset

func (x *Upgraded) Reset()

func (*Upgraded) String

func (x *Upgraded) String() string

Jump to

Keyboard shortcuts

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