Documentation ¶
Index ¶
- type FileMetadata
- type HydraClient
- type Leaders
- type NFTMetadata
- type NFTReturn
- type Nft
- type Server
- func (s Server) CheckCookie(next echo.HandlerFunc) echo.HandlerFunc
- func (s Server) CreateFight(c echo.Context) (err error)
- func (s Server) DeleteListedNft(c echo.Context) (err error)
- func (s Server) GetAssetsForUser(ctx context.Context, zfcUser db.User) ([]Nft, error)
- func (s Server) GetFightById(c echo.Context) (err error)
- func (s Server) GetLeaders(c echo.Context) (err error)
- func (s Server) GetMyFights(c echo.Context) (err error)
- func (s Server) GetMyNfts(c echo.Context) (err error)
- func (s Server) GetNftsToFight(c echo.Context) (err error)
- func (s Server) GetVersion(c echo.Context) (err error)
- func (s Server) ListNftForFight(c echo.Context) (err error)
- func (s Server) Login(c echo.Context) (err error)
- func (s Server) LoginCheck(c echo.Context) (err error)
- func (s Server) RenderError(errorMsg string, c echo.Context) error
- func (s Server) ReturnStuff(returns []NFTReturn) error
- func (s Server) RunMintingEngine()
- func (s Server) Start()
- type SignedTx
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMetadata ¶
type HydraClient ¶
type HydraClient struct {
// contains filtered or unexported fields
}
func NewHydraClientFromEnv ¶
func NewHydraClientFromEnv() (*HydraClient, error)
type NFTMetadata ¶
type NFTMetadata struct { Name string `json:"name"` Image []string `json:"image"` Collection *string `json:"Project,omitempty"` Traits map[string]string `json:"traits,omitempty"` Artist *string `json:"artist,omitempty"` Site *string `json:"website,omitempty"` Twitter *string `json:"twitter,omitempty"` Copyright *string `json:"copyright,omitempty"` Type *string `json:"type,omitempty"` FileMetadata []FileMetadata `json:"files,omitempty"` }
type Nft ¶
type Nft struct { ID int Name string `json:"name"` Type string `json:"type"` IPFS string `json:"image"` ListedPriceAda *int16 `json:"listedPriceAda,omitempty"` UserOwns bool `json:"userOwns"` Wins int `json:"wins"` Loses int `json:"loses"` }
Zombie store my zombie info
type Server ¶
type Server struct { BuildTime string Sha1ver string NftkeymeOauthConfig *oauth2.Config Store db.Store NftkeymeClient nftkeyme.NftkeymeClient ZombiePolicyId string HunterPolicyId string ZombieMeta map[string]string ZombieMetaStruct map[string]metadata.ZombieChain ZombieChainTraitStrength metadata.ZombieChainTraitStrength HunterMeta map[string]string HunterMetaStruct map[string]metadata.ZombieHunter ZombieHunterTraitStrength metadata.ZombieHunterTraitStrength BaseCostAda int PaymentAddress string BlockfrostClient bfg.APIClient ImageBuilderClient imagebuilder.ImageBuilderClient BlockforstIpfsClient blockfrost.BlockfrostClient NftStorageClient nftstorage.NftstorageClient ZfcPolicyID string AlienPolicyID string BrianSplitAddress string RoyaltySplitAddress string LeaderCache *cache.Cache HydraClient HydraClient }
Server struct
func (Server) CheckCookie ¶
func (s Server) CheckCookie(next echo.HandlerFunc) echo.HandlerFunc
CheckCookie checks incoming cookie to verify authed
func (Server) CreateFight ¶
CreateFight create new fight
func (Server) DeleteListedNft ¶
ListNftForFight list or update nft for fight
func (Server) GetAssetsForUser ¶
func (Server) GetFightById ¶
GetFightById gets fight by id
func (Server) GetLeaders ¶
GetLeaders get all leaders
func (Server) GetMyFights ¶
GetMyFights get all of my fight
func (Server) GetNftsToFight ¶
GetMyNfts get all nfts I own
func (Server) GetVersion ¶
GetVersion return build version info
func (Server) ListNftForFight ¶
ListNftForFight list or update nft for fight
func (Server) Login ¶
Login accept auth code from server, exchange for access/refresh token, create session using gorilla session
func (Server) LoginCheck ¶
func (Server) RenderError ¶
RenderError renders an error page
func (Server) ReturnStuff ¶
func (Server) RunMintingEngine ¶
func (s Server) RunMintingEngine()
Click to show internal directories.
Click to hide internal directories.