Documentation ¶
Index ¶
- Variables
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- type ETHMultisig
- func (m ETHMultisig) Addresses() []common.Address
- func (m ETHMultisig) GetCurrentTimestamp() uint64
- func (m ETHMultisig) SignChannelState(height clienttypes.Height, portID, channelID string, channel chantypes.Channel) (*ethmultisigtypes.MultiSignature, []byte, error)
- func (m ETHMultisig) SignClientState(height clienttypes.Height, clientID string, clientState exported.ClientState) (*ethmultisigtypes.MultiSignature, []byte, error)
- func (m ETHMultisig) SignConnectionState(height clienttypes.Height, connectionID string, ...) (*ethmultisigtypes.MultiSignature, []byte, error)
- func (m ETHMultisig) SignConsensusState(height clienttypes.Height, clientID string, ...) (*ethmultisigtypes.MultiSignature, []byte, error)
- func (m ETHMultisig) SignPacketAcknowledgementState(height clienttypes.Height, portID, channelID string, sequence uint64, ...) (*ethmultisigtypes.MultiSignature, []byte, error)
- func (m ETHMultisig) SignPacketState(height clienttypes.Height, portID, channelID string, sequence uint64, ...) (*ethmultisigtypes.MultiSignature, []byte, error)
- func (m ETHMultisig) SignState(height ethmultisigtypes.Height, dtp ethmultisigtypes.SignBytes_DataType, ...) (*ethmultisigtypes.MultiSignature, []byte, error)
- type HDWallet
- func (*HDWallet) Descriptor() ([]byte, []int)
- func (m *HDWallet) GetHdwPath() string
- func (m *HDWallet) GetMnemonic() string
- func (m *HDWallet) Marshal() (dAtA []byte, err error)
- func (m *HDWallet) MarshalTo(dAtA []byte) (int, error)
- func (m *HDWallet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HDWallet) ProtoMessage()
- func (m *HDWallet) Reset()
- func (m *HDWallet) Size() (n int)
- func (m *HDWallet) String() string
- func (m *HDWallet) Unmarshal(dAtA []byte) error
- func (m *HDWallet) XXX_DiscardUnknown()
- func (m *HDWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HDWallet) XXX_Merge(src proto.Message)
- func (m *HDWallet) XXX_Size() int
- func (m *HDWallet) XXX_Unmarshal(b []byte) error
- type Module
- type Prover
- func (pr *Prover) CreateMsgCreateClient(clientID string, dstHeader core.HeaderI, signer sdk.AccAddress) (*clienttypes.MsgCreateClient, error)
- func (pr *Prover) GetChainID() string
- func (pr *Prover) GetHeight() (clienttypes.Height, error)
- func (pr *Prover) GetLatestLightHeight() (int64, error)
- func (pr *Prover) GetSequeunce() (uint64, error)
- func (pr *Prover) QueryChannelWithProof(_ int64) (*chantypes.QueryChannelResponse, error)
- func (pr *Prover) QueryClientConsensusStateWithProof(_ int64, dstClientConsHeight ibcexported.Height) (*clienttypes.QueryConsensusStateResponse, error)
- func (pr *Prover) QueryClientStateWithProof(_ int64) (*clienttypes.QueryClientStateResponse, error)
- func (pr *Prover) QueryConnectionWithProof(_ int64) (*conntypes.QueryConnectionResponse, error)
- func (pr *Prover) QueryLatestHeader() (out core.HeaderI, err error)
- func (pr *Prover) QueryPacketAcknowledgementCommitmentWithProof(_ int64, seq uint64) (*chantypes.QueryPacketAcknowledgementResponse, error)
- func (pr *Prover) QueryPacketCommitmentWithProof(_ int64, seq uint64) (comRes *chantypes.QueryPacketCommitmentResponse, err error)
- func (pr *Prover) SetupHeader(dst core.LightClientIBCQueryierI, baseSrcHeader core.HeaderI) (core.HeaderI, error)
- func (pr *Prover) SignAcknowledgementStateResponse(res *chantypes.QueryPacketAcknowledgementResponse, portID, channelID string, ...) (*chantypes.QueryPacketAcknowledgementResponse, error)
- func (pr *Prover) SignChannelStateResponse(res *chantypes.QueryChannelResponse, portID, channelID string) (*chantypes.QueryChannelResponse, error)
- func (pr *Prover) SignClientStateResponse(res *clienttypes.QueryClientStateResponse, clientID string) (*clienttypes.QueryClientStateResponse, error)
- func (pr *Prover) SignConnectionStateResponse(res *conntypes.QueryConnectionResponse, connectionID string) (*conntypes.QueryConnectionResponse, error)
- func (pr *Prover) SignConsensusStateResponse(res *clienttypes.QueryConsensusStateResponse, clientID string, ...) (*clienttypes.QueryConsensusStateResponse, error)
- func (pr *Prover) SignPacketStateResponse(res *chantypes.QueryPacketCommitmentResponse, portID, channelID string, ...) (*chantypes.QueryPacketCommitmentResponse, error)
- func (pr *Prover) UpdateLightWithHeader() (header core.HeaderI, provableHeight int64, queryableHeight int64, err error)
- type ProverConfig
- func (pr ProverConfig) Build(chain core.ChainI) (core.ProverI, error)
- func (*ProverConfig) Descriptor() ([]byte, []int)
- func (m *ProverConfig) GetDiversifier() string
- func (m *ProverConfig) GetPrefix() string
- func (m *ProverConfig) GetWallets() []*HDWallet
- func (m *ProverConfig) Marshal() (dAtA []byte, err error)
- func (m *ProverConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ProverConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProverConfig) ProtoMessage()
- func (m *ProverConfig) Reset()
- func (m *ProverConfig) Size() (n int)
- func (m *ProverConfig) String() string
- func (m *ProverConfig) Unmarshal(dAtA []byte) error
- func (m *ProverConfig) XXX_DiscardUnknown()
- func (m *ProverConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProverConfig) XXX_Merge(src proto.Message)
- func (m *ProverConfig) XXX_Size() int
- func (m *ProverConfig) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the module interfaces to protobuf Any.
Types ¶
type ETHMultisig ¶
type ETHMultisig struct {
// contains filtered or unexported fields
}
func NewETHMultisig ¶
func NewETHMultisig(cdc codec.ProtoCodecMarshaler, diversifier string, keys []*ecdsa.PrivateKey, prefix []byte) ETHMultisig
func (ETHMultisig) Addresses ¶
func (m ETHMultisig) Addresses() []common.Address
func (ETHMultisig) GetCurrentTimestamp ¶
func (m ETHMultisig) GetCurrentTimestamp() uint64
GetCurrentTimestamp returns current time
func (ETHMultisig) SignChannelState ¶
func (m ETHMultisig) SignChannelState(height clienttypes.Height, portID, channelID string, channel chantypes.Channel) (*ethmultisigtypes.MultiSignature, []byte, error)
func (ETHMultisig) SignClientState ¶
func (m ETHMultisig) SignClientState(height clienttypes.Height, clientID string, clientState exported.ClientState) (*ethmultisigtypes.MultiSignature, []byte, error)
func (ETHMultisig) SignConnectionState ¶
func (m ETHMultisig) SignConnectionState(height clienttypes.Height, connectionID string, connection conntypes.ConnectionEnd) (*ethmultisigtypes.MultiSignature, []byte, error)
func (ETHMultisig) SignConsensusState ¶
func (m ETHMultisig) SignConsensusState(height clienttypes.Height, clientID string, dstClientConsHeight ibcexported.Height, consensusState exported.ConsensusState) (*ethmultisigtypes.MultiSignature, []byte, error)
func (ETHMultisig) SignPacketAcknowledgementState ¶
func (m ETHMultisig) SignPacketAcknowledgementState(height clienttypes.Height, portID, channelID string, sequence uint64, acknowledgementCommitment []byte) (*ethmultisigtypes.MultiSignature, []byte, error)
func (ETHMultisig) SignPacketState ¶
func (m ETHMultisig) SignPacketState(height clienttypes.Height, portID, channelID string, sequence uint64, packetCommitment []byte) (*ethmultisigtypes.MultiSignature, []byte, error)
func (ETHMultisig) SignState ¶
func (m ETHMultisig) SignState(height ethmultisigtypes.Height, dtp ethmultisigtypes.SignBytes_DataType, path, value []byte) (*ethmultisigtypes.MultiSignature, []byte, error)
type HDWallet ¶
type HDWallet struct { Mnemonic string `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` HdwPath string `protobuf:"bytes,2,opt,name=hdw_path,json=hdwPath,proto3" json:"hdw_path,omitempty"` }
func (*HDWallet) Descriptor ¶
func (*HDWallet) GetHdwPath ¶
func (*HDWallet) GetMnemonic ¶
func (*HDWallet) MarshalToSizedBuffer ¶
func (*HDWallet) ProtoMessage ¶
func (*HDWallet) ProtoMessage()
func (*HDWallet) XXX_DiscardUnknown ¶
func (m *HDWallet) XXX_DiscardUnknown()
func (*HDWallet) XXX_Marshal ¶
func (*HDWallet) XXX_Unmarshal ¶
type Module ¶
type Module struct{}
func (Module) RegisterInterfaces ¶
func (m Module) RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the module interfaces to protobuf Any.
type Prover ¶
type Prover struct {
// contains filtered or unexported fields
}
func (*Prover) CreateMsgCreateClient ¶
func (pr *Prover) CreateMsgCreateClient(clientID string, dstHeader core.HeaderI, signer sdk.AccAddress) (*clienttypes.MsgCreateClient, error)
CreateMsgCreateClient creates a CreateClientMsg to this chain
func (*Prover) GetLatestLightHeight ¶
GetLatestLightHeight returns the latest height on the light client
func (*Prover) GetSequeunce ¶
TODO load a sequence value from the persisted storage
func (*Prover) QueryChannelWithProof ¶
func (pr *Prover) QueryChannelWithProof(_ int64) (*chantypes.QueryChannelResponse, error)
QueryChannelWithProof returns the Channel and its proof
func (*Prover) QueryClientConsensusStateWithProof ¶
func (pr *Prover) QueryClientConsensusStateWithProof(_ int64, dstClientConsHeight ibcexported.Height) (*clienttypes.QueryConsensusStateResponse, error)
QueryClientConsensusState returns the ClientConsensusState and its proof
func (*Prover) QueryClientStateWithProof ¶
func (pr *Prover) QueryClientStateWithProof(_ int64) (*clienttypes.QueryClientStateResponse, error)
QueryClientStateWithProof returns the ClientState and its proof
func (*Prover) QueryConnectionWithProof ¶
func (pr *Prover) QueryConnectionWithProof(_ int64) (*conntypes.QueryConnectionResponse, error)
QueryConnectionWithProof returns the Connection and its proof
func (*Prover) QueryLatestHeader ¶
QueryLatestHeader returns the latest header from the chain
func (*Prover) QueryPacketAcknowledgementCommitmentWithProof ¶
func (pr *Prover) QueryPacketAcknowledgementCommitmentWithProof(_ int64, seq uint64) (*chantypes.QueryPacketAcknowledgementResponse, error)
QueryPacketAcknowledgementCommitmentWithProof returns the packet acknowledgement commitment and its proof
func (*Prover) QueryPacketCommitmentWithProof ¶
func (pr *Prover) QueryPacketCommitmentWithProof(_ int64, seq uint64) (comRes *chantypes.QueryPacketCommitmentResponse, err error)
QueryPacketCommitmentWithProof returns the packet commitment and its proof
func (*Prover) SetupHeader ¶
func (pr *Prover) SetupHeader(dst core.LightClientIBCQueryierI, baseSrcHeader core.HeaderI) (core.HeaderI, error)
SetupHeader creates a new header based on a given header
func (*Prover) SignAcknowledgementStateResponse ¶
func (pr *Prover) SignAcknowledgementStateResponse(res *chantypes.QueryPacketAcknowledgementResponse, portID, channelID string, seq uint64) (*chantypes.QueryPacketAcknowledgementResponse, error)
func (*Prover) SignChannelStateResponse ¶
func (pr *Prover) SignChannelStateResponse(res *chantypes.QueryChannelResponse, portID, channelID string) (*chantypes.QueryChannelResponse, error)
func (*Prover) SignClientStateResponse ¶
func (pr *Prover) SignClientStateResponse(res *clienttypes.QueryClientStateResponse, clientID string) (*clienttypes.QueryClientStateResponse, error)
func (*Prover) SignConnectionStateResponse ¶
func (pr *Prover) SignConnectionStateResponse(res *conntypes.QueryConnectionResponse, connectionID string) (*conntypes.QueryConnectionResponse, error)
func (*Prover) SignConsensusStateResponse ¶
func (pr *Prover) SignConsensusStateResponse(res *clienttypes.QueryConsensusStateResponse, clientID string, dstClientConsHeight ibcexported.Height) (*clienttypes.QueryConsensusStateResponse, error)
func (*Prover) SignPacketStateResponse ¶
func (pr *Prover) SignPacketStateResponse(res *chantypes.QueryPacketCommitmentResponse, portID, channelID string, seq uint64) (*chantypes.QueryPacketCommitmentResponse, error)
type ProverConfig ¶
type ProverConfig struct { Diversifier string `protobuf:"bytes,1,opt,name=diversifier,proto3" json:"diversifier,omitempty"` Wallets []*HDWallet `protobuf:"bytes,2,rep,name=wallets,proto3" json:"wallets,omitempty"` Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` }
func (*ProverConfig) Descriptor ¶
func (*ProverConfig) Descriptor() ([]byte, []int)
func (*ProverConfig) GetDiversifier ¶
func (m *ProverConfig) GetDiversifier() string
func (*ProverConfig) GetPrefix ¶
func (m *ProverConfig) GetPrefix() string
func (*ProverConfig) GetWallets ¶
func (m *ProverConfig) GetWallets() []*HDWallet
func (*ProverConfig) Marshal ¶
func (m *ProverConfig) Marshal() (dAtA []byte, err error)
func (*ProverConfig) MarshalToSizedBuffer ¶
func (m *ProverConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProverConfig) ProtoMessage ¶
func (*ProverConfig) ProtoMessage()
func (*ProverConfig) Reset ¶
func (m *ProverConfig) Reset()
func (*ProverConfig) Size ¶
func (m *ProverConfig) Size() (n int)
func (*ProverConfig) String ¶
func (m *ProverConfig) String() string
func (*ProverConfig) Unmarshal ¶
func (m *ProverConfig) Unmarshal(dAtA []byte) error
func (*ProverConfig) XXX_DiscardUnknown ¶
func (m *ProverConfig) XXX_DiscardUnknown()
func (*ProverConfig) XXX_Marshal ¶
func (m *ProverConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProverConfig) XXX_Merge ¶
func (m *ProverConfig) XXX_Merge(src proto.Message)
func (*ProverConfig) XXX_Size ¶
func (m *ProverConfig) XXX_Size() int
func (*ProverConfig) XXX_Unmarshal ¶
func (m *ProverConfig) XXX_Unmarshal(b []byte) error