Table of Contents

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>
IBufferMessage
IMessage
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

int

AlreadyADelegatorFieldNumber

Field number for the "already_a_delegator" field.

public const int AlreadyADelegatorFieldNumber = 45

Field Value

int

AmountTooLargeFieldNumber

Field number for the "amount_too_large" field.

public const int AmountTooLargeFieldNumber = 9

Field Value

int

BakerInCooldownFieldNumber

Field number for the "baker_in_cooldown" field.

public const int BakerInCooldownFieldNumber = 19

Field Value

int

BakingRewardCommissionNotInRangeFieldNumber

Field number for the "baking_reward_commission_not_in_range" field.

public const int BakingRewardCommissionNotInRangeFieldNumber = 43

Field Value

int

CredentialHolderDidNotSignFieldNumber

Field number for the "credential_holder_did_not_sign" field.

public const int CredentialHolderDidNotSignFieldNumber = 37

Field Value

int

DelegationTargetNotABakerFieldNumber

Field number for the "delegation_target_not_a_baker" field.

public const int DelegationTargetNotABakerFieldNumber = 51

Field Value

int

DelegatorInCooldownFieldNumber

Field number for the "delegator_in_cooldown" field.

public const int DelegatorInCooldownFieldNumber = 49

Field Value

int

DuplicateAggregationKeyFieldNumber

Field number for the "duplicate_aggregation_key" field.

public const int DuplicateAggregationKeyFieldNumber = 20

Field Value

int

DuplicateCredIdsFieldNumber

Field number for the "duplicate_cred_ids" field.

public const int DuplicateCredIdsFieldNumber = 34

Field Value

int

EncryptedAmountSelfTransferFieldNumber

Field number for the "encrypted_amount_self_transfer" field.

public const int EncryptedAmountSelfTransferFieldNumber = 27

Field Value

int

FinalizationRewardCommissionNotInRangeFieldNumber

Field number for the "finalization_reward_commission_not_in_range" field.

public const int FinalizationRewardCommissionNotInRangeFieldNumber = 42

Field Value

int

FirstScheduledReleaseExpiredFieldNumber

Field number for the "first_scheduled_release_expired" field.

public const int FirstScheduledReleaseExpiredFieldNumber = 31

Field Value

int

InsufficientBalanceForBakerStakeFieldNumber

Field number for the "insufficient_balance_for_baker_stake" field.

public const int InsufficientBalanceForBakerStakeFieldNumber = 17

Field Value

int

InsufficientBalanceForDelegationStakeFieldNumber

Field number for the "insufficient_balance_for_delegation_stake" field.

public const int InsufficientBalanceForDelegationStakeFieldNumber = 46

Field Value

int

InsufficientDelegationStakeFieldNumber

Field number for the "insufficient_delegation_stake" field.

public const int InsufficientDelegationStakeFieldNumber = 48

Field Value

int

InvalidAccountReferenceFieldNumber

Field number for the "invalid_account_reference" field.

public const int InvalidAccountReferenceFieldNumber = 3

Field Value

int

InvalidAccountThresholdFieldNumber

Field number for the "invalid_account_threshold" field.

public const int InvalidAccountThresholdFieldNumber = 23

Field Value

int

InvalidContractAddressFieldNumber

Field number for the "invalid_contract_address" field.

public const int InvalidContractAddressFieldNumber = 7

Field Value

int

InvalidCredentialKeySignThresholdFieldNumber

Field number for the "invalid_credential_key_sign_threshold" field.

public const int InvalidCredentialKeySignThresholdFieldNumber = 24

Field Value

int

InvalidCredentialsFieldNumber

Field number for the "invalid_credentials" field.

public const int InvalidCredentialsFieldNumber = 33

Field Value

int

InvalidEncryptedAmountTransferProofFieldNumber

Field number for the "invalid_encrypted_amount_transfer_proof" field.

public const int InvalidEncryptedAmountTransferProofFieldNumber = 25

Field Value

int

InvalidIndexOnEncryptedTransferFieldNumber

Field number for the "invalid_index_on_encrypted_transfer" field.

public const int InvalidIndexOnEncryptedTransferFieldNumber = 28

Field Value

int

InvalidInitMethodFieldNumber

Field number for the "invalid_init_method" field.

public const int InvalidInitMethodFieldNumber = 4

Field Value

int

InvalidModuleReferenceFieldNumber

Field number for the "invalid_module_reference" field.

public const int InvalidModuleReferenceFieldNumber = 6

Field Value

int

InvalidProofFieldNumber

Field number for the "invalid_proof" field.

public const int InvalidProofFieldNumber = 14

Field Value

int

InvalidReceiveMethodFieldNumber

Field number for the "invalid_receive_method" field.

public const int InvalidReceiveMethodFieldNumber = 5

Field Value

int

InvalidTransferToPublicProofFieldNumber

Field number for the "invalid_transfer_to_public_proof" field.

public const int InvalidTransferToPublicProofFieldNumber = 26

Field Value

int

KeyIndexAlreadyInUseFieldNumber

Field number for the "key_index_already_in_use" field.

public const int KeyIndexAlreadyInUseFieldNumber = 22

Field Value

int

MissingBakerAddParametersFieldNumber

Field number for the "missing_baker_add_parameters" field.

public const int MissingBakerAddParametersFieldNumber = 41

Field Value

int

MissingDelegationAddParametersFieldNumber

Field number for the "missing_delegation_add_parameters" field.

public const int MissingDelegationAddParametersFieldNumber = 47

Field Value

int

ModuleHashAlreadyExistsFieldNumber

Field number for the "module_hash_already_exists" field.

public const int ModuleHashAlreadyExistsFieldNumber = 2

Field Value

int

ModuleNotWfFieldNumber

Field number for the "module_not_wf" field.

public const int ModuleNotWfFieldNumber = 1

Field Value

int

NonExistentCredIdsFieldNumber

Field number for the "non_existent_cred_ids" field.

public const int NonExistentCredIdsFieldNumber = 35

Field Value

int

NonExistentCredentialIdFieldNumber

Field number for the "non_existent_credential_id" field.

public const int NonExistentCredentialIdFieldNumber = 21

Field Value

int

NonIncreasingScheduleFieldNumber

Field number for the "non_increasing_schedule" field.

public const int NonIncreasingScheduleFieldNumber = 30

Field Value

int

NotABakerFieldNumber

Field number for the "not_a_baker" field.

public const int NotABakerFieldNumber = 16

Field Value

int

NotADelegatorFieldNumber

Field number for the "not_a_delegator" field.

public const int NotADelegatorFieldNumber = 50

Field Value

int

NotAllowedMultipleCredentialsFieldNumber

Field number for the "not_allowed_multiple_credentials" field.

public const int NotAllowedMultipleCredentialsFieldNumber = 38

Field Value

int

NotAllowedToHandleEncryptedFieldNumber

Field number for the "not_allowed_to_handle_encrypted" field.

public const int NotAllowedToHandleEncryptedFieldNumber = 40

Field Value

int

NotAllowedToReceiveEncryptedFieldNumber

Field number for the "not_allowed_to_receive_encrypted" field.

public const int NotAllowedToReceiveEncryptedFieldNumber = 39

Field Value

int

OutOfEnergyFieldNumber

Field number for the "out_of_energy" field.

public const int OutOfEnergyFieldNumber = 11

Field Value

int

PoolClosedFieldNumber

Field number for the "pool_closed" field.

public const int PoolClosedFieldNumber = 54

Field Value

int

PoolWouldBecomeOverDelegatedFieldNumber

Field number for the "pool_would_become_over_delegated" field.

public const int PoolWouldBecomeOverDelegatedFieldNumber = 53

Field Value

int

RejectedInitFieldNumber

Field number for the "rejected_init" field.

public const int RejectedInitFieldNumber = 12

Field Value

int

RejectedReceiveFieldNumber

Field number for the "rejected_receive" field.

public const int RejectedReceiveFieldNumber = 13

Field Value

int

RemoveFirstCredentialFieldNumber

Field number for the "remove_first_credential" field.

public const int RemoveFirstCredentialFieldNumber = 36

Field Value

int

RuntimeFailureFieldNumber

Field number for the "runtime_failure" field.

public const int RuntimeFailureFieldNumber = 8

Field Value

int

ScheduledSelfTransferFieldNumber

Field number for the "scheduled_self_transfer" field.

public const int ScheduledSelfTransferFieldNumber = 32

Field Value

int

SerializationFailureFieldNumber

Field number for the "serialization_failure" field.

public const int SerializationFailureFieldNumber = 10

Field Value

int

StakeOverMaximumThresholdForPoolFieldNumber

Field number for the "stake_over_maximum_threshold_for_pool" field.

public const int StakeOverMaximumThresholdForPoolFieldNumber = 52

Field Value

int

StakeUnderMinimumThresholdForBakingFieldNumber

Field number for the "stake_under_minimum_threshold_for_baking" field.

public const int StakeUnderMinimumThresholdForBakingFieldNumber = 18

Field Value

int

TransactionFeeCommissionNotInRangeFieldNumber

Field number for the "transaction_fee_commission_not_in_range" field.

public const int TransactionFeeCommissionNotInRangeFieldNumber = 44

Field Value

int

ZeroScheduledAmountFieldNumber

Field number for the "zero_scheduledAmount" field.

public const int ZeroScheduledAmountFieldNumber = 29

Field Value

int

Properties

AlreadyABaker

Tried to add baker for an account that already has a baker.

public BakerId AlreadyABaker { get; set; }

Property Value

BakerId

AlreadyADelegator

Tried to add baker for an account that already has a delegator.

public Empty AlreadyADelegator { get; set; }

Property Value

Empty

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

RejectReason.Types.AmountTooLarge

BakerInCooldown

The change could not be made because the baker is in cooldown for another change.

public Empty BakerInCooldown { get; set; }

Property Value

Empty

BakingRewardCommissionNotInRange

Baking reward commission is not in the valid range for a baker.

public Empty BakingRewardCommissionNotInRange { get; set; }

Property Value

Empty

CredentialHolderDidNotSign

The credential holder of the keys to be updated did not sign the transaction.

public Empty CredentialHolderDidNotSign { get; set; }

Property Value

Empty

DelegationTargetNotABaker

Delegation target is not a baker

public BakerId DelegationTargetNotABaker { get; set; }

Property Value

BakerId

DelegatorInCooldown

Account is not a delegation account.

public Empty DelegatorInCooldown { get; set; }

Property Value

Empty

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

BakerAggregationVerifyKey

DuplicateCredIds

Some of the credential IDs already exist or are duplicated in the transaction.

public RejectReason.Types.DuplicateCredIds DuplicateCredIds { get; set; }

Property Value

RejectReason.Types.DuplicateCredIds

EncryptedAmountSelfTransfer

Account tried to transfer an encrypted amount to itself, that's not allowed.

public AccountAddress EncryptedAmountSelfTransfer { get; set; }

Property Value

AccountAddress

FinalizationRewardCommissionNotInRange

Finalization reward commission is not in the valid range for a baker.

public Empty FinalizationRewardCommissionNotInRange { get; set; }

Property Value

Empty

FirstScheduledReleaseExpired

The first scheduled release in a transfer with schedule has already expired.

public Empty FirstScheduledReleaseExpired { get; set; }

Property Value

Empty

InsufficientBalanceForBakerStake

The amount on the account was insufficient to cover the proposed stake.

public Empty InsufficientBalanceForBakerStake { get; set; }

Property Value

Empty

InsufficientBalanceForDelegationStake

The amount on the account was insufficient to cover the proposed stake.

public Empty InsufficientBalanceForDelegationStake { get; set; }

Property Value

Empty

InsufficientDelegationStake

Delegation stake when adding a delegator was 0.

public Empty InsufficientDelegationStake { get; set; }

Property Value

Empty

InvalidAccountReference

Account does not exist.

public AccountAddress InvalidAccountReference { get; set; }

Property Value

AccountAddress

InvalidAccountThreshold

When the account threshold is updated, it must not exceed the amount of existing keys.

public Empty InvalidAccountThreshold { get; set; }

Property Value

Empty

InvalidContractAddress

Contract instance does not exist.

public ContractAddress InvalidContractAddress { get; set; }

Property Value

ContractAddress

InvalidCredentialKeySignThreshold

When the credential key threshold is updated, it must not exceed the amount of existing keys.

public Empty InvalidCredentialKeySignThreshold { get; set; }

Property Value

Empty

InvalidCredentials

At least one of the credentials was either malformed or its proof was incorrect.

public Empty InvalidCredentials { get; set; }

Property Value

Empty

InvalidEncryptedAmountTransferProof

Proof for an encrypted amount transfer did not validate.

public Empty InvalidEncryptedAmountTransferProof { get; set; }

Property Value

Empty

InvalidIndexOnEncryptedTransfer

The provided index is below the start index or above startIndex + length incomingAmounts.

public Empty InvalidIndexOnEncryptedTransfer { get; set; }

Property Value

Empty

InvalidInitMethod

Reference to a non-existing contract init method.

public RejectReason.Types.InvalidInitMethod InvalidInitMethod { get; set; }

Property Value

RejectReason.Types.InvalidInitMethod

InvalidModuleReference

Reference to a non-existing smart contract module.

public ModuleRef InvalidModuleReference { get; set; }

Property Value

ModuleRef

InvalidProof

Proof that the baker owns relevant private keys is not valid.

public Empty InvalidProof { get; set; }

Property Value

Empty

InvalidReceiveMethod

Reference to a non-existing contract receive method.

public RejectReason.Types.InvalidReceiveMethod InvalidReceiveMethod { get; set; }

Property Value

RejectReason.Types.InvalidReceiveMethod

InvalidTransferToPublicProof

Proof for a secret to public transfer did not validate.

public Empty InvalidTransferToPublicProof { get; set; }

Property Value

Empty

KeyIndexAlreadyInUse

Attempted to add an account key to a key index already in use.

public Empty KeyIndexAlreadyInUse { get; set; }

Property Value

Empty

MissingBakerAddParameters

A configure baker transaction is missing one or more arguments in order to add a baker.

public Empty MissingBakerAddParameters { get; set; }

Property Value

Empty

MissingDelegationAddParameters

A configure delegation transaction is missing one or more arguments in order to add a delegator.

public Empty MissingDelegationAddParameters { get; set; }

Property Value

Empty

ModuleHashAlreadyExists

The smart contract module hash already exists.

public ModuleRef ModuleHashAlreadyExists { get; set; }

Property Value

ModuleRef

ModuleNotWf

Raised while validating a Wasm module that is not well formed.

public Empty ModuleNotWf { get; set; }

Property Value

Empty

NonExistentCredIds

A credential id that was to be removed is not part of the account.

public RejectReason.Types.NonExistentCredIds NonExistentCredIds { get; set; }

Property Value

RejectReason.Types.NonExistentCredIds

NonExistentCredentialId

Encountered credential ID that does not exist.

public Empty NonExistentCredentialId { get; set; }

Property Value

Empty

NonIncreasingSchedule

The transfer with schedule has a non strictly increasing schedule.

public Empty NonIncreasingSchedule { get; set; }

Property Value

Empty

NotABaker

Tried to remove a baker for an account that has no baker.

public AccountAddress NotABaker { get; set; }

Property Value

AccountAddress

NotADelegator

Account is not a delegation account.

public AccountAddress NotADelegator { get; set; }

Property Value

AccountAddress

NotAllowedMultipleCredentials

Account is not allowed to have multiple credentials because it contains a non-zero encrypted transfer.

public Empty NotAllowedMultipleCredentials { get; set; }

Property Value

Empty

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

Empty

NotAllowedToReceiveEncrypted

The account is not allowed to receive encrypted transfers because it has multiple credentials.

public Empty NotAllowedToReceiveEncrypted { get; set; }

Property Value

Empty

OutOfEnergy

We ran of out energy to process this transaction.

public Empty OutOfEnergy { get; set; }

Property Value

Empty

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

Empty

PoolWouldBecomeOverDelegated

The amount would result in pool with a too high fraction of delegated capital.

public Empty PoolWouldBecomeOverDelegated { get; set; }

Property Value

Empty

ReasonCase

public RejectReason.ReasonOneofCase ReasonCase { get; }

Property Value

RejectReason.ReasonOneofCase

RejectedInit

Rejected due to contract logic in init function of a contract.

public RejectReason.Types.RejectedInit RejectedInit { get; set; }

Property Value

RejectReason.Types.RejectedInit

RejectedReceive

Rejected due to contract logic in receive function of a contract.

public RejectReason.Types.RejectedReceive RejectedReceive { get; set; }

Property Value

RejectReason.Types.RejectedReceive

RemoveFirstCredential

Attemp to remove the first credential.

public Empty RemoveFirstCredential { get; set; }

Property Value

Empty

RuntimeFailure

Runtime exception occurred when running either the init or receive method.

public Empty RuntimeFailure { get; set; }

Property Value

Empty

ScheduledSelfTransfer

Account tried to transfer with schedule to itself, that's not allowed.

public AccountAddress ScheduledSelfTransfer { get; set; }

Property Value

AccountAddress

SerializationFailure

Serialization of the body failed.

public Empty SerializationFailure { get; set; }

Property Value

Empty

StakeOverMaximumThresholdForPool

The amount would result in pool capital higher than the maximum threshold.

public Empty StakeOverMaximumThresholdForPool { get; set; }

Property Value

Empty

StakeUnderMinimumThresholdForBaking

The amount provided is under the threshold required for becoming a baker.

public Empty StakeUnderMinimumThresholdForBaking { get; set; }

Property Value

Empty

TransactionFeeCommissionNotInRange

Transaction fee commission is not in the valid range for a baker.

public Empty TransactionFeeCommissionNotInRange { get; set; }

Property Value

Empty

ZeroScheduledAmount

The transfer with schedule is going to send 0 tokens.

public Empty ZeroScheduledAmount { get; set; }

Property Value

Empty

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 RejectReason

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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 CodedOutputStream

Coded output stream to write the data to. Must not be null.