Skip to content

Commit

Permalink
cosme
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokisan committed Apr 15, 2023
1 parent 5f9611e commit 0e1ef0e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions v5_account_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import (

// V5AccountServiceI :
type V5AccountServiceI interface {
GetWalletBalance(AccountType, []Coin) (*V5WalletBalanceResponse, error)
GetAccountInfo() (*V5AccountInfoResponse, error)
GetWalletBalance(AccountType, []Coin) (*V5GetWalletBalanceResponse, error)
GetAccountInfo() (*V5GetAccountInfoResponse, error)
}

// V5AccountService :
type V5AccountService struct {
client *Client
}

// V5WalletBalanceResponse :
type V5WalletBalanceResponse struct {
// V5GetWalletBalanceResponse :
type V5GetWalletBalanceResponse struct {
CommonV5Response `json:",inline"`
Result V5WalletBalanceResult `json:"result"`
}
Expand Down Expand Up @@ -66,9 +66,9 @@ type V5WalletBalanceList struct {
// coin:
// If not passed, it returns non-zero asset info
// You can pass multiple coins to query, separated by comma. "USDT,USDC".
func (s *V5AccountService) GetWalletBalance(at AccountType, coins []Coin) (*V5WalletBalanceResponse, error) {
func (s *V5AccountService) GetWalletBalance(at AccountType, coins []Coin) (*V5GetWalletBalanceResponse, error) {
var (
res V5WalletBalanceResponse
res V5GetWalletBalanceResponse
query = make(url.Values)
)

Expand All @@ -88,8 +88,8 @@ func (s *V5AccountService) GetWalletBalance(at AccountType, coins []Coin) (*V5Wa
return &res, nil
}

// V5AccountInfoResponse :
type V5AccountInfoResponse struct {
// V5GetAccountInfoResponse :
type V5GetAccountInfoResponse struct {
CommonV5Response `json:",inline"`
Result V5AccountInfoResult `json:"result"`
}
Expand All @@ -102,9 +102,9 @@ type V5AccountInfoResult struct {
}

// GetAccountInfo :
func (s *V5AccountService) GetAccountInfo() (*V5AccountInfoResponse, error) {
func (s *V5AccountService) GetAccountInfo() (*V5GetAccountInfoResponse, error) {
var (
res V5AccountInfoResponse
res V5GetAccountInfoResponse
query = make(url.Values)
)

Expand Down

0 comments on commit 0e1ef0e

Please sign in to comment.