Class RejectReason
- Namespace
- Concordium.Grpc.V2
- Assembly
- Concordium.Sdk.dll
A reason for why a transaction was rejected. Rejected means included in a block, but the desired action was not achieved. The only effect of a rejected transaction is payment.
public sealed class RejectReason : IMessage<RejectReason>, IEquatable<RejectReason>, IDeepCloneable<RejectReason>, IBufferMessage, IMessage
- Inheritance
-
RejectReason
- Implements
-
IMessage<RejectReason>IDeepCloneable<RejectReason>IBufferMessageIMessage
- Inherited Members
Constructors
RejectReason()
public RejectReason()
RejectReason(RejectReason)
public RejectReason(RejectReason other)
Parameters
other
RejectReason
Fields
AlreadyABakerFieldNumber
Field number for the "already_a_baker" field.
public const int AlreadyABakerFieldNumber = 15
Field Value
AlreadyADelegatorFieldNumber
Field number for the "already_a_delegator" field.
public const int AlreadyADelegatorFieldNumber = 45
Field Value
AmountTooLargeFieldNumber
Field number for the "amount_too_large" field.
public const int AmountTooLargeFieldNumber = 9
Field Value
BakerInCooldownFieldNumber
Field number for the "baker_in_cooldown" field.
public const int BakerInCooldownFieldNumber = 19
Field Value
BakingRewardCommissionNotInRangeFieldNumber
Field number for the "baking_reward_commission_not_in_range" field.
public const int BakingRewardCommissionNotInRangeFieldNumber = 43
Field Value
CredentialHolderDidNotSignFieldNumber
Field number for the "credential_holder_did_not_sign" field.
public const int CredentialHolderDidNotSignFieldNumber = 37
Field Value
DelegationTargetNotABakerFieldNumber
Field number for the "delegation_target_not_a_baker" field.
public const int DelegationTargetNotABakerFieldNumber = 51
Field Value
DelegatorInCooldownFieldNumber
Field number for the "delegator_in_cooldown" field.
public const int DelegatorInCooldownFieldNumber = 49
Field Value
DuplicateAggregationKeyFieldNumber
Field number for the "duplicate_aggregation_key" field.
public const int DuplicateAggregationKeyFieldNumber = 20
Field Value
DuplicateCredIdsFieldNumber
Field number for the "duplicate_cred_ids" field.
public const int DuplicateCredIdsFieldNumber = 34
Field Value
EncryptedAmountSelfTransferFieldNumber
Field number for the "encrypted_amount_self_transfer" field.
public const int EncryptedAmountSelfTransferFieldNumber = 27
Field Value
FinalizationRewardCommissionNotInRangeFieldNumber
Field number for the "finalization_reward_commission_not_in_range" field.
public const int FinalizationRewardCommissionNotInRangeFieldNumber = 42
Field Value
FirstScheduledReleaseExpiredFieldNumber
Field number for the "first_scheduled_release_expired" field.
public const int FirstScheduledReleaseExpiredFieldNumber = 31
Field Value
InsufficientBalanceForBakerStakeFieldNumber
Field number for the "insufficient_balance_for_baker_stake" field.
public const int InsufficientBalanceForBakerStakeFieldNumber = 17
Field Value
InsufficientBalanceForDelegationStakeFieldNumber
Field number for the "insufficient_balance_for_delegation_stake" field.
public const int InsufficientBalanceForDelegationStakeFieldNumber = 46
Field Value
InsufficientDelegationStakeFieldNumber
Field number for the "insufficient_delegation_stake" field.
public const int InsufficientDelegationStakeFieldNumber = 48
Field Value
InvalidAccountReferenceFieldNumber
Field number for the "invalid_account_reference" field.
public const int InvalidAccountReferenceFieldNumber = 3
Field Value
InvalidAccountThresholdFieldNumber
Field number for the "invalid_account_threshold" field.
public const int InvalidAccountThresholdFieldNumber = 23
Field Value
InvalidContractAddressFieldNumber
Field number for the "invalid_contract_address" field.
public const int InvalidContractAddressFieldNumber = 7
Field Value
InvalidCredentialKeySignThresholdFieldNumber
Field number for the "invalid_credential_key_sign_threshold" field.
public const int InvalidCredentialKeySignThresholdFieldNumber = 24
Field Value
InvalidCredentialsFieldNumber
Field number for the "invalid_credentials" field.
public const int InvalidCredentialsFieldNumber = 33
Field Value
InvalidEncryptedAmountTransferProofFieldNumber
Field number for the "invalid_encrypted_amount_transfer_proof" field.
public const int InvalidEncryptedAmountTransferProofFieldNumber = 25
Field Value
InvalidIndexOnEncryptedTransferFieldNumber
Field number for the "invalid_index_on_encrypted_transfer" field.
public const int InvalidIndexOnEncryptedTransferFieldNumber = 28
Field Value
InvalidInitMethodFieldNumber
Field number for the "invalid_init_method" field.
public const int InvalidInitMethodFieldNumber = 4
Field Value
InvalidModuleReferenceFieldNumber
Field number for the "invalid_module_reference" field.
public const int InvalidModuleReferenceFieldNumber = 6
Field Value
InvalidProofFieldNumber
Field number for the "invalid_proof" field.
public const int InvalidProofFieldNumber = 14
Field Value
InvalidReceiveMethodFieldNumber
Field number for the "invalid_receive_method" field.
public const int InvalidReceiveMethodFieldNumber = 5
Field Value
InvalidTransferToPublicProofFieldNumber
Field number for the "invalid_transfer_to_public_proof" field.
public const int InvalidTransferToPublicProofFieldNumber = 26
Field Value
KeyIndexAlreadyInUseFieldNumber
Field number for the "key_index_already_in_use" field.
public const int KeyIndexAlreadyInUseFieldNumber = 22
Field Value
MissingBakerAddParametersFieldNumber
Field number for the "missing_baker_add_parameters" field.
public const int MissingBakerAddParametersFieldNumber = 41
Field Value
MissingDelegationAddParametersFieldNumber
Field number for the "missing_delegation_add_parameters" field.
public const int MissingDelegationAddParametersFieldNumber = 47
Field Value
ModuleHashAlreadyExistsFieldNumber
Field number for the "module_hash_already_exists" field.
public const int ModuleHashAlreadyExistsFieldNumber = 2
Field Value
ModuleNotWfFieldNumber
Field number for the "module_not_wf" field.
public const int ModuleNotWfFieldNumber = 1
Field Value
NonExistentCredIdsFieldNumber
Field number for the "non_existent_cred_ids" field.
public const int NonExistentCredIdsFieldNumber = 35
Field Value
NonExistentCredentialIdFieldNumber
Field number for the "non_existent_credential_id" field.
public const int NonExistentCredentialIdFieldNumber = 21
Field Value
NonIncreasingScheduleFieldNumber
Field number for the "non_increasing_schedule" field.
public const int NonIncreasingScheduleFieldNumber = 30
Field Value
NotABakerFieldNumber
Field number for the "not_a_baker" field.
public const int NotABakerFieldNumber = 16
Field Value
NotADelegatorFieldNumber
Field number for the "not_a_delegator" field.
public const int NotADelegatorFieldNumber = 50
Field Value
NotAllowedMultipleCredentialsFieldNumber
Field number for the "not_allowed_multiple_credentials" field.
public const int NotAllowedMultipleCredentialsFieldNumber = 38
Field Value
NotAllowedToHandleEncryptedFieldNumber
Field number for the "not_allowed_to_handle_encrypted" field.
public const int NotAllowedToHandleEncryptedFieldNumber = 40
Field Value
NotAllowedToReceiveEncryptedFieldNumber
Field number for the "not_allowed_to_receive_encrypted" field.
public const int NotAllowedToReceiveEncryptedFieldNumber = 39
Field Value
OutOfEnergyFieldNumber
Field number for the "out_of_energy" field.
public const int OutOfEnergyFieldNumber = 11
Field Value
PoolClosedFieldNumber
Field number for the "pool_closed" field.
public const int PoolClosedFieldNumber = 54
Field Value
PoolWouldBecomeOverDelegatedFieldNumber
Field number for the "pool_would_become_over_delegated" field.
public const int PoolWouldBecomeOverDelegatedFieldNumber = 53
Field Value
RejectedInitFieldNumber
Field number for the "rejected_init" field.
public const int RejectedInitFieldNumber = 12
Field Value
RejectedReceiveFieldNumber
Field number for the "rejected_receive" field.
public const int RejectedReceiveFieldNumber = 13
Field Value
RemoveFirstCredentialFieldNumber
Field number for the "remove_first_credential" field.
public const int RemoveFirstCredentialFieldNumber = 36
Field Value
RuntimeFailureFieldNumber
Field number for the "runtime_failure" field.
public const int RuntimeFailureFieldNumber = 8
Field Value
ScheduledSelfTransferFieldNumber
Field number for the "scheduled_self_transfer" field.
public const int ScheduledSelfTransferFieldNumber = 32
Field Value
SerializationFailureFieldNumber
Field number for the "serialization_failure" field.
public const int SerializationFailureFieldNumber = 10
Field Value
StakeOverMaximumThresholdForPoolFieldNumber
Field number for the "stake_over_maximum_threshold_for_pool" field.
public const int StakeOverMaximumThresholdForPoolFieldNumber = 52
Field Value
StakeUnderMinimumThresholdForBakingFieldNumber
Field number for the "stake_under_minimum_threshold_for_baking" field.
public const int StakeUnderMinimumThresholdForBakingFieldNumber = 18
Field Value
TransactionFeeCommissionNotInRangeFieldNumber
Field number for the "transaction_fee_commission_not_in_range" field.
public const int TransactionFeeCommissionNotInRangeFieldNumber = 44
Field Value
ZeroScheduledAmountFieldNumber
Field number for the "zero_scheduledAmount" field.
public const int ZeroScheduledAmountFieldNumber = 29
Field Value
Properties
AlreadyABaker
Tried to add baker for an account that already has a baker.
public BakerId AlreadyABaker { get; set; }
Property Value
AlreadyADelegator
Tried to add baker for an account that already has a delegator.
public Empty AlreadyADelegator { get; set; }
Property Value
AmountTooLarge
When one wishes to transfer an amount from A to B but there are not enough funds on account/contract A to make this possible. The data are the from address and the amount to transfer.
public RejectReason.Types.AmountTooLarge AmountTooLarge { get; set; }
Property Value
BakerInCooldown
The change could not be made because the baker is in cooldown for another change.
public Empty BakerInCooldown { get; set; }
Property Value
BakingRewardCommissionNotInRange
Baking reward commission is not in the valid range for a baker.
public Empty BakingRewardCommissionNotInRange { get; set; }
Property Value
CredentialHolderDidNotSign
The credential holder of the keys to be updated did not sign the transaction.
public Empty CredentialHolderDidNotSign { get; set; }
Property Value
DelegationTargetNotABaker
Delegation target is not a baker
public BakerId DelegationTargetNotABaker { get; set; }
Property Value
DelegatorInCooldown
Account is not a delegation account.
public Empty DelegatorInCooldown { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DuplicateAggregationKey
A baker with the given aggregation key already exists.
public BakerAggregationVerifyKey DuplicateAggregationKey { get; set; }
Property Value
DuplicateCredIds
Some of the credential IDs already exist or are duplicated in the transaction.
public RejectReason.Types.DuplicateCredIds DuplicateCredIds { get; set; }
Property Value
EncryptedAmountSelfTransfer
Account tried to transfer an encrypted amount to itself, that's not allowed.
public AccountAddress EncryptedAmountSelfTransfer { get; set; }
Property Value
FinalizationRewardCommissionNotInRange
Finalization reward commission is not in the valid range for a baker.
public Empty FinalizationRewardCommissionNotInRange { get; set; }
Property Value
FirstScheduledReleaseExpired
The first scheduled release in a transfer with schedule has already expired.
public Empty FirstScheduledReleaseExpired { get; set; }
Property Value
InsufficientBalanceForBakerStake
The amount on the account was insufficient to cover the proposed stake.
public Empty InsufficientBalanceForBakerStake { get; set; }
Property Value
InsufficientBalanceForDelegationStake
The amount on the account was insufficient to cover the proposed stake.
public Empty InsufficientBalanceForDelegationStake { get; set; }
Property Value
InsufficientDelegationStake
Delegation stake when adding a delegator was 0.
public Empty InsufficientDelegationStake { get; set; }
Property Value
InvalidAccountReference
Account does not exist.
public AccountAddress InvalidAccountReference { get; set; }
Property Value
InvalidAccountThreshold
When the account threshold is updated, it must not exceed the amount of existing keys.
public Empty InvalidAccountThreshold { get; set; }
Property Value
InvalidContractAddress
Contract instance does not exist.
public ContractAddress InvalidContractAddress { get; set; }
Property Value
InvalidCredentialKeySignThreshold
When the credential key threshold is updated, it must not exceed the amount of existing keys.
public Empty InvalidCredentialKeySignThreshold { get; set; }
Property Value
InvalidCredentials
At least one of the credentials was either malformed or its proof was incorrect.
public Empty InvalidCredentials { get; set; }
Property Value
InvalidEncryptedAmountTransferProof
Proof for an encrypted amount transfer did not validate.
public Empty InvalidEncryptedAmountTransferProof { get; set; }
Property Value
InvalidIndexOnEncryptedTransfer
The provided index is below the start index or above startIndex + length incomingAmounts
.
public Empty InvalidIndexOnEncryptedTransfer { get; set; }
Property Value
InvalidInitMethod
Reference to a non-existing contract init method.
public RejectReason.Types.InvalidInitMethod InvalidInitMethod { get; set; }
Property Value
InvalidModuleReference
Reference to a non-existing smart contract module.
public ModuleRef InvalidModuleReference { get; set; }
Property Value
InvalidProof
Proof that the baker owns relevant private keys is not valid.
public Empty InvalidProof { get; set; }
Property Value
InvalidReceiveMethod
Reference to a non-existing contract receive method.
public RejectReason.Types.InvalidReceiveMethod InvalidReceiveMethod { get; set; }
Property Value
InvalidTransferToPublicProof
Proof for a secret to public transfer did not validate.
public Empty InvalidTransferToPublicProof { get; set; }
Property Value
KeyIndexAlreadyInUse
Attempted to add an account key to a key index already in use.
public Empty KeyIndexAlreadyInUse { get; set; }
Property Value
MissingBakerAddParameters
A configure baker transaction is missing one or more arguments in order to add a baker.
public Empty MissingBakerAddParameters { get; set; }
Property Value
MissingDelegationAddParameters
A configure delegation transaction is missing one or more arguments in order to add a delegator.
public Empty MissingDelegationAddParameters { get; set; }
Property Value
ModuleHashAlreadyExists
The smart contract module hash already exists.
public ModuleRef ModuleHashAlreadyExists { get; set; }
Property Value
ModuleNotWf
Raised while validating a Wasm module that is not well formed.
public Empty ModuleNotWf { get; set; }
Property Value
NonExistentCredIds
A credential id that was to be removed is not part of the account.
public RejectReason.Types.NonExistentCredIds NonExistentCredIds { get; set; }
Property Value
NonExistentCredentialId
Encountered credential ID that does not exist.
public Empty NonExistentCredentialId { get; set; }
Property Value
NonIncreasingSchedule
The transfer with schedule has a non strictly increasing schedule.
public Empty NonIncreasingSchedule { get; set; }
Property Value
NotABaker
Tried to remove a baker for an account that has no baker.
public AccountAddress NotABaker { get; set; }
Property Value
NotADelegator
Account is not a delegation account.
public AccountAddress NotADelegator { get; set; }
Property Value
NotAllowedMultipleCredentials
Account is not allowed to have multiple credentials because it contains a non-zero encrypted transfer.
public Empty NotAllowedMultipleCredentials { get; set; }
Property Value
NotAllowedToHandleEncrypted
The account is not allowed to send encrypted transfers (or transfer from/to public to/from encrypted).
public Empty NotAllowedToHandleEncrypted { get; set; }
Property Value
NotAllowedToReceiveEncrypted
The account is not allowed to receive encrypted transfers because it has multiple credentials.
public Empty NotAllowedToReceiveEncrypted { get; set; }
Property Value
OutOfEnergy
We ran of out energy to process this transaction.
public Empty OutOfEnergy { get; set; }
Property Value
Parser
public static MessageParser<RejectReason> Parser { get; }
Property Value
- MessageParser<RejectReason>
PoolClosed
The pool is not open to delegators.
public Empty PoolClosed { get; set; }
Property Value
PoolWouldBecomeOverDelegated
The amount would result in pool with a too high fraction of delegated capital.
public Empty PoolWouldBecomeOverDelegated { get; set; }
Property Value
ReasonCase
public RejectReason.ReasonOneofCase ReasonCase { get; }
Property Value
RejectedInit
Rejected due to contract logic in init function of a contract.
public RejectReason.Types.RejectedInit RejectedInit { get; set; }
Property Value
RejectedReceive
Rejected due to contract logic in receive function of a contract.
public RejectReason.Types.RejectedReceive RejectedReceive { get; set; }
Property Value
RemoveFirstCredential
Attemp to remove the first credential.
public Empty RemoveFirstCredential { get; set; }
Property Value
RuntimeFailure
Runtime exception occurred when running either the init or receive method.
public Empty RuntimeFailure { get; set; }
Property Value
ScheduledSelfTransfer
Account tried to transfer with schedule to itself, that's not allowed.
public AccountAddress ScheduledSelfTransfer { get; set; }
Property Value
SerializationFailure
Serialization of the body failed.
public Empty SerializationFailure { get; set; }
Property Value
StakeOverMaximumThresholdForPool
The amount would result in pool capital higher than the maximum threshold.
public Empty StakeOverMaximumThresholdForPool { get; set; }
Property Value
StakeUnderMinimumThresholdForBaking
The amount provided is under the threshold required for becoming a baker.
public Empty StakeUnderMinimumThresholdForBaking { get; set; }
Property Value
TransactionFeeCommissionNotInRange
Transaction fee commission is not in the valid range for a baker.
public Empty TransactionFeeCommissionNotInRange { get; set; }
Property Value
ZeroScheduledAmount
The transfer with schedule is going to send 0 tokens.
public Empty ZeroScheduledAmount { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearReason()
public void ClearReason()
Clone()
Creates a deep clone of this object.
public RejectReason Clone()
Returns
- RejectReason
A deep clone of this object.
Equals(RejectReason)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RejectReason other)
Parameters
other
RejectReasonAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(RejectReason)
Merges the given message into this one.
public void MergeFrom(RejectReason other)
Parameters
other
RejectReason
Remarks
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.