Skip to content

Commit 4e1c90b

Browse files
committed
Merge branch 'main' into fix/redeemer_addresses
2 parents da3400b + 74ba8df commit 4e1c90b

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

packages/smart-accounts-kit/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Constants `METAMASK_FACILITATOR_ADDRESSES`, `METAMASK_FACILITATOR_ADDRESSES_DEV` added to @metamask/smart-accounts-kit/experimental ([#255](https://github.com/metamask/smart-accounts-kit/pull/255))
13+
1014
### Changed
1115

1216
- Experimental `createx402DelegationProvider` now resolves redeemers as the intersection of `facilitatorAddresses` and `redeemer.addresses` ([#256](https://github.com/MetaMask/smart-accounts-kit/pull/256))

packages/smart-accounts-kit/src/experimental/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ export {
1313
type x402DelegationProviderPaymentPayload,
1414
type PaymentRequirements,
1515
type MaybeDeferred,
16+
METAMASK_FACILITATOR_ADDRESSES,
17+
METAMASK_FACILITATOR_ADDRESSES_DEV,
1618
} from './x402DelegationProvider';

packages/smart-accounts-kit/src/experimental/x402DelegationProvider.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { Address } from 'viem';
2+
13
import {
24
createOpenDelegation,
35
encodeDelegations,
@@ -24,6 +26,15 @@ export type {
2426

2527
export { parseEip155ChainId } from './x402DelegationProviderUtils';
2628

29+
export const METAMASK_FACILITATOR_ADDRESSES: readonly Address[] = [
30+
'0xB01caEa8c6C47bbf4F4b4c5080Ca642043359C2E',
31+
'0xC066ac5D385419B1A8c43A0E146fA439837a8B8c',
32+
'0xB42F812A44c22cc6b861478900401ee759EbEAD6',
33+
];
34+
export const METAMASK_FACILITATOR_ADDRESSES_DEV: readonly Address[] = [
35+
'0xb4827A2a066CD2Ef88560EFdf063dD05C6c41cC7',
36+
];
37+
2738
/**
2839
* Creates a delegation provider function for x402 payment requirements.
2940
*

0 commit comments

Comments
 (0)