Documentation ¶
Index ¶
- Constants
- Variables
- func BuildSimTx(txf tx.Factory, msgs ...sdk.Msg) ([]byte, error)
- func CalculateGas(queryFunc func(string, []byte) ([]byte, int64, error), txf tx.Factory, ...) (txtypes.SimulateResponse, uint64, error)
- func CreateMnemonic() (string, error)
- func GetChainLogger() *log.RelayLogger
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- type Chain
- func (c *Chain) AverageBlockTime() time.Duration
- func (c *Chain) CLIContext(height int64) sdkCtx.Context
- func (c *Chain) ChainID() string
- func (c *Chain) ClientID() string
- func (c *Chain) Codec() codec.ProtoCodecMarshaler
- func (c *Chain) Config() ChainConfig
- func (c *Chain) ErrCantSetPath(err error) error
- func (c *Chain) GetAddress() (sdk.AccAddress, error)
- func (c *Chain) GetMsgResult(id core.MsgID) (core.MsgResult, error)
- func (c *Chain) Init(homePath string, timeout time.Duration, codec codec.ProtoCodecMarshaler, ...) error
- func (c *Chain) Key() string
- func (c *Chain) KeyExists(name string) bool
- func (c *Chain) LatestHeight() (ibcexported.Height, error)
- func (c *Chain) LogFailedTx(res *sdk.TxResponse, err error, msgs []sdk.Msg)
- func (c *Chain) LogSuccessTx(res *sdk.TxResponse, msgs []sdk.Msg)
- func (c *Chain) MustGetAddress() sdk.AccAddress
- func (c *Chain) Path() *core.PathEnd
- func (c *Chain) Print(toPrint proto.Message, text, indent bool) error
- func (c *Chain) QueryBalance(ctx core.QueryContext, addr sdk.AccAddress) (sdk.Coins, error)
- func (c *Chain) QueryChannel(ctx core.QueryContext) (chanRes *chantypes.QueryChannelResponse, err error)
- func (c *Chain) QueryClientConsensusState(ctx core.QueryContext, dstClientConsHeight ibcexported.Height) (*clienttypes.QueryConsensusStateResponse, error)
- func (c *Chain) QueryClientState(ctx core.QueryContext) (*clienttypes.QueryClientStateResponse, error)
- func (c *Chain) QueryConnection(ctx core.QueryContext) (*conntypes.QueryConnectionResponse, error)
- func (c *Chain) QueryDenomTraces(ctx core.QueryContext, offset, limit uint64) (*transfertypes.QueryDenomTracesResponse, error)
- func (c *Chain) QueryHistoricalInfo(height clienttypes.Height) (*stakingtypes.QueryHistoricalInfoResponse, error)
- func (c *Chain) QueryTxs(height int64, page, limit int, events []string) ([]*ctypes.ResultTx, error)
- func (c *Chain) QueryUnbondingPeriod() (time.Duration, error)
- func (c *Chain) QueryUnfinalizedRelayAcknowledgements(ctx core.QueryContext, counterparty core.LightClientICS04Querier) (core.PacketInfoList, error)
- func (c *Chain) QueryUnfinalizedRelayPackets(ctx core.QueryContext, counterparty core.LightClientICS04Querier) (core.PacketInfoList, error)
- func (c *Chain) QueryUnreceivedAcknowledgements(ctx core.QueryContext, seqs []uint64) ([]uint64, error)
- func (c *Chain) QueryUnreceivedPackets(ctx core.QueryContext, seqs []uint64) ([]uint64, error)
- func (c *Chain) QueryValsetAtHeight(height clienttypes.Height) (*tmproto.ValidatorSet, error)
- func (c *Chain) RegisterMsgEventListener(listener core.MsgEventListener)
- func (c *Chain) SendMsgs(msgs []sdk.Msg) ([]core.MsgID, error)
- func (c *Chain) SetRelayInfo(p *core.PathEnd, _ *core.ProvableChain, _ *core.PathEnd) error
- func (c *Chain) SetupForRelay(ctx context.Context) error
- func (c *Chain) Timestamp(height ibcexported.Height) (time.Time, error)
- func (c *Chain) TxFactory(height int64) tx.Factory
- func (c *Chain) UseSDKContext() func()
- type ChainConfig
- func (c ChainConfig) Build() (core.Chain, error)
- func (*ChainConfig) Descriptor() ([]byte, []int)
- func (m *ChainConfig) Marshal() (dAtA []byte, err error)
- func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainConfig) ProtoMessage()
- func (m *ChainConfig) Reset()
- func (m *ChainConfig) Size() (n int)
- func (m *ChainConfig) String() string
- func (m *ChainConfig) Unmarshal(dAtA []byte) error
- func (c ChainConfig) Validate() error
- func (m *ChainConfig) XXX_DiscardUnknown()
- func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainConfig) XXX_Merge(src proto.Message)
- func (m *ChainConfig) XXX_Size() int
- func (m *ChainConfig) XXX_Unmarshal(b []byte) error
- type Fraction
- func (*Fraction) Descriptor() ([]byte, []int)
- func (m *Fraction) Marshal() (dAtA []byte, err error)
- func (m *Fraction) MarshalTo(dAtA []byte) (int, error)
- func (m *Fraction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Fraction) ProtoMessage()
- func (m *Fraction) Reset()
- func (m *Fraction) Size() (n int)
- func (m *Fraction) String() string
- func (m *Fraction) Unmarshal(dAtA []byte) error
- func (m *Fraction) XXX_DiscardUnknown()
- func (m *Fraction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Fraction) XXX_Merge(src proto.Message)
- func (m *Fraction) XXX_Size() int
- func (m *Fraction) XXX_Unmarshal(b []byte) error
- type MsgID
- func (*MsgID) Descriptor() ([]byte, []int)
- func (*MsgID) Is_MsgID()
- func (m *MsgID) Marshal() (dAtA []byte, err error)
- func (m *MsgID) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgID) ProtoMessage()
- func (m *MsgID) Reset()
- func (m *MsgID) Size() (n int)
- func (m *MsgID) String() string
- func (m *MsgID) Unmarshal(dAtA []byte) error
- func (m *MsgID) XXX_DiscardUnknown()
- func (m *MsgID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgID) XXX_Merge(src proto.Message)
- func (m *MsgID) XXX_Size() int
- func (m *MsgID) XXX_Unmarshal(b []byte) error
- type MsgResult
- type Prover
- func (pr *Prover) CheckRefreshRequired(counterparty core.ChainInfoICS02Querier) (bool, error)
- func (pr *Prover) CreateInitialLightClientState(height ibcexported.Height) (ibcexported.ClientState, ibcexported.ConsensusState, error)
- func (pr *Prover) DeleteLightDB() error
- func (pr *Prover) GetLatestFinalizedHeader() (core.Header, error)
- func (pr *Prover) GetLatestLightHeader() (*tmclient.Header, error)
- func (pr *Prover) GetLatestLightHeight() (int64, error)
- func (pr *Prover) GetLightSignedHeaderAtHeight(height int64) (*tmclient.Header, error)
- func (pr *Prover) Init(homePath string, timeout time.Duration, codec codec.ProtoCodecMarshaler, ...) error
- func (pr *Prover) LightClient(db dbm.DB) (*light.Client, error)
- func (pr *Prover) LightClientWithTrust(db dbm.DB, to light.TrustOptions) (*light.Client, error)
- func (pr *Prover) LightClientWithoutTrust(db dbm.DB) (*light.Client, error)
- func (pr *Prover) LightHTTP() lightp.Provider
- func (pr *Prover) NewLightDB() (db *dbm.GoLevelDB, df func(), err error)
- func (pr *Prover) ProveHostConsensusState(ctx core.QueryContext, height ibcexported.Height, ...) ([]byte, error)
- func (pr *Prover) ProveState(ctx core.QueryContext, path string, value []byte) ([]byte, clienttypes.Height, error)
- func (pr *Prover) SetRelayInfo(_ *core.PathEnd, _ *core.ProvableChain, _ *core.PathEnd) error
- func (pr *Prover) SetupForRelay(ctx context.Context) error
- func (pr *Prover) SetupHeadersForUpdate(counterparty core.FinalityAwareChain, latestFinalizedHeader core.Header) ([]core.Header, error)
- func (pr *Prover) TrustOptions(height int64, hash []byte) light.TrustOptions
- func (pr *Prover) UpdateLightClient(height int64) (*tmclient.Header, error)
- type ProverConfig
- func (c ProverConfig) Build(chain core.Chain) (core.Prover, error)
- func (*ProverConfig) Descriptor() ([]byte, []int)
- func (c ProverConfig) GetTrustingPeriod() time.Duration
- 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 (c ProverConfig) Validate() 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 ¶
const (
MsgIndexAttributeKey = "msg_index"
)
Variables ¶
var ( ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConfig = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConfig = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMsgid = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsgid = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsgid = fmt.Errorf("proto: unexpected end of group") )
var ErrLightNotInitialized = errors.New("light client is not initialized")
ErrLightNotInitialized returns the canonical error for a an uninitialized light client
Functions ¶
func BuildSimTx ¶ added in v0.1.1
BuildSimTx creates an unsigned tx with an empty single signature and returns the encoded transaction or an error if the unsigned transaction cannot be built.
func CalculateGas ¶ added in v0.1.1
func CalculateGas( queryFunc func(string, []byte) ([]byte, int64, error), txf tx.Factory, msgs ...sdk.Msg, ) (txtypes.SimulateResponse, uint64, error)
CalculateGas simulates the execution of a transaction and returns the simulation response obtained by the query and the adjusted gas amount.
func GetChainLogger ¶ added in v0.4.25
func GetChainLogger() *log.RelayLogger
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the module interfaces to protobuf Any.
Types ¶
type Chain ¶
type Chain struct { // TODO: make these private HomePath string `yaml:"-" json:"-"` PathEnd *core.PathEnd `yaml:"-" json:"-"` Keybase keys.Keyring `yaml:"-" json:"-"` Client rpcclient.Client `yaml:"-" json:"-"` // contains filtered or unexported fields }
Chain represents the necessary data for connecting to and indentifying a chain and its counterparites
func (*Chain) AverageBlockTime ¶ added in v0.4.9
func (*Chain) CLIContext ¶
CLIContext returns an instance of client.Context derived from Chain
func (*Chain) Codec ¶ added in v0.1.1
func (c *Chain) Codec() codec.ProtoCodecMarshaler
func (*Chain) Config ¶
func (c *Chain) Config() ChainConfig
func (*Chain) ErrCantSetPath ¶
ErrCantSetPath returns an error if the path doesn't set properly
func (*Chain) GetAddress ¶
func (c *Chain) GetAddress() (sdk.AccAddress, error)
GetAddress returns the sdk.AccAddress associated with the configred key
func (*Chain) GetMsgResult ¶ added in v0.4.9
func (*Chain) LatestHeight ¶ added in v0.3.1
func (c *Chain) LatestHeight() (ibcexported.Height, error)
LatestHeight queries the chain for the latest height and returns it
func (*Chain) LogFailedTx ¶
LogFailedTx takes the transaction and the messages to create it and logs the appropriate data
func (*Chain) LogSuccessTx ¶
func (c *Chain) LogSuccessTx(res *sdk.TxResponse, msgs []sdk.Msg)
LogSuccessTx take the transaction and the messages to create it and logs the appropriate data
func (*Chain) MustGetAddress ¶
func (c *Chain) MustGetAddress() sdk.AccAddress
MustGetAddress used for brevity
func (*Chain) Print ¶
Print fmt.Printlns the json or yaml representation of whatever is passed in CONTRACT: The cmd calling this function needs to have the "json" and "indent" flags set TODO: better "text" printing here would be a nice to have TODO: fix indenting all over the code base
func (*Chain) QueryBalance ¶
func (c *Chain) QueryBalance(ctx core.QueryContext, addr sdk.AccAddress) (sdk.Coins, error)
QueryBalance returns the amount of coins in the relayer account
func (*Chain) QueryChannel ¶
func (c *Chain) QueryChannel(ctx core.QueryContext) (chanRes *chantypes.QueryChannelResponse, err error)
QueryChannel returns the channel associated with a channelID
func (*Chain) QueryClientConsensusState ¶
func (c *Chain) QueryClientConsensusState( ctx core.QueryContext, dstClientConsHeight ibcexported.Height) (*clienttypes.QueryConsensusStateResponse, error)
QueryClientConsensusState retrevies the latest consensus state for a client in state at a given height
func (*Chain) QueryClientState ¶
func (c *Chain) QueryClientState(ctx core.QueryContext) (*clienttypes.QueryClientStateResponse, error)
QueryClientState retrevies the latest consensus state for a client in state at a given height
func (*Chain) QueryConnection ¶
func (c *Chain) QueryConnection(ctx core.QueryContext) (*conntypes.QueryConnectionResponse, error)
QueryConnection returns the remote end of a given connection
func (*Chain) QueryDenomTraces ¶
func (c *Chain) QueryDenomTraces(ctx core.QueryContext, offset, limit uint64) (*transfertypes.QueryDenomTracesResponse, error)
QueryDenomTraces returns all the denom traces from a given chain
func (*Chain) QueryHistoricalInfo ¶
func (c *Chain) QueryHistoricalInfo(height clienttypes.Height) (*stakingtypes.QueryHistoricalInfoResponse, error)
QueryHistoricalInfo returns historical header data
func (*Chain) QueryTxs ¶
func (c *Chain) QueryTxs(height int64, page, limit int, events []string) ([]*ctypes.ResultTx, error)
QueryTxs returns an array of transactions given a tag
func (*Chain) QueryUnbondingPeriod ¶
QueryUnbondingPeriod returns the unbonding period of the chain
func (*Chain) QueryUnfinalizedRelayAcknowledgements ¶ added in v0.4.2
func (c *Chain) QueryUnfinalizedRelayAcknowledgements(ctx core.QueryContext, counterparty core.LightClientICS04Querier) (core.PacketInfoList, error)
func (*Chain) QueryUnfinalizedRelayPackets ¶ added in v0.4.2
func (c *Chain) QueryUnfinalizedRelayPackets(ctx core.QueryContext, counterparty core.LightClientICS04Querier) (core.PacketInfoList, error)
func (*Chain) QueryUnreceivedAcknowledgements ¶ added in v0.4.2
func (c *Chain) QueryUnreceivedAcknowledgements(ctx core.QueryContext, seqs []uint64) ([]uint64, error)
QueryUnreceivedAcknowledgements returns a list of unrelayed packet acks
func (*Chain) QueryUnreceivedPackets ¶ added in v0.4.2
QueryUnreceivedPackets returns a list of unrelayed packet commitments
func (*Chain) QueryValsetAtHeight ¶
func (c *Chain) QueryValsetAtHeight(height clienttypes.Height) (*tmproto.ValidatorSet, error)
QueryValsetAtHeight returns the validator set at a given height
func (*Chain) RegisterMsgEventListener ¶ added in v0.1.2
func (c *Chain) RegisterMsgEventListener(listener core.MsgEventListener)
RegisterMsgEventListener registers a given EventListener to the chain
func (*Chain) SetRelayInfo ¶ added in v0.1.2
SetRelayInfo sets source's path and counterparty's info to the chain
func (*Chain) SetupForRelay ¶ added in v0.1.2
func (*Chain) UseSDKContext ¶
func (c *Chain) UseSDKContext() func()
UseSDKContext uses a custom Bech32 account prefix and returns a restore func CONTRACT: When using this function, caller must ensure that lock contention doesn't cause program to hang.
type ChainConfig ¶
type ChainConfig struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` RpcAddr string `protobuf:"bytes,3,opt,name=rpc_addr,json=rpcAddr,proto3" json:"rpc_addr,omitempty"` AccountPrefix string `protobuf:"bytes,4,opt,name=account_prefix,json=accountPrefix,proto3" json:"account_prefix,omitempty"` GasAdjustment float64 `protobuf:"fixed64,5,opt,name=gas_adjustment,json=gasAdjustment,proto3" json:"gas_adjustment,omitempty"` GasPrices string `protobuf:"bytes,6,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` AverageBlockTimeMsec uint64 `` /* 126-byte string literal not displayed */ MaxRetryForCommit uint64 `protobuf:"varint,8,opt,name=max_retry_for_commit,json=maxRetryForCommit,proto3" json:"max_retry_for_commit,omitempty"` }
func (*ChainConfig) Descriptor ¶
func (*ChainConfig) Descriptor() ([]byte, []int)
func (*ChainConfig) Marshal ¶
func (m *ChainConfig) Marshal() (dAtA []byte, err error)
func (*ChainConfig) MarshalToSizedBuffer ¶
func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChainConfig) ProtoMessage ¶
func (*ChainConfig) ProtoMessage()
func (*ChainConfig) Reset ¶
func (m *ChainConfig) Reset()
func (*ChainConfig) Size ¶
func (m *ChainConfig) Size() (n int)
func (*ChainConfig) String ¶
func (m *ChainConfig) String() string
func (*ChainConfig) Unmarshal ¶
func (m *ChainConfig) Unmarshal(dAtA []byte) error
func (ChainConfig) Validate ¶ added in v0.4.12
func (c ChainConfig) Validate() error
func (*ChainConfig) XXX_DiscardUnknown ¶
func (m *ChainConfig) XXX_DiscardUnknown()
func (*ChainConfig) XXX_Marshal ¶
func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainConfig) XXX_Merge ¶
func (m *ChainConfig) XXX_Merge(src proto.Message)
func (*ChainConfig) XXX_Size ¶
func (m *ChainConfig) XXX_Size() int
func (*ChainConfig) XXX_Unmarshal ¶
func (m *ChainConfig) XXX_Unmarshal(b []byte) error
type Fraction ¶ added in v0.4.15
type Fraction struct { Numerator uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"` }
func (*Fraction) Descriptor ¶ added in v0.4.15
func (*Fraction) MarshalToSizedBuffer ¶ added in v0.4.15
func (*Fraction) ProtoMessage ¶ added in v0.4.15
func (*Fraction) ProtoMessage()
func (*Fraction) XXX_DiscardUnknown ¶ added in v0.4.15
func (m *Fraction) XXX_DiscardUnknown()
func (*Fraction) XXX_Marshal ¶ added in v0.4.15
func (*Fraction) XXX_Unmarshal ¶ added in v0.4.15
type MsgID ¶ added in v0.4.9
type MsgID struct { TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` MsgIndex uint32 `protobuf:"varint,2,opt,name=msg_index,json=msgIndex,proto3" json:"msg_index,omitempty"` }
func (*MsgID) Descriptor ¶ added in v0.4.13
func (*MsgID) MarshalToSizedBuffer ¶ added in v0.4.13
func (*MsgID) ProtoMessage ¶ added in v0.4.13
func (*MsgID) ProtoMessage()
func (*MsgID) XXX_DiscardUnknown ¶ added in v0.4.13
func (m *MsgID) XXX_DiscardUnknown()
func (*MsgID) XXX_Marshal ¶ added in v0.4.13
func (*MsgID) XXX_Unmarshal ¶ added in v0.4.13
type MsgResult ¶ added in v0.4.9
type MsgResult struct {
// contains filtered or unexported fields
}
func (*MsgResult) BlockHeight ¶ added in v0.4.9
func (r *MsgResult) BlockHeight() clienttypes.Height
func (*MsgResult) Events ¶ added in v0.4.9
func (r *MsgResult) Events() []core.MsgEventLog
type Prover ¶ added in v0.1.1
type Prover struct {
// contains filtered or unexported fields
}
func NewProver ¶ added in v0.1.1
func NewProver(chain *Chain, config ProverConfig) *Prover
func (*Prover) CheckRefreshRequired ¶ added in v0.4.15
func (pr *Prover) CheckRefreshRequired(counterparty core.ChainInfoICS02Querier) (bool, error)
func (*Prover) CreateInitialLightClientState ¶ added in v0.4.19
func (pr *Prover) CreateInitialLightClientState(height ibcexported.Height) (ibcexported.ClientState, ibcexported.ConsensusState, error)
CreateInitialLightClientState creates a pair of ClientState and ConsensusState submitted to the counterparty chain as MsgCreateClient
func (*Prover) DeleteLightDB ¶ added in v0.1.1
DeleteLightDB removes the light client database on disk, forcing re-initialization
func (*Prover) GetLatestFinalizedHeader ¶ added in v0.3.1
GetLatestFinalizedHeader returns the latest finalized header
func (*Prover) GetLatestLightHeader ¶ added in v0.1.1
GetLatestLightHeader returns the header to be used for client creation
func (*Prover) GetLatestLightHeight ¶ added in v0.1.1
GetLatestLightHeight uses the CLI utilities to pull the latest height from a given chain
func (*Prover) GetLightSignedHeaderAtHeight ¶ added in v0.1.1
GetLightSignedHeaderAtHeight returns a signed header at a particular height.
func (*Prover) LightClient ¶ added in v0.1.1
LightClient initializes the light client for a given chain from the trusted store in the database this should be call for all other light client usage
func (*Prover) LightClientWithTrust ¶ added in v0.1.1
LightClientWithTrust takes a header from the chain and attempts to add that header to the light database.
func (*Prover) LightClientWithoutTrust ¶ added in v0.1.1
LightClientWithoutTrust querys the latest header from the chain and initializes a new light client database using that header. This should only be called when first initializing the light client
func (*Prover) NewLightDB ¶ added in v0.1.1
func (*Prover) ProveHostConsensusState ¶ added in v0.4.21
func (pr *Prover) ProveHostConsensusState(ctx core.QueryContext, height ibcexported.Height, consensusState ibcexported.ConsensusState) ([]byte, error)
ProveHostConsensusState returns the existence proof of the consensus state at `height` ibc-go doesn't use this proof, so it returns nil
func (*Prover) ProveState ¶ added in v0.4.2
func (pr *Prover) ProveState(ctx core.QueryContext, path string, value []byte) ([]byte, clienttypes.Height, error)
ProveState returns the proof of an IBC state specified by `path` and `value`
func (*Prover) SetRelayInfo ¶ added in v0.1.2
SetRelayInfo sets source's path and counterparty's info to the chain
func (*Prover) SetupForRelay ¶ added in v0.1.2
func (*Prover) SetupHeadersForUpdate ¶ added in v0.3.1
func (pr *Prover) SetupHeadersForUpdate(counterparty core.FinalityAwareChain, latestFinalizedHeader core.Header) ([]core.Header, error)
SetupHeadersForUpdate returns the finalized header and any intermediate headers needed to apply it to the client on the counterpaty chain
func (*Prover) TrustOptions ¶ added in v0.1.1
func (pr *Prover) TrustOptions(height int64, hash []byte) light.TrustOptions
TrustOptions returns light.TrustOptions given a height and hash
type ProverConfig ¶ added in v0.1.1
type ProverConfig struct { TrustingPeriod string `protobuf:"bytes,1,opt,name=trusting_period,json=trustingPeriod,proto3" json:"trusting_period,omitempty"` RefreshThresholdRate *Fraction `protobuf:"bytes,2,opt,name=refresh_threshold_rate,json=refreshThresholdRate,proto3" json:"refresh_threshold_rate,omitempty"` }
func (*ProverConfig) Descriptor ¶ added in v0.1.1
func (*ProverConfig) Descriptor() ([]byte, []int)
func (ProverConfig) GetTrustingPeriod ¶ added in v0.4.15
func (c ProverConfig) GetTrustingPeriod() time.Duration
func (*ProverConfig) Marshal ¶ added in v0.1.1
func (m *ProverConfig) Marshal() (dAtA []byte, err error)
func (*ProverConfig) MarshalTo ¶ added in v0.1.1
func (m *ProverConfig) MarshalTo(dAtA []byte) (int, error)
func (*ProverConfig) MarshalToSizedBuffer ¶ added in v0.1.1
func (m *ProverConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProverConfig) ProtoMessage ¶ added in v0.1.1
func (*ProverConfig) ProtoMessage()
func (*ProverConfig) Reset ¶ added in v0.1.1
func (m *ProverConfig) Reset()
func (*ProverConfig) Size ¶ added in v0.1.1
func (m *ProverConfig) Size() (n int)
func (*ProverConfig) String ¶ added in v0.1.1
func (m *ProverConfig) String() string
func (*ProverConfig) Unmarshal ¶ added in v0.1.1
func (m *ProverConfig) Unmarshal(dAtA []byte) error
func (ProverConfig) Validate ¶ added in v0.4.12
func (c ProverConfig) Validate() error
func (*ProverConfig) XXX_DiscardUnknown ¶ added in v0.1.1
func (m *ProverConfig) XXX_DiscardUnknown()
func (*ProverConfig) XXX_Marshal ¶ added in v0.1.1
func (m *ProverConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProverConfig) XXX_Merge ¶ added in v0.1.1
func (m *ProverConfig) XXX_Merge(src proto.Message)
func (*ProverConfig) XXX_Size ¶ added in v0.1.1
func (m *ProverConfig) XXX_Size() int
func (*ProverConfig) XXX_Unmarshal ¶ added in v0.1.1
func (m *ProverConfig) XXX_Unmarshal(b []byte) error