Skip to content

Commit

Permalink
narrowed snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Nov 2, 2022
1 parent 985884e commit 2c341cf
Show file tree
Hide file tree
Showing 6 changed files with 878 additions and 5,313 deletions.
215 changes: 0 additions & 215 deletions src/__snapshots__/sign-typed-data-gggg.test.ts.snap

This file was deleted.

43 changes: 43 additions & 0 deletions src/__snapshots__/sign-typed-data-narrowed.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`TypedDataUtils.encodeData TypedDataUtils.hashStruct V3 example data type "bytes" should hash "0x101" (type "string") 1`] = `"9ec9530996ac7e6e69e8451f8ce9b3b76292a29f8b63af77c328bc95d921a044"`;

exports[`TypedDataUtils.encodeData TypedDataUtils.hashStruct V3 example data type "bytes" should hash "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b70000000000000000000000000000000000000000000000000000000000000001" (type "string") 1`] = `"262fae6268b3ee84a3870ced869fddd7b881ea50983994601c1dfdb2f61d9dce"`;

exports[`TypedDataUtils.encodeData TypedDataUtils.hashStruct V3 example data type "bytes" should hash "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b700000000000000000000000000000000000000000000000000000000000000012" (type "string") 1`] = `"700c3e0cc9d6f0ba10b117c03ca22a8934a51cc2a00cd0359c1c856e5eb814ae"`;

exports[`TypedDataUtils.encodeData TypedDataUtils.hashStruct V4 example data type "bytes" should hash "0x101" (type "string") 1`] = `"9ec9530996ac7e6e69e8451f8ce9b3b76292a29f8b63af77c328bc95d921a044"`;

exports[`TypedDataUtils.encodeData TypedDataUtils.hashStruct V4 example data type "bytes" should hash "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b70000000000000000000000000000000000000000000000000000000000000001" (type "string") 1`] = `"262fae6268b3ee84a3870ced869fddd7b881ea50983994601c1dfdb2f61d9dce"`;

exports[`TypedDataUtils.encodeData TypedDataUtils.hashStruct V4 example data type "bytes" should hash "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b700000000000000000000000000000000000000000000000000000000000000012" (type "string") 1`] = `"700c3e0cc9d6f0ba10b117c03ca22a8934a51cc2a00cd0359c1c856e5eb814ae"`;

exports[`TypedDataUtils.encodeData TypedDataUtils.hashStruct V4 example data type "bytes" should hash array of all bytes example data 1`] = `"234c1c4aff47de355ae7d9555f024f2cd5a29959b69e2fad482146efcf983452"`;

exports[`TypedDataUtils.encodeData V3 V4 example data type "bytes" should encode "0x101" (type "string") 1`] = `"fe4e90aeb2dead25fb44e8b67b2f9cdb3cabea1f7555b81fcc61f7103acf5d504535a04e923af75e64a9f6cdfb922004b40beec0649d36cf6ea095b7c4975cae"`;

exports[`TypedDataUtils.encodeData V3 V4 example data type "bytes" should encode "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b70000000000000000000000000000000000000000000000000000000000000001" (type "string") 1`] = `"fe4e90aeb2dead25fb44e8b67b2f9cdb3cabea1f7555b81fcc61f7103acf5d503c69557ff216b14e1d6882d6397d50cfc71f2cfc4151763c37e657cd8fb6eb5d"`;

exports[`TypedDataUtils.encodeData V3 V4 example data type "bytes" should encode "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b700000000000000000000000000000000000000000000000000000000000000012" (type "string") 1`] = `"fe4e90aeb2dead25fb44e8b67b2f9cdb3cabea1f7555b81fcc61f7103acf5d5079e359f9f8dd862458d27e6f821489aabacad92fedc4fb7117a53cb15cec6756"`;

exports[`TypedDataUtils.encodeData V3 V4 example data type "bytes" should encode array of all bytes example data 1`] = `"93f286650d21b73fafa0cf1f6da3997b287c960d06b6f072958b05a5502e54fef56a97ca3a3d71042b307a9e33372ec8d2828dbfa0b7025a7503b218f22fba90"`;

exports[`TypedDataUtils.encodeData V3 example data type "bytes" should encode "0x101" (type "string") 1`] = `"fe4e90aeb2dead25fb44e8b67b2f9cdb3cabea1f7555b81fcc61f7103acf5d504535a04e923af75e64a9f6cdfb922004b40beec0649d36cf6ea095b7c4975cae"`;

exports[`TypedDataUtils.encodeData V3 example data type "bytes" should encode "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b70000000000000000000000000000000000000000000000000000000000000001" (type "string") 1`] = `"fe4e90aeb2dead25fb44e8b67b2f9cdb3cabea1f7555b81fcc61f7103acf5d503c69557ff216b14e1d6882d6397d50cfc71f2cfc4151763c37e657cd8fb6eb5d"`;

exports[`TypedDataUtils.encodeData V3 example data type "bytes" should encode "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b700000000000000000000000000000000000000000000000000000000000000012" (type "string") 1`] = `"fe4e90aeb2dead25fb44e8b67b2f9cdb3cabea1f7555b81fcc61f7103acf5d5079e359f9f8dd862458d27e6f821489aabacad92fedc4fb7117a53cb15cec6756"`;

exports[`TypedDataUtils.encodeData signTypedData V3 example data type "bytes" should sign "0x101" (type "string") 1`] = `"0x821516d637520e4fc33b1493648fba6e90966cc0831f2a5b388d4772e76b8c1c47d0f0346a42c153a56d3144087de5933e10d2c3a1c458a48dd1343d05b03e4b1b"`;

exports[`TypedDataUtils.encodeData signTypedData V3 example data type "bytes" should sign "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b70000000000000000000000000000000000000000000000000000000000000001" (type "string") 1`] = `"0x82533d24d72d06740288f8276a45cd67271a2cf48e0a48bf4782467edabaa3b726aa6e912ccbbe808dd7cd17f4aa018edcc655f0b639661178a823c9869cf1de1c"`;

exports[`TypedDataUtils.encodeData signTypedData V3 example data type "bytes" should sign "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b700000000000000000000000000000000000000000000000000000000000000012" (type "string") 1`] = `"0x55cbf0cc598373784e1c2cecec99668f491852ecf9f7f37b6e1203d06867764b598b4e5556807ce8f32f422c395b52a66c789439db7a1efe0ff7c682f4bf7b421b"`;

exports[`TypedDataUtils.encodeData signTypedData V4 example data type "bytes" should sign "0x101" (type "string") 1`] = `"0x821516d637520e4fc33b1493648fba6e90966cc0831f2a5b388d4772e76b8c1c47d0f0346a42c153a56d3144087de5933e10d2c3a1c458a48dd1343d05b03e4b1b"`;

exports[`TypedDataUtils.encodeData signTypedData V4 example data type "bytes" should sign "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b70000000000000000000000000000000000000000000000000000000000000001" (type "string") 1`] = `"0x82533d24d72d06740288f8276a45cd67271a2cf48e0a48bf4782467edabaa3b726aa6e912ccbbe808dd7cd17f4aa018edcc655f0b639661178a823c9869cf1de1c"`;

exports[`TypedDataUtils.encodeData signTypedData V4 example data type "bytes" should sign "0xa22cb465000000000000000000000000a9079d872d10185b54c5db2c36cc978cbd3f72b700000000000000000000000000000000000000000000000000000000000000012" (type "string") 1`] = `"0x55cbf0cc598373784e1c2cecec99668f491852ecf9f7f37b6e1203d06867764b598b4e5556807ce8f32f422c395b52a66c789439db7a1efe0ff7c682f4bf7b421b"`;

exports[`TypedDataUtils.encodeData signTypedData V4 example data type "bytes" should sign array of all bytes example data 1`] = `"0x87a5eb254e39bfbec5d058c3e2eef14dcfada0c3edd4a3bf61e6bd5f3773f1231da7dde4ccf3239651f48b460fd16fb6d0ff422f340fbd9f313849776e09294e1c"`;
Loading

0 comments on commit 2c341cf

Please sign in to comment.