-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
321 additions
and
3 deletions.
There are no files selected for viewing
318 changes: 318 additions & 0 deletions
318
src/test/e2e-emulated/__snapshots__/local-type-inference.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,318 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`local-type-inference should automatically set types for let statements 1`] = ` | ||
{ | ||
"errors": { | ||
"10": { | ||
"message": "Dictionary error", | ||
}, | ||
"128": { | ||
"message": "Null reference exception", | ||
}, | ||
"129": { | ||
"message": "Invalid serialization prefix", | ||
}, | ||
"13": { | ||
"message": "Out of gas error", | ||
}, | ||
"130": { | ||
"message": "Invalid incoming message", | ||
}, | ||
"131": { | ||
"message": "Constraints error", | ||
}, | ||
"132": { | ||
"message": "Access denied", | ||
}, | ||
"133": { | ||
"message": "Contract stopped", | ||
}, | ||
"134": { | ||
"message": "Invalid argument", | ||
}, | ||
"135": { | ||
"message": "Code of a contract was not found", | ||
}, | ||
"136": { | ||
"message": "Invalid address", | ||
}, | ||
"137": { | ||
"message": "Masterchain support is not enabled for this contract", | ||
}, | ||
"2": { | ||
"message": "Stack underflow", | ||
}, | ||
"3": { | ||
"message": "Stack overflow", | ||
}, | ||
"32": { | ||
"message": "Method ID not found", | ||
}, | ||
"34": { | ||
"message": "Action is invalid or not supported", | ||
}, | ||
"37": { | ||
"message": "Not enough TON", | ||
}, | ||
"38": { | ||
"message": "Not enough extra-currencies", | ||
}, | ||
"4": { | ||
"message": "Integer overflow", | ||
}, | ||
"5": { | ||
"message": "Integer out of expected range", | ||
}, | ||
"6": { | ||
"message": "Invalid opcode", | ||
}, | ||
"7": { | ||
"message": "Type check error", | ||
}, | ||
"8": { | ||
"message": "Cell overflow", | ||
}, | ||
"9": { | ||
"message": "Cell underflow", | ||
}, | ||
}, | ||
"getters": [ | ||
{ | ||
"arguments": [], | ||
"name": "test1", | ||
"returnType": { | ||
"format": 257, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "int", | ||
}, | ||
}, | ||
{ | ||
"arguments": [], | ||
"name": "test2", | ||
"returnType": { | ||
"format": 257, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "int", | ||
}, | ||
}, | ||
{ | ||
"arguments": [], | ||
"name": "test3", | ||
"returnType": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "address", | ||
}, | ||
}, | ||
{ | ||
"arguments": [], | ||
"name": "test4", | ||
"returnType": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "address", | ||
}, | ||
}, | ||
{ | ||
"arguments": [], | ||
"name": "test5", | ||
"returnType": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "bool", | ||
}, | ||
}, | ||
], | ||
"receivers": [ | ||
{ | ||
"message": { | ||
"kind": "typed", | ||
"type": "Deploy", | ||
}, | ||
"receiver": "internal", | ||
}, | ||
], | ||
"types": [ | ||
{ | ||
"fields": [ | ||
{ | ||
"name": "code", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "cell", | ||
}, | ||
}, | ||
{ | ||
"name": "data", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "cell", | ||
}, | ||
}, | ||
], | ||
"header": null, | ||
"name": "StateInit", | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"name": "bounced", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "bool", | ||
}, | ||
}, | ||
{ | ||
"name": "sender", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "address", | ||
}, | ||
}, | ||
{ | ||
"name": "value", | ||
"type": { | ||
"format": 257, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "int", | ||
}, | ||
}, | ||
{ | ||
"name": "raw", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "slice", | ||
}, | ||
}, | ||
], | ||
"header": null, | ||
"name": "Context", | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"name": "bounce", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "bool", | ||
}, | ||
}, | ||
{ | ||
"name": "to", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "address", | ||
}, | ||
}, | ||
{ | ||
"name": "value", | ||
"type": { | ||
"format": 257, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "int", | ||
}, | ||
}, | ||
{ | ||
"name": "mode", | ||
"type": { | ||
"format": 257, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "int", | ||
}, | ||
}, | ||
{ | ||
"name": "body", | ||
"type": { | ||
"kind": "simple", | ||
"optional": true, | ||
"type": "cell", | ||
}, | ||
}, | ||
{ | ||
"name": "code", | ||
"type": { | ||
"kind": "simple", | ||
"optional": true, | ||
"type": "cell", | ||
}, | ||
}, | ||
{ | ||
"name": "data", | ||
"type": { | ||
"kind": "simple", | ||
"optional": true, | ||
"type": "cell", | ||
}, | ||
}, | ||
], | ||
"header": null, | ||
"name": "SendParameters", | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"name": "queryId", | ||
"type": { | ||
"format": 64, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "uint", | ||
}, | ||
}, | ||
], | ||
"header": 2490013878, | ||
"name": "Deploy", | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"name": "queryId", | ||
"type": { | ||
"format": 64, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "uint", | ||
}, | ||
}, | ||
], | ||
"header": 2952335191, | ||
"name": "DeployOk", | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"name": "queryId", | ||
"type": { | ||
"format": 64, | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "uint", | ||
}, | ||
}, | ||
{ | ||
"name": "cashback", | ||
"type": { | ||
"kind": "simple", | ||
"optional": false, | ||
"type": "address", | ||
}, | ||
}, | ||
], | ||
"header": 1829761339, | ||
"name": "FactoryDeploy", | ||
}, | ||
], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters