types

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// cosmos
	CosmosBalanceQueryPath = "/cosmos/bank/v1beta1/balances/{balance_address}"
	CosmosBalancePayload   = ""

	// ethereum
	EthereumBalanceQueryPath = ""
	EthereumBalancePayLoad   = `` /* 134-byte string literal not displayed */

)

Variables

View Source
var (
	// common
	SupportedProtocolTypes = []string{"cosmos", "ethereum"}
)

Functions

This section is empty.

Types

type BalanceStatus

type BalanceStatus struct {
	Address          string
	RemainingBalance float64
}

type CommonBalance

type CommonBalance struct {
	Balances []BalanceStatus
}

type CosmosBalanceResponse

type CosmosBalanceResponse struct {
	Balances []struct {
		Denom  string `json:"denom"`
		Amount string `json:"amount"`
	} `json:"balances"`
	Pagination interface{} `json:"-"`
}

type EthereumBalanceResponse

type EthereumBalanceResponse struct {
	JsonRPC string `json:"jsonrpc"`
	ID      int    `json:"id"`
	Result  string `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL