@virtuals-protocol/acp-node-v2 0.1.3 → 0.1.5
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/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/constants.d.ts +4 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +13 -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/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/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js +1 -1
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js.map +1 -1
- package/dist/providers/providerAuthClient.d.ts +8 -2
- package/dist/providers/providerAuthClient.d.ts.map +1 -1
- package/dist/providers/providerAuthClient.js +6 -12
- 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,150 @@
|
|
|
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 AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit";
|
|
9
|
+
import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
10
|
+
export declare const SUBMIT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getSubmitDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type SubmitInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountProvider extends string | AccountMeta<string> = string, TAccountAcpState extends string | AccountMeta<string> = string, TAccountJob extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountVaultAuthority extends string | AccountMeta<string> = string, TAccountProviderTokenAccount extends string | AccountMeta<string> = string, TAccountTreasuryTokenAccount extends string | AccountMeta<string> = string, TAccountPlatformTreasury extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountHookProgram extends string | AccountMeta<string> = string, TAccountHookWhitelist extends string | AccountMeta<string> = string, TAccountHookDelegate extends string | AccountMeta<string> = string, TAccountProviderHookTokenAccount extends string | AccountMeta<string> = string, TAccountDelegateWhitelist extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountProvider extends string ? ReadonlySignerAccount<TAccountProvider> & AccountSignerMeta<TAccountProvider> : TAccountProvider,
|
|
14
|
+
TAccountAcpState extends string ? ReadonlyAccount<TAccountAcpState> : TAccountAcpState,
|
|
15
|
+
TAccountJob extends string ? WritableAccount<TAccountJob> : TAccountJob,
|
|
16
|
+
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
17
|
+
TAccountVaultAuthority extends string ? ReadonlyAccount<TAccountVaultAuthority> : TAccountVaultAuthority,
|
|
18
|
+
TAccountProviderTokenAccount extends string ? WritableAccount<TAccountProviderTokenAccount> : TAccountProviderTokenAccount,
|
|
19
|
+
TAccountTreasuryTokenAccount extends string ? WritableAccount<TAccountTreasuryTokenAccount> : TAccountTreasuryTokenAccount,
|
|
20
|
+
TAccountPlatformTreasury extends string ? WritableAccount<TAccountPlatformTreasury> : TAccountPlatformTreasury,
|
|
21
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
22
|
+
TAccountHookProgram extends string ? ReadonlyAccount<TAccountHookProgram> : TAccountHookProgram,
|
|
23
|
+
TAccountHookWhitelist extends string ? ReadonlyAccount<TAccountHookWhitelist> : TAccountHookWhitelist,
|
|
24
|
+
TAccountHookDelegate extends string ? ReadonlyAccount<TAccountHookDelegate> : TAccountHookDelegate,
|
|
25
|
+
TAccountProviderHookTokenAccount extends string ? WritableAccount<TAccountProviderHookTokenAccount> : TAccountProviderHookTokenAccount,
|
|
26
|
+
TAccountDelegateWhitelist extends string ? ReadonlyAccount<TAccountDelegateWhitelist> : TAccountDelegateWhitelist,
|
|
27
|
+
...TRemainingAccounts
|
|
28
|
+
]>;
|
|
29
|
+
export type SubmitInstructionData = {
|
|
30
|
+
discriminator: ReadonlyUint8Array;
|
|
31
|
+
deliverable: ReadonlyUint8Array;
|
|
32
|
+
optParams: ReadonlyUint8Array;
|
|
33
|
+
completeOptParams: ReadonlyUint8Array;
|
|
34
|
+
};
|
|
35
|
+
export type SubmitInstructionDataArgs = {
|
|
36
|
+
deliverable: ReadonlyUint8Array;
|
|
37
|
+
optParams: ReadonlyUint8Array;
|
|
38
|
+
completeOptParams: ReadonlyUint8Array;
|
|
39
|
+
};
|
|
40
|
+
export declare function getSubmitInstructionDataEncoder(): Encoder<SubmitInstructionDataArgs>;
|
|
41
|
+
export declare function getSubmitInstructionDataDecoder(): Decoder<SubmitInstructionData>;
|
|
42
|
+
export declare function getSubmitInstructionDataCodec(): Codec<SubmitInstructionDataArgs, SubmitInstructionData>;
|
|
43
|
+
export type SubmitAsyncInput<TAccountProvider extends string = string, TAccountAcpState extends string = string, TAccountJob extends string = string, TAccountVault extends string = string, TAccountVaultAuthority extends string = string, TAccountProviderTokenAccount extends string = string, TAccountTreasuryTokenAccount extends string = string, TAccountPlatformTreasury extends string = string, TAccountTokenProgram extends string = string, TAccountHookProgram extends string = string, TAccountHookWhitelist extends string = string, TAccountHookDelegate extends string = string, TAccountProviderHookTokenAccount extends string = string, TAccountDelegateWhitelist extends string = string> = {
|
|
44
|
+
provider: TransactionSigner<TAccountProvider>;
|
|
45
|
+
acpState?: Address<TAccountAcpState>;
|
|
46
|
+
job: Address<TAccountJob>;
|
|
47
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
48
|
+
vault?: Address<TAccountVault>;
|
|
49
|
+
vaultAuthority?: Address<TAccountVaultAuthority>;
|
|
50
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
51
|
+
providerTokenAccount?: Address<TAccountProviderTokenAccount>;
|
|
52
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
53
|
+
treasuryTokenAccount?: Address<TAccountTreasuryTokenAccount>;
|
|
54
|
+
platformTreasury?: Address<TAccountPlatformTreasury>;
|
|
55
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
56
|
+
hookProgram?: Address<TAccountHookProgram>;
|
|
57
|
+
hookWhitelist?: Address<TAccountHookWhitelist>;
|
|
58
|
+
/**
|
|
59
|
+
* or by a whitelisted sub-hook program (multi-hook router). Required when hook is
|
|
60
|
+
* present and budget > 0. The ACP program approves this PDA as delegate on
|
|
61
|
+
* provider_hook_token_account for budget_amount (F-25 fix).
|
|
62
|
+
*/
|
|
63
|
+
hookDelegate?: Address<TAccountHookDelegate>;
|
|
64
|
+
/**
|
|
65
|
+
* Optional: provider's token account used by the hook for escrow transfer.
|
|
66
|
+
* Required when hook is present and budget > 0 and evaluator is set.
|
|
67
|
+
* The ACP approves hook_delegate on this account for budget_amount.
|
|
68
|
+
*/
|
|
69
|
+
providerHookTokenAccount?: Address<TAccountProviderHookTokenAccount>;
|
|
70
|
+
/** using MultiHookRouter -- the delegate is owned by a sub-hook, not the router. */
|
|
71
|
+
delegateWhitelist?: Address<TAccountDelegateWhitelist>;
|
|
72
|
+
deliverable: SubmitInstructionDataArgs["deliverable"];
|
|
73
|
+
optParams: SubmitInstructionDataArgs["optParams"];
|
|
74
|
+
completeOptParams: SubmitInstructionDataArgs["completeOptParams"];
|
|
75
|
+
};
|
|
76
|
+
export declare function getSubmitInstructionAsync<TAccountProvider extends string, TAccountAcpState extends string, TAccountJob extends string, TAccountVault extends string, TAccountVaultAuthority extends string, TAccountProviderTokenAccount extends string, TAccountTreasuryTokenAccount extends string, TAccountPlatformTreasury extends string, TAccountTokenProgram extends string, TAccountHookProgram extends string, TAccountHookWhitelist extends string, TAccountHookDelegate extends string, TAccountProviderHookTokenAccount extends string, TAccountDelegateWhitelist extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: SubmitAsyncInput<TAccountProvider, TAccountAcpState, TAccountJob, TAccountVault, TAccountVaultAuthority, TAccountProviderTokenAccount, TAccountTreasuryTokenAccount, TAccountPlatformTreasury, TAccountTokenProgram, TAccountHookProgram, TAccountHookWhitelist, TAccountHookDelegate, TAccountProviderHookTokenAccount, TAccountDelegateWhitelist>, config?: {
|
|
77
|
+
programAddress?: TProgramAddress;
|
|
78
|
+
}): Promise<SubmitInstruction<TProgramAddress, TAccountProvider, TAccountAcpState, TAccountJob, TAccountVault, TAccountVaultAuthority, TAccountProviderTokenAccount, TAccountTreasuryTokenAccount, TAccountPlatformTreasury, TAccountTokenProgram, TAccountHookProgram, TAccountHookWhitelist, TAccountHookDelegate, TAccountProviderHookTokenAccount, TAccountDelegateWhitelist>>;
|
|
79
|
+
export type SubmitInput<TAccountProvider extends string = string, TAccountAcpState extends string = string, TAccountJob extends string = string, TAccountVault extends string = string, TAccountVaultAuthority extends string = string, TAccountProviderTokenAccount extends string = string, TAccountTreasuryTokenAccount extends string = string, TAccountPlatformTreasury extends string = string, TAccountTokenProgram extends string = string, TAccountHookProgram extends string = string, TAccountHookWhitelist extends string = string, TAccountHookDelegate extends string = string, TAccountProviderHookTokenAccount extends string = string, TAccountDelegateWhitelist extends string = string> = {
|
|
80
|
+
provider: TransactionSigner<TAccountProvider>;
|
|
81
|
+
acpState: Address<TAccountAcpState>;
|
|
82
|
+
job: Address<TAccountJob>;
|
|
83
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
84
|
+
vault?: Address<TAccountVault>;
|
|
85
|
+
vaultAuthority?: Address<TAccountVaultAuthority>;
|
|
86
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
87
|
+
providerTokenAccount?: Address<TAccountProviderTokenAccount>;
|
|
88
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
89
|
+
treasuryTokenAccount?: Address<TAccountTreasuryTokenAccount>;
|
|
90
|
+
platformTreasury?: Address<TAccountPlatformTreasury>;
|
|
91
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
92
|
+
hookProgram?: Address<TAccountHookProgram>;
|
|
93
|
+
hookWhitelist?: Address<TAccountHookWhitelist>;
|
|
94
|
+
/**
|
|
95
|
+
* or by a whitelisted sub-hook program (multi-hook router). Required when hook is
|
|
96
|
+
* present and budget > 0. The ACP program approves this PDA as delegate on
|
|
97
|
+
* provider_hook_token_account for budget_amount (F-25 fix).
|
|
98
|
+
*/
|
|
99
|
+
hookDelegate?: Address<TAccountHookDelegate>;
|
|
100
|
+
/**
|
|
101
|
+
* Optional: provider's token account used by the hook for escrow transfer.
|
|
102
|
+
* Required when hook is present and budget > 0 and evaluator is set.
|
|
103
|
+
* The ACP approves hook_delegate on this account for budget_amount.
|
|
104
|
+
*/
|
|
105
|
+
providerHookTokenAccount?: Address<TAccountProviderHookTokenAccount>;
|
|
106
|
+
/** using MultiHookRouter -- the delegate is owned by a sub-hook, not the router. */
|
|
107
|
+
delegateWhitelist?: Address<TAccountDelegateWhitelist>;
|
|
108
|
+
deliverable: SubmitInstructionDataArgs["deliverable"];
|
|
109
|
+
optParams: SubmitInstructionDataArgs["optParams"];
|
|
110
|
+
completeOptParams: SubmitInstructionDataArgs["completeOptParams"];
|
|
111
|
+
};
|
|
112
|
+
export declare function getSubmitInstruction<TAccountProvider extends string, TAccountAcpState extends string, TAccountJob extends string, TAccountVault extends string, TAccountVaultAuthority extends string, TAccountProviderTokenAccount extends string, TAccountTreasuryTokenAccount extends string, TAccountPlatformTreasury extends string, TAccountTokenProgram extends string, TAccountHookProgram extends string, TAccountHookWhitelist extends string, TAccountHookDelegate extends string, TAccountProviderHookTokenAccount extends string, TAccountDelegateWhitelist extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: SubmitInput<TAccountProvider, TAccountAcpState, TAccountJob, TAccountVault, TAccountVaultAuthority, TAccountProviderTokenAccount, TAccountTreasuryTokenAccount, TAccountPlatformTreasury, TAccountTokenProgram, TAccountHookProgram, TAccountHookWhitelist, TAccountHookDelegate, TAccountProviderHookTokenAccount, TAccountDelegateWhitelist>, config?: {
|
|
113
|
+
programAddress?: TProgramAddress;
|
|
114
|
+
}): SubmitInstruction<TProgramAddress, TAccountProvider, TAccountAcpState, TAccountJob, TAccountVault, TAccountVaultAuthority, TAccountProviderTokenAccount, TAccountTreasuryTokenAccount, TAccountPlatformTreasury, TAccountTokenProgram, TAccountHookProgram, TAccountHookWhitelist, TAccountHookDelegate, TAccountProviderHookTokenAccount, TAccountDelegateWhitelist>;
|
|
115
|
+
export type ParsedSubmitInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
116
|
+
programAddress: Address<TProgram>;
|
|
117
|
+
accounts: {
|
|
118
|
+
provider: TAccountMetas[0];
|
|
119
|
+
acpState: TAccountMetas[1];
|
|
120
|
+
job: TAccountMetas[2];
|
|
121
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
122
|
+
vault?: TAccountMetas[3] | undefined;
|
|
123
|
+
vaultAuthority?: TAccountMetas[4] | undefined;
|
|
124
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
125
|
+
providerTokenAccount?: TAccountMetas[5] | undefined;
|
|
126
|
+
/** Optional: required for auto-complete when budget > 0 */
|
|
127
|
+
treasuryTokenAccount?: TAccountMetas[6] | undefined;
|
|
128
|
+
platformTreasury?: TAccountMetas[7] | undefined;
|
|
129
|
+
tokenProgram?: TAccountMetas[8] | undefined;
|
|
130
|
+
hookProgram?: TAccountMetas[9] | undefined;
|
|
131
|
+
hookWhitelist?: TAccountMetas[10] | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* or by a whitelisted sub-hook program (multi-hook router). Required when hook is
|
|
134
|
+
* present and budget > 0. The ACP program approves this PDA as delegate on
|
|
135
|
+
* provider_hook_token_account for budget_amount (F-25 fix).
|
|
136
|
+
*/
|
|
137
|
+
hookDelegate?: TAccountMetas[11] | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Optional: provider's token account used by the hook for escrow transfer.
|
|
140
|
+
* Required when hook is present and budget > 0 and evaluator is set.
|
|
141
|
+
* The ACP approves hook_delegate on this account for budget_amount.
|
|
142
|
+
*/
|
|
143
|
+
providerHookTokenAccount?: TAccountMetas[12] | undefined;
|
|
144
|
+
/** using MultiHookRouter -- the delegate is owned by a sub-hook, not the router. */
|
|
145
|
+
delegateWhitelist?: TAccountMetas[13] | undefined;
|
|
146
|
+
};
|
|
147
|
+
data: SubmitInstructionData;
|
|
148
|
+
};
|
|
149
|
+
export declare function parseSubmitInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSubmitInstruction<TProgram, TAccountMetas>;
|
|
150
|
+
//# sourceMappingURL=submit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana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AE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,uBAAuB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAqClD"}
|
|
@@ -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":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/submit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,gBAAgB,GAejB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,mCAAmC,EAAE,MAAM,s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AAC,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,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAgBL,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,oCAAoC,EACzC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,E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