What's new in v0.11.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.
Breaking Changes
⚠️ nativeBalanceGte
caveat
- Renames
nativeBalanceGte
caveat tonativeBalanceChange
. - Previously, the caveat only considered an increase in the native token
balance. It now accepts a new parameter,
BalanceChangeType
, which defines the expected type of balance change. This parameter allows specifying whether the native token balance should have increased or decreased, using the valid options:BalanceChangeType.Increase
andBalanceChangeType.Decrease
.
caveatBuilder.addCaveat("nativeBalanceGte",
caveatBuilder.addCaveat("nativeBalanceChange",
"0x3fF528De37cd95b67845C1c55303e7685c72F319",
1_000_000n,
BalanceChangeType.Increase,
);
⚠️ erc20BalanceGte
caveat
- Renames
erc20BalanceGte
caveat toerc20BalanceChange
. - Previously, the caveat only considered an increase in the ERC-20 token
balance. It now accepts a new parameter,
BalanceChangeType
, which defines the expected type of balance change. This parameter allows specifying whether the ERC-20 token balance should have increased or decreased, using the valid options:BalanceChangeType.Increase
andBalanceChangeType.Decrease
. - Introduces a new parameter to specify the recipient address associated with the ERC-20 balance change.
caveatBuilder.addCaveat("erc20BalanceGte",
caveatBuilder.addCaveat("erc20BalanceChange",
"0xc11F3a8E5C7D16b75c9E2F60d26f5321C6Af5E92",
// Specifies the address associated with the ERC-20 balance change
"0x3fF528De37cd95b67845C1c55303e7685c72F319",
1_000_000n,
BalanceChangeType.Increase,
);