-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
constants.ts
39 lines (38 loc) · 1.05 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// From https://github.com/FuelLabs/fuel-asm/blob/eb78378c3b7c22a53b834381c387d89b3c0ef122/src/panic_reason.rs#L13
export const PANIC_REASONS = [
'Success',
'Revert',
'OutOfGas',
'TransactionValidity',
'MemoryOverflow',
'ArithmeticOverflow',
'ContractNotFound',
'MemoryOwnership',
'NotEnoughBalance',
'ExpectedInternalContext',
'AssetIdNotFound',
'InputNotFound',
'OutputNotFound',
'WitnessNotFound',
'TransactionMaturity',
'InvalidMetadataIdentifier',
'MalformedCallStructure',
'ReservedRegisterNotWritable',
'ErrorFlag',
'InvalidImmediateValue',
'ExpectedCoinInput',
'MaxMemoryAccess',
'MemoryWriteOverlap',
'ContractNotInInputs',
'InternalBalanceOverflow',
'ContractMaxSize',
'ExpectedUnallocatedStack',
'MaxStaticContractsReached',
'TransferAmountCannotBeZero',
'ExpectedOutputVariable',
'ExpectedParentInternalContext',
'IllegalJump',
'NonZeroMessageOutputRecipient',
'ZeroedMessageOutputRecipient',
];
export const PANIC_DOC_URL = 'https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html';