diff --git a/.changeset/tempo-account-config-from-upgrade.md b/.changeset/tempo-account-config-from-upgrade.md deleted file mode 100644 index 73b0a4717..000000000 --- a/.changeset/tempo-account-config-from-upgrade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"ox": patch ---- - -Added `AccountConfig.fromUpgrade` for deriving the version-one config an account installs when it migrates in place with `upgradeAccount` (TIP-1113). diff --git a/.changeset/tempo-account-simulation-key-data.md b/.changeset/tempo-account-simulation-key-data.md deleted file mode 100644 index 1f829ae25..000000000 --- a/.changeset/tempo-account-simulation-key-data.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"ox": patch ---- - -Fixed `AccountSimulation.toRpc` passing through empty and 3-byte `keyData`, which the Tempo node rejects, by shimming them into a 2-byte length hint. diff --git a/.changeset/tempo-configurable-account-domains.md b/.changeset/tempo-configurable-account-domains.md deleted file mode 100644 index f352a1770..000000000 --- a/.changeset/tempo-configurable-account-domains.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"ox": patch ---- - -Renamed the Tempo configurable account hash domains from `tempo:multisig:*` to `tempo:configurable-account:*` to match Tempo main (tempoxyz/tempo#8502), which changes every `AccountConfig.getAddress`, `AccountConfig.getCommitment`, and `AccountConfig.getSignPayload` result. diff --git a/.changeset/tempo-configurable-account-wire-names.md b/.changeset/tempo-configurable-account-wire-names.md deleted file mode 100644 index a9a216500..000000000 --- a/.changeset/tempo-configurable-account-wire-names.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"ox": patch ---- - -Renamed the configurable account RPC key type from `multisig` to `configurableAccount` and `TransactionRequest.multisigSimulation` to `configurableAccountSimulation`, and added the optional `AccountSimulation` grant `signer`, to match the Tempo node. - -```diff -- { keyType: 'multisig', multisigSimulation: spec } -+ { keyType: 'configurableAccount', configurableAccountSimulation: spec } -``` diff --git a/.changeset/tempo-key-authorization-unbound-configurable.md b/.changeset/tempo-key-authorization-unbound-configurable.md deleted file mode 100644 index 4921388ac..000000000 --- a/.changeset/tempo-key-authorization-unbound-configurable.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"ox": patch ---- - -Stopped requiring an `account` binding on configurable account key grants, so `KeyAuthorization` and its zod schemas accept every grant the Tempo node accepts, and deprecated `KeyAuthorization.MissingAccountError`, which is no longer thrown. diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d9f0b50c..5ae586583 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # ox +## 1.8.9 + +### Patch Changes + +- [#518](https://github.com/wevm/ox/pull/518) [`010d6b5`](https://github.com/wevm/ox/commit/010d6b53d74c01b674d82de07887786a2f4b7b18) Thanks [@jxom](https://github.com/jxom)! - Added `AccountConfig.fromUpgrade` for deriving the version-one config an account installs when it migrates in place with `upgradeAccount` (TIP-1113). + +- [#518](https://github.com/wevm/ox/pull/518) [`010d6b5`](https://github.com/wevm/ox/commit/010d6b53d74c01b674d82de07887786a2f4b7b18) Thanks [@jxom](https://github.com/jxom)! - Fixed `AccountSimulation.toRpc` passing through empty and 3-byte `keyData`, which the Tempo node rejects, by shimming them into a 2-byte length hint. + +- [#518](https://github.com/wevm/ox/pull/518) [`010d6b5`](https://github.com/wevm/ox/commit/010d6b53d74c01b674d82de07887786a2f4b7b18) Thanks [@jxom](https://github.com/jxom)! - Renamed the Tempo configurable account hash domains from `tempo:multisig:*` to `tempo:configurable-account:*` to match Tempo main (tempoxyz/tempo#8502), which changes every `AccountConfig.getAddress`, `AccountConfig.getCommitment`, and `AccountConfig.getSignPayload` result. + +- [#518](https://github.com/wevm/ox/pull/518) [`010d6b5`](https://github.com/wevm/ox/commit/010d6b53d74c01b674d82de07887786a2f4b7b18) Thanks [@jxom](https://github.com/jxom)! - Renamed the configurable account RPC key type from `multisig` to `configurableAccount` and `TransactionRequest.multisigSimulation` to `configurableAccountSimulation`, and added the optional `AccountSimulation` grant `signer`, to match the Tempo node. + + ```diff + - { keyType: 'multisig', multisigSimulation: spec } + + { keyType: 'configurableAccount', configurableAccountSimulation: spec } + ``` + +- [#518](https://github.com/wevm/ox/pull/518) [`010d6b5`](https://github.com/wevm/ox/commit/010d6b53d74c01b674d82de07887786a2f4b7b18) Thanks [@jxom](https://github.com/jxom)! - Stopped requiring an `account` binding on configurable account key grants, so `KeyAuthorization` and its zod schemas accept every grant the Tempo node accepts, and deprecated `KeyAuthorization.MissingAccountError`, which is no longer thrown. + ## 1.8.8 ### Patch Changes diff --git a/package.json b/package.json index f61319d15..53cdb8625 100644 --- a/package.json +++ b/package.json @@ -174,7 +174,7 @@ "name": "ox", "description": "Ethereum Standard Library", "type": "module", - "version": "1.8.8", + "version": "1.8.9", "main": "./dist/index.js", "sideEffects": false, "license": "MIT", diff --git a/src/tempo/AccountOperation.test.ts b/src/tempo/AccountOperation.test.ts index d3cd4b05e..1e922a4e6 100644 --- a/src/tempo/AccountOperation.test.ts +++ b/src/tempo/AccountOperation.test.ts @@ -744,7 +744,8 @@ describe('from', () => { { hash: expect.any(String), transaction: expect.stringMatching(/^0x78/), - }, ` + }, + ` { "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13", "approvals": [ @@ -775,7 +776,8 @@ describe('from', () => { "updatedAt": 2, "weight": 1, } - `) + `, + ) }) test('fee-payer-signed transaction', () => { @@ -828,7 +830,8 @@ describe('from', () => { { hash: expect.any(String), transaction: expect.any(String), - }, ` + }, + ` { "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13", "approvals": [ @@ -859,7 +862,8 @@ describe('from', () => { "updatedAt": 2, "weight": 1, } - `) + `, + ) }) test('key authorization states', () => { @@ -981,7 +985,8 @@ describe('from', () => { { hash: expect.any(String), keyAuthorization: expect.any(String), - }, ` + }, + ` { "account": "0x0f8659dd87410f00a1668211ecda7ac7f9c9fd13", "approvals": [ @@ -1013,7 +1018,8 @@ describe('from', () => { "updatedAt": 2, "weight": 2, } - `) + `, + ) }) }) diff --git a/src/version.ts b/src/version.ts index 0d928faeb..29b6220a7 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ /** @internal */ -export const version = '1.8.8' +export const version = '1.8.9'