Documentation
¶
Index ¶
- type CastVoteRequest
- type CastVoteResponse
- type Commissioner
- type CreateElectionRequest
- type CreateElectionResponse
- type CreateMinterRequest
- type CreateMinterResponse
- type CreateVoterRequest
- type CreateVoterResponse
- type Key
- type MintVoteRequest
- type MintVoteResponse
- type QueryAddressRequest
- type QueryAddressResponse
- type UnspentTransaction
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 Commissioner ¶
type Commissioner interface { CreateElection(CreateElectionRequest) CreateElectionResponse CreateMinter(CreateMinterRequest) CreateMinterResponse CreateVoter(CreateVoterRequest) CreateVoterResponse MintVote(MintVoteRequest) MintVoteResponse CastVote(CastVoteRequest) CastVoteResponse QueryAddress(QueryAddressRequest) QueryAddressResponse }
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 CreateMinterResponse ¶
type CreateMinterResponse struct {
ID string `json:"id"`
}
type CreateVoterRequest ¶
type CreateVoterRequest struct { }
type CreateVoterResponse ¶
type MintVoteRequest ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.