Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGasAdjustment = 1.2 DefaultGasPrice = cosmostypes.DecCoins{{ Denom: terraassets.MicroLunaDenom, Amount: cosmostypes.NewDecWithPrec(150000, 6), }} )
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account interface { GetClient() Client GetChainId() string Update(ctx context.Context) error CreateTx(ctx context.Context, opts CreateTxOptions) (terraauth.StdSignMsg, error) CreateAndSignTx(ctx context.Context, opts CreateTxOptions) (terraauth.StdTx, terraauth.StdSignMsg, error) cosmosauth.Account }
type Client ¶
type Client interface { Auth() service.AuthService Bank() service.BankService Contract() service.ContractService Treasury() service.TreasuryService Tendermint() service.TendermintService Transaction() service.TransactionService }
func NewClient ¶
func NewClient(client httpclient.Client) Client
type CreateTxOptions ¶
type CreateTxOptions struct { Msgs []cosmostypes.Msg Fee *terraauth.StdFee GasAdjustment float64 GasPrices cosmostypes.DecCoins Sequence *uint64 Memo string }
type Key ¶
type Key interface { AccAddress() cosmostypes.AccAddress ValAddress() cosmostypes.ValAddress PubKey() crypto.PubKey SignTx(msg terraauth.StdSignMsg) (terraauth.StdTx, error) MakeSignature(msg terraauth.StdSignMsg) (terraauth.StdSignature, error) }
Click to show internal directories.
Click to hide internal directories.