smartContractResult

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 12 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSmartContractResult        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSmartContractResult          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSmartContractResult = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type SmartContractResult

type SmartContractResult struct {
	Nonce          uint64                                                 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"nonce"`
	Value          *math_big.Int                                          `` /* 135-byte string literal not displayed */
	RcvAddr        []byte                                                 `protobuf:"bytes,3,opt,name=RcvAddr,proto3" json:"receiver"`
	SndAddr        []byte                                                 `protobuf:"bytes,4,opt,name=SndAddr,proto3" json:"sender"`
	RelayerAddr    []byte                                                 `protobuf:"bytes,5,opt,name=RelayerAddr,proto3" json:"relayer"`
	RelayedValue   *math_big.Int                                          `` /* 149-byte string literal not displayed */
	Code           []byte                                                 `protobuf:"bytes,7,opt,name=Code,proto3" json:"code,omitempty"`
	Data           []byte                                                 `protobuf:"bytes,8,opt,name=Data,proto3" json:"data,omitempty"`
	PrevTxHash     []byte                                                 `protobuf:"bytes,9,opt,name=PrevTxHash,proto3" json:"prevTxHash"`
	OriginalTxHash []byte                                                 `protobuf:"bytes,10,opt,name=OriginalTxHash,proto3" json:"originalTxHash"`
	GasLimit       uint64                                                 `protobuf:"varint,11,opt,name=GasLimit,proto3" json:"gasLimit"`
	GasPrice       uint64                                                 `protobuf:"varint,12,opt,name=GasPrice,proto3" json:"gasPrice"`
	CallType       github_com_kalyan3104_k_chain_core_go_data_vm.CallType `protobuf:"varint,13,opt,name=CallType,proto3,casttype=github.com/kalyan3104/k-chain-core-go/data/vm.CallType" json:"callType"`
	CodeMetadata   []byte                                                 `protobuf:"bytes,14,opt,name=CodeMetadata,proto3" json:"codeMetadata,omitempty"`
	ReturnMessage  []byte                                                 `protobuf:"bytes,15,opt,name=ReturnMessage,proto3" json:"returnMessage,omitempty"`
	OriginalSender []byte                                                 `protobuf:"bytes,16,opt,name=OriginalSender,proto3" json:"originalSender,omitempty"`
}

func TrimSlicePtr

func TrimSlicePtr(in []*SmartContractResult) []*SmartContractResult

TrimSlicePtr creates a copy of the provided slice without the excess capacity

func (*SmartContractResult) CheckIntegrity

func (scr *SmartContractResult) CheckIntegrity() error

CheckIntegrity checks for not nil fields and negative value

func (*SmartContractResult) Descriptor

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

func (*SmartContractResult) Equal

func (this *SmartContractResult) Equal(that interface{}) bool

func (*SmartContractResult) GetCallType

func (*SmartContractResult) GetCode

func (m *SmartContractResult) GetCode() []byte

func (*SmartContractResult) GetCodeMetadata

func (m *SmartContractResult) GetCodeMetadata() []byte

func (*SmartContractResult) GetData

func (m *SmartContractResult) GetData() []byte

func (*SmartContractResult) GetGasLimit

func (m *SmartContractResult) GetGasLimit() uint64

func (*SmartContractResult) GetGasPrice

func (m *SmartContractResult) GetGasPrice() uint64

func (*SmartContractResult) GetNonce

func (m *SmartContractResult) GetNonce() uint64

func (*SmartContractResult) GetOriginalSender

func (m *SmartContractResult) GetOriginalSender() []byte

func (*SmartContractResult) GetOriginalTxHash

func (m *SmartContractResult) GetOriginalTxHash() []byte

func (*SmartContractResult) GetPrevTxHash

func (m *SmartContractResult) GetPrevTxHash() []byte

func (*SmartContractResult) GetRcvAddr

func (m *SmartContractResult) GetRcvAddr() []byte

func (*SmartContractResult) GetRcvUserName

func (_ *SmartContractResult) GetRcvUserName() []byte

GetRcvUserName returns the receiver user name from the smart contract result

func (*SmartContractResult) GetRelayedValue

func (m *SmartContractResult) GetRelayedValue() *math_big.Int

func (*SmartContractResult) GetRelayerAddr

func (m *SmartContractResult) GetRelayerAddr() []byte

func (*SmartContractResult) GetReturnMessage

func (m *SmartContractResult) GetReturnMessage() []byte

func (*SmartContractResult) GetSndAddr

func (m *SmartContractResult) GetSndAddr() []byte

func (*SmartContractResult) GetValue

func (m *SmartContractResult) GetValue() *math_big.Int

func (*SmartContractResult) GoString

func (this *SmartContractResult) GoString() string

func (*SmartContractResult) IsInterfaceNil

func (scr *SmartContractResult) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying object is nil

func (*SmartContractResult) Marshal

func (m *SmartContractResult) Marshal() (dAtA []byte, err error)

func (*SmartContractResult) MarshalTo

func (m *SmartContractResult) MarshalTo(dAtA []byte) (int, error)

func (*SmartContractResult) MarshalToSizedBuffer

func (m *SmartContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SmartContractResult) ProtoMessage

func (*SmartContractResult) ProtoMessage()

func (*SmartContractResult) Reset

func (m *SmartContractResult) Reset()

func (*SmartContractResult) SetData

func (scr *SmartContractResult) SetData(data []byte)

SetData sets the data of the smart contract result

func (*SmartContractResult) SetRcvAddr

func (scr *SmartContractResult) SetRcvAddr(addr []byte)

SetRcvAddr sets the receiver address of the smart contract result

func (*SmartContractResult) SetSndAddr

func (scr *SmartContractResult) SetSndAddr(addr []byte)

SetSndAddr sets the sender address of the smart contract result

func (*SmartContractResult) SetValue

func (scr *SmartContractResult) SetValue(value *big.Int)

SetValue sets the value of the smart contract result

func (*SmartContractResult) Size

func (m *SmartContractResult) Size() (n int)

func (*SmartContractResult) String

func (this *SmartContractResult) String() string

func (*SmartContractResult) Unmarshal

func (m *SmartContractResult) Unmarshal(dAtA []byte) error

func (*SmartContractResult) XXX_DiscardUnknown

func (m *SmartContractResult) XXX_DiscardUnknown()

func (*SmartContractResult) XXX_Marshal

func (m *SmartContractResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SmartContractResult) XXX_Merge

func (m *SmartContractResult) XXX_Merge(src proto.Message)

func (*SmartContractResult) XXX_Size

func (m *SmartContractResult) XXX_Size() int

func (*SmartContractResult) XXX_Unmarshal

func (m *SmartContractResult) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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