What's new in v0.2.0?
Breaking changes
The ⚠️ symbol denotes potentially breaking API changes. As per the semantic versioning specification, from v1.0.0 onwards, breaking changes will be released only in major version bumps.
Enhancements
- ⚠️ Updated the toolkit to reflect changes to the Delegation Framework contract interfaces.
- ⚠️ Updated the interface for creating delegations to require either a caveat array or a caveat builder.
- ⚠️ Updated the
DelegationStorageMiddleware
interface. - ⚠️ Removed
authority
fromOptionalDelegationConfig
. - Added caveat builders to make creating delegations easier and more secure.
- Added support for disabling and re-enabling delegations.
Internal improvements
- Removed legacy
testHelpers.ts
(which introduced some mocks to help testing window interactions). - Standardized error messages.
Contract addresses
The following are the contract addresses for the Delegation Framework v1.1.0, as used by this version of the toolkit.
- Contracts:
- EntryPoint:
0x0000000071727De22E5E9d8BAf0edAc6f37da032
- SimpleFactory:
0x6ff518884f21168c30c58CB21184D6AdBC18Ad90
- DelegationManager:
0x56D56e07e3d6Ee5a24e30203A37a0a460f42D7A3
- MultiSigDeleGatorImpl:
0xd1f421EDbA5e3FA9efe3874827114b20C5BEC40C
- HybridDeleGatorImpl:
0x941f3a016F8726d5643Ce62452d0D78492D42b42
- EntryPoint:
- Caveat enforcers:
- AllowedCalldataEnforcer:
0xff71d60f3208469cBCE0859717B5198042DCB3F3
- AllowedMethodsEnforcer:
0xe32C2561792e8446Abe73B9f557B881C13906186
- AllowedTargetsEnforcer:
0x06aaE4c67EEA95277c46Bf79b1583d4a01772D22
- BlockNumberEnforcer:
0x8E470D2Ae278457b42d2405E0B8Cd4BE21Ed9045
- DeployedEnforcer:
0xf9088f013dBD9ebb7Cebd66fEB48253c6Ac5a820
- ERC20BalanceGteEnforcer:
0xB7B6f32ec6343261D814e55Ed8C5925d91Cab861
- ERC20TransferAmountEnforcer:
0x9A069b18032B31429A363AeCFb1B6A0564b44471
- IdEnforcer:
0x91015c3b9D9523966eD2399885e5Df7A567f916c
- LimitedCallsEnforcer:
0xe694bFfffEA3E85923b1210b37e6a0175e910863
- NonceEnforcer:
0xE83BCFD8bBE672A96747e831050a91cf44F4F87A
- TimestampEnforcer:
0x550FdD13eEBC1f22ea2a2480024BacBF0Ad7e5CE
- ValueLteEnforcer:
0xBE32a6DB7471F63BB168C088c57Db01AfAe87967
- NativeTokenTransferAmountEnforcer:
0x5eD3833d7B957A8DB8A461c3AF2d668Ec25382E0
- NativeBalanceGteEnforcer:
0x376a98860E210DdEda3689fb39565592c563cB0A
- ArgsEqualityCheckEnforcer:
0x7378dE585998d3E18Ce147867C335C25B3dB8Ee5
- NativeTokenPaymentEnforcer:
0x87Fe18EbF99e42fcE8A03a25F1d20E119407f8e7
- AllowedCalldataEnforcer:
These contracts are deployed to the following networks: