IRISHUB-238: Add multiply store proof build and verification
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
|
||||
rpcclient "github.com/tendermint/tendermint/rpc/client"
|
||||
tendermintLite "github.com/tendermint/tendermint/lite"
|
||||
)
|
||||
|
||||
const ctxAccStoreName = "acc"
|
||||
@@ -32,6 +33,8 @@ type CLIContext struct {
|
||||
Async bool
|
||||
JSON bool
|
||||
PrintResponse bool
|
||||
Certifier tendermintLite.Certifier
|
||||
ClientManager *ClientManager
|
||||
}
|
||||
|
||||
// NewCLIContext returns a new initialized CLIContext with parameters from the
|
||||
@@ -117,3 +120,15 @@ func (ctx CLIContext) WithUseLedger(useLedger bool) CLIContext {
|
||||
ctx.UseLedger = useLedger
|
||||
return ctx
|
||||
}
|
||||
|
||||
// WithCertifier - return a copy of the context with an updated Certifier
|
||||
func (ctx CLIContext) WithCertifier(certifier tendermintLite.Certifier) CLIContext {
|
||||
ctx.Certifier = certifier
|
||||
return ctx
|
||||
}
|
||||
|
||||
// WithClientManager - return a copy of the context with an updated ClientManager
|
||||
func (ctx CLIContext) WithClientManager(clientManager *ClientManager) CLIContext {
|
||||
ctx.ClientManager = clientManager
|
||||
return ctx
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user