@virtuals-protocol/acp-node-v2 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -20
- package/dist/acpAgent.d.ts +2 -2
- package/dist/acpAgent.d.ts.map +1 -1
- package/dist/acpAgent.js +6 -6
- package/dist/acpAgent.js.map +1 -1
- package/dist/clientFactory.d.ts +1 -2
- package/dist/clientFactory.d.ts.map +1 -1
- package/dist/clientFactory.js +1 -5
- package/dist/clientFactory.js.map +1 -1
- package/dist/core/agentAuth.d.ts +22 -0
- package/dist/core/agentAuth.d.ts.map +1 -0
- package/dist/core/agentAuth.js +27 -0
- package/dist/core/agentAuth.js.map +1 -0
- package/dist/core/approvalGate.d.ts +28 -0
- package/dist/core/approvalGate.d.ts.map +1 -0
- package/dist/core/approvalGate.js +63 -0
- package/dist/core/approvalGate.js.map +1 -0
- package/dist/core/chains.d.ts +1 -0
- package/dist/core/chains.d.ts.map +1 -1
- package/dist/core/chains.js +12 -1
- package/dist/core/chains.js.map +1 -1
- package/dist/core/constants.d.ts +6 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +18 -0
- package/dist/core/constants.js.map +1 -1
- package/dist/core/solana/constants.d.ts +5 -0
- package/dist/core/solana/constants.d.ts.map +1 -0
- package/dist/core/solana/constants.js +5 -0
- package/dist/core/solana/constants.js.map +1 -0
- package/dist/core/solana/generated/acp/accounts/acpState.d.ts +60 -0
- package/dist/core/solana/generated/acp/accounts/acpState.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/accounts/acpState.js +68 -0
- package/dist/core/solana/generated/acp/accounts/acpState.js.map +1 -0
- package/dist/core/solana/generated/acp/accounts/hookWhitelist.d.ts +37 -0
- package/dist/core/solana/generated/acp/accounts/hookWhitelist.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/accounts/hookWhitelist.js +59 -0
- package/dist/core/solana/generated/acp/accounts/hookWhitelist.js.map +1 -0
- package/dist/core/solana/generated/acp/accounts/index.d.ts +11 -0
- package/dist/core/solana/generated/acp/accounts/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/accounts/index.js +11 -0
- package/dist/core/solana/generated/acp/accounts/index.js.map +1 -0
- package/dist/core/solana/generated/acp/accounts/job.d.ts +89 -0
- package/dist/core/solana/generated/acp/accounts/job.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/accounts/job.js +83 -0
- package/dist/core/solana/generated/acp/accounts/job.js.map +1 -0
- package/dist/core/solana/generated/acp/errors/agenticCommerceV3.d.ts +94 -0
- package/dist/core/solana/generated/acp/errors/agenticCommerceV3.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/errors/agenticCommerceV3.js +135 -0
- package/dist/core/solana/generated/acp/errors/agenticCommerceV3.js.map +1 -0
- package/dist/core/solana/generated/acp/errors/index.d.ts +9 -0
- package/dist/core/solana/generated/acp/errors/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/errors/index.js +9 -0
- package/dist/core/solana/generated/acp/errors/index.js.map +1 -0
- package/dist/core/solana/generated/acp/index.d.ts +14 -0
- package/dist/core/solana/generated/acp/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/index.js +14 -0
- package/dist/core/solana/generated/acp/index.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/acceptAuthority.d.ts +47 -0
- package/dist/core/solana/generated/acp/instructions/acceptAuthority.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/acceptAuthority.js +88 -0
- package/dist/core/solana/generated/acp/instructions/acceptAuthority.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/addHookWhitelist.d.ts +64 -0
- package/dist/core/solana/generated/acp/instructions/addHookWhitelist.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/addHookWhitelist.js +140 -0
- package/dist/core/solana/generated/acp/instructions/addHookWhitelist.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/claimRefund.d.ts +74 -0
- package/dist/core/solana/generated/acp/instructions/claimRefund.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/claimRefund.js +142 -0
- package/dist/core/solana/generated/acp/instructions/claimRefund.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/complete.d.ts +108 -0
- package/dist/core/solana/generated/acp/instructions/complete.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/complete.js +190 -0
- package/dist/core/solana/generated/acp/instructions/complete.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/createJob.d.ts +83 -0
- package/dist/core/solana/generated/acp/instructions/createJob.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/createJob.js +137 -0
- package/dist/core/solana/generated/acp/instructions/createJob.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/fund.d.ts +99 -0
- package/dist/core/solana/generated/acp/instructions/fund.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/fund.js +126 -0
- package/dist/core/solana/generated/acp/instructions/fund.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/index.d.ts +23 -0
- package/dist/core/solana/generated/acp/instructions/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/index.js +23 -0
- package/dist/core/solana/generated/acp/instructions/index.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/initialize.d.ts +76 -0
- package/dist/core/solana/generated/acp/instructions/initialize.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/initialize.js +141 -0
- package/dist/core/solana/generated/acp/instructions/initialize.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/nominateAuthority.d.ts +52 -0
- package/dist/core/solana/generated/acp/instructions/nominateAuthority.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/nominateAuthority.js +96 -0
- package/dist/core/solana/generated/acp/instructions/nominateAuthority.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/reject.d.ts +88 -0
- package/dist/core/solana/generated/acp/instructions/reject.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/reject.js +168 -0
- package/dist/core/solana/generated/acp/instructions/reject.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.d.ts +56 -0
- package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.js +112 -0
- package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setBudget.d.ts +56 -0
- package/dist/core/solana/generated/acp/instructions/setBudget.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setBudget.js +90 -0
- package/dist/core/solana/generated/acp/instructions/setBudget.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.d.ts +52 -0
- package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.js +96 -0
- package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setPlatformFee.d.ts +56 -0
- package/dist/core/solana/generated/acp/instructions/setPlatformFee.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setPlatformFee.js +98 -0
- package/dist/core/solana/generated/acp/instructions/setPlatformFee.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setProvider.d.ts +50 -0
- package/dist/core/solana/generated/acp/instructions/setProvider.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/setProvider.js +85 -0
- package/dist/core/solana/generated/acp/instructions/setProvider.js.map +1 -0
- package/dist/core/solana/generated/acp/instructions/submit.d.ts +150 -0
- package/dist/core/solana/generated/acp/instructions/submit.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/instructions/submit.js +214 -0
- package/dist/core/solana/generated/acp/instructions/submit.js.map +1 -0
- package/dist/core/solana/generated/acp/pdas/acpState.d.ts +12 -0
- package/dist/core/solana/generated/acp/pdas/acpState.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/pdas/acpState.js +18 -0
- package/dist/core/solana/generated/acp/pdas/acpState.js.map +1 -0
- package/dist/core/solana/generated/acp/pdas/hookWhitelist.d.ts +15 -0
- package/dist/core/solana/generated/acp/pdas/hookWhitelist.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/pdas/hookWhitelist.js +21 -0
- package/dist/core/solana/generated/acp/pdas/hookWhitelist.js.map +1 -0
- package/dist/core/solana/generated/acp/pdas/index.d.ts +10 -0
- package/dist/core/solana/generated/acp/pdas/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/pdas/index.js +10 -0
- package/dist/core/solana/generated/acp/pdas/index.js.map +1 -0
- package/dist/core/solana/generated/acp/programs/agenticCommerceV3.d.ts +71 -0
- package/dist/core/solana/generated/acp/programs/agenticCommerceV3.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/programs/agenticCommerceV3.js +209 -0
- package/dist/core/solana/generated/acp/programs/agenticCommerceV3.js.map +1 -0
- package/dist/core/solana/generated/acp/programs/index.d.ts +9 -0
- package/dist/core/solana/generated/acp/programs/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/programs/index.js +9 -0
- package/dist/core/solana/generated/acp/programs/index.js.map +1 -0
- package/dist/core/solana/generated/acp/shared/index.d.ts +50 -0
- package/dist/core/solana/generated/acp/shared/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/shared/index.js +87 -0
- package/dist/core/solana/generated/acp/shared/index.js.map +1 -0
- package/dist/core/solana/generated/acp/types/index.d.ts +9 -0
- package/dist/core/solana/generated/acp/types/index.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/types/index.js +9 -0
- package/dist/core/solana/generated/acp/types/index.js.map +1 -0
- package/dist/core/solana/generated/acp/types/jobCreated.d.ts +11 -0
- package/dist/core/solana/generated/acp/types/jobCreated.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/types/jobCreated.js +12 -0
- package/dist/core/solana/generated/acp/types/jobCreated.js.map +1 -0
- package/dist/core/solana/generated/acp/types/jobState.d.ts +27 -0
- package/dist/core/solana/generated/acp/types/jobState.d.ts.map +1 -0
- package/dist/core/solana/generated/acp/types/jobState.js +33 -0
- package/dist/core/solana/generated/acp/types/jobState.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.d.ts +35 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.js +64 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.d.ts +33 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.js +59 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.d.ts +38 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.js +62 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/index.d.ts +13 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/index.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/index.js +13 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/index.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.d.ts +61 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.js +77 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.d.ts +35 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.js +64 -0
- package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/index.d.ts +12 -0
- package/dist/core/solana/generated/fund-transfer-hook/index.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/index.js +12 -0
- package/dist/core/solana/generated/fund-transfer-hook/index.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.d.ts +47 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.js +88 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.d.ts +56 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.js +92 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.d.ts +52 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.js +90 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.d.ts +86 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.js +169 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.d.ts +114 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.js +120 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/index.d.ts +15 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/index.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/index.js +15 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/index.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.d.ts +67 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.js +138 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.d.ts +52 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.js +96 -0
- package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.d.ts +15 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.js +22 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.d.ts +12 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.js +20 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.d.ts +12 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.js +18 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/index.d.ts +13 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/index.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/index.js +13 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/index.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.d.ts +15 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.js +19 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.d.ts +15 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.js +22 -0
- package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.d.ts +49 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.js +129 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/index.d.ts +9 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/index.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/index.js +9 -0
- package/dist/core/solana/generated/fund-transfer-hook/programs/index.js.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/shared/index.d.ts +50 -0
- package/dist/core/solana/generated/fund-transfer-hook/shared/index.d.ts.map +1 -0
- package/dist/core/solana/generated/fund-transfer-hook/shared/index.js +87 -0
- package/dist/core/solana/generated/fund-transfer-hook/shared/index.js.map +1 -0
- package/dist/core/solana/wallet.d.ts +49 -0
- package/dist/core/solana/wallet.d.ts.map +1 -0
- package/dist/core/solana/wallet.js +119 -0
- package/dist/core/solana/wallet.js.map +1 -0
- package/dist/events/acpHttpClient.d.ts.map +1 -1
- package/dist/events/acpHttpClient.js +12 -3
- package/dist/events/acpHttpClient.js.map +1 -1
- package/dist/events/socketTransport.d.ts +18 -0
- package/dist/events/socketTransport.d.ts.map +1 -0
- package/dist/events/socketTransport.js +117 -0
- package/dist/events/socketTransport.js.map +1 -0
- package/dist/events/sseTransport.d.ts +9 -2
- package/dist/events/sseTransport.d.ts.map +1 -1
- package/dist/events/sseTransport.js +100 -40
- package/dist/events/sseTransport.js.map +1 -1
- package/dist/events/types.d.ts +3 -2
- package/dist/events/types.d.ts.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.d.ts +12 -2
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.d.ts.map +1 -1
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js +264 -60
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js.map +1 -1
- package/dist/providers/evm/types.d.ts +24 -0
- package/dist/providers/evm/types.d.ts.map +1 -0
- package/dist/providers/evm/types.js +2 -0
- package/dist/providers/evm/types.js.map +1 -0
- package/dist/providers/providerAuthClient.d.ts +8 -2
- package/dist/providers/providerAuthClient.d.ts.map +1 -1
- package/dist/providers/providerAuthClient.js +3 -3
- package/dist/providers/providerAuthClient.js.map +1 -1
- package/dist/providers/solana/keypairSolanaProviderAdapter.d.ts +16 -0
- package/dist/providers/solana/keypairSolanaProviderAdapter.d.ts.map +1 -0
- package/dist/providers/solana/keypairSolanaProviderAdapter.js +68 -0
- package/dist/providers/solana/keypairSolanaProviderAdapter.js.map +1 -0
- package/dist/providers/solana/privySolanaProviderAdapter.d.ts +54 -0
- package/dist/providers/solana/privySolanaProviderAdapter.d.ts.map +1 -0
- package/dist/providers/solana/privySolanaProviderAdapter.js +357 -0
- package/dist/providers/solana/privySolanaProviderAdapter.js.map +1 -0
- package/dist/providers/solana/solanaProviderAdapter.d.ts +5 -1
- package/dist/providers/solana/solanaProviderAdapter.d.ts.map +1 -1
- package/dist/providers/solana/solanaProviderAdapter.js +17 -1
- package/dist/providers/solana/solanaProviderAdapter.js.map +1 -1
- package/dist/providers/types.d.ts +11 -6
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/providers/types.js +1 -1
- package/dist/providers/types.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { addDecoderSizePrefix, addEncoderSizePrefix, combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { findAcpStatePda } from "../pdas/index.js";
|
|
10
|
+
import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
import { getAccountMetaFactory } from "../shared/index.js";
|
|
12
|
+
export const SUBMIT_DISCRIMINATOR = new Uint8Array([
|
|
13
|
+
88, 166, 102, 181, 162, 127, 170, 48,
|
|
14
|
+
]);
|
|
15
|
+
export function getSubmitDiscriminatorBytes() {
|
|
16
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(SUBMIT_DISCRIMINATOR);
|
|
17
|
+
}
|
|
18
|
+
export function getSubmitInstructionDataEncoder() {
|
|
19
|
+
return transformEncoder(getStructEncoder([
|
|
20
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
21
|
+
["deliverable", fixEncoderSize(getBytesEncoder(), 32)],
|
|
22
|
+
["optParams", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
|
|
23
|
+
[
|
|
24
|
+
"completeOptParams",
|
|
25
|
+
addEncoderSizePrefix(getBytesEncoder(), getU32Encoder()),
|
|
26
|
+
],
|
|
27
|
+
]), (value) => ({ ...value, discriminator: SUBMIT_DISCRIMINATOR }));
|
|
28
|
+
}
|
|
29
|
+
export function getSubmitInstructionDataDecoder() {
|
|
30
|
+
return getStructDecoder([
|
|
31
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
32
|
+
["deliverable", fixDecoderSize(getBytesDecoder(), 32)],
|
|
33
|
+
["optParams", addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())],
|
|
34
|
+
[
|
|
35
|
+
"completeOptParams",
|
|
36
|
+
addDecoderSizePrefix(getBytesDecoder(), getU32Decoder()),
|
|
37
|
+
],
|
|
38
|
+
]);
|
|
39
|
+
}
|
|
40
|
+
export function getSubmitInstructionDataCodec() {
|
|
41
|
+
return combineCodec(getSubmitInstructionDataEncoder(), getSubmitInstructionDataDecoder());
|
|
42
|
+
}
|
|
43
|
+
export async function getSubmitInstructionAsync(input, config) {
|
|
44
|
+
// Program address.
|
|
45
|
+
const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
|
|
46
|
+
// Original accounts.
|
|
47
|
+
const originalAccounts = {
|
|
48
|
+
provider: { value: input.provider ?? null, isWritable: false },
|
|
49
|
+
acpState: { value: input.acpState ?? null, isWritable: false },
|
|
50
|
+
job: { value: input.job ?? null, isWritable: true },
|
|
51
|
+
vault: { value: input.vault ?? null, isWritable: true },
|
|
52
|
+
vaultAuthority: { value: input.vaultAuthority ?? null, isWritable: false },
|
|
53
|
+
providerTokenAccount: {
|
|
54
|
+
value: input.providerTokenAccount ?? null,
|
|
55
|
+
isWritable: true,
|
|
56
|
+
},
|
|
57
|
+
treasuryTokenAccount: {
|
|
58
|
+
value: input.treasuryTokenAccount ?? null,
|
|
59
|
+
isWritable: true,
|
|
60
|
+
},
|
|
61
|
+
platformTreasury: {
|
|
62
|
+
value: input.platformTreasury ?? null,
|
|
63
|
+
isWritable: true,
|
|
64
|
+
},
|
|
65
|
+
tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
|
|
66
|
+
hookProgram: { value: input.hookProgram ?? null, isWritable: false },
|
|
67
|
+
hookWhitelist: { value: input.hookWhitelist ?? null, isWritable: false },
|
|
68
|
+
hookDelegate: { value: input.hookDelegate ?? null, isWritable: false },
|
|
69
|
+
providerHookTokenAccount: {
|
|
70
|
+
value: input.providerHookTokenAccount ?? null,
|
|
71
|
+
isWritable: true,
|
|
72
|
+
},
|
|
73
|
+
delegateWhitelist: {
|
|
74
|
+
value: input.delegateWhitelist ?? null,
|
|
75
|
+
isWritable: false,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
const accounts = originalAccounts;
|
|
79
|
+
// Original args.
|
|
80
|
+
const args = { ...input };
|
|
81
|
+
// Resolve default values.
|
|
82
|
+
if (!accounts.acpState.value) {
|
|
83
|
+
accounts.acpState.value = await findAcpStatePda();
|
|
84
|
+
}
|
|
85
|
+
if (!accounts.tokenProgram.value) {
|
|
86
|
+
accounts.tokenProgram.value =
|
|
87
|
+
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
88
|
+
}
|
|
89
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
90
|
+
return Object.freeze({
|
|
91
|
+
accounts: [
|
|
92
|
+
getAccountMeta(accounts.provider),
|
|
93
|
+
getAccountMeta(accounts.acpState),
|
|
94
|
+
getAccountMeta(accounts.job),
|
|
95
|
+
getAccountMeta(accounts.vault),
|
|
96
|
+
getAccountMeta(accounts.vaultAuthority),
|
|
97
|
+
getAccountMeta(accounts.providerTokenAccount),
|
|
98
|
+
getAccountMeta(accounts.treasuryTokenAccount),
|
|
99
|
+
getAccountMeta(accounts.platformTreasury),
|
|
100
|
+
getAccountMeta(accounts.tokenProgram),
|
|
101
|
+
getAccountMeta(accounts.hookProgram),
|
|
102
|
+
getAccountMeta(accounts.hookWhitelist),
|
|
103
|
+
getAccountMeta(accounts.hookDelegate),
|
|
104
|
+
getAccountMeta(accounts.providerHookTokenAccount),
|
|
105
|
+
getAccountMeta(accounts.delegateWhitelist),
|
|
106
|
+
],
|
|
107
|
+
data: getSubmitInstructionDataEncoder().encode(args),
|
|
108
|
+
programAddress,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
export function getSubmitInstruction(input, config) {
|
|
112
|
+
// Program address.
|
|
113
|
+
const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
|
|
114
|
+
// Original accounts.
|
|
115
|
+
const originalAccounts = {
|
|
116
|
+
provider: { value: input.provider ?? null, isWritable: false },
|
|
117
|
+
acpState: { value: input.acpState ?? null, isWritable: false },
|
|
118
|
+
job: { value: input.job ?? null, isWritable: true },
|
|
119
|
+
vault: { value: input.vault ?? null, isWritable: true },
|
|
120
|
+
vaultAuthority: { value: input.vaultAuthority ?? null, isWritable: false },
|
|
121
|
+
providerTokenAccount: {
|
|
122
|
+
value: input.providerTokenAccount ?? null,
|
|
123
|
+
isWritable: true,
|
|
124
|
+
},
|
|
125
|
+
treasuryTokenAccount: {
|
|
126
|
+
value: input.treasuryTokenAccount ?? null,
|
|
127
|
+
isWritable: true,
|
|
128
|
+
},
|
|
129
|
+
platformTreasury: {
|
|
130
|
+
value: input.platformTreasury ?? null,
|
|
131
|
+
isWritable: true,
|
|
132
|
+
},
|
|
133
|
+
tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
|
|
134
|
+
hookProgram: { value: input.hookProgram ?? null, isWritable: false },
|
|
135
|
+
hookWhitelist: { value: input.hookWhitelist ?? null, isWritable: false },
|
|
136
|
+
hookDelegate: { value: input.hookDelegate ?? null, isWritable: false },
|
|
137
|
+
providerHookTokenAccount: {
|
|
138
|
+
value: input.providerHookTokenAccount ?? null,
|
|
139
|
+
isWritable: true,
|
|
140
|
+
},
|
|
141
|
+
delegateWhitelist: {
|
|
142
|
+
value: input.delegateWhitelist ?? null,
|
|
143
|
+
isWritable: false,
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
const accounts = originalAccounts;
|
|
147
|
+
// Original args.
|
|
148
|
+
const args = { ...input };
|
|
149
|
+
// Resolve default values.
|
|
150
|
+
if (!accounts.tokenProgram.value) {
|
|
151
|
+
accounts.tokenProgram.value =
|
|
152
|
+
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
153
|
+
}
|
|
154
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
155
|
+
return Object.freeze({
|
|
156
|
+
accounts: [
|
|
157
|
+
getAccountMeta(accounts.provider),
|
|
158
|
+
getAccountMeta(accounts.acpState),
|
|
159
|
+
getAccountMeta(accounts.job),
|
|
160
|
+
getAccountMeta(accounts.vault),
|
|
161
|
+
getAccountMeta(accounts.vaultAuthority),
|
|
162
|
+
getAccountMeta(accounts.providerTokenAccount),
|
|
163
|
+
getAccountMeta(accounts.treasuryTokenAccount),
|
|
164
|
+
getAccountMeta(accounts.platformTreasury),
|
|
165
|
+
getAccountMeta(accounts.tokenProgram),
|
|
166
|
+
getAccountMeta(accounts.hookProgram),
|
|
167
|
+
getAccountMeta(accounts.hookWhitelist),
|
|
168
|
+
getAccountMeta(accounts.hookDelegate),
|
|
169
|
+
getAccountMeta(accounts.providerHookTokenAccount),
|
|
170
|
+
getAccountMeta(accounts.delegateWhitelist),
|
|
171
|
+
],
|
|
172
|
+
data: getSubmitInstructionDataEncoder().encode(args),
|
|
173
|
+
programAddress,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export function parseSubmitInstruction(instruction) {
|
|
177
|
+
if (instruction.accounts.length < 14) {
|
|
178
|
+
// TODO: Coded error.
|
|
179
|
+
throw new Error("Not enough accounts");
|
|
180
|
+
}
|
|
181
|
+
let accountIndex = 0;
|
|
182
|
+
const getNextAccount = () => {
|
|
183
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
184
|
+
accountIndex += 1;
|
|
185
|
+
return accountMeta;
|
|
186
|
+
};
|
|
187
|
+
const getNextOptionalAccount = () => {
|
|
188
|
+
const accountMeta = getNextAccount();
|
|
189
|
+
return accountMeta.address === AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS
|
|
190
|
+
? undefined
|
|
191
|
+
: accountMeta;
|
|
192
|
+
};
|
|
193
|
+
return {
|
|
194
|
+
programAddress: instruction.programAddress,
|
|
195
|
+
accounts: {
|
|
196
|
+
provider: getNextAccount(),
|
|
197
|
+
acpState: getNextAccount(),
|
|
198
|
+
job: getNextAccount(),
|
|
199
|
+
vault: getNextOptionalAccount(),
|
|
200
|
+
vaultAuthority: getNextOptionalAccount(),
|
|
201
|
+
providerTokenAccount: getNextOptionalAccount(),
|
|
202
|
+
treasuryTokenAccount: getNextOptionalAccount(),
|
|
203
|
+
platformTreasury: getNextOptionalAccount(),
|
|
204
|
+
tokenProgram: getNextOptionalAccount(),
|
|
205
|
+
hookProgram: getNextOptionalAccount(),
|
|
206
|
+
hookWhitelist: getNextOptionalAccount(),
|
|
207
|
+
hookDelegate: getNextOptionalAccount(),
|
|
208
|
+
providerHookTokenAccount: getNextOptionalAccount(),
|
|
209
|
+
delegateWhitelist: getNextOptionalAccount(),
|
|
210
|
+
},
|
|
211
|
+
data: getSubmitInstructionDataDecoder().decode(instruction.data),
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
//# sourceMappingURL=submit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submit.js","sourceRoot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CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IACD,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,WAAW,GAAI,WAAW,CAAC,QAA0B,CAAC,YAAY,CAAE,CAAC;QAC3E,YAAY,IAAI,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;QACrC,OAAO,WAAW,CAAC,OAAO,KAAK,mCAAmC;YAChE,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,WAAW,CAAC;IAClB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,QAAQ,EAAE,cAAc,EAAE;YAC1B,QAAQ,EAAE,cAAc,EAAE;YAC1B,GAAG,EAAE,cAAc,EAAE;YACrB,KAAK,EAAE,sBAAsB,EAAE;YAC/B,cAAc,EAAE,sBAAsB,EAAE;YACxC,oBAAoB,EAAE,sBAAsB,EAAE;YAC9C,oBAAoB,EAAE,sBAAsB,EAAE;YAC9C,gBAAgB,EAAE,sBAAsB,EAAE;YAC1C,YAAY,EAAE,sBAAsB,EAAE;YACtC,WAAW,EAAE,sBAAsB,EAAE;YACrC,aAAa,EAAE,sBAAsB,EAAE;YACvC,YAAY,EAAE,sBAAsB,EAAE;YACtC,wBAAwB,EAAE,sBAAsB,EAAE;YAClD,iBAAiB,EAAE,sBAAsB,EAAE;SAC5C;QACD,IAAI,EAAE,+BAA+B,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACjE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type ProgramDerivedAddress } from "@solana/kit";
|
|
9
|
+
export declare function findAcpStatePda(config?: {
|
|
10
|
+
programAddress?: Address | undefined;
|
|
11
|
+
}): Promise<ProgramDerivedAddress>;
|
|
12
|
+
//# sourceMappingURL=acpState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acpState.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/pdas/acpState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAGL,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAErB,wBAAsB,eAAe,CACnC,MAAM,GAAE;IAAE,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAO,GACpD,OAAO,CAAC,qBAAqB,CAAC,CAYhC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { getBytesEncoder, getProgramDerivedAddress, } from "@solana/kit";
|
|
9
|
+
export async function findAcpStatePda(config = {}) {
|
|
10
|
+
const { programAddress = "EkJQUp3Xouu94Wt8vf2hxuZcFLL5Wk2h91bNdFiiS5Bp", } = config;
|
|
11
|
+
return await getProgramDerivedAddress({
|
|
12
|
+
programAddress,
|
|
13
|
+
seeds: [
|
|
14
|
+
getBytesEncoder().encode(new Uint8Array([97, 99, 112, 95, 115, 116, 97, 116, 101])),
|
|
15
|
+
],
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=acpState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acpState.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/pdas/acpState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EACf,wBAAwB,GAGzB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,SAAmD,EAAE;IAErD,MAAM,EACJ,cAAc,GAAG,8CAAyG,GAC3H,GAAG,MAAM,CAAC;IACX,OAAO,MAAM,wBAAwB,CAAC;QACpC,cAAc;QACd,KAAK,EAAE;YACL,eAAe,EAAE,CAAC,MAAM,CACtB,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAC1D;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type ProgramDerivedAddress } from "@solana/kit";
|
|
9
|
+
export type HookWhitelistSeeds = {
|
|
10
|
+
hook: Address;
|
|
11
|
+
};
|
|
12
|
+
export declare function findHookWhitelistPda(seeds: HookWhitelistSeeds, config?: {
|
|
13
|
+
programAddress?: Address | undefined;
|
|
14
|
+
}): Promise<ProgramDerivedAddress>;
|
|
15
|
+
//# sourceMappingURL=hookWhitelist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hookWhitelist.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/pdas/hookWhitelist.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,kBAAkB,EACzB,MAAM,GAAE;IAAE,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAO,GACpD,OAAO,CAAC,qBAAqB,CAAC,CAehC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { getAddressEncoder, getBytesEncoder, getProgramDerivedAddress, } from "@solana/kit";
|
|
9
|
+
export async function findHookWhitelistPda(seeds, config = {}) {
|
|
10
|
+
const { programAddress = "EkJQUp3Xouu94Wt8vf2hxuZcFLL5Wk2h91bNdFiiS5Bp", } = config;
|
|
11
|
+
return await getProgramDerivedAddress({
|
|
12
|
+
programAddress,
|
|
13
|
+
seeds: [
|
|
14
|
+
getBytesEncoder().encode(new Uint8Array([
|
|
15
|
+
104, 111, 111, 107, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116,
|
|
16
|
+
])),
|
|
17
|
+
getAddressEncoder().encode(seeds.hook),
|
|
18
|
+
],
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=hookWhitelist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hookWhitelist.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/pdas/hookWhitelist.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,wBAAwB,GAGzB,MAAM,aAAa,CAAC;AAMrB,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,KAAyB,EACzB,SAAmD,EAAE;IAErD,MAAM,EACJ,cAAc,GAAG,8CAAyG,GAC3H,GAAG,MAAM,CAAC;IACX,OAAO,MAAM,wBAAwB,CAAC;QACpC,cAAc;QACd,KAAK,EAAE;YACL,eAAe,EAAE,CAAC,MAAM,CACtB,IAAI,UAAU,CAAC;gBACb,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;aACpE,CAAC,CACH;YACD,iBAAiB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;SACvC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from "./acpState.js";
|
|
9
|
+
export * from "./hookWhitelist.js";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/pdas/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from "./acpState.js";
|
|
9
|
+
export * from "./hookWhitelist.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/pdas/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
import { type ParsedAcceptAuthorityInstruction, type ParsedAddHookWhitelistInstruction, type ParsedClaimRefundInstruction, type ParsedCompleteInstruction, type ParsedCreateJobInstruction, type ParsedFundInstruction, type ParsedInitializeInstruction, type ParsedNominateAuthorityInstruction, type ParsedRejectInstruction, type ParsedRemoveHookWhitelistInstruction, type ParsedSetBudgetInstruction, type ParsedSetEvaluatorFeeInstruction, type ParsedSetPlatformFeeInstruction, type ParsedSetProviderInstruction, type ParsedSubmitInstruction } from "../instructions/index.js";
|
|
10
|
+
export declare const AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS: Address<"EkJQUp3Xouu94Wt8vf2hxuZcFLL5Wk2h91bNdFiiS5Bp">;
|
|
11
|
+
export declare enum AgenticCommerceV3Account {
|
|
12
|
+
AcpState = 0,
|
|
13
|
+
HookWhitelist = 1,
|
|
14
|
+
Job = 2
|
|
15
|
+
}
|
|
16
|
+
export declare function identifyAgenticCommerceV3Account(account: {
|
|
17
|
+
data: ReadonlyUint8Array;
|
|
18
|
+
} | ReadonlyUint8Array): AgenticCommerceV3Account;
|
|
19
|
+
export declare enum AgenticCommerceV3Instruction {
|
|
20
|
+
AcceptAuthority = 0,
|
|
21
|
+
AddHookWhitelist = 1,
|
|
22
|
+
ClaimRefund = 2,
|
|
23
|
+
Complete = 3,
|
|
24
|
+
CreateJob = 4,
|
|
25
|
+
Fund = 5,
|
|
26
|
+
Initialize = 6,
|
|
27
|
+
NominateAuthority = 7,
|
|
28
|
+
Reject = 8,
|
|
29
|
+
RemoveHookWhitelist = 9,
|
|
30
|
+
SetBudget = 10,
|
|
31
|
+
SetEvaluatorFee = 11,
|
|
32
|
+
SetPlatformFee = 12,
|
|
33
|
+
SetProvider = 13,
|
|
34
|
+
Submit = 14
|
|
35
|
+
}
|
|
36
|
+
export declare function identifyAgenticCommerceV3Instruction(instruction: {
|
|
37
|
+
data: ReadonlyUint8Array;
|
|
38
|
+
} | ReadonlyUint8Array): AgenticCommerceV3Instruction;
|
|
39
|
+
export type ParsedAgenticCommerceV3Instruction<TProgram extends string = "EkJQUp3Xouu94Wt8vf2hxuZcFLL5Wk2h91bNdFiiS5Bp"> = ({
|
|
40
|
+
instructionType: AgenticCommerceV3Instruction.AcceptAuthority;
|
|
41
|
+
} & ParsedAcceptAuthorityInstruction<TProgram>) | ({
|
|
42
|
+
instructionType: AgenticCommerceV3Instruction.AddHookWhitelist;
|
|
43
|
+
} & ParsedAddHookWhitelistInstruction<TProgram>) | ({
|
|
44
|
+
instructionType: AgenticCommerceV3Instruction.ClaimRefund;
|
|
45
|
+
} & ParsedClaimRefundInstruction<TProgram>) | ({
|
|
46
|
+
instructionType: AgenticCommerceV3Instruction.Complete;
|
|
47
|
+
} & ParsedCompleteInstruction<TProgram>) | ({
|
|
48
|
+
instructionType: AgenticCommerceV3Instruction.CreateJob;
|
|
49
|
+
} & ParsedCreateJobInstruction<TProgram>) | ({
|
|
50
|
+
instructionType: AgenticCommerceV3Instruction.Fund;
|
|
51
|
+
} & ParsedFundInstruction<TProgram>) | ({
|
|
52
|
+
instructionType: AgenticCommerceV3Instruction.Initialize;
|
|
53
|
+
} & ParsedInitializeInstruction<TProgram>) | ({
|
|
54
|
+
instructionType: AgenticCommerceV3Instruction.NominateAuthority;
|
|
55
|
+
} & ParsedNominateAuthorityInstruction<TProgram>) | ({
|
|
56
|
+
instructionType: AgenticCommerceV3Instruction.Reject;
|
|
57
|
+
} & ParsedRejectInstruction<TProgram>) | ({
|
|
58
|
+
instructionType: AgenticCommerceV3Instruction.RemoveHookWhitelist;
|
|
59
|
+
} & ParsedRemoveHookWhitelistInstruction<TProgram>) | ({
|
|
60
|
+
instructionType: AgenticCommerceV3Instruction.SetBudget;
|
|
61
|
+
} & ParsedSetBudgetInstruction<TProgram>) | ({
|
|
62
|
+
instructionType: AgenticCommerceV3Instruction.SetEvaluatorFee;
|
|
63
|
+
} & ParsedSetEvaluatorFeeInstruction<TProgram>) | ({
|
|
64
|
+
instructionType: AgenticCommerceV3Instruction.SetPlatformFee;
|
|
65
|
+
} & ParsedSetPlatformFeeInstruction<TProgram>) | ({
|
|
66
|
+
instructionType: AgenticCommerceV3Instruction.SetProvider;
|
|
67
|
+
} & ParsedSetProviderInstruction<TProgram>) | ({
|
|
68
|
+
instructionType: AgenticCommerceV3Instruction.Submit;
|
|
69
|
+
} & ParsedSubmitInstruction<TProgram>);
|
|
70
|
+
export declare function parseAgenticCommerceV3Instruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedAgenticCommerceV3Instruction<TProgram>;
|
|
71
|
+
//# sourceMappingURL=agenticCommerceV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agenticCommerceV3.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/programs/agenticCommerceV3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,mBAAmB,E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AAC,GAC9C,CAAC;IACC,eAAe,EAAE,4BAA4B,CAAC,WAAW,CAAC;CAC3D,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC,GAC3C,CAAC;IACC,eAAe,EAAE,4BAA4B,CAAC,MAAM,CAAC;CACtD,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE3C,wBAAgB,iCAAiC,CAAC,QAAQ,SAAS,MAAM,EACvE,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,GAC3E,kCAAkC,CAAC,QAAQ,CAAC,CAiH9C"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { assertIsInstructionWithAccounts, containsBytes, fixEncoderSize, getBytesEncoder, } from "@solana/kit";
|
|
9
|
+
import { parseAcceptAuthorityInstruction, parseAddHookWhitelistInstruction, parseClaimRefundInstruction, parseCompleteInstruction, parseCreateJobInstruction, parseFundInstruction, parseInitializeInstruction, parseNominateAuthorityInstruction, parseRejectInstruction, parseRemoveHookWhitelistInstruction, parseSetBudgetInstruction, parseSetEvaluatorFeeInstruction, parseSetPlatformFeeInstruction, parseSetProviderInstruction, parseSubmitInstruction, } from "../instructions/index.js";
|
|
10
|
+
export const AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS = "EkJQUp3Xouu94Wt8vf2hxuZcFLL5Wk2h91bNdFiiS5Bp";
|
|
11
|
+
export var AgenticCommerceV3Account;
|
|
12
|
+
(function (AgenticCommerceV3Account) {
|
|
13
|
+
AgenticCommerceV3Account[AgenticCommerceV3Account["AcpState"] = 0] = "AcpState";
|
|
14
|
+
AgenticCommerceV3Account[AgenticCommerceV3Account["HookWhitelist"] = 1] = "HookWhitelist";
|
|
15
|
+
AgenticCommerceV3Account[AgenticCommerceV3Account["Job"] = 2] = "Job";
|
|
16
|
+
})(AgenticCommerceV3Account || (AgenticCommerceV3Account = {}));
|
|
17
|
+
export function identifyAgenticCommerceV3Account(account) {
|
|
18
|
+
const data = "data" in account ? account.data : account;
|
|
19
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([182, 32, 157, 40, 114, 224, 13, 39])), 0)) {
|
|
20
|
+
return AgenticCommerceV3Account.AcpState;
|
|
21
|
+
}
|
|
22
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([5, 224, 69, 103, 41, 89, 183, 3])), 0)) {
|
|
23
|
+
return AgenticCommerceV3Account.HookWhitelist;
|
|
24
|
+
}
|
|
25
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([75, 124, 80, 203, 161, 180, 202, 80])), 0)) {
|
|
26
|
+
return AgenticCommerceV3Account.Job;
|
|
27
|
+
}
|
|
28
|
+
throw new Error("The provided account could not be identified as a agenticCommerceV3 account.");
|
|
29
|
+
}
|
|
30
|
+
export var AgenticCommerceV3Instruction;
|
|
31
|
+
(function (AgenticCommerceV3Instruction) {
|
|
32
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["AcceptAuthority"] = 0] = "AcceptAuthority";
|
|
33
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["AddHookWhitelist"] = 1] = "AddHookWhitelist";
|
|
34
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["ClaimRefund"] = 2] = "ClaimRefund";
|
|
35
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["Complete"] = 3] = "Complete";
|
|
36
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["CreateJob"] = 4] = "CreateJob";
|
|
37
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["Fund"] = 5] = "Fund";
|
|
38
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["Initialize"] = 6] = "Initialize";
|
|
39
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["NominateAuthority"] = 7] = "NominateAuthority";
|
|
40
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["Reject"] = 8] = "Reject";
|
|
41
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["RemoveHookWhitelist"] = 9] = "RemoveHookWhitelist";
|
|
42
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["SetBudget"] = 10] = "SetBudget";
|
|
43
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["SetEvaluatorFee"] = 11] = "SetEvaluatorFee";
|
|
44
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["SetPlatformFee"] = 12] = "SetPlatformFee";
|
|
45
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["SetProvider"] = 13] = "SetProvider";
|
|
46
|
+
AgenticCommerceV3Instruction[AgenticCommerceV3Instruction["Submit"] = 14] = "Submit";
|
|
47
|
+
})(AgenticCommerceV3Instruction || (AgenticCommerceV3Instruction = {}));
|
|
48
|
+
export function identifyAgenticCommerceV3Instruction(instruction) {
|
|
49
|
+
const data = "data" in instruction ? instruction.data : instruction;
|
|
50
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([107, 86, 198, 91, 33, 12, 107, 160])), 0)) {
|
|
51
|
+
return AgenticCommerceV3Instruction.AcceptAuthority;
|
|
52
|
+
}
|
|
53
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([155, 81, 232, 227, 41, 160, 231, 189])), 0)) {
|
|
54
|
+
return AgenticCommerceV3Instruction.AddHookWhitelist;
|
|
55
|
+
}
|
|
56
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([15, 16, 30, 161, 255, 228, 97, 60])), 0)) {
|
|
57
|
+
return AgenticCommerceV3Instruction.ClaimRefund;
|
|
58
|
+
}
|
|
59
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([0, 77, 224, 147, 136, 25, 88, 76])), 0)) {
|
|
60
|
+
return AgenticCommerceV3Instruction.Complete;
|
|
61
|
+
}
|
|
62
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([178, 130, 217, 110, 100, 27, 82, 119])), 0)) {
|
|
63
|
+
return AgenticCommerceV3Instruction.CreateJob;
|
|
64
|
+
}
|
|
65
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([218, 188, 111, 221, 152, 113, 174, 7])), 0)) {
|
|
66
|
+
return AgenticCommerceV3Instruction.Fund;
|
|
67
|
+
}
|
|
68
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([175, 175, 109, 31, 13, 152, 155, 237])), 0)) {
|
|
69
|
+
return AgenticCommerceV3Instruction.Initialize;
|
|
70
|
+
}
|
|
71
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([148, 182, 144, 91, 186, 12, 118, 18])), 0)) {
|
|
72
|
+
return AgenticCommerceV3Instruction.NominateAuthority;
|
|
73
|
+
}
|
|
74
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([135, 7, 63, 85, 131, 114, 111, 224])), 0)) {
|
|
75
|
+
return AgenticCommerceV3Instruction.Reject;
|
|
76
|
+
}
|
|
77
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([110, 220, 154, 1, 141, 191, 150, 74])), 0)) {
|
|
78
|
+
return AgenticCommerceV3Instruction.RemoveHookWhitelist;
|
|
79
|
+
}
|
|
80
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([148, 121, 226, 12, 183, 120, 26, 227])), 0)) {
|
|
81
|
+
return AgenticCommerceV3Instruction.SetBudget;
|
|
82
|
+
}
|
|
83
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([81, 212, 20, 60, 184, 238, 205, 132])), 0)) {
|
|
84
|
+
return AgenticCommerceV3Instruction.SetEvaluatorFee;
|
|
85
|
+
}
|
|
86
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([19, 70, 111, 182, 156, 58, 208, 203])), 0)) {
|
|
87
|
+
return AgenticCommerceV3Instruction.SetPlatformFee;
|
|
88
|
+
}
|
|
89
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([42, 159, 3, 191, 52, 175, 112, 88])), 0)) {
|
|
90
|
+
return AgenticCommerceV3Instruction.SetProvider;
|
|
91
|
+
}
|
|
92
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([88, 166, 102, 181, 162, 127, 170, 48])), 0)) {
|
|
93
|
+
return AgenticCommerceV3Instruction.Submit;
|
|
94
|
+
}
|
|
95
|
+
throw new Error("The provided instruction could not be identified as a agenticCommerceV3 instruction.");
|
|
96
|
+
}
|
|
97
|
+
export function parseAgenticCommerceV3Instruction(instruction) {
|
|
98
|
+
const instructionType = identifyAgenticCommerceV3Instruction(instruction);
|
|
99
|
+
switch (instructionType) {
|
|
100
|
+
case AgenticCommerceV3Instruction.AcceptAuthority: {
|
|
101
|
+
assertIsInstructionWithAccounts(instruction);
|
|
102
|
+
return {
|
|
103
|
+
instructionType: AgenticCommerceV3Instruction.AcceptAuthority,
|
|
104
|
+
...parseAcceptAuthorityInstruction(instruction),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
case AgenticCommerceV3Instruction.AddHookWhitelist: {
|
|
108
|
+
assertIsInstructionWithAccounts(instruction);
|
|
109
|
+
return {
|
|
110
|
+
instructionType: AgenticCommerceV3Instruction.AddHookWhitelist,
|
|
111
|
+
...parseAddHookWhitelistInstruction(instruction),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
case AgenticCommerceV3Instruction.ClaimRefund: {
|
|
115
|
+
assertIsInstructionWithAccounts(instruction);
|
|
116
|
+
return {
|
|
117
|
+
instructionType: AgenticCommerceV3Instruction.ClaimRefund,
|
|
118
|
+
...parseClaimRefundInstruction(instruction),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
case AgenticCommerceV3Instruction.Complete: {
|
|
122
|
+
assertIsInstructionWithAccounts(instruction);
|
|
123
|
+
return {
|
|
124
|
+
instructionType: AgenticCommerceV3Instruction.Complete,
|
|
125
|
+
...parseCompleteInstruction(instruction),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
case AgenticCommerceV3Instruction.CreateJob: {
|
|
129
|
+
assertIsInstructionWithAccounts(instruction);
|
|
130
|
+
return {
|
|
131
|
+
instructionType: AgenticCommerceV3Instruction.CreateJob,
|
|
132
|
+
...parseCreateJobInstruction(instruction),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
case AgenticCommerceV3Instruction.Fund: {
|
|
136
|
+
assertIsInstructionWithAccounts(instruction);
|
|
137
|
+
return {
|
|
138
|
+
instructionType: AgenticCommerceV3Instruction.Fund,
|
|
139
|
+
...parseFundInstruction(instruction),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
case AgenticCommerceV3Instruction.Initialize: {
|
|
143
|
+
assertIsInstructionWithAccounts(instruction);
|
|
144
|
+
return {
|
|
145
|
+
instructionType: AgenticCommerceV3Instruction.Initialize,
|
|
146
|
+
...parseInitializeInstruction(instruction),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
case AgenticCommerceV3Instruction.NominateAuthority: {
|
|
150
|
+
assertIsInstructionWithAccounts(instruction);
|
|
151
|
+
return {
|
|
152
|
+
instructionType: AgenticCommerceV3Instruction.NominateAuthority,
|
|
153
|
+
...parseNominateAuthorityInstruction(instruction),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
case AgenticCommerceV3Instruction.Reject: {
|
|
157
|
+
assertIsInstructionWithAccounts(instruction);
|
|
158
|
+
return {
|
|
159
|
+
instructionType: AgenticCommerceV3Instruction.Reject,
|
|
160
|
+
...parseRejectInstruction(instruction),
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
case AgenticCommerceV3Instruction.RemoveHookWhitelist: {
|
|
164
|
+
assertIsInstructionWithAccounts(instruction);
|
|
165
|
+
return {
|
|
166
|
+
instructionType: AgenticCommerceV3Instruction.RemoveHookWhitelist,
|
|
167
|
+
...parseRemoveHookWhitelistInstruction(instruction),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
case AgenticCommerceV3Instruction.SetBudget: {
|
|
171
|
+
assertIsInstructionWithAccounts(instruction);
|
|
172
|
+
return {
|
|
173
|
+
instructionType: AgenticCommerceV3Instruction.SetBudget,
|
|
174
|
+
...parseSetBudgetInstruction(instruction),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
case AgenticCommerceV3Instruction.SetEvaluatorFee: {
|
|
178
|
+
assertIsInstructionWithAccounts(instruction);
|
|
179
|
+
return {
|
|
180
|
+
instructionType: AgenticCommerceV3Instruction.SetEvaluatorFee,
|
|
181
|
+
...parseSetEvaluatorFeeInstruction(instruction),
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
case AgenticCommerceV3Instruction.SetPlatformFee: {
|
|
185
|
+
assertIsInstructionWithAccounts(instruction);
|
|
186
|
+
return {
|
|
187
|
+
instructionType: AgenticCommerceV3Instruction.SetPlatformFee,
|
|
188
|
+
...parseSetPlatformFeeInstruction(instruction),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
case AgenticCommerceV3Instruction.SetProvider: {
|
|
192
|
+
assertIsInstructionWithAccounts(instruction);
|
|
193
|
+
return {
|
|
194
|
+
instructionType: AgenticCommerceV3Instruction.SetProvider,
|
|
195
|
+
...parseSetProviderInstruction(instruction),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
case AgenticCommerceV3Instruction.Submit: {
|
|
199
|
+
assertIsInstructionWithAccounts(instruction);
|
|
200
|
+
return {
|
|
201
|
+
instructionType: AgenticCommerceV3Instruction.Submit,
|
|
202
|
+
...parseSubmitInstruction(instruction),
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
default:
|
|
206
|
+
throw new Error(`Unrecognized instruction type: ${instructionType}`);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=agenticCommerceV3.js.map
|