Skip to content

Commit

Permalink
chore: fmt and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Aug 23, 2024
1 parent fb1ff20 commit d764f70
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions examples/__snapshots__/increment.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`increment should deploy 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQD7yz9Lc5mY0HEthloFxnzuXkKYtfFWwTbTyG45qPvE9gMW",
"to": "kQCZq6o-nSHCoxfIzdCAl3fDePr-LEYT-VUlqbQ5prvrJ7Y2",
"type": "internal",
"value": "10",
},
Expand All @@ -41,7 +41,7 @@ exports[`increment should deploy 1`] = `
},
},
"bounce": false,
"from": "kQD7yz9Lc5mY0HEthloFxnzuXkKYtfFWwTbTyG45qPvE9gMW",
"from": "kQCZq6o-nSHCoxfIzdCAl3fDePr-LEYT-VUlqbQ5prvrJ7Y2",
"to": "@treasure(treasure)",
"type": "internal",
"value": "9.990331",
Expand Down Expand Up @@ -71,7 +71,7 @@ exports[`increment should deploy 2`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQD7yz9Lc5mY0HEthloFxnzuXkKYtfFWwTbTyG45qPvE9gMW",
"to": "kQCZq6o-nSHCoxfIzdCAl3fDePr-LEYT-VUlqbQ5prvrJ7Y2",
"type": "internal",
"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 @@ -17,7 +17,7 @@ exports[`multisig-3 should deploy 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDpwhep4X3X57rQ89GE4unirFfJJtvEEFrijJiyIj_mDDnN",
"to": "kQCM9SxGev2rN3tzzK8TMNBB0Rhbr-1wc9DKPJoJUzSGM3jm",
"type": "internal",
"value": "10",
},
Expand Down
10 changes: 5 additions & 5 deletions examples/__snapshots__/wallet.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`wallet should deploy 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQAk8Vi4XE82PKwlQT5Hza19hGrMmiN55nTX9_aOnQapz-tn",
"to": "kQBkJMYSKVKU-3Ow5coQiKI0gKV--vUYHsJC1g_RbzJk2MF3",
"type": "internal",
"value": "10",
},
Expand Down Expand Up @@ -45,7 +45,7 @@ exports[`wallet should deploy 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQAk8Vi4XE82PKwlQT5Hza19hGrMmiN55nTX9_aOnQapz-tn",
"to": "kQBkJMYSKVKU-3Ow5coQiKI0gKV--vUYHsJC1g_RbzJk2MF3",
"type": "internal",
"value": "1",
},
Expand All @@ -62,7 +62,7 @@ exports[`wallet should deploy 1`] = `
"type": "empty",
},
"bounce": true,
"from": "kQAk8Vi4XE82PKwlQT5Hza19hGrMmiN55nTX9_aOnQapz-tn",
"from": "kQBkJMYSKVKU-3Ow5coQiKI0gKV--vUYHsJC1g_RbzJk2MF3",
"to": "@treasure(treasure)",
"type": "internal",
"value": "10",
Expand Down Expand Up @@ -92,7 +92,7 @@ exports[`wallet should deploy 2`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQAk8Vi4XE82PKwlQT5Hza19hGrMmiN55nTX9_aOnQapz-tn",
"to": "kQBkJMYSKVKU-3Ow5coQiKI0gKV--vUYHsJC1g_RbzJk2MF3",
"type": "internal",
"value": "1",
},
Expand Down Expand Up @@ -123,7 +123,7 @@ exports[`wallet should deploy 3`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQAk8Vi4XE82PKwlQT5Hza19hGrMmiN55nTX9_aOnQapz-tn",
"to": "kQBkJMYSKVKU-3Ow5coQiKI0gKV--vUYHsJC1g_RbzJk2MF3",
"type": "internal",
"value": "1",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`implicit-init should deploy 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDvDXnePMpImn0pNX_I9ViQe5NK-3TzJFz0a_wh1ddwXzw2",
"to": "kQA2Gngl1cZ5BkRRR3UOenTUhET0LR7TuhtWgYlh6KwLf3YT",
"type": "internal",
"value": "1",
},
Expand All @@ -41,7 +41,7 @@ exports[`implicit-init should deploy 1`] = `
},
},
"bounce": false,
"from": "kQDvDXnePMpImn0pNX_I9ViQe5NK-3TzJFz0a_wh1ddwXzw2",
"from": "kQA2Gngl1cZ5BkRRR3UOenTUhET0LR7TuhtWgYlh6KwLf3YT",
"to": "@treasure(treasure)",
"type": "internal",
"value": "0.991657",
Expand All @@ -67,7 +67,7 @@ exports[`implicit-init should increment counter 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDvDXnePMpImn0pNX_I9ViQe5NK-3TzJFz0a_wh1ddwXzw2",
"to": "kQA2Gngl1cZ5BkRRR3UOenTUhET0LR7TuhtWgYlh6KwLf3YT",
"type": "internal",
"value": "1",
},
Expand All @@ -94,7 +94,7 @@ exports[`implicit-init should increment counter 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDvDXnePMpImn0pNX_I9ViQe5NK-3TzJFz0a_wh1ddwXzw2",
"to": "kQA2Gngl1cZ5BkRRR3UOenTUhET0LR7TuhtWgYlh6KwLf3YT",
"type": "internal",
"value": "1",
},
Expand Down
6 changes: 3 additions & 3 deletions src/test/e2e-emulated/__snapshots__/map.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`map should implement maps correctly 1`] = `
"events": [
{
"$type": "storage-charged",
"amount": "0.000000108",
"amount": "0.000000123",
},
{
"$type": "received",
Expand All @@ -18,7 +18,7 @@ exports[`map should implement maps correctly 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQD2HX3w4uRmCoe34-siEhRl5sEC6x8BSBZexutmtSOfYWoh",
"to": "kQB3MEsMEVBqn5m5-U9gWK8kE3oZHyWyY65DHGZB_94zLiUy",
"type": "internal",
"value": "1",
},
Expand All @@ -36,7 +36,7 @@ exports[`map should implement maps correctly 1`] = `
"type": "cell",
},
"bounce": false,
"from": "kQD2HX3w4uRmCoe34-siEhRl5sEC6x8BSBZexutmtSOfYWoh",
"from": "kQB3MEsMEVBqn5m5-U9gWK8kE3oZHyWyY65DHGZB_94zLiUy",
"to": "@treasure(treasure)",
"type": "internal",
"value": "0.981251",
Expand Down
10 changes: 5 additions & 5 deletions src/test/e2e-emulated/__snapshots__/send.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`send should bounce on unknown message 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDKCjH9joKz9a9o2VmyTphq731lmihoY4RgEpq1Jd_4t6rL",
"to": "kQATx58YvlfHtRNTqNXYeKUD0aoA8zP1ffmepeP5UaunSzFu",
"type": "internal",
"value": "10",
},
Expand All @@ -36,7 +36,7 @@ exports[`send should bounce on unknown message 1`] = `
"type": "cell",
},
"bounce": false,
"from": "kQDKCjH9joKz9a9o2VmyTphq731lmihoY4RgEpq1Jd_4t6rL",
"from": "kQATx58YvlfHtRNTqNXYeKUD0aoA8zP1ffmepeP5UaunSzFu",
"to": "@treasure(treasure)",
"type": "internal",
"value": "9.996013",
Expand Down Expand Up @@ -67,7 +67,7 @@ exports[`send should send reply correctly 1`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDKCjH9joKz9a9o2VmyTphq731lmihoY4RgEpq1Jd_4t6rL",
"to": "kQATx58YvlfHtRNTqNXYeKUD0aoA8zP1ffmepeP5UaunSzFu",
"type": "internal",
"value": "10",
},
Expand Down Expand Up @@ -112,7 +112,7 @@ exports[`send should send reply correctly 2`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQDKCjH9joKz9a9o2VmyTphq731lmihoY4RgEpq1Jd_4t6rL",
"to": "kQATx58YvlfHtRNTqNXYeKUD0aoA8zP1ffmepeP5UaunSzFu",
"type": "internal",
"value": "10",
},
Expand All @@ -130,7 +130,7 @@ exports[`send should send reply correctly 2`] = `
"type": "text",
},
"bounce": true,
"from": "kQDKCjH9joKz9a9o2VmyTphq731lmihoY4RgEpq1Jd_4t6rL",
"from": "kQATx58YvlfHtRNTqNXYeKUD0aoA8zP1ffmepeP5UaunSzFu",
"to": "@treasure(treasure)",
"type": "internal",
"value": "9.990889",
Expand Down
6 changes: 3 additions & 3 deletions src/test/e2e-emulated/__snapshots__/structs.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ exports[`structs should implement structs correctly 13`] = `
"events": [
{
"$type": "storage-charged",
"amount": "0.000000034",
"amount": "0.000000037",
},
{
"$type": "received",
Expand All @@ -300,7 +300,7 @@ exports[`structs should implement structs correctly 13`] = `
},
"bounce": true,
"from": "@treasure(treasure)",
"to": "kQA1LDdzadkUsxlM6-EvD2rMZ2-HuudKWuU-umho_Zw4Aoau",
"to": "kQAFlL0UbYKUU38b3a4Kdd4uMNNQBeStlzQUBejnfrkqo-34",
"type": "internal",
"value": "10",
},
Expand All @@ -318,7 +318,7 @@ exports[`structs should implement structs correctly 13`] = `
"type": "cell",
},
"bounce": false,
"from": "kQA1LDdzadkUsxlM6-EvD2rMZ2-HuudKWuU-umho_Zw4Aoau",
"from": "kQAFlL0UbYKUU38b3a4Kdd4uMNNQBeStlzQUBejnfrkqo-34",
"to": "@treasure(treasure)",
"type": "internal",
"value": "9.988015",
Expand Down
2 changes: 1 addition & 1 deletion src/types/resolveDescriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function verifyMapType(mapTy: AstMapType, isValTypeStruct: boolean) {
"Cell",
]);
}

export const toBounced = (type: string) => `${type}%%BOUNCED%%`;

export function resolveTypeRef(ctx: CompilerContext, type: AstType): TypeRef {
Expand Down

0 comments on commit d764f70

Please sign in to comment.