definitions

package
v0.0.0-...-131be4c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CastVoteRequest

type CastVoteRequest struct {
	Election   string `json:"election"`   // Corresponds to CreateElectionResponse.ID
	Voter      string `json:"voter"`      // Input wallet address
	SigningKey Key    `json:"signingKey"` // contents of signing key file for input wallet
	Candidate  string `json:"candidate"`  // Candidate payment address
}

type CastVoteResponse

type CastVoteResponse struct {
	ID string `json:"id"` // Request UUID
}

type CreateElectionRequest

type CreateElectionRequest struct {
}

type CreateElectionResponse

type CreateElectionResponse struct {
	ID              string `json:"id"`              // generated UUID
	PolicyID        string `json:"policyID"`        // https://developers.cardano.org/docs/native-tokens/minting-nfts/
	VerificationKey Key    `json:"verificationKey"` // contents of verification key file
}

type CreateMinterRequest

type CreateMinterRequest struct {
	SigningKey      Key    `json:"signingKey"`      // contents of signing key file
	VerificationKey Key    `json:"verificationKey"` // contents of verification key file
	Address         string `json:"address"`
}

type CreateMinterResponse

type CreateMinterResponse struct {
	ID string `json:"id"`
}

type CreateVoterRequest

type CreateVoterRequest struct {
}

type CreateVoterResponse

type CreateVoterResponse struct {
	SigningKey      Key    `json:"signingKey"`      // contents of signing key file
	VerificationKey Key    `json:"verificationKey"` // contents of verification key file
	Address         string `json:"address"`         // payment address
}

type Key

type Key struct {
	Type        string `json:"type"`
	Description string `json:"description"`
	CborHex     string `json:"cborHex"`
}

type MintVoteRequest

type MintVoteRequest struct {
	Election string `json:"election"` // Corresponds to CreateElectionResponse.ID
	Voter    string `json:"voter"`    // Public address of the voter that will receive the NFT
	Minter   string `json:"minter"`   // Minter UUID
}

type MintVoteResponse

type MintVoteResponse struct {
	ID    string `json:"id"`    // Request UUID
	Asset string `json:"asset"` // Address of the asset; Concatenation of the policy_id and hex-encoded asset_name; https://docs.blockfrost.io/#tag/Cardano-Assets/paths/~1assets~1{asset}/get
}

type QueryAddressRequest

type QueryAddressRequest struct {
	Address string `json:"address"`
}

type QueryAddressResponse

type QueryAddressResponse struct {
	UnspentTransactions []*UnspentTransaction `json:"unspentTransactions"`
}

type UnspentTransaction

type UnspentTransaction struct {
	TxHash   string `json:"txHash"`
	TxIx     int    `json:"txIx"`
	Lovelace int    `json:"lovelace"`
	Balance  string `json:"balance"`
}

Jump to

Keyboard shortcuts

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