ox 0.14.58 → 0.14.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/_cjs/core/Authorization.js +37 -6
  3. package/_cjs/core/Authorization.js.map +1 -1
  4. package/_cjs/core/Siwe.js +1 -1
  5. package/_cjs/core/Siwe.js.map +1 -1
  6. package/_cjs/tempo/AccountConfig.js +3 -10
  7. package/_cjs/tempo/AccountConfig.js.map +1 -1
  8. package/_cjs/tempo/index.js.map +1 -1
  9. package/_cjs/version.js +1 -1
  10. package/_esm/core/Authorization.js +47 -6
  11. package/_esm/core/Authorization.js.map +1 -1
  12. package/_esm/core/Siwe.js +1 -1
  13. package/_esm/core/Siwe.js.map +1 -1
  14. package/_esm/tempo/AccountConfig.js +8 -26
  15. package/_esm/tempo/AccountConfig.js.map +1 -1
  16. package/_esm/tempo/AccountOperation.js +1 -1
  17. package/_esm/tempo/index.js +1 -3
  18. package/_esm/tempo/index.js.map +1 -1
  19. package/_esm/version.js +1 -1
  20. package/_types/core/Authorization.d.ts.map +1 -1
  21. package/_types/core/Siwe.d.ts.map +1 -1
  22. package/_types/tempo/AccountConfig.d.ts +7 -17
  23. package/_types/tempo/AccountConfig.d.ts.map +1 -1
  24. package/_types/tempo/AccountOperation.d.ts +1 -1
  25. package/_types/tempo/index.d.ts +1 -3
  26. package/_types/tempo/index.d.ts.map +1 -1
  27. package/_types/version.d.ts +1 -1
  28. package/core/Authorization.ts +46 -6
  29. package/core/Siwe.ts +1 -1
  30. package/package.json +1 -1
  31. package/tempo/AccountConfig.test.ts +34 -47
  32. package/tempo/AccountConfig.ts +9 -37
  33. package/tempo/AccountOperation.test.ts +36 -37
  34. package/tempo/AccountOperation.ts +1 -1
  35. package/tempo/SignatureEnvelope.test.ts +1 -3
  36. package/tempo/configurableAccounts.e2e.test.ts +1 -2
  37. package/tempo/index.ts +1 -3
  38. package/version.ts +1 -1
@@ -7,7 +7,6 @@ import {
7
7
  TxEnvelopeTempo,
8
8
  } from 'ox/tempo'
9
9
  import { describe, expect, test } from 'vitest'
10
- import { factory } from '../../test/tempo/configurableAccounts.js'
11
10
 
12
11
  const owners = [1n, 2n, 3n]
13
12
  .map((value, index) => {
@@ -38,7 +37,7 @@ const config = AccountConfig.from({
38
37
  threshold: 2,
39
38
  })
40
39
  const currentConfig = AccountConfig.from({ ...config, version: 1n })
41
- const account = AccountConfig.getAddress(config, { factory })
40
+ const account = AccountConfig.getAddress(config)
42
41
  const ownerSignature_1 = owners[0]!.signature
43
42
  const approval_1 = SignatureEnvelope.serialize(ownerSignature_1)
44
43
  const approval_2 = SignatureEnvelope.serialize(owners[1]!.signature)
@@ -150,8 +149,8 @@ describe('getHash', () => {
150
149
  }),
151
150
  }).toMatchInlineSnapshot(`
152
151
  {
153
- "keyAuthorization": "0xd18f389ae23bdc81939861c9a1079201968a2ec5fbd67ad1063556b46af8914f",
154
- "transaction": "0x246027f7c6940fb4b68a746c49819c1c45737aa6c975aafcce721b4a619a9ab1",
152
+ "keyAuthorization": "0x5e8fa6d31c6e604cdac971bdd0a10b825cbb039c76ee399a6d6f619957032de4",
153
+ "transaction": "0x4f312a4616f3f96375e6bd4c20f992694408a8c804429140068aee31bd0b0eaf",
155
154
  }
156
155
  `)
157
156
  })
@@ -167,7 +166,7 @@ describe('selectApprovals', () => {
167
166
  ],
168
167
  threshold: 3,
169
168
  })
170
- const account = AccountConfig.getAddress(config, { factory })
169
+ const account = AccountConfig.getAddress(config)
171
170
  const hash = AccountOperation.getHash({
172
171
  account,
173
172
  config: { ...config, version: 1n },
@@ -223,7 +222,7 @@ describe('selectApprovals', () => {
223
222
  }
224
223
  `)
225
224
  })
226
- test('accepts an explicit account from a chain-configured factory', async () => {
225
+ test('accepts an explicit derived account', async () => {
227
226
  const selected = await AccountOperation.selectApprovals({
228
227
  account,
229
228
  approvals: [],
@@ -342,14 +341,14 @@ describe('serializeKeyAuthorization', () => {
342
341
  expect(results).toMatchInlineSnapshot(`
343
342
  [
344
343
  {
345
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
346
- "hash": "0x8d72c92f8aca5cf651ff914a928a32b1717e51b70fce97e305aaab02617474f5",
344
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
345
+ "hash": "0xa12b482453a90d0be6ec0c85e9871d47c322278e2e623191196a974aef52cafd",
347
346
  "signatureCount": 2,
348
347
  "version": 1n,
349
348
  },
350
349
  {
351
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
352
- "hash": "0x1dce79ae000bb60526cbe3b18be29d517319ee0958b01e5e3e89608e19c13459",
350
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
351
+ "hash": "0x65666f84fa858423447d9eb84e4ad8e36ea483b358cfb935103f14912db0de93",
353
352
  "signatureCount": 2,
354
353
  "version": 0n,
355
354
  },
@@ -443,15 +442,15 @@ describe('serializeTransaction', () => {
443
442
  expect(results).toMatchInlineSnapshot(`
444
443
  [
445
444
  {
446
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
447
- "hash": "0x75106153400c34efbeb7380828e3fef939340eb0a3a42dda6a22f798f94665d0",
445
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
446
+ "hash": "0x58d5d2655982d69e28c791189c23056344a2b7a166a893988a4b9be228b73469",
448
447
  "signatureCount": 2,
449
448
  "type": "0x76",
450
449
  "version": 1n,
451
450
  },
452
451
  {
453
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
454
- "hash": "0x2718b956492b1f8ff4e25165ac425e9e7064580b76eb087ce764e263723152bc",
452
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
453
+ "hash": "0xb3e7bcc63f69d80a954c2e4a5ba186903012686ea31bd049465f6c1e2308c046",
455
454
  "signatureCount": 2,
456
455
  "type": "0x76",
457
456
  "version": 0n,
@@ -528,7 +527,7 @@ describe('serializeTransaction', () => {
528
527
  [
529
528
  {
530
529
  "feePayerSignature": null,
531
- "from": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
530
+ "from": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
532
531
  "signatureCount": 2,
533
532
  "type": "0x78",
534
533
  },
@@ -538,7 +537,7 @@ describe('serializeTransaction', () => {
538
537
  "s": 6n,
539
538
  "yParity": 0,
540
539
  },
541
- "from": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
540
+ "from": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
542
541
  "signatureCount": 2,
543
542
  "type": "0x78",
544
543
  },
@@ -610,7 +609,7 @@ describe('from', () => {
610
609
  expect({ pending, submitting, success }).toMatchInlineSnapshot(`
611
610
  {
612
611
  "pending": {
613
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
612
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
614
613
  "approvals": [
615
614
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
616
615
  ],
@@ -630,7 +629,7 @@ describe('from', () => {
630
629
  "version": 1n,
631
630
  },
632
631
  "createdAt": 1,
633
- "hash": "0x246027f7c6940fb4b68a746c49819c1c45737aa6c975aafcce721b4a619a9ab1",
632
+ "hash": "0x4f312a4616f3f96375e6bd4c20f992694408a8c804429140068aee31bd0b0eaf",
634
633
  "signatureCount": 1,
635
634
  "status": "pending",
636
635
  "threshold": 2,
@@ -640,7 +639,7 @@ describe('from', () => {
640
639
  "weight": 1,
641
640
  },
642
641
  "submitting": {
643
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
642
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
644
643
  "approvals": [
645
644
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
646
645
  "0x01000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000047cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc4766997807775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d100",
@@ -662,7 +661,7 @@ describe('from', () => {
662
661
  },
663
662
  "createdAt": 1,
664
663
  "expiresAt": 10,
665
- "hash": "0x246027f7c6940fb4b68a746c49819c1c45737aa6c975aafcce721b4a619a9ab1",
664
+ "hash": "0x4f312a4616f3f96375e6bd4c20f992694408a8c804429140068aee31bd0b0eaf",
666
665
  "signatureCount": 2,
667
666
  "status": "submitting",
668
667
  "submissionId": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
@@ -673,7 +672,7 @@ describe('from', () => {
673
672
  "weight": 2,
674
673
  },
675
674
  "success": {
676
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
675
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
677
676
  "approvals": [
678
677
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
679
678
  "0x01000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000047cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc4766997807775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d100",
@@ -694,7 +693,7 @@ describe('from', () => {
694
693
  "version": 1n,
695
694
  },
696
695
  "createdAt": 1,
697
- "hash": "0x246027f7c6940fb4b68a746c49819c1c45737aa6c975aafcce721b4a619a9ab1",
696
+ "hash": "0x4f312a4616f3f96375e6bd4c20f992694408a8c804429140068aee31bd0b0eaf",
698
697
  "signatureCount": 2,
699
698
  "status": "success",
700
699
  "threshold": 2,
@@ -735,7 +734,7 @@ describe('from', () => {
735
734
  },
736
735
  `
737
736
  {
738
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
737
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
739
738
  "approvals": [
740
739
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
741
740
  ],
@@ -812,7 +811,7 @@ describe('from', () => {
812
811
  },
813
812
  `
814
813
  {
815
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
814
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
816
815
  "approvals": [
817
816
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
818
817
  ],
@@ -869,7 +868,7 @@ describe('from', () => {
869
868
  expect({ pending, success }).toMatchInlineSnapshot(`
870
869
  {
871
870
  "pending": {
872
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
871
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
873
872
  "approvals": [
874
873
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
875
874
  ],
@@ -889,8 +888,8 @@ describe('from', () => {
889
888
  "version": 1n,
890
889
  },
891
890
  "createdAt": 1,
892
- "hash": "0xd18f389ae23bdc81939861c9a1079201968a2ec5fbd67ad1063556b46af8914f",
893
- "keyAuthorization": "0xf838f782107980943333333333333333333333333333333333333333846b49d20080808080940f8659dd87410f00a1668211ecda7ac7f9c9fd13",
891
+ "hash": "0x5e8fa6d31c6e604cdac971bdd0a10b825cbb039c76ee399a6d6f619957032de4",
892
+ "keyAuthorization": "0xf838f782107980943333333333333333333333333333333333333333846b49d2008080808094b3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
894
893
  "signatureCount": 1,
895
894
  "status": "pending",
896
895
  "threshold": 2,
@@ -899,7 +898,7 @@ describe('from', () => {
899
898
  "weight": 1,
900
899
  },
901
900
  "success": {
902
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
901
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
903
902
  "approvals": [
904
903
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
905
904
  "0x01000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000047cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc4766997807775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d100",
@@ -920,8 +919,8 @@ describe('from', () => {
920
919
  "version": 1n,
921
920
  },
922
921
  "createdAt": 1,
923
- "hash": "0xd18f389ae23bdc81939861c9a1079201968a2ec5fbd67ad1063556b46af8914f",
924
- "keyAuthorization": "0xf901b3f782107980943333333333333333333333333333333333333333846b49d20080808080940f8659dd87410f00a1668211ecda7ac7f9c9fd13b9017805f90174940f8659dd87410f00a1668211ecda7ac7f9c9fd13f852a000000000000000000000000000000000000000000000000000000000000000000102eed69407e1ed8ea0e9601e5546b0a03aed683df360140701d694288f0cd85005f34168f731a468aef268c2f9456f01f90108b88201000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200b88201000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000047cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc4766997807775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d100",
922
+ "hash": "0x5e8fa6d31c6e604cdac971bdd0a10b825cbb039c76ee399a6d6f619957032de4",
923
+ "keyAuthorization": "0xf901b3f782107980943333333333333333333333333333333333333333846b49d2008080808094b3cc0b31026c7a54a9c45e468c674722c3c5b3b5b9017805f9017494b3cc0b31026c7a54a9c45e468c674722c3c5b3b5f852a000000000000000000000000000000000000000000000000000000000000000000102eed69407e1ed8ea0e9601e5546b0a03aed683df360140701d694288f0cd85005f34168f731a468aef268c2f9456f01f90108b88201000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200b88201000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000047cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc4766997807775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d100",
925
924
  "signatureCount": 2,
926
925
  "status": "success",
927
926
  "threshold": 2,
@@ -967,7 +966,7 @@ describe('from', () => {
967
966
  },
968
967
  `
969
968
  {
970
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
969
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
971
970
  "approvals": [
972
971
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
973
972
  "0x01000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000047cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc4766997807775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d100",
@@ -1013,7 +1012,7 @@ describe('RPC conversion', () => {
1013
1012
  expect({ keyAuthorizationRpc, transactionRpc }).toMatchInlineSnapshot(`
1014
1013
  {
1015
1014
  "keyAuthorizationRpc": {
1016
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
1015
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
1017
1016
  "approvals": [
1018
1017
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
1019
1018
  ],
@@ -1033,8 +1032,8 @@ describe('RPC conversion', () => {
1033
1032
  "version": "0x1",
1034
1033
  },
1035
1034
  "createdAt": 1,
1036
- "hash": "0xd18f389ae23bdc81939861c9a1079201968a2ec5fbd67ad1063556b46af8914f",
1037
- "keyAuthorization": "0xf838f782107980943333333333333333333333333333333333333333846b49d20080808080940f8659dd87410f00a1668211ecda7ac7f9c9fd13",
1035
+ "hash": "0x5e8fa6d31c6e604cdac971bdd0a10b825cbb039c76ee399a6d6f619957032de4",
1036
+ "keyAuthorization": "0xf838f782107980943333333333333333333333333333333333333333846b49d2008080808094b3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
1038
1037
  "signatureCount": 1,
1039
1038
  "status": "pending",
1040
1039
  "threshold": 2,
@@ -1043,7 +1042,7 @@ describe('RPC conversion', () => {
1043
1042
  "weight": 1,
1044
1043
  },
1045
1044
  "transactionRpc": {
1046
- "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13",
1045
+ "account": "0xb3cc0b31026c7a54a9c45e468c674722c3c5b3b5",
1047
1046
  "approvals": [
1048
1047
  "0x01000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000065ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c8734640c4998ff7e374b06ce1a64a2ecd82ab036384fb83d9a79b127a27d503200",
1049
1048
  ],
@@ -1063,7 +1062,7 @@ describe('RPC conversion', () => {
1063
1062
  "version": "0x1",
1064
1063
  },
1065
1064
  "createdAt": 1,
1066
- "hash": "0x246027f7c6940fb4b68a746c49819c1c45737aa6c975aafcce721b4a619a9ab1",
1065
+ "hash": "0x4f312a4616f3f96375e6bd4c20f992694408a8c804429140068aee31bd0b0eaf",
1067
1066
  "signatureCount": 1,
1068
1067
  "status": "pending",
1069
1068
  "threshold": 2,
@@ -1406,7 +1405,7 @@ describe('validation', () => {
1406
1405
  salt: `0x${'AB'.repeat(32)}`,
1407
1406
  threshold: 2,
1408
1407
  })
1409
- const account = AccountConfig.getAddress(config, { factory })
1408
+ const account = AccountConfig.getAddress(config)
1410
1409
  const authorization = KeyAuthorization.from({
1411
1410
  account,
1412
1411
  address: '0x3333333333333333333333333333333333333333',
@@ -145,7 +145,7 @@ export declare namespace getHash {
145
145
  * The function retains one canonical approval per owner. It selects the
146
146
  * smallest deterministic quorum by owner weight, then orders the selected
147
147
  * approvals by owner address for serialization. The caller supplies the
148
- * account and config; the chain validates their factory-derived identity.
148
+ * account and config; the chain validates their derived identity.
149
149
  *
150
150
  * @example
151
151
  * ```ts twoslash
@@ -1745,9 +1745,7 @@ describe('sortApprovals', () => {
1745
1745
  owners: ascendingOwners.map((o) => ({ owner: o.address, weight: 1 })),
1746
1746
  })
1747
1747
  const payload = `0x${'42'.repeat(32)}` as const
1748
- const account = AccountConfig.getAddress(genesisConfig, {
1749
- factory: '0x7171717171717171717171717171717171717171',
1750
- })
1748
+ const account = AccountConfig.getAddress(genesisConfig)
1751
1749
  const version = 3n
1752
1750
  const digest = AccountConfig.getSignPayload({
1753
1751
  payload,
@@ -1,7 +1,6 @@
1
1
  import { AbiFunction, Address, Hex, Secp256k1, Value } from 'ox'
2
2
  import { describe, expect, test } from 'vitest'
3
3
  import { chain, client, fundAddress } from '../../test/tempo/config.js'
4
- import { factory } from '../../test/tempo/configurableAccounts.js'
5
4
  import {
6
5
  AccountConfig,
7
6
  AccountOperation,
@@ -31,7 +30,7 @@ async function setup() {
31
30
  threshold: 2,
32
31
  owners: keys.map((key) => ({ owner: key.address, weight: 1 })),
33
32
  })
34
- const account = AccountConfig.getAddress(config, { factory })
33
+ const account = AccountConfig.getAddress(config)
35
34
  await fundAddress(client, { address: account })
36
35
  return { account, config, keys }
37
36
  }
package/tempo/index.ts CHANGED
@@ -24,9 +24,7 @@ export type {}
24
24
  * ],
25
25
  * })
26
26
  *
27
- * const account = AccountConfig.getAddress(initialConfig, {
28
- * factory: '0x7171717171717171717171717171717171717171'
29
- * })
27
+ * const account = AccountConfig.getAddress(initialConfig)
30
28
  * ```
31
29
  *
32
30
  * @category Reference
package/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** @internal */
2
- export const version = '0.14.58'
2
+ export const version = '0.14.59'