Documentation
¶
Index ¶
- Constants
- Variables
- type C
- func (c *C) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract
- func (c *C) PackEmitMulti() []byte
- func (c *C) PackEmitOne() []byte
- func (c *C) TryPackEmitMulti() ([]byte, error)
- func (c *C) TryPackEmitOne() ([]byte, error)
- func (c *C) UnpackBasic1Event(log *types.Log) (*CBasic1, error)
- func (c *C) UnpackBasic2Event(log *types.Log) (*CBasic2, error)
- type CBasic1
- type CBasic2
Constants ¶
const CBasic1EventName = "basic1"
const CBasic2EventName = "basic2"
Variables ¶
var CMetaData = bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"name\":\"basic1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"flag\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"name\":\"basic2\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"EmitMulti\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"EmitOne\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
ID: "55ef3c19a0ab1c1845f9e347540c1e51f5",
Bin: "0x6080604052348015600e575f5ffd5b506101a08061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063cb49374914610038578063e8e49a7114610042575b5f5ffd5b61004061004c565b005b61004a6100fd565b005b60017f8f17dc823e2f9fcdf730b8182c935574691e811e7d46399fe0ff0087795cd207600260405161007e9190610151565b60405180910390a260037f8f17dc823e2f9fcdf730b8182c935574691e811e7d46399fe0ff0087795cd20760046040516100b89190610151565b60405180910390a25f15157f3b29b9f6d15ba80d866afb3d70b7548ab1ffda3ef6e65f35f1cb05b0e2b29f4e60016040516100f39190610151565b60405180910390a2565b60017f8f17dc823e2f9fcdf730b8182c935574691e811e7d46399fe0ff0087795cd207600260405161012f9190610151565b60405180910390a2565b5f819050919050565b61014b81610139565b82525050565b5f6020820190506101645f830184610142565b9291505056fea26469706673582212207331c79de16a73a1639c4c4b3489ea78a3ed35fe62a178824f586df12672ac0564736f6c634300081c0033",
}
CMetaData contains all meta data concerning the C contract.
Functions ¶
This section is empty.
Types ¶
type C ¶
type C struct {
// contains filtered or unexported fields
}
C is an auto generated Go binding around an Ethereum contract.
func (*C) Instance ¶
Instance creates a wrapper for a deployed contract instance at the given address. Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
func (*C) PackEmitMulti ¶
PackEmitMulti is the Go binding used to pack the parameters required for calling the contract method with ID 0xcb493749. This method will panic if any invalid/nil inputs are passed.
Solidity: function EmitMulti() returns()
func (*C) PackEmitOne ¶
PackEmitOne is the Go binding used to pack the parameters required for calling the contract method with ID 0xe8e49a71. This method will panic if any invalid/nil inputs are passed.
Solidity: function EmitOne() returns()
func (*C) TryPackEmitMulti ¶ added in v1.16.1
TryPackEmitMulti is the Go binding used to pack the parameters required for calling the contract method with ID 0xcb493749. This method will return an error if any inputs are invalid/nil.
Solidity: function EmitMulti() returns()
func (*C) TryPackEmitOne ¶ added in v1.16.1
TryPackEmitOne is the Go binding used to pack the parameters required for calling the contract method with ID 0xe8e49a71. This method will return an error if any inputs are invalid/nil.
Solidity: function EmitOne() returns()
func (*C) UnpackBasic1Event ¶
UnpackBasic1Event is the Go binding that unpacks the event data emitted by contract.
Solidity: event basic1(uint256 indexed id, uint256 data)
type CBasic1 ¶
type CBasic1 struct { Id *big.Int Data *big.Int Raw *types.Log // Blockchain specific contextual infos }
CBasic1 represents a basic1 event raised by the C contract.
func (CBasic1) ContractEventName ¶
ContractEventName returns the user-defined event name.