middleware

package
v0.7.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Class to interact with the underlying blockchain to operate on the highway

Index

Constants

View Source
const (
	// Standard ports for the sonr grpc and rpc api endpoints.
	SonrGrpcPort = "0.0.0.0:9090"
	SonrRpcPort  = "0.0.0.0:26657"

	// CurrentChainID is the current chain ID.
	CurrentChainID = "sonrdevnet-1"

	// ChallengeLength - Length of bytes to generate for a challenge
	ChallengeLength = 32
)

Variables

This section is empty.

Functions

func CheckAlias

func CheckAlias(alias string) (bool, error)

CheckAlias checks if an alias is already registered

func GetDID

func GetDID(alias string) (*identitytypes.DIDDocument, error)

GetDID returns the DIDDocument of a given DID or Alias

func GetHomeDir

func GetHomeDir() string

func GetServiceRecord

func GetServiceRecord(origin string) (*servicetypes.ServiceRecord, error)

GetServiceRecord returns the ServiceRecord of a given origin

func GetUnclaimedWallet

func GetUnclaimedWallet(id uint64) (*vaulttypes.ClaimableWallet, error)

GetUnclaimedWallet returns the UnclaimedWallet of a given id

func GrpcEndpoint

func GrpcEndpoint() string

func NextUnclaimedWallet

func NextUnclaimedWallet() (*vaulttypes.ClaimableWallet, error)

NextUnclaimedWallet returns the next UnclaimedWallet from the queue

func RpcEndpoint

func RpcEndpoint() string

func ValidatorAddress

func ValidatorAddress() (string, bool)

Types

type ClaimableWallet

type ClaimableWallet struct {
	Index   string `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

type QueryAllClaimableWalletResponse

type QueryAllClaimableWalletResponse struct {
	ClaimableWallet []ClaimableWallet `protobuf:"bytes,1,rep,name=ClaimableWallet,proto3" json:"ClaimableWallet"`
}

type QueryGetClaimableWalletResponse

type QueryGetClaimableWalletResponse struct {
	ClaimableWallet ClaimableWallet `protobuf:"bytes,1,opt,name=ClaimableWallet,proto3" json:"ClaimableWallet"`
}

Jump to

Keyboard shortcuts

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