Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-trunov committed Nov 28, 2023
1 parent 008da9d commit a4cc48c
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 39 deletions.
28 changes: 19 additions & 9 deletions examples/__snapshots__/increment.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ exports[`increment should deploy 1`] = `
"$type": "received",
"message": {
"body": {
"cell": "x{946A98B60000000000000000}",
"type": "cell",
"type": "known",
"value": {
"$$type": "Deploy",
"queryId": 0n,
},
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDeI5IisUF0tSvWxNDeA-Og-_S1nAT8ZdqTvOZ30HeNgzC1",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand All @@ -31,14 +34,17 @@ exports[`increment should deploy 1`] = `
"messages": [
{
"body": {
"cell": "x{AFF90F570000000000000000}",
"type": "cell",
"type": "known",
"value": {
"$$type": "DeployOk",
"queryId": 0n,
},
},
"bounce": false,
"from": "kQDeI5IisUF0tSvWxNDeA-Og-_S1nAT8ZdqTvOZ30HeNgzC1",
"to": "@treasure(treasure)",
"type": "internal",
"value": 9990313000n,
"value": "9.990313",
},
],
},
Expand All @@ -56,14 +62,18 @@ exports[`increment should deploy 2`] = `
"$type": "received",
"message": {
"body": {
"cell": "x{20064F3B00000000000000000000000000000000000000000000000000000000000000007FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFECC2_}",
"type": "cell",
"type": "known",
"value": {
"$$type": "Increment",
"key": 0n,
"value": -1232n,
},
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDeI5IisUF0tSvWxNDeA-Og-_S1nAT8ZdqTvOZ30HeNgzC1",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/__snapshots__/multisig-3.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`muiltisig-3 should deploy 1`] = `
"from": "@treasure(treasure)",
"to": "kQA2dtHnP8ywA0dgkHw5rQTXGtbBDktii55xFgnShHpu1XtQ",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand Down
22 changes: 17 additions & 5 deletions examples/__snapshots__/wallet.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`wallet should deploy 1`] = `
"from": "@treasure(treasure)",
"to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand All @@ -31,6 +31,10 @@ exports[`wallet should deploy 1`] = `
{
"$seq": 1,
"events": [
{
"$type": "storage-charged",
"amount": "0.000000006",
},
{
"$type": "received",
"message": {
Expand All @@ -43,7 +47,7 @@ exports[`wallet should deploy 1`] = `
"from": "@treasure(treasure)",
"to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j",
"type": "internal",
"value": 1000000000n,
"value": "1",
},
},
{
Expand All @@ -61,7 +65,7 @@ exports[`wallet should deploy 1`] = `
"from": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j",
"to": "@treasure(treasure)",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
],
},
Expand All @@ -75,6 +79,10 @@ exports[`wallet should deploy 2`] = `
{
"$seq": 2,
"events": [
{
"$type": "storage-charged",
"amount": "0.000000006",
},
{
"$type": "received",
"message": {
Expand All @@ -86,7 +94,7 @@ exports[`wallet should deploy 2`] = `
"from": "@treasure(treasure)",
"to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j",
"type": "internal",
"value": 1000000000n,
"value": "1",
},
},
{
Expand All @@ -103,6 +111,10 @@ exports[`wallet should deploy 3`] = `
{
"$seq": 3,
"events": [
{
"$type": "storage-charged",
"amount": "0.000000006",
},
{
"$type": "received",
"message": {
Expand All @@ -113,7 +125,7 @@ exports[`wallet should deploy 3`] = `
"from": "@treasure(treasure)",
"to": "kQCjmMHzL6dRv6HCrACYpCe1qJbXqGp_P1ObgRO1orr1RW5j",
"type": "internal",
"value": 1000000000n,
"value": "1",
},
},
{
Expand Down
11 changes: 7 additions & 4 deletions src/test/__snapshots__/bugs.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`bugs should deploy contract correctly 1`] = `
"from": "kQDsxraH9C2q62rBFOR2qqOFjjomtfdWo64TkbdMhFTJiLsN",
"to": "kQBGSDIgoUMAjGBNBXjsdBRlfPtqK5rKgQOD5N7yKFfIXeuh",
"type": "internal",
"value": 9958850000n,
"value": "9.95885",
},
},
{
Expand All @@ -31,14 +31,17 @@ exports[`bugs should deploy contract correctly 1`] = `
"messages": [
{
"body": {
"cell": "x{D53276DB0000000000000000}",
"type": "cell",
"type": "known",
"value": {
"$$type": "TokenExcesses",
"queryId": 0n,
},
},
"bounce": false,
"from": "kQBGSDIgoUMAjGBNBXjsdBRlfPtqK5rKgQOD5N7yKFfIXeuh",
"to": "@treasure(treasure)",
"type": "internal",
"value": 9914852826n,
"value": "9.914852826",
},
],
},
Expand Down
14 changes: 7 additions & 7 deletions src/test/__snapshots__/feature-deep.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports[`feature-random should chain deep sequences correctly 4`] = `
"from": "@treasure(treasure)",
"to": "kQBzQuBPhn7ZBGyfJon1nlzqk4L83mOm_Pq47fHucwcVCken",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand All @@ -44,7 +44,7 @@ exports[`feature-random should chain deep sequences correctly 4`] = `
"from": "kQBzQuBPhn7ZBGyfJon1nlzqk4L83mOm_Pq47fHucwcVCken",
"to": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G",
"type": "internal",
"value": 9970524000n,
"value": "9.970524",
},
],
},
Expand Down Expand Up @@ -72,7 +72,7 @@ exports[`feature-random should chain deep sequences correctly 5`] = `
"from": "kQBzQuBPhn7ZBGyfJon1nlzqk4L83mOm_Pq47fHucwcVCken",
"to": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G",
"type": "internal",
"value": 9970524000n,
"value": "9.970524",
},
},
{
Expand All @@ -91,7 +91,7 @@ exports[`feature-random should chain deep sequences correctly 5`] = `
"from": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G",
"to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w",
"type": "internal",
"value": 9946637000n,
"value": "9.946637",
},
],
},
Expand Down Expand Up @@ -119,7 +119,7 @@ exports[`feature-random should chain deep sequences correctly 6`] = `
"from": "kQB5HT5Y8C_DCfrEVd7hwFTQ1ZEgJaGrqzC0MKuC6kd2y78G",
"to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w",
"type": "internal",
"value": 9946637000n,
"value": "9.946637",
},
},
{
Expand All @@ -138,7 +138,7 @@ exports[`feature-random should chain deep sequences correctly 6`] = `
"from": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w",
"to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w",
"type": "internal",
"value": 9923010000n,
"value": "9.92301",
},
],
},
Expand All @@ -158,7 +158,7 @@ exports[`feature-random should chain deep sequences correctly 6`] = `
"from": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w",
"to": "kQDCMhBiphS6DwVjUGJSSZXnAKwuw2vzSQGTa404BA372O5w",
"type": "internal",
"value": 9923010000n,
"value": "9.92301",
},
},
{
Expand Down
6 changes: 5 additions & 1 deletion src/test/__snapshots__/feature-instrinsics.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ exports[`feature-instrinsics should return correct instinsic results 1`] = `
{
"$seq": 1,
"events": [
{
"$type": "storage-charged",
"amount": "0.00000001",
},
{
"$type": "received",
"message": {
Expand All @@ -16,7 +20,7 @@ exports[`feature-instrinsics should return correct instinsic results 1`] = `
"from": "@treasure(treasure)",
"to": "@contract",
"type": "internal",
"value": 1000000000n,
"value": "1",
},
},
{
Expand Down
10 changes: 5 additions & 5 deletions src/test/__snapshots__/feature-masterchain.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`feature-masterchain should deploy to the workchain 1`] = `
"from": "@treasure(treasure)",
"to": "kQCH5BskP3iUdwhhHq1e-02uGZl1K1v7Nv0FofkQsgMIa7bk",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand Down Expand Up @@ -50,7 +50,7 @@ exports[`feature-masterchain should deploy to the workchain from masterchain whe
"from": "@treasure(treasure)",
"to": "kQB62cwgU28lN8tGqr00-iU4DNXBpiVr4ZnPJ1Z32NbD9xqj",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand Down Expand Up @@ -81,7 +81,7 @@ exports[`feature-masterchain should deploy to the workchain when masterchain ena
"from": "@treasure(treasure)",
"to": "kQB62cwgU28lN8tGqr00-iU4DNXBpiVr4ZnPJ1Z32NbD9xqj",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand Down Expand Up @@ -112,7 +112,7 @@ exports[`feature-masterchain should not deploy to the workchain from masterchain
"from": "@treasure(treasure)",
"to": "kQCH5BskP3iUdwhhHq1e-02uGZl1K1v7Nv0FofkQsgMIa7bk",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand All @@ -131,7 +131,7 @@ exports[`feature-masterchain should not deploy to the workchain from masterchain
"from": "kQCH5BskP3iUdwhhHq1e-02uGZl1K1v7Nv0FofkQsgMIa7bk",
"to": "@treasure(treasure)",
"type": "internal",
"value": 9989000000n,
"value": "9.989",
},
},
],
Expand Down
25 changes: 18 additions & 7 deletions src/test/__snapshots__/feature-send.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ exports[`feature-send should bounce on unknown message 1`] = `
{
"$seq": 1,
"events": [
{
"$type": "storage-charged",
"amount": "0.000000005",
},
{
"$type": "received",
"message": {
Expand All @@ -16,7 +20,7 @@ exports[`feature-send should bounce on unknown message 1`] = `
"from": "@treasure(treasure)",
"to": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand All @@ -35,7 +39,7 @@ exports[`feature-send should bounce on unknown message 1`] = `
"from": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM",
"to": "@treasure(treasure)",
"type": "internal",
"value": 9996013000n,
"value": "9.996013",
},
},
],
Expand All @@ -55,14 +59,17 @@ exports[`feature-send should send reply correctly 1`] = `
"$type": "received",
"message": {
"body": {
"cell": "x{946A98B60000000000000000}",
"type": "cell",
"type": "known",
"value": {
"$$type": "Deploy",
"queryId": 0n,
},
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand Down Expand Up @@ -92,6 +99,10 @@ exports[`feature-send should send reply correctly 2`] = `
{
"$seq": 1,
"events": [
{
"$type": "storage-charged",
"amount": "0.000000005",
},
{
"$type": "received",
"message": {
Expand All @@ -103,7 +114,7 @@ exports[`feature-send should send reply correctly 2`] = `
"from": "@treasure(treasure)",
"to": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM",
"type": "internal",
"value": 10000000000n,
"value": "10",
},
},
{
Expand All @@ -122,7 +133,7 @@ exports[`feature-send should send reply correctly 2`] = `
"from": "kQAtYS6QVmMwOK0owmHMToN6uyLer1UqtPhbWkQ1wsHdJ-dM",
"to": "@treasure(treasure)",
"type": "internal",
"value": 9990889000n,
"value": "9.990889",
},
],
},
Expand Down

0 comments on commit a4cc48c

Please sign in to comment.