Documentation
¶
Index ¶
- Variables
- type ContractDiff
- func (*ContractDiff) Descriptor() ([]byte, []int)deprecated
- func (x *ContractDiff) GetAddress() *common.Address
- func (x *ContractDiff) GetClassHash() *common.Hash
- func (x *ContractDiff) GetDomain() common.VolitionDomain
- func (x *ContractDiff) GetNonce() *common.Felt252
- func (x *ContractDiff) GetValues() []*ContractStoredValue
- func (*ContractDiff) ProtoMessage()
- func (x *ContractDiff) ProtoReflect() protoreflect.Message
- func (x *ContractDiff) Reset()
- func (x *ContractDiff) String() string
- type ContractStoredValue
- func (*ContractStoredValue) Descriptor() ([]byte, []int)deprecated
- func (x *ContractStoredValue) GetKey() *common.Felt252
- func (x *ContractStoredValue) GetValue() *common.Felt252
- func (*ContractStoredValue) ProtoMessage()
- func (x *ContractStoredValue) ProtoReflect() protoreflect.Message
- func (x *ContractStoredValue) Reset()
- func (x *ContractStoredValue) String() string
- type DeclaredClass
- func (*DeclaredClass) Descriptor() ([]byte, []int)deprecated
- func (x *DeclaredClass) GetClassHash() *common.Hash
- func (x *DeclaredClass) GetCompiledClassHash() *common.Hash
- func (*DeclaredClass) ProtoMessage()
- func (x *DeclaredClass) ProtoReflect() protoreflect.Message
- func (x *DeclaredClass) Reset()
- func (x *DeclaredClass) String() string
- type StateDiffsRequest
- func (*StateDiffsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StateDiffsRequest) GetIteration() *common1.Iteration
- func (*StateDiffsRequest) ProtoMessage()
- func (x *StateDiffsRequest) ProtoReflect() protoreflect.Message
- func (x *StateDiffsRequest) Reset()
- func (x *StateDiffsRequest) String() string
- type StateDiffsResponse
- func (*StateDiffsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StateDiffsResponse) GetContractDiff() *ContractDiff
- func (x *StateDiffsResponse) GetDeclaredClass() *DeclaredClass
- func (x *StateDiffsResponse) GetFin() *common.Fin
- func (x *StateDiffsResponse) GetStateDiffMessage() isStateDiffsResponse_StateDiffMessage
- func (*StateDiffsResponse) ProtoMessage()
- func (x *StateDiffsResponse) ProtoReflect() protoreflect.Message
- func (x *StateDiffsResponse) Reset()
- func (x *StateDiffsResponse) String() string
- type StateDiffsResponse_ContractDiff
- type StateDiffsResponse_DeclaredClass
- type StateDiffsResponse_Fin
Constants ¶
This section is empty.
Variables ¶
View Source
var File_p2p_proto_sync_state_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ContractDiff ¶
type ContractDiff struct {
Address *common.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Nonce *common.Felt252 `protobuf:"bytes,2,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"` // Present only if the nonce was updated
ClassHash *common.Hash `protobuf:"bytes,3,opt,name=class_hash,json=classHash,proto3,oneof" json:"class_hash,omitempty"` // Present only if the contract was deployed or replaced in this block.
Values []*ContractStoredValue `protobuf:"bytes,4,rep,name=values,proto3" json:"values,omitempty"`
Domain common.VolitionDomain `protobuf:"varint,5,opt,name=domain,proto3,enum=VolitionDomain" json:"domain,omitempty"`
// contains filtered or unexported fields
}
func (*ContractDiff) Descriptor
deprecated
func (*ContractDiff) Descriptor() ([]byte, []int)
Deprecated: Use ContractDiff.ProtoReflect.Descriptor instead.
func (*ContractDiff) GetAddress ¶
func (x *ContractDiff) GetAddress() *common.Address
func (*ContractDiff) GetClassHash ¶
func (x *ContractDiff) GetClassHash() *common.Hash
func (*ContractDiff) GetDomain ¶
func (x *ContractDiff) GetDomain() common.VolitionDomain
func (*ContractDiff) GetNonce ¶
func (x *ContractDiff) GetNonce() *common.Felt252
func (*ContractDiff) GetValues ¶
func (x *ContractDiff) GetValues() []*ContractStoredValue
func (*ContractDiff) ProtoMessage ¶
func (*ContractDiff) ProtoMessage()
func (*ContractDiff) ProtoReflect ¶
func (x *ContractDiff) ProtoReflect() protoreflect.Message
func (*ContractDiff) Reset ¶
func (x *ContractDiff) Reset()
func (*ContractDiff) String ¶
func (x *ContractDiff) String() string
type ContractStoredValue ¶
type ContractStoredValue struct {
Key *common.Felt252 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *common.Felt252 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
optimized for flat storage, not through a trie (not sharing key prefixes)
func (*ContractStoredValue) Descriptor
deprecated
func (*ContractStoredValue) Descriptor() ([]byte, []int)
Deprecated: Use ContractStoredValue.ProtoReflect.Descriptor instead.
func (*ContractStoredValue) GetKey ¶
func (x *ContractStoredValue) GetKey() *common.Felt252
func (*ContractStoredValue) GetValue ¶
func (x *ContractStoredValue) GetValue() *common.Felt252
func (*ContractStoredValue) ProtoMessage ¶
func (*ContractStoredValue) ProtoMessage()
func (*ContractStoredValue) ProtoReflect ¶
func (x *ContractStoredValue) ProtoReflect() protoreflect.Message
func (*ContractStoredValue) Reset ¶
func (x *ContractStoredValue) Reset()
func (*ContractStoredValue) String ¶
func (x *ContractStoredValue) String() string
type DeclaredClass ¶
type DeclaredClass struct {
ClassHash *common.Hash `protobuf:"bytes,1,opt,name=class_hash,json=classHash,proto3" json:"class_hash,omitempty"`
CompiledClassHash *common.Hash `protobuf:"bytes,2,opt,name=compiled_class_hash,json=compiledClassHash,proto3,oneof" json:"compiled_class_hash,omitempty"` // Present only if the class is Cairo1
// contains filtered or unexported fields
}
func (*DeclaredClass) Descriptor
deprecated
func (*DeclaredClass) Descriptor() ([]byte, []int)
Deprecated: Use DeclaredClass.ProtoReflect.Descriptor instead.
func (*DeclaredClass) GetClassHash ¶
func (x *DeclaredClass) GetClassHash() *common.Hash
func (*DeclaredClass) GetCompiledClassHash ¶
func (x *DeclaredClass) GetCompiledClassHash() *common.Hash
func (*DeclaredClass) ProtoMessage ¶
func (*DeclaredClass) ProtoMessage()
func (*DeclaredClass) ProtoReflect ¶
func (x *DeclaredClass) ProtoReflect() protoreflect.Message
func (*DeclaredClass) Reset ¶
func (x *DeclaredClass) Reset()
func (*DeclaredClass) String ¶
func (x *DeclaredClass) String() string
type StateDiffsRequest ¶
type StateDiffsRequest struct {
Iteration *common1.Iteration `protobuf:"bytes,1,opt,name=iteration,proto3" json:"iteration,omitempty"`
// contains filtered or unexported fields
}
func (*StateDiffsRequest) Descriptor
deprecated
func (*StateDiffsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StateDiffsRequest.ProtoReflect.Descriptor instead.
func (*StateDiffsRequest) GetIteration ¶
func (x *StateDiffsRequest) GetIteration() *common1.Iteration
func (*StateDiffsRequest) ProtoMessage ¶
func (*StateDiffsRequest) ProtoMessage()
func (*StateDiffsRequest) ProtoReflect ¶
func (x *StateDiffsRequest) ProtoReflect() protoreflect.Message
func (*StateDiffsRequest) Reset ¶
func (x *StateDiffsRequest) Reset()
func (*StateDiffsRequest) String ¶
func (x *StateDiffsRequest) String() string
type StateDiffsResponse ¶
type StateDiffsResponse struct {
// All of the messages related to a block need to be sent before a message from the next block is sent.
//
// Types that are valid to be assigned to StateDiffMessage:
//
// *StateDiffsResponse_ContractDiff
// *StateDiffsResponse_DeclaredClass
// *StateDiffsResponse_Fin
StateDiffMessage isStateDiffsResponse_StateDiffMessage `protobuf_oneof:"state_diff_message"`
// contains filtered or unexported fields
}
Responses are sent ordered by the order given in the request.
func (*StateDiffsResponse) Descriptor
deprecated
func (*StateDiffsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StateDiffsResponse.ProtoReflect.Descriptor instead.
func (*StateDiffsResponse) GetContractDiff ¶
func (x *StateDiffsResponse) GetContractDiff() *ContractDiff
func (*StateDiffsResponse) GetDeclaredClass ¶
func (x *StateDiffsResponse) GetDeclaredClass() *DeclaredClass
func (*StateDiffsResponse) GetFin ¶
func (x *StateDiffsResponse) GetFin() *common.Fin
func (*StateDiffsResponse) GetStateDiffMessage ¶
func (x *StateDiffsResponse) GetStateDiffMessage() isStateDiffsResponse_StateDiffMessage
func (*StateDiffsResponse) ProtoMessage ¶
func (*StateDiffsResponse) ProtoMessage()
func (*StateDiffsResponse) ProtoReflect ¶
func (x *StateDiffsResponse) ProtoReflect() protoreflect.Message
func (*StateDiffsResponse) Reset ¶
func (x *StateDiffsResponse) Reset()
func (*StateDiffsResponse) String ¶
func (x *StateDiffsResponse) String() string
type StateDiffsResponse_ContractDiff ¶
type StateDiffsResponse_ContractDiff struct {
ContractDiff *ContractDiff `protobuf:"bytes,1,opt,name=contract_diff,json=contractDiff,proto3,oneof"` // Multiple contract diffs for the same contract may appear continuously if the diff is too large or if it's more convenient.
}
type StateDiffsResponse_DeclaredClass ¶
type StateDiffsResponse_DeclaredClass struct {
DeclaredClass *DeclaredClass `protobuf:"bytes,2,opt,name=declared_class,json=declaredClass,proto3,oneof"`
}
type StateDiffsResponse_Fin ¶
Click to show internal directories.
Click to hide internal directories.