-
Notifications
You must be signed in to change notification settings - Fork 234
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
1 parent
ddf5526
commit efe26d8
Showing
33 changed files
with
168 additions
and
166 deletions.
There are no files selected for viewing
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
14 changes: 7 additions & 7 deletions
14
yarn-project/circuits.js/src/contract/__snapshots__/contract_address.test.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// Bun Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ContractAddress Address from partial matches Noir 1`] = `"0x0447f893197175723deb223696e2e96dbba1e707ee8507766373558877e74197"`; | ||
exports[`ContractAddress computePartialAddress 1`] = `"0x1923a6246e305720b6aaf751fde0342613e93c82e455c3831e28375c16dd40d8"`; | ||
|
||
exports[`ContractAddress Public key hash matches Noir 1`] = `"0x1923a6246e305720b6aaf751fde0342613e93c82e455c3831e28375c16dd40d8"`; | ||
exports[`ContractAddress computeSaltedInitializationHash 1`] = `"0x25e70e2b5cf1171b74aa1ab4bf1973859a65949a4c83a5365d71434d2062b2b4"`; | ||
|
||
exports[`ContractAddress computeContractAddressFromInstance 1`] = `"0x027ea2b41ced2ec9a98305984e96dd28518536a4628883ccdc06e38aa8997220"`; | ||
exports[`ContractAddress computeInitializationHash 1`] = `"0x109865e4b959adba34b722e72a69baaf9ee78e31bb1042318f0d91006ed86780"`; | ||
|
||
exports[`ContractAddress computeInitializationHash 1`] = `Fr<0x109865e4b959adba34b722e72a69baaf9ee78e31bb1042318f0d91006ed86780>`; | ||
exports[`ContractAddress computeContractAddressFromInstance 1`] = `"0x027ea2b41ced2ec9a98305984e96dd28518536a4628883ccdc06e38aa8997220"`; | ||
|
||
exports[`ContractAddress computePartialAddress 1`] = `Fr<0x1923a6246e305720b6aaf751fde0342613e93c82e455c3831e28375c16dd40d8>`; | ||
exports[`ContractAddress Public key hash matches Noir 1`] = `"0x1923a6246e305720b6aaf751fde0342613e93c82e455c3831e28375c16dd40d8"`; | ||
|
||
exports[`ContractAddress computeSaltedInitializationHash 1`] = `Fr<0x25e70e2b5cf1171b74aa1ab4bf1973859a65949a4c83a5365d71434d2062b2b4>`; | ||
exports[`ContractAddress Address from partial matches Noir 1`] = `"0x0447f893197175723deb223696e2e96dbba1e707ee8507766373558877e74197"`; |
Binary file modified
BIN
-4.15 KB
(3.9%)
yarn-project/circuits.js/src/contract/__snapshots__/private_function.test.ts.snap
Binary file not shown.
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
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
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
32 changes: 2 additions & 30 deletions
32
...uits.js/src/contract/events/__snapshots__/private_function_broadcasted_event.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 2 additions & 21 deletions
23
...s/src/contract/events/__snapshots__/unconstrained_function_broadcasted_event.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 1 addition & 4 deletions
5
yarn-project/circuits.js/src/contract/events/private_function_broadcasted_event.test.ts
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { setupCustomSnapshotSerializers } from '@aztec/foundation/testing'; | ||
|
||
import { getSamplePrivateFunctionBroadcastedEventPayload } from '../../tests/fixtures.js'; | ||
import { PrivateFunctionBroadcastedEvent } from './private_function_broadcasted_event.js'; | ||
|
||
describe('PrivateFunctionBroadcastedEvent', () => { | ||
beforeAll(() => setupCustomSnapshotSerializers(expect)); | ||
it('parses an event as emitted by the ContractClassRegisterer', () => { | ||
const data = getSamplePrivateFunctionBroadcastedEventPayload(); | ||
const event = PrivateFunctionBroadcastedEvent.fromLogData(data); | ||
expect(event).toMatchSnapshot(); | ||
expect(event.toBuffer().toString('hex')).toMatchSnapshot(); | ||
}); | ||
}); |
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
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
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
4 changes: 1 addition & 3 deletions
4
yarn-project/circuits.js/src/contract/private_function.test.ts
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
30 changes: 15 additions & 15 deletions
30
yarn-project/circuits.js/src/hash/__snapshots__/hash.test.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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// Bun Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`hash Computes an empty nullifier hash 1`] = `"0x066e6cdc4a6ba5e4781deda650b0be6c12f975f064fc38df72c1060716759b17"`; | ||
exports[`hash hashes VK 1`] = `"048110667f80b02f77b7d744976657cea9a7c5f1dd2340ea1c579a7ebfd54e55"`; | ||
|
||
exports[`hash Computes an empty sideeffect hash 1`] = `"0x27b1d0839a5b23baf12a8d195b18ac288fcf401afb2f70b8a4b529ede5fa9fed"`; | ||
exports[`hash computes commitment nonce 1`] = `"0x10ebab01bc813263ef92ed71b9c781ad3ef58019b66a8f71304d2f72d7defe4d"`; | ||
|
||
exports[`hash Var args hash matches noir 1`] = `Fr<0x05a1023fef839ac88731f49ae983e172c1b600a3c8f3393ad0ac25d819ac0f0f>`; | ||
exports[`hash computes unique commitment 1`] = `"0x1cbdcecec4fe92f6638eb6a8dade96ca358ecba4954cf597c363199fae3d47e8"`; | ||
|
||
exports[`hash compute secret message hash 1`] = `Fr<0x0dc06f2167e2cd19adf738d1f38469d7f8bff1e26b029816e8230bcd6ab6332e>`; | ||
exports[`hash computes siloed commitment 1`] = `"0x100e57c07ab6db86f4ae43f5a7d4355c57c5a1e2523746e0fb16ac29f0dc3bbb"`; | ||
|
||
exports[`hash computes commitment nonce 1`] = `Fr<0x10ebab01bc813263ef92ed71b9c781ad3ef58019b66a8f71304d2f72d7defe4d>`; | ||
exports[`hash computes siloed nullifier 1`] = `"0x1743145fde103eaa88af576e0562e61d85eba590fddf01d19550e4f024709373"`; | ||
|
||
exports[`hash computes public data tree leaf slot 1`] = `Fr<0x14114ab3dbdd0a1ccc5c4fe68dd576f3c6cd79708770e06ab4086398cdd828f4>`; | ||
exports[`hash computes public data tree value 1`] = `"0x0000000000000000000000000000000000000000000000000000000000000003"`; | ||
|
||
exports[`hash computes public data tree value 1`] = `Fr<0x0000000000000000000000000000000000000000000000000000000000000003>`; | ||
exports[`hash computes public data tree leaf slot 1`] = `"0x14114ab3dbdd0a1ccc5c4fe68dd576f3c6cd79708770e06ab4086398cdd828f4"`; | ||
|
||
exports[`hash computes siloed commitment 1`] = `Fr<0x100e57c07ab6db86f4ae43f5a7d4355c57c5a1e2523746e0fb16ac29f0dc3bbb>`; | ||
exports[`hash hashes empty function args 1`] = `"0x0000000000000000000000000000000000000000000000000000000000000000"`; | ||
|
||
exports[`hash computes siloed nullifier 1`] = `Fr<0x1743145fde103eaa88af576e0562e61d85eba590fddf01d19550e4f024709373>`; | ||
exports[`hash hashes function args 1`] = `"0x1a76e9750a1493d95ce48be1fa31831fc370d7e68f563fe5c781c6f58e1f1eac"`; | ||
|
||
exports[`hash computes unique commitment 1`] = `Fr<0x1cbdcecec4fe92f6638eb6a8dade96ca358ecba4954cf597c363199fae3d47e8>`; | ||
exports[`hash hashes many function args 1`] = `"0x21e37f4da2762d4daff39c2337d812b9c7b9c46aa9fafdf666d7d7fd9935d124"`; | ||
|
||
exports[`hash hashes VK 1`] = `Buffer<0x048110667f80b02f77b7d744976657cea9a7c5f1dd2340ea1c579a7ebfd54e55>`; | ||
exports[`hash compute secret message hash 1`] = `"0x0dc06f2167e2cd19adf738d1f38469d7f8bff1e26b029816e8230bcd6ab6332e"`; | ||
|
||
exports[`hash hashes empty function args 1`] = `Fr<0x0000000000000000000000000000000000000000000000000000000000000000>`; | ||
exports[`hash Computes an empty nullifier hash 1`] = `"0x066e6cdc4a6ba5e4781deda650b0be6c12f975f064fc38df72c1060716759b17"`; | ||
|
||
exports[`hash hashes function args 1`] = `Fr<0x1a76e9750a1493d95ce48be1fa31831fc370d7e68f563fe5c781c6f58e1f1eac>`; | ||
exports[`hash Computes an empty sideeffect hash 1`] = `"0x27b1d0839a5b23baf12a8d195b18ac288fcf401afb2f70b8a4b529ede5fa9fed"`; | ||
|
||
exports[`hash hashes many function args 1`] = `Fr<0x21e37f4da2762d4daff39c2337d812b9c7b9c46aa9fafdf666d7d7fd9935d124>`; | ||
exports[`hash Var args hash matches noir 1`] = `"0x05a1023fef839ac88731f49ae983e172c1b600a3c8f3393ad0ac25d819ac0f0f"`; |
Oops, something went wrong.