-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(experimental): ERC-5792 updates (#4557)
* feat: up 5792 * chore: up * chore: changeset * chore: up * Update sendCalls.test.ts * chore: up * chore: up * chore: up
- Loading branch information
Showing
43 changed files
with
177 additions
and
1,049 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"wagmi": patch | ||
"@wagmi/core": patch | ||
--- | ||
|
||
**Experimental (ERC-5792)**: | ||
|
||
- Removed `writeContracts` Action and Hook – use `sendCalls` instead. | ||
- Added support for `account: null` in `sendCalls` to cater for sending calls without a connected account (account will be filled by the wallet). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,12 +51,12 @@ | |
"bun": "^1.1.29", | ||
"happy-dom": "^15.7.4", | ||
"knip": "^5.30.6", | ||
"prool": "^0.0.16", | ||
"prool": "^0.0.23", | ||
"publint": "^0.2.11", | ||
"sherif": "^1.0.0", | ||
"simple-git-hooks": "^2.11.1", | ||
"typescript": "5.5.4", | ||
"viem": "2.21.28", | ||
"viem": "2.23.5", | ||
"vitest": "^2.1.1" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
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 |
---|---|---|
|
@@ -81,7 +81,7 @@ test('insufficient funds', async () => { | |
value: 100000 ETH | ||
Details: Insufficient funds for gas * price + value | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
}) | ||
|
||
|
@@ -104,7 +104,7 @@ test('maxFeePerGas less than maxPriorityFeePerGas', async () => { | |
maxFeePerGas: 20 gwei | ||
maxPriorityFeePerGas: 22 gwei | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
}) | ||
|
||
|
@@ -124,7 +124,7 @@ test('contract revert (contract error)', async () => { | |
data: 0xa0712d6800000000000000000000000000000000000000000000000000000000000001a4 | ||
Details: execution reverted: revert: Token ID is taken | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
}) | ||
|
||
|
@@ -144,6 +144,6 @@ test('contract revert (insufficient params)', async () => { | |
data: 0xa0712d68 | ||
Details: execution reverted | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
}) |
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 |
---|---|---|
|
@@ -57,7 +57,7 @@ test('behavior: user rejected request', async () => { | |
[UserRejectedRequestError: User rejected the request. | ||
Details: Failed to connect. | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
}) | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,6 @@ test('behavior: bogus token', async () => { | |
function: decimals() | ||
Docs: https://viem.sh/docs/contract/multicall | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
}) |
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 |
---|---|---|
|
@@ -397,7 +397,7 @@ test('throws if allowFailure=false & a contract method fails', async () => { | |
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`, | ||
) | ||
}) | ||
|
@@ -450,7 +450,7 @@ test('allowFailure=true & a contract method fails', async () => { | |
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28], | ||
Version: [email protected]], | ||
"result": undefined, | ||
"status": "failure", | ||
}, | ||
|
@@ -464,7 +464,7 @@ test('allowFailure=true & a contract method fails', async () => { | |
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69421) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28], | ||
Version: [email protected]], | ||
"result": undefined, | ||
"status": "failure", | ||
}, | ||
|
@@ -502,7 +502,7 @@ test('throws if allowFailure=false & encoding contract function data fails', asy | |
args: (1e+31) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`, | ||
) | ||
}) | ||
|
@@ -561,7 +561,7 @@ test('allowFailure=true & encoding contract function data fails', async () => { | |
args: (1e+31) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28], | ||
Version: [email protected]], | ||
"result": undefined, | ||
"status": "failure", | ||
}, | ||
|
@@ -579,7 +579,7 @@ test('allowFailure=true & encoding contract function data fails', async () => { | |
args: (1e+31) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28], | ||
Version: [email protected]], | ||
"result": undefined, | ||
"status": "failure", | ||
}, | ||
|
@@ -617,7 +617,7 @@ test('should throw if allowFailure=false & a contract has no response', async () | |
args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`, | ||
) | ||
}) | ||
|
@@ -669,7 +669,7 @@ test('allowFailure=true & a contract has no response', async () => { | |
args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC) | ||
Docs: https://viem.sh/docs/contract/readContract | ||
Version: 2.21.28], | ||
Version: [email protected]], | ||
"result": undefined, | ||
"status": "failure", | ||
}, | ||
|
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 |
---|---|---|
|
@@ -88,7 +88,7 @@ test('behavior: value exceeds balance', async () => { | |
value: 99999 ETH | ||
Details: Insufficient funds for gas * price + value | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
await disconnect(config, { connector }) | ||
}) | ||
|
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 |
---|---|---|
|
@@ -51,7 +51,7 @@ test('behavior: user rejected request', async () => { | |
[UserRejectedRequestError: User rejected the request. | ||
Details: Failed to sign message. | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
await disconnect(config, { connector: connector_ }) | ||
}) | ||
|
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 |
---|---|---|
|
@@ -47,7 +47,7 @@ test('behavior: user rejected request', async () => { | |
[UserRejectedRequestError: User rejected the request. | ||
Details: Failed to sign typed data. | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
await disconnect(config, { connector: connector_ }) | ||
}) | ||
|
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ test('behavior: user rejected request', async () => { | |
[UserRejectedRequestError: User rejected the request. | ||
Details: Failed to switch chain. | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
await disconnect(config, { connector: connector_ }) | ||
}) | ||
|
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 |
---|---|---|
|
@@ -53,6 +53,6 @@ test('behavior: transaction reverted', async () => { | |
nonce: 43 | ||
Details: execution reverted: PartyBid::claim: contribution already claimed | ||
Version: 2.21.28] | ||
Version: [email protected]] | ||
`) | ||
}) |
Oops, something went wrong.