summaryrefslogtreecommitdiff
path: root/daemon/algod/api/server/v2/generated/private/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/algod/api/server/v2/generated/private/types.go')
-rw-r--r--daemon/algod/api/server/v2/generated/private/types.go63
1 files changed, 46 insertions, 17 deletions
diff --git a/daemon/algod/api/server/v2/generated/private/types.go b/daemon/algod/api/server/v2/generated/private/types.go
index e4c80509b..e8ba9221e 100644
--- a/daemon/algod/api/server/v2/generated/private/types.go
+++ b/daemon/algod/api/server/v2/generated/private/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 {
@@ -661,22 +706,6 @@ type TransactionParametersResponse struct {
// VersionsResponse defines model for VersionsResponse.
type VersionsResponse Version
-// RegisterParticipationKeysParams defines parameters for RegisterParticipationKeys.
-type RegisterParticipationKeysParams struct {
-
- // The fee to use when submitting key registration transactions. Defaults to the suggested fee.
- Fee *uint64 `json:"fee,omitempty"`
-
- // value to use for two-level participation key.
- KeyDilution *uint64 `json:"key-dilution,omitempty"`
-
- // The last round for which the generated participation keys will be valid.
- RoundLastValid *uint64 `json:"round-last-valid,omitempty"`
-
- // Don't wait for transaction to commit before returning response.
- NoWait *bool `json:"no-wait,omitempty"`
-}
-
// ShutdownNodeParams defines parameters for ShutdownNode.
type ShutdownNodeParams struct {
Timeout *uint64 `json:"timeout,omitempty"`