wallet

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewQuery = client.NewQuery
)

Functions

This section is empty.

Types

type Address

type Address = mavryk.Address

type DexEvent

type DexEvent = defi.DexEvent

type DexPosition

type DexPosition = defi.DexPosition

type DexTrade

type DexTrade = defi.DexTrade

type Domain

type Domain = identity.Domain

type DomainEvent

type DomainEvent = identity.DomainEvent

type FarmEvent

type FarmEvent = defi.FarmEvent

type FarmPosition

type FarmPosition = defi.FarmPosition

type LendingEvent

type LendingEvent = defi.LendingEvent

type LendingPosition

type LendingPosition = defi.LendingPosition

type NftEvent

type NftEvent = nft.NftEvent

type NftPosition

type NftPosition = nft.NftPosition

type NftTrade

type NftTrade = nft.NftTrade

type OpHash

type OpHash = mavryk.OpHash

type Profile

type Profile = identity.Profile

type ProfileClaim

type ProfileClaim = identity.ProfileClaim

type ProfileEvent

type ProfileEvent = identity.ProfileEvent

type Query

type Query = client.Query

type Token

type Token = mavryk.Token

type TokenBalance

type TokenBalance = token.TokenBalance

type TokenEvent

type TokenEvent = token.TokenEvent

type WalletAPI

type WalletAPI interface {
	// Token API
	ListTokenBalances(context.Context, Address, Query) ([]*TokenBalance, error)
	ListTokenEvents(context.Context, Address, Query) ([]*TokenEvent, error)

	// DEX API
	ListDexEvents(context.Context, Address, Query) ([]*DexEvent, error)
	ListDexPositions(context.Context, Address, Query) ([]*DexPosition, error)
	ListDexTrades(context.Context, Address, Query) ([]*DexTrade, error)

	// Farm API
	ListFarmEvents(context.Context, Address, Query) ([]*FarmEvent, error)
	ListFarmPositions(context.Context, Address, Query) ([]*FarmPosition, error)

	// Lending API
	ListLendingEvents(context.Context, Address, Query) ([]*LendingEvent, error)
	ListLendingPositions(context.Context, Address, Query) ([]*LendingPosition, error)

	// NFT API
	ListNftEvents(context.Context, Address, Query) ([]*NftEvent, error)
	ListNftPositions(context.Context, Address, Query) ([]*NftPosition, error)
	ListNftTrades(context.Context, Address, Query) ([]*NftTrade, error)

	// Identity API
	ListDomains(context.Context, Address, Query) ([]*Domain, error)
	ListDomainEvents(context.Context, Address, Query) ([]*DomainEvent, error)
	GetProfile(context.Context, Address) (*Profile, error)
	ListProfileEvents(context.Context, Address, Query) ([]*ProfileEvent, error)
	ListProfileClaims(context.Context, Address, Query) ([]*ProfileClaim, error)
}

func NewWalletAPI

func NewWalletAPI(c *client.Client) WalletAPI

type Z

type Z = mavryk.Z

Jump to

Keyboard shortcuts

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