Documentation ¶
Index ¶
- type Client
- func (n *Client) GetBalance(user string) (sdk.Coins, error)
- func (n *Client) GetDiscordRole(username string) (disgord.Snowflake, error)
- func (n *Client) ParseAddress(address string) (sdk.AccAddress, error)
- func (n *Client) RefreshRoles(s disgord.Session) error
- func (n *Client) SendTokens(user string, amount int64) (*sdk.TxResponse, error)
- func (n *Client) UploadDataToThemis(username string, data *sign.SignatureData) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg *types.NetworkConfig, encodingConfig params.EncodingConfig) (*Client, error)
func (*Client) GetBalance ¶
GetBalance returns the balance of the given user
func (*Client) GetDiscordRole ¶
GetDiscordRole returns the role that should be assigned to the Discord user having the given username, based on the fact that they have connected their Discord account to a validator or user Desmos Profile
func (*Client) ParseAddress ¶
func (n *Client) ParseAddress(address string) (sdk.AccAddress, error)
ParseAddress parses the given address as a sdk.AccAddress instance
func (*Client) RefreshRoles ¶ added in v0.3.0
RefreshRoles refreshes the roles of all the members based on their verification system
func (*Client) SendTokens ¶
SendTokens sends the specified amount of tokens to the provided user
func (*Client) UploadDataToThemis ¶
func (n *Client) UploadDataToThemis(username string, data *sign.SignatureData) error
UploadDataToThemis uploads the given data to Themis
Click to show internal directories.
Click to hide internal directories.