Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)deprecated
- func (x *Contract) GetProgramId() []byte
- func (x *Contract) GetStateDigest() []byte
- func (x *Contract) GetVerifier() string
- func (*Contract) ProtoMessage()
- func (x *Contract) ProtoReflect() protoreflect.Message
- func (x *Contract) Reset()
- func (x *Contract) String() string
- type ContractListRequest
- func (*ContractListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractListRequest) GetPagination() *v1beta1.PageRequest
- func (*ContractListRequest) ProtoMessage()
- func (x *ContractListRequest) ProtoReflect() protoreflect.Message
- func (x *ContractListRequest) Reset()
- func (x *ContractListRequest) String() string
- type ContractListResponse
- func (*ContractListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractListResponse) GetContracts() []string
- func (x *ContractListResponse) GetPagination() *v1beta1.PageResponse
- func (*ContractListResponse) ProtoMessage()
- func (x *ContractListResponse) ProtoReflect() protoreflect.Message
- func (x *ContractListResponse) Reset()
- func (x *ContractListResponse) String() string
- type ContractRequest
- type ContractResponse
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetContracts() map[string]*Contract
- func (x *GenesisState) GetParams() *Params
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgClient
- type MsgExecuteStateChanges
- func (*MsgExecuteStateChanges) Descriptor() ([]byte, []int)deprecated
- func (x *MsgExecuteStateChanges) GetSender() string
- func (x *MsgExecuteStateChanges) GetStateChanges() []*StateChange
- func (*MsgExecuteStateChanges) ProtoMessage()
- func (x *MsgExecuteStateChanges) ProtoReflect() protoreflect.Message
- func (x *MsgExecuteStateChanges) Reset()
- func (x *MsgExecuteStateChanges) String() string
- type MsgExecuteStateChangesResponse
- func (*MsgExecuteStateChangesResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgExecuteStateChangesResponse) ProtoMessage()
- func (x *MsgExecuteStateChangesResponse) ProtoReflect() protoreflect.Message
- func (x *MsgExecuteStateChangesResponse) Reset()
- func (x *MsgExecuteStateChangesResponse) String() string
- type MsgRegisterContract
- func (*MsgRegisterContract) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterContract) GetContractName() string
- func (x *MsgRegisterContract) GetOwner() string
- func (x *MsgRegisterContract) GetProgramId() []byte
- func (x *MsgRegisterContract) GetSender() string
- func (x *MsgRegisterContract) GetStateDigest() []byte
- func (x *MsgRegisterContract) GetVerifier() string
- func (*MsgRegisterContract) ProtoMessage()
- func (x *MsgRegisterContract) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterContract) Reset()
- func (x *MsgRegisterContract) String() string
- type MsgRegisterContractResponse
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type MsgVerifyProof
- func (*MsgVerifyProof) Descriptor() ([]byte, []int)deprecated
- func (x *MsgVerifyProof) GetContractName() string
- func (x *MsgVerifyProof) GetProof() []byte
- func (x *MsgVerifyProof) GetSender() string
- func (*MsgVerifyProof) ProtoMessage()
- func (x *MsgVerifyProof) ProtoReflect() protoreflect.Message
- func (x *MsgVerifyProof) Reset()
- func (x *MsgVerifyProof) String() string
- type MsgVerifyProofResponse
- type Params
- type QueryClient
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type StateChange
- func (*StateChange) Descriptor() ([]byte, []int)deprecated
- func (x *StateChange) GetContractName() string
- func (x *StateChange) GetProof() []byte
- func (*StateChange) ProtoMessage()
- func (x *StateChange) ProtoReflect() protoreflect.Message
- func (x *StateChange) Reset()
- func (x *StateChange) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) ExecuteStateChanges(context.Context, *MsgExecuteStateChanges) (*MsgExecuteStateChangesResponse, error)
- func (UnimplementedMsgServer) RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (UnimplementedMsgServer) VerifyProof(context.Context, *MsgVerifyProof) (*MsgVerifyProofResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Contract(context.Context, *ContractRequest) (*ContractResponse, error)
- func (UnimplementedQueryServer) ContractList(context.Context, *ContractListRequest) (*ContractListResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Contract_FullMethodName = "/hyle.zktx.v1.Query/Contract" Query_ContractList_FullMethodName = "/hyle.zktx.v1.Query/ContractList" Query_Params_FullMethodName = "/hyle.zktx.v1.Query/Params" )
const ( Msg_ExecuteStateChanges_FullMethodName = "/hyle.zktx.v1.Msg/ExecuteStateChanges" Msg_VerifyProof_FullMethodName = "/hyle.zktx.v1.Msg/VerifyProof" Msg_RegisterContract_FullMethodName = "/hyle.zktx.v1.Msg/RegisterContract" Msg_UpdateParams_FullMethodName = "/hyle.zktx.v1.Msg/UpdateParams" )
Variables ¶
var File_hyle_zktx_v1_query_proto protoreflect.FileDescriptor
var File_hyle_zktx_v1_tx_proto protoreflect.FileDescriptor
var File_hyle_zktx_v1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyle.zktx.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ExecuteStateChanges", Handler: _Msg_ExecuteStateChanges_Handler, }, { MethodName: "VerifyProof", Handler: _Msg_VerifyProof_Handler, }, { MethodName: "RegisterContract", Handler: _Msg_RegisterContract_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hyle/zktx/v1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hyle.zktx.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Contract", Handler: _Query_Contract_Handler, }, { MethodName: "ContractList", Handler: _Query_ContractList_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hyle/zktx/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type Contract ¶
type Contract struct { // The identifier of the verifier to run for this contract Verifier string `protobuf:"bytes,1,opt,name=verifier,proto3" json:"verifier,omitempty"` // An identifier for the program (may depend on verifier) ProgramId []byte `protobuf:"bytes,2,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"` // Recap of the current contract state StateDigest []byte `protobuf:"bytes,3,opt,name=state_digest,json=stateDigest,proto3" json:"state_digest,omitempty"` // contains filtered or unexported fields }
Contract is the state of a contract
func (*Contract) Descriptor
deprecated
func (*Contract) GetProgramId ¶
func (*Contract) GetStateDigest ¶
func (*Contract) GetVerifier ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) ProtoReflect ¶
func (x *Contract) ProtoReflect() protoreflect.Message
type ContractListRequest ¶
type ContractListRequest struct { // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
ContractRequest is the request type for the Query/Contract RPC
func (*ContractListRequest) Descriptor
deprecated
func (*ContractListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractListRequest.ProtoReflect.Descriptor instead.
func (*ContractListRequest) GetPagination ¶
func (x *ContractListRequest) GetPagination() *v1beta1.PageRequest
func (*ContractListRequest) ProtoMessage ¶
func (*ContractListRequest) ProtoMessage()
func (*ContractListRequest) ProtoReflect ¶
func (x *ContractListRequest) ProtoReflect() protoreflect.Message
func (*ContractListRequest) Reset ¶
func (x *ContractListRequest) Reset()
func (*ContractListRequest) String ¶
func (x *ContractListRequest) String() string
type ContractListResponse ¶
type ContractListResponse struct { // contract defines the current state of the contract. Contracts []string `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
ContractResponse is the response type for the Query/Contract RPC
func (*ContractListResponse) Descriptor
deprecated
func (*ContractListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractListResponse.ProtoReflect.Descriptor instead.
func (*ContractListResponse) GetContracts ¶
func (x *ContractListResponse) GetContracts() []string
func (*ContractListResponse) GetPagination ¶
func (x *ContractListResponse) GetPagination() *v1beta1.PageResponse
func (*ContractListResponse) ProtoMessage ¶
func (*ContractListResponse) ProtoMessage()
func (*ContractListResponse) ProtoReflect ¶
func (x *ContractListResponse) ProtoReflect() protoreflect.Message
func (*ContractListResponse) Reset ¶
func (x *ContractListResponse) Reset()
func (*ContractListResponse) String ¶
func (x *ContractListResponse) String() string
type ContractRequest ¶
type ContractRequest struct { // contract_name defines the name to query for the contract. ContractName string `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` // contains filtered or unexported fields }
ContractRequest is the request type for the Query/Contract RPC
func (*ContractRequest) Descriptor
deprecated
func (*ContractRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractRequest.ProtoReflect.Descriptor instead.
func (*ContractRequest) GetContractName ¶
func (x *ContractRequest) GetContractName() string
func (*ContractRequest) ProtoMessage ¶
func (*ContractRequest) ProtoMessage()
func (*ContractRequest) ProtoReflect ¶
func (x *ContractRequest) ProtoReflect() protoreflect.Message
func (*ContractRequest) Reset ¶
func (x *ContractRequest) Reset()
func (*ContractRequest) String ¶
func (x *ContractRequest) String() string
type ContractResponse ¶
type ContractResponse struct { // contract defines the current state of the contract. Contract *Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` // contains filtered or unexported fields }
ContractResponse is the response type for the Query/Contract RPC
func (*ContractResponse) Descriptor
deprecated
func (*ContractResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractResponse.ProtoReflect.Descriptor instead.
func (*ContractResponse) GetContract ¶
func (x *ContractResponse) GetContract() *Contract
func (*ContractResponse) ProtoMessage ¶
func (*ContractResponse) ProtoMessage()
func (*ContractResponse) ProtoReflect ¶
func (x *ContractResponse) ProtoReflect() protoreflect.Message
func (*ContractResponse) Reset ¶
func (x *ContractResponse) Reset()
func (*ContractResponse) String ¶
func (x *ContractResponse) String() string
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` Contracts map[string]*Contract `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
GenesisState is the state that must be provided at genesis.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetContracts ¶
func (x *GenesisState) GetContracts() map[string]*Contract
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgClient ¶
type MsgClient interface { // execute a zk-proven state change ExecuteStateChanges(ctx context.Context, in *MsgExecuteStateChanges, opts ...grpc.CallOption) (*MsgExecuteStateChangesResponse, error) // Only verify a ZK proof VerifyProof(ctx context.Context, in *MsgVerifyProof, opts ...grpc.CallOption) (*MsgVerifyProofResponse, error) // RegisterContract registers a contract RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) // UpdateParams updates the module parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgExecuteStateChanges ¶
type MsgExecuteStateChanges struct { // Fake sender for Cosmos SDK - temporary Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // list of state changes to execute StateChanges []*StateChange `protobuf:"bytes,6,rep,name=state_changes,json=stateChanges,proto3" json:"state_changes,omitempty"` // contains filtered or unexported fields }
execute a zk-proven state change - request type
func (*MsgExecuteStateChanges) Descriptor
deprecated
func (*MsgExecuteStateChanges) Descriptor() ([]byte, []int)
Deprecated: Use MsgExecuteStateChanges.ProtoReflect.Descriptor instead.
func (*MsgExecuteStateChanges) GetSender ¶
func (x *MsgExecuteStateChanges) GetSender() string
func (*MsgExecuteStateChanges) GetStateChanges ¶
func (x *MsgExecuteStateChanges) GetStateChanges() []*StateChange
func (*MsgExecuteStateChanges) ProtoMessage ¶
func (*MsgExecuteStateChanges) ProtoMessage()
func (*MsgExecuteStateChanges) ProtoReflect ¶
func (x *MsgExecuteStateChanges) ProtoReflect() protoreflect.Message
func (*MsgExecuteStateChanges) Reset ¶
func (x *MsgExecuteStateChanges) Reset()
func (*MsgExecuteStateChanges) String ¶
func (x *MsgExecuteStateChanges) String() string
type MsgExecuteStateChangesResponse ¶
type MsgExecuteStateChangesResponse struct {
// contains filtered or unexported fields
}
No response
func (*MsgExecuteStateChangesResponse) Descriptor
deprecated
func (*MsgExecuteStateChangesResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgExecuteStateChangesResponse.ProtoReflect.Descriptor instead.
func (*MsgExecuteStateChangesResponse) ProtoMessage ¶
func (*MsgExecuteStateChangesResponse) ProtoMessage()
func (*MsgExecuteStateChangesResponse) ProtoReflect ¶
func (x *MsgExecuteStateChangesResponse) ProtoReflect() protoreflect.Message
func (*MsgExecuteStateChangesResponse) Reset ¶
func (x *MsgExecuteStateChangesResponse) Reset()
func (*MsgExecuteStateChangesResponse) String ¶
func (x *MsgExecuteStateChangesResponse) String() string
type MsgRegisterContract ¶
type MsgRegisterContract struct { // owner is the contract owner Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // Identifier of the verifier Verifier string `protobuf:"bytes,2,opt,name=verifier,proto3" json:"verifier,omitempty"` // Identifier of the smart contract ProgramId []byte `protobuf:"bytes,3,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"` // Initial state digest StateDigest []byte `protobuf:"bytes,4,opt,name=state_digest,json=stateDigest,proto3" json:"state_digest,omitempty"` // Identifier of the contract name ContractName string `protobuf:"bytes,5,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` // Fake sender for Cosmos SDK - temporary Sender string `protobuf:"bytes,6,opt,name=sender,proto3" json:"sender,omitempty"` // contains filtered or unexported fields }
Register a contract - request type
func (*MsgRegisterContract) Descriptor
deprecated
func (*MsgRegisterContract) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterContract.ProtoReflect.Descriptor instead.
func (*MsgRegisterContract) GetContractName ¶
func (x *MsgRegisterContract) GetContractName() string
func (*MsgRegisterContract) GetOwner ¶
func (x *MsgRegisterContract) GetOwner() string
func (*MsgRegisterContract) GetProgramId ¶
func (x *MsgRegisterContract) GetProgramId() []byte
func (*MsgRegisterContract) GetSender ¶
func (x *MsgRegisterContract) GetSender() string
func (*MsgRegisterContract) GetStateDigest ¶
func (x *MsgRegisterContract) GetStateDigest() []byte
func (*MsgRegisterContract) GetVerifier ¶
func (x *MsgRegisterContract) GetVerifier() string
func (*MsgRegisterContract) ProtoMessage ¶
func (*MsgRegisterContract) ProtoMessage()
func (*MsgRegisterContract) ProtoReflect ¶
func (x *MsgRegisterContract) ProtoReflect() protoreflect.Message
func (*MsgRegisterContract) Reset ¶
func (x *MsgRegisterContract) Reset()
func (*MsgRegisterContract) String ¶
func (x *MsgRegisterContract) String() string
type MsgRegisterContractResponse ¶
type MsgRegisterContractResponse struct {
// contains filtered or unexported fields
}
Register a contract - response type
func (*MsgRegisterContractResponse) Descriptor
deprecated
func (*MsgRegisterContractResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterContractResponse.ProtoReflect.Descriptor instead.
func (*MsgRegisterContractResponse) ProtoMessage ¶
func (*MsgRegisterContractResponse) ProtoMessage()
func (*MsgRegisterContractResponse) ProtoReflect ¶
func (x *MsgRegisterContractResponse) ProtoReflect() protoreflect.Message
func (*MsgRegisterContractResponse) Reset ¶
func (x *MsgRegisterContractResponse) Reset()
func (*MsgRegisterContractResponse) String ¶
func (x *MsgRegisterContractResponse) String() string
type MsgServer ¶
type MsgServer interface { // execute a zk-proven state change ExecuteStateChanges(context.Context, *MsgExecuteStateChanges) (*MsgExecuteStateChangesResponse, error) // Only verify a ZK proof VerifyProof(context.Context, *MsgVerifyProof) (*MsgVerifyProofResponse, error) // RegisterContract registers a contract RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) // UpdateParams updates the module parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module // NOTE: Defaults to the governance module unless overwritten. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the module parameters to update. // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type MsgVerifyProof ¶
type MsgVerifyProof struct { // Fake sender for Cosmos SDK - temporary Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Contract the proof is being sent to ContractName string `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` // Proof of the transaction Proof []byte `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` // contains filtered or unexported fields }
Only verify a ZK proof - request type
func (*MsgVerifyProof) Descriptor
deprecated
func (*MsgVerifyProof) Descriptor() ([]byte, []int)
Deprecated: Use MsgVerifyProof.ProtoReflect.Descriptor instead.
func (*MsgVerifyProof) GetContractName ¶
func (x *MsgVerifyProof) GetContractName() string
func (*MsgVerifyProof) GetProof ¶
func (x *MsgVerifyProof) GetProof() []byte
func (*MsgVerifyProof) GetSender ¶
func (x *MsgVerifyProof) GetSender() string
func (*MsgVerifyProof) ProtoMessage ¶
func (*MsgVerifyProof) ProtoMessage()
func (*MsgVerifyProof) ProtoReflect ¶
func (x *MsgVerifyProof) ProtoReflect() protoreflect.Message
func (*MsgVerifyProof) Reset ¶
func (x *MsgVerifyProof) Reset()
func (*MsgVerifyProof) String ¶
func (x *MsgVerifyProof) String() string
type MsgVerifyProofResponse ¶
type MsgVerifyProofResponse struct {
// contains filtered or unexported fields
}
No response
func (*MsgVerifyProofResponse) Descriptor
deprecated
func (*MsgVerifyProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgVerifyProofResponse.ProtoReflect.Descriptor instead.
func (*MsgVerifyProofResponse) ProtoMessage ¶
func (*MsgVerifyProofResponse) ProtoMessage()
func (*MsgVerifyProofResponse) ProtoReflect ¶
func (x *MsgVerifyProofResponse) ProtoReflect() protoreflect.Message
func (*MsgVerifyProofResponse) Reset ¶
func (x *MsgVerifyProofResponse) Reset()
func (*MsgVerifyProofResponse) String ¶
func (x *MsgVerifyProofResponse) String() string
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Params defines the parameters of the module.
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Contract returns the current state of the contract. Contract(ctx context.Context, in *ContractRequest, opts ...grpc.CallOption) (*ContractResponse, error) // ContractList returns the list of all contracts with a given verifier and // program_id ContractList(ctx context.Context, in *ContractListRequest, opts ...grpc.CallOption) (*ContractListResponse, error) // Params returns the module parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Contract returns the current state of the contract. Contract(context.Context, *ContractRequest) (*ContractResponse, error) // ContractList returns the list of all contracts with a given verifier and // program_id ContractList(context.Context, *ContractListRequest) (*ContractListResponse, error) // Params returns the module parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type StateChange ¶
type StateChange struct { // Name of target contract ContractName string `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` // Proof of the transaction Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` // contains filtered or unexported fields }
StateChange is a zk-proven state change to be executed
func (*StateChange) Descriptor
deprecated
func (*StateChange) Descriptor() ([]byte, []int)
Deprecated: Use StateChange.ProtoReflect.Descriptor instead.
func (*StateChange) GetContractName ¶
func (x *StateChange) GetContractName() string
func (*StateChange) GetProof ¶
func (x *StateChange) GetProof() []byte
func (*StateChange) ProtoMessage ¶
func (*StateChange) ProtoMessage()
func (*StateChange) ProtoReflect ¶
func (x *StateChange) ProtoReflect() protoreflect.Message
func (*StateChange) Reset ¶
func (x *StateChange) Reset()
func (*StateChange) String ¶
func (x *StateChange) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) ExecuteStateChanges ¶
func (UnimplementedMsgServer) ExecuteStateChanges(context.Context, *MsgExecuteStateChanges) (*MsgExecuteStateChangesResponse, error)
func (UnimplementedMsgServer) RegisterContract ¶
func (UnimplementedMsgServer) RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (UnimplementedMsgServer) VerifyProof ¶
func (UnimplementedMsgServer) VerifyProof(context.Context, *MsgVerifyProof) (*MsgVerifyProofResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Contract ¶
func (UnimplementedQueryServer) Contract(context.Context, *ContractRequest) (*ContractResponse, error)
func (UnimplementedQueryServer) ContractList ¶
func (UnimplementedQueryServer) ContractList(context.Context, *ContractListRequest) (*ContractListResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.