UNPKG

3.12 kBPlain TextView Raw
1export enum DiagnosticMessage {
2 GenericUnsupportedSyntax = 'Unsupported syntax.',
3 EfficiencyUnsupportedSyntax = 'Unsupported syntax. This is not supported because it would result in inefficient smart contract code',
4 CouldNotInferType = 'Could not infer type. Please add an explicit type annotation.',
5 CouldNotInferTypeDeopt = 'Could not infer type. Deoptimized implementation will be used. Add an explicit type annotation ',
6 CouldNotInferSymbol = 'Could not infer symbol.',
7 CouldNotInferSymbolDeopt = 'Could not infer symbol. Deoptimized implementation will be used.',
8 CannotImplementBuiltin = 'Built-ins cannot be implemented.',
9 CannotReferenceBuiltinProperty = 'Builtin properties cannot be referenced',
10 CannotModifyBuiltin = 'Builtins cannot be modified',
11 CannotIndexBuiltin = 'Builtin properties cannot be referenced',
12 CannotReferenceBuiltin = 'Builtins cannot be referenced',
13 CannotInstanceofBuiltin = 'Builtins cannot be checked with instanceof',
14 InvalidSyscall = 'First argument to syscall must be a string literal corresponding to a NEO syscall.',
15 DeployReserved = 'The deploy method is reserved in SmartContract instances.',
16 InvalidContractEventNameStringLiteral = 'Invalid SmartContract event. Event name must be a string literal.',
17 InvalidContractEventMissingType = 'Invalid SmartContract event. Argument type must be explicitly defined.',
18 InvalidContractEventArgStringLiteral = 'Invalid SmartContract event. Argument must be a string literal.',
19 InvalidContractEventDeclaration = 'Invalid SmartContract event. Event must be assigned to a variable.',
20 InvalidContractPropertiesMissing = 'Invalid SmartContract. Properties must be defined.',
21 InvalidContractPropertiesInitializer = 'Invalid SmartContract. Properties must be defined with an object literal of literal properties.',
22 InvalidContractMethodMultipleSignatures = 'Invalid SmartContract method. Method must have one call signature',
23 SyscallReturnTypeExplicitCast = 'Syscall return type must be explicitly casted to expected type.',
24 UnknownReference = 'Unknown reference %s',
25 UnknownModule = 'Unknown module %s',
26 MultipleSignatures = 'Found multiple call signatures for property. Only one call signature is allowed.',
27 MissingParameterDeclaration = 'Could not find param declaration for parameter %s.',
28 ResolveOneType = 'Expected type to resolve to one known type',
29 InvalidAddress = 'Argument to Address.from must be a string literal address.',
30 InvalidHash256 = 'Argument to Hash256.from must be a string literal hash256.',
31 InvalidPublicKey = 'Argument to PublicKey.from must be a string literal publicKey.',
32 EventNotifierArguments = 'The arguments to createEventNotifier must be string literals.',
33 InvalidBuiltinCallArgument = 'Call parameter is ambiguous in relation to the provided argument.',
34 InvalidBuiltinAssignment = 'Assignment (%s => %s) is ambiguous in relation to the provided expression.',
35 InvalidLinkedSmartContractDeclaration = 'Expected a valid declaration for a linked smart contract.',
36 InvalidLinkedSmartContractMissing = 'Missing linked smart contract dependency %s',
37}