You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
@metamask/delegation-core 0.2.0
Added
Added a Nonce caveat enforcer terms builder createNonceTerms (#44)
Changed
The configuration parameter callData is now calldata in createExactCalldataTerms argument type. (#24)
The package is explictly marked as ESM via type: module; with CJS compatibility maintained with dual export. (#27)
@metamask/delegation-toolkit 0.13.0
Added
Delegation Scopes and a declarative API to define delegation caveats (#51)
New utilities and actions for interacting with the Delegation Framework smart contracts (#45)
A new Client for interacting with the Infura Bundler (#59)
Utilities for interacting with caveat enforcer contracts
SpecificActionERC20TransferBatchEnforcer
NonceEnforcer
LimitedCallsEnforcer
IdEnforcer
NativeTokenTransferAmount
ERC20TransferAmountEnforcer
Changed
Utility and Action interfaces are now more closely aligned with Viem's patterns (#68)
signUserOperation and signDelegation utilities now accept privateKey parameter instead of WalletClient
signDelegationAction and signUserOperationAction wallet actions makes it easier to extend a WalletClient instance
It is now much easier to create Delegations with the required authority
allowInsecureUnrestrictedDelegation: true is now required when creating or signing a delegation with no caveats. (#24)
The CaveatBuilder.addCaveat function now accepts a single caveat configuration object instead of positional arguments. (#24)
A delegation can now be created with a declarative interface, utilising "scopes" to define the scope of authority being granted by the delegation (#63)
Signatory is renamed to Signer for more clarity when creating MetaMaskSmartAccount instances (#76)
The experimental EIP-7715 actions have been updated to align with the current implementation of the specification:
Now integrates with the RPC method wallet_requestExecutionPermissions on the wallet api (#60)
The datatypes used in the call have been updated to align with the new Erc7715 interface (#54)
The startTime parameter is now optional on all permission types
The Viem peer dependency is now viem@^2.31.4. (#22)
Individual constants like SINGLE_DEFAULT_MODE have been replaced with the ExecutionMode enum (#16)
The test runner is now Vitest, with Hardhat removed entirely (#27)
Fixed
sendTransactionWithDelegation failed whenever value was specified in the parameters. (#30)