Skip to content

Commit 750263b

Browse files
committed
Add MetaMask facilitator addresses as constants in @metamask/smart-accounts-kit/experimental
1 parent 9d43cae commit 750263b

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
## [1.6.0]
1115

1216
### Added

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: Address[] = [
30+
'0xb01caea8c6c47bbf4f4b4c5080ca642043359c2e',
31+
'0xc066ac5d385419b1a8c43a0e146fa439837a8b8c',
32+
'0xb42f812a44c22cc6b861478900401ee759ebead6',
33+
];
34+
export const METAMASK_FACILITATOR_ADDRESSES_DEV: Address[] = [
35+
'0xb4827A2a066CD2Ef88560EFdf063dD05C6c41cC7',
36+
];
37+
2738
/**
2839
* Creates a delegation provider function for x402 payment requirements.
2940
*

0 commit comments

Comments
 (0)