Skip to content

Commit bc7a9bd

Browse files
feat(svm): add Metaplex Core to smart wallet allowlist
Per request from @blockiosaurus on the PR — Metaplex's agent identity platform routes agentic execution through the Metaplex Core program PDA (assetSignerPda). Verified end-to-end against mainnet through a real $0.02 USDC payment for the live x402 endpoint at mcp.cryptoiz.org/btc/regime. The on-chain transaction shape is exactly what Path 2 was designed for: top-level Metaplex Core `execute` (unknown to static parsing), inner SPL TransferChecked matching the merchant's payment requirements. extractTransfersFromInnerInstructions matches the inner transfer, simulation passes, settlement lands. Settlement tx: 5g5B3ZPHndS19tzUjPANgFC7J3nS8rT6dAFSuZ21bDfRHSSREKTbnN7XrYVp5haBmj4xDq2gD5A375evHq5y3vw6
1 parent cd53b47 commit bc7a9bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • typescript/packages/mechanisms/svm/src/exact/facilitator

typescript/packages/mechanisms/svm/src/exact/facilitator/scheme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const DEFAULT_SMART_WALLET_ALLOWED_PROGRAMS = [
4545
"SMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG", // Squads Smart Account
4646
"SWiGmQedKzMz1tiTqoJCWeGDnGXfNBp2PkXLkpCAtQo", // Swig
4747
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw", // SPL Governance
48+
"CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d", // Metaplex Core
4849
];
4950

5051
/**
@@ -85,7 +86,7 @@ export type ExactSvmSchemeOptions = {
8586
* a program in this list will be accepted through the simulation path.
8687
* Prevents unknown/malicious programs from reaching CPI verification.
8788
*
88-
* Default: Squads Multisig v4, Squads Smart Account, Swig, SPL Governance
89+
* Default: Squads Multisig v4, Squads Smart Account, Swig, SPL Governance, Metaplex Core
8990
*/
9091
smartWalletAllowedPrograms?: string[];
9192
};

0 commit comments

Comments
 (0)