Documentation
¶
Index ¶
- Constants
- Variables
- func CheckNewVersion(repo string, current string) (string, error)
- func ConfigClientContract(ctx context.Context, logger log.Logger, configPath string, ...) (*config.Config, *ethclient.Client, contracts.TellorCaller, error)
- func DataIdFullName(id int64) string
- func FinalPrompt(ctx context.Context, logger log.Logger, contract contracts.TellorCaller, ...) bool
- func GetValuesFromInput(logger log.Logger, dataIDs [5]*big.Int) [5]*big.Int
- func PrintReporterStatus(logger log.Logger, statusID *big.Int, started *big.Int)
- func ValidateHex(account string) error
- type AccountArg
- type AccountArgOptional
- type AccountsCmd
- type ApproveCmd
- type BalanceCmd
- type CLI
- type Cfg
- type ContractFlag
- type DataCmd
- type DataserverCmd
- type DecryptCmd
- type DepositCmd
- type DispID
- type DispIDOptional
- type EncryptCmd
- type Gas
- type GasAccount
- type ListCmd
- type LookBck
- type NewDisputeCmd
- type NoChks
- type ReportCmd
- type RequestCmd
- type StatusCmd
- type SubmitCmd
- func (self *SubmitCmd) CreateAggr(ctx context.Context, logger log.Logger, cfg *config.Config) (storage.SampleAndChunkQueryable, *aggregator.Aggregator, error)
- func (self *SubmitCmd) GetValuesFromDB(ctx context.Context, logger log.Logger, cfg *config.Config, ...) ([5]*big.Int, error)
- func (self *SubmitCmd) Run(cli *CLI, ctx context.Context, logger log.Logger) error
- func (self *SubmitCmd) SelectAccount(logger log.Logger) (*ethereum.Account, error)
- func (self *SubmitCmd) Submit(cli *CLI, ctx context.Context, logger log.Logger, account *ethereum.Account, ...) error
- type TallyCmd
- type TallyListCmd
- type TransferCmd
- type UnlockFeeCmd
- type VersionCmd
- type VoteCmd
- type WithdrawCmd
Constants ¶
View Source
const VersionMessage = `` /* 167-byte string literal not displayed */
Variables ¶
View Source
var CLIDefault = CLI{ Dataserver: DataserverCmd{}, Report: ReportCmd{}, Transfer: TransferCmd{}, Approve: ApproveCmd{}, Accounts: AccountsCmd{}, Data: DataCmd{}, Balance: BalanceCmd{}, Stake: stakeCmd{ Deposit: DepositCmd{}, Request: RequestCmd{}, Withdraw: WithdrawCmd{}, Status: StatusCmd{}, }, Dispute: disputeCmd{ New: NewDisputeCmd{}, Vote: VoteCmd{}, List: ListCmd{}, Tally: TallyCmd{}, UnlockFee: UnlockFeeCmd{}, }, Encrypt: EncryptCmd{}, Decrypt: DecryptCmd{}, Version: VersionCmd{}, }
Functions ¶
func ConfigClientContract ¶ added in v0.2.0
func DataIdFullName ¶ added in v0.2.0
func FinalPrompt ¶ added in v0.2.0
func GetValuesFromInput ¶ added in v0.2.0
func PrintReporterStatus ¶ added in v0.2.0
func ValidateHex ¶
Types ¶
type AccountArg ¶
type AccountArg struct {
Account string `arg:"" required:""`
}
func (*AccountArg) Validate ¶
func (self *AccountArg) Validate() error
type AccountArgOptional ¶
type AccountArgOptional struct {
Account string `arg:"" optional:""`
}
func (*AccountArgOptional) Validate ¶
func (self *AccountArgOptional) Validate() error
type AccountsCmd ¶
type AccountsCmd struct { }
type ApproveCmd ¶
type ApproveCmd tokenCmd
type BalanceCmd ¶
type BalanceCmd struct {
AccountArg
}
type CLI ¶
type CLI struct { Cfg ConfigStrictParsing bool `help:"whether to return an error when the config contains unknown fields"` ContractFlag Dataserver DataserverCmd `cmd:"" help:"launch only a dataserver instance"` Report ReportCmd `cmd:"" help:"Submit data to the oracle contracts"` Submit SubmitCmd `cmd:"" help:"Make a single manual submit to the oracle contracts"` Transfer TransferCmd `cmd:"" help:"Transfer tokens"` Approve ApproveCmd `cmd:"" help:"Approve tokens"` Accounts AccountsCmd `cmd:"" help:"Show accounts"` Data DataCmd `cmd:"" help:"Retrieve data from the contract"` Balance BalanceCmd `cmd:"" help:"Check the balance of an address"` Stake stakeCmd `cmd:"" help:"Perform one of the stake operations"` Dispute disputeCmd `cmd:"" help:"Perform commands related to disputes"` Encrypt EncryptCmd `cmd:"" help:"Encrypts a file to be securely stored on disk and later used only with a password prompt"` Decrypt DecryptCmd `cmd:"" help:"Decrypts an ecrypted file and write the decrytped version to disk"` Events eventsCmd `cmd:"" help:"Subscribe to watch logs from the network."` Version VersionCmd `cmd:"" help:"Show the CLI version information"` }
type ContractFlag ¶
type ContractFlag struct {
Contract string `optional:"" help:"hex address of the contract to interract with"`
}
func (*ContractFlag) Validate ¶
func (self *ContractFlag) Validate() error
type DataCmd ¶
type DataserverCmd ¶
type DataserverCmd struct { }
type DecryptCmd ¶
type DecryptCmd struct {
File string `arg:"" required:"" type:"existingfile" help:"the file to encrypt"`
}
type DepositCmd ¶
type DepositCmd struct { GasAccount NoChks }
type DispIDOptional ¶ added in v0.2.0
type DispIDOptional struct {
DisputeID int64 `help:"the dispute id"`
}
type EncryptCmd ¶
type EncryptCmd struct {
File string `arg:"" required:"" type:"existingfile" help:"the file to encrypt"`
}
type Gas ¶
type Gas struct {
GasMaxFee float64 `optional:"" help:"gas max fee to use when running the command"`
}
type GasAccount ¶
type GasAccount struct { Gas AccountArg }
type NewDisputeCmd ¶
type NewDisputeCmd struct { GasAccount NoChks DataID int64 `required:"" help:"the request id to dispute"` Timestamp int64 `required:"" help:"the submitted timestamp to dispute"` Slot int64 `required:"" help:"the reporter index to dispute"` }
type RequestCmd ¶
type RequestCmd struct {
GasAccount
}
type StatusCmd ¶
type StatusCmd struct {
AccountArg
}
type SubmitCmd ¶
type SubmitCmd struct { Gas AccountArgOptional CustomSubmit bool SkipConfirm bool `help:"submit without confirming, useful for testing"` }
func (*SubmitCmd) CreateAggr ¶ added in v0.3.0
func (self *SubmitCmd) CreateAggr(ctx context.Context, logger log.Logger, cfg *config.Config) (storage.SampleAndChunkQueryable, *aggregator.Aggregator, error)
func (*SubmitCmd) GetValuesFromDB ¶ added in v0.2.0
func (*SubmitCmd) SelectAccount ¶ added in v0.2.0
type TallyCmd ¶
type TallyCmd struct { Gas DispIDOptional All bool }
type TallyListCmd ¶
type TallyListCmd struct {
LookBck
}
type TransferCmd ¶
type TransferCmd tokenCmd
type UnlockFeeCmd ¶
type UnlockFeeCmd struct { NoChks Gas DispIDOptional All bool }
type VersionCmd ¶
type VersionCmd struct { }
type VoteCmd ¶
type VoteCmd struct { GasAccount DispID NoChks Support bool `required:"" help:"true or false"` }
type WithdrawCmd ¶
type WithdrawCmd struct {
GasAccount
}
Click to show internal directories.
Click to hide internal directories.