diff options
Diffstat (limited to 'daemon/algod/api/server/v2/generated/types.go')
-rw-r--r-- | daemon/algod/api/server/v2/generated/types.go | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/daemon/algod/api/server/v2/generated/types.go b/daemon/algod/api/server/v2/generated/types.go index 2ee2e91cd..6e10c1f78 100644 --- a/daemon/algod/api/server/v2/generated/types.go +++ b/daemon/algod/api/server/v2/generated/types.go @@ -340,6 +340,34 @@ type EvalDeltaKeyValue struct { Value EvalDelta `json:"value"` } +// ParticipationKey defines model for ParticipationKey. +type ParticipationKey struct { + + // Address the key was generated for. + Address string `json:"address"` + + // When registered, this is the first round it may be used. + EffectiveFirstValid *uint64 `json:"effective-first-valid,omitempty"` + + // When registered, this is the last round it may be used. + EffectiveLastValid *uint64 `json:"effective-last-valid,omitempty"` + + // The key's ParticipationID. + Id string `json:"id"` + + // AccountParticipation describes the parameters used by this account in consensus protocol. + Key AccountParticipation `json:"key"` + + // Round when this key was last used to propose a block. + LastBlockProposal *uint64 `json:"last-block-proposal,omitempty"` + + // Round when this key was last used to generate a state proof. + LastStateProof *uint64 `json:"last-state-proof,omitempty"` + + // Round when this key was last used to vote. + LastVote *uint64 `json:"last-vote,omitempty"` +} + // PendingTransactionResponse defines model for PendingTransactionResponse. type PendingTransactionResponse struct { @@ -406,7 +434,7 @@ type TealValue struct { // \[tb\] bytes value. Bytes string `json:"bytes"` - // \[tt\] value type. + // \[tt\] value type. Value `1` refers to **bytes**, value `2` refers to **uint** Type uint64 `json:"type"` // \[ui\] uint value. @@ -588,6 +616,16 @@ type NodeStatusResponse struct { TimeSinceLastRound uint64 `json:"time-since-last-round"` } +// ParticipationKeyResponse defines model for ParticipationKeyResponse. +type ParticipationKeyResponse struct { + + // Detailed description of a participation key + ParticipationKey string `json:"participationKey"` +} + +// ParticipationKeysResponse defines model for ParticipationKeysResponse. +type ParticipationKeysResponse []ParticipationKey + // PendingTransactionsResponse defines model for PendingTransactionsResponse. type PendingTransactionsResponse struct { @@ -598,6 +636,13 @@ type PendingTransactionsResponse struct { TotalTransactions uint64 `json:"total-transactions"` } +// PostParticipationResponse defines model for PostParticipationResponse. +type PostParticipationResponse struct { + + // encoding of the participation id. + PartId string `json:"partId"` +} + // PostTransactionsResponse defines model for PostTransactionsResponse. type PostTransactionsResponse struct { |