Skip to content

Commit

Permalink
update PANIC_REASONS const
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf committed Jan 20, 2025
1 parent b370707 commit 3d8e44e
Showing 1 changed file with 47 additions and 43 deletions.
90 changes: 47 additions & 43 deletions packages/transactions/src/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,63 +43,67 @@ export const FAILED_ASSERT_NE_SIGNAL = '0xffffffffffff0005';
export const FAILED_UNKNOWN_SIGNAL = '0x0';

export const PANIC_REASONS = [
'UnknownPanicReason',
'Revert',
'OutOfGas',
'TransactionValidity',
'MemoryOverflow',
'ArithmeticError',
'ArithmeticOverflow',
'AssetIdNotFound',
'BalanceOverflow',
'BlobIdAlreadyUploaded',
'BlobNotFound',
'BytecodeAlreadyUploaded',
'ContractIdAlreadyDeployed',
'ContractInstructionNotAllowed',
'ContractMaxSize',
'ContractMismatch',
'ContractNotFound',
'MemoryOwnership',
'NotEnoughBalance',
'ContractNotInInputs',
'EcalError',
'ExpectedCoinInput',
'ExpectedInternalContext',
'AssetIdNotFound',
'ExpectedNestedCaller',
'ExpectedOutputVariable',
'ExpectedParentInternalContext',
'ExpectedUnallocatedStack',
'GasCostNotDefined',
'InputContractDoesNotExist',
'InputNotFound',
'OutputNotFound',
'WitnessNotFound',
'TransactionMaturity',
'InvalidMetadataIdentifier',
'MalformedCallStructure',
'ReservedRegisterNotWritable',
'InternalBalanceOverflow',
'InvalidBlockHeight',
'InvalidEllipticCurvePoint',
'InvalidFlags',
'InvalidImmediateValue',
'ExpectedCoinInput',
'EcalError',
'MemoryWriteOverlap',
'ContractNotInInputs',
'InternalBalanceOverflow',
'ContractMaxSize',
'ExpectedUnallocatedStack',
'MaxStaticContractsReached',
'TransferAmountCannotBeZero',
'ExpectedOutputVariable',
'ExpectedParentInternalContext',
'PredicateReturnedNonOne',
'ContractIdAlreadyDeployed',
'ContractMismatch',
'MessageDataTooLong',
'ArithmeticError',
'ContractInstructionNotAllowed',
'TransferZeroCoins',
'InvalidInstruction',
'InvalidMetadataIdentifier',
'MalformedCallStructure',
'MaxStaticContractsReached',
'MemoryGrowthOverlap',
'MemoryNotExecutable',
'MemoryOverflow',
'MemoryOwnership',
'MemoryWriteOverlap',
'MessageDataTooLong',
'NotEnoughBalance',
'OutOfGas',
'OutputNotFound',
'OverridingConsensusParameters',
'OverridingStateTransactionBytecode',
'PolicyIsNotSet',
'PolicyNotFound',
'PredicateReturnedNonOne',
'ReservedRegisterNotWritable',
'Revert',
'ThePartIsNotSequentiallyConnected',
'TooManyReceipts',
'BalanceOverflow',
'InvalidBlockHeight',
'TooManySlots',
'ExpectedNestedCaller',
'MemoryGrowthOverlap',
'TransactionMaturity',
'TransactionValidity',
'TransferAmountCannotBeZero',
'TransferZeroCoins',
'UninitalizedMemoryAccess',
'OverridingConsensusParameters',
'UnknownPanicReason',
'UnknownStateTransactionBytecodeRoot',
'OverridingStateTransactionBytecode',
'BytecodeAlreadyUploaded',
'ThePartIsNotSequentiallyConnected',
'BlobIdAlreadyUploaded',
'BlobNotFound',
'GasCostNotDefined',
'UnsupportedCurveId',
'UnsupportedOperationType',
'WitnessNotFound',
];

export const PANIC_DOC_URL = 'https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html';

0 comments on commit 3d8e44e

Please sign in to comment.