@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,94 @@
|
|
|
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 SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from "@solana/kit";
|
|
9
|
+
/** Unauthorized: Unauthorized */
|
|
10
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__UNAUTHORIZED = 6000;
|
|
11
|
+
/** OnlyClientOrProvider: Only client or provider */
|
|
12
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT_OR_PROVIDER = 6001;
|
|
13
|
+
/** OnlyEvaluator: Only evaluator */
|
|
14
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ONLY_EVALUATOR = 6002;
|
|
15
|
+
/** OnlyProvider: Only provider */
|
|
16
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ONLY_PROVIDER = 6003;
|
|
17
|
+
/** OnlyClient: Only client */
|
|
18
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT = 6004;
|
|
19
|
+
/** ZeroAddress: ZeroAddress */
|
|
20
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS = 6005;
|
|
21
|
+
/** ZeroAddressEvaluator: ZeroAddressEvaluator */
|
|
22
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_EVALUATOR = 6006;
|
|
23
|
+
/** ZeroAddressProvider: ZeroAddressProvider */
|
|
24
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_PROVIDER = 6007;
|
|
25
|
+
/** DescriptionTooLong: Description too long */
|
|
26
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__DESCRIPTION_TOO_LONG = 6008;
|
|
27
|
+
/** ProviderCannotBeClient: Provider cannot be the client */
|
|
28
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__PROVIDER_CANNOT_BE_CLIENT = 6009;
|
|
29
|
+
/** EvaluatorCannotBeProvider: Evaluator cannot be the provider */
|
|
30
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_PROVIDER = 6010;
|
|
31
|
+
/** EvaluatorCannotBeClient: Evaluator cannot be the client */
|
|
32
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_CLIENT = 6011;
|
|
33
|
+
/** InvalidHookProgram: Invalid hook program */
|
|
34
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_HOOK_PROGRAM = 6012;
|
|
35
|
+
/** HookNotWhitelisted: Hook not whitelisted */
|
|
36
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__HOOK_NOT_WHITELISTED = 6013;
|
|
37
|
+
/** InvalidJob: Invalid job */
|
|
38
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB = 6014;
|
|
39
|
+
/** WrongStatus: Wrong job status */
|
|
40
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__WRONG_STATUS = 6015;
|
|
41
|
+
/** AmountMustBeGreaterThanZero: Amount must be greater than zero */
|
|
42
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__AMOUNT_MUST_BE_GREATER_THAN_ZERO = 6016;
|
|
43
|
+
/** InvalidPaymentToken: Invalid payment token */
|
|
44
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_PAYMENT_TOKEN = 6017;
|
|
45
|
+
/** BudgetNotSet: Budget not set */
|
|
46
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__BUDGET_NOT_SET = 6018;
|
|
47
|
+
/** BudgetMismatch: Budget mismatch */
|
|
48
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__BUDGET_MISMATCH = 6019;
|
|
49
|
+
/** ProviderNotSet: Provider not set */
|
|
50
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__PROVIDER_NOT_SET = 6020;
|
|
51
|
+
/** ExpiryTooShort: Expiry too short */
|
|
52
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__EXPIRY_TOO_SHORT = 6021;
|
|
53
|
+
/** ExpiredAtMustBeInTheFuture: ExpiredAt must be in the future */
|
|
54
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__EXPIRED_AT_MUST_BE_IN_THE_FUTURE = 6022;
|
|
55
|
+
/** PlatformFeeTooHigh: Platform fee too high */
|
|
56
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__PLATFORM_FEE_TOO_HIGH = 6023;
|
|
57
|
+
/** FeesTooHigh: Combined fees too high */
|
|
58
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__FEES_TOO_HIGH = 6024;
|
|
59
|
+
/** InvalidDestination: Invalid destination account */
|
|
60
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_DESTINATION = 6025;
|
|
61
|
+
/** InvalidVaultAuthority: Invalid vault authority */
|
|
62
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_AUTHORITY = 6026;
|
|
63
|
+
/** InvalidVaultOwner: Invalid vault owner */
|
|
64
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_OWNER = 6027;
|
|
65
|
+
/** InvalidVaultMint: Invalid vault mint */
|
|
66
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_MINT = 6028;
|
|
67
|
+
/** BudgetMintNotSet: Budget mint must be set when budget amount is nonzero */
|
|
68
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__BUDGET_MINT_NOT_SET = 6029;
|
|
69
|
+
/** InvalidJobCounter: Job counter must be >= 1 */
|
|
70
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB_COUNTER = 6030;
|
|
71
|
+
/** InsufficientVaultBalance: Insufficient vault balance */
|
|
72
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INSUFFICIENT_VAULT_BALANCE = 6031;
|
|
73
|
+
/** MissingRequiredAccount: Missing required account for funded job */
|
|
74
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__MISSING_REQUIRED_ACCOUNT = 6032;
|
|
75
|
+
/** ArithmeticOverflow: Arithmetic overflow */
|
|
76
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__ARITHMETIC_OVERFLOW = 6033;
|
|
77
|
+
/** HookProgramIsUpgradeable: Hook program must be immutable (upgrade authority must be None) */
|
|
78
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__HOOK_PROGRAM_IS_UPGRADEABLE = 6034;
|
|
79
|
+
/** MissingHookProgram: Missing hook program account: job declares a hook but hook_program was not supplied */
|
|
80
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__MISSING_HOOK_PROGRAM = 6035;
|
|
81
|
+
/** InvalidAutoCompleteParams: Invalid complete_opt_params: must be empty (legacy mode) or [u16 submit_count][...] with submit_count <= remaining_accounts.len() */
|
|
82
|
+
export declare const AGENTIC_COMMERCE_V3_ERROR__INVALID_AUTO_COMPLETE_PARAMS = 6036;
|
|
83
|
+
export type AgenticCommerceV3Error = typeof AGENTIC_COMMERCE_V3_ERROR__AMOUNT_MUST_BE_GREATER_THAN_ZERO | typeof AGENTIC_COMMERCE_V3_ERROR__ARITHMETIC_OVERFLOW | typeof AGENTIC_COMMERCE_V3_ERROR__BUDGET_MINT_NOT_SET | typeof AGENTIC_COMMERCE_V3_ERROR__BUDGET_MISMATCH | typeof AGENTIC_COMMERCE_V3_ERROR__BUDGET_NOT_SET | typeof AGENTIC_COMMERCE_V3_ERROR__DESCRIPTION_TOO_LONG | typeof AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_CLIENT | typeof AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_PROVIDER | typeof AGENTIC_COMMERCE_V3_ERROR__EXPIRED_AT_MUST_BE_IN_THE_FUTURE | typeof AGENTIC_COMMERCE_V3_ERROR__EXPIRY_TOO_SHORT | typeof AGENTIC_COMMERCE_V3_ERROR__FEES_TOO_HIGH | typeof AGENTIC_COMMERCE_V3_ERROR__HOOK_NOT_WHITELISTED | typeof AGENTIC_COMMERCE_V3_ERROR__HOOK_PROGRAM_IS_UPGRADEABLE | typeof AGENTIC_COMMERCE_V3_ERROR__INSUFFICIENT_VAULT_BALANCE | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_AUTO_COMPLETE_PARAMS | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_DESTINATION | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_HOOK_PROGRAM | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB_COUNTER | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_PAYMENT_TOKEN | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_AUTHORITY | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_MINT | typeof AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_OWNER | typeof AGENTIC_COMMERCE_V3_ERROR__MISSING_HOOK_PROGRAM | typeof AGENTIC_COMMERCE_V3_ERROR__MISSING_REQUIRED_ACCOUNT | typeof AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT | typeof AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT_OR_PROVIDER | typeof AGENTIC_COMMERCE_V3_ERROR__ONLY_EVALUATOR | typeof AGENTIC_COMMERCE_V3_ERROR__ONLY_PROVIDER | typeof AGENTIC_COMMERCE_V3_ERROR__PLATFORM_FEE_TOO_HIGH | typeof AGENTIC_COMMERCE_V3_ERROR__PROVIDER_CANNOT_BE_CLIENT | typeof AGENTIC_COMMERCE_V3_ERROR__PROVIDER_NOT_SET | typeof AGENTIC_COMMERCE_V3_ERROR__UNAUTHORIZED | typeof AGENTIC_COMMERCE_V3_ERROR__WRONG_STATUS | typeof AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS | typeof AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_EVALUATOR | typeof AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_PROVIDER;
|
|
84
|
+
export declare function getAgenticCommerceV3ErrorMessage(code: AgenticCommerceV3Error): string;
|
|
85
|
+
export declare function isAgenticCommerceV3Error<TProgramErrorCode extends AgenticCommerceV3Error>(error: unknown, transactionMessage: {
|
|
86
|
+
instructions: Record<number, {
|
|
87
|
+
programAddress: Address;
|
|
88
|
+
}>;
|
|
89
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
90
|
+
context: Readonly<{
|
|
91
|
+
code: TProgramErrorCode;
|
|
92
|
+
}>;
|
|
93
|
+
}>;
|
|
94
|
+
//# sourceMappingURL=agenticCommerceV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agenticCommerceV3.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/agenticCommerceV3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,uCAAuC,EAC5C,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AAGrB,iCAAiC;AACjC,eAAO,MAAM,uCAAuC,OAAS,CAAC;AAC9D,oDAAoD;AACpD,eAAO,MAAM,kDAAkD,OAAS,CAAC;AACzE,oCAAoC;AACpC,eAAO,MAAM,yCAAyC,OAAS,CAAC;AAChE,kCAAkC;AAClC,eAAO,MAAM,wCAAwC,OAAS,CAAC;AAC/D,8BAA8B;AAC9B,eAAO,MAAM,sCAAsC,OAAS,CAAC;AAC7D,+BAA+B;AAC/B,eAAO,MAAM,uCAAuC,OAAS,CAAC;AAC9D,iDAAiD;AACjD,eAAO,MAAM,iDAAiD,OAAS,CAAC;AACxE,+CAA+C;AAC/C,eAAO,MAAM,gDAAgD,OAAS,CAAC;AACvE,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,OAAS,CAAC;AACtE,4DAA4D;AAC5D,eAAO,MAAM,oDAAoD,OAAS,CAAC;AAC3E,kEAAkE;AAClE,eAAO,MAAM,uDAAuD,OAAS,CAAC;AAC9E,8DAA8D;AAC9D,eAAO,MAAM,qDAAqD,OAAS,CAAC;AAC5E,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,OAAS,CAAC;AACtE,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,OAAS,CAAC;AACt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AAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAO7D"}
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { isProgramError, } from "@solana/kit";
|
|
9
|
+
import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
10
|
+
/** Unauthorized: Unauthorized */
|
|
11
|
+
export const AGENTIC_COMMERCE_V3_ERROR__UNAUTHORIZED = 0x1770; // 6000
|
|
12
|
+
/** OnlyClientOrProvider: Only client or provider */
|
|
13
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT_OR_PROVIDER = 0x1771; // 6001
|
|
14
|
+
/** OnlyEvaluator: Only evaluator */
|
|
15
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ONLY_EVALUATOR = 0x1772; // 6002
|
|
16
|
+
/** OnlyProvider: Only provider */
|
|
17
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ONLY_PROVIDER = 0x1773; // 6003
|
|
18
|
+
/** OnlyClient: Only client */
|
|
19
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT = 0x1774; // 6004
|
|
20
|
+
/** ZeroAddress: ZeroAddress */
|
|
21
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS = 0x1775; // 6005
|
|
22
|
+
/** ZeroAddressEvaluator: ZeroAddressEvaluator */
|
|
23
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_EVALUATOR = 0x1776; // 6006
|
|
24
|
+
/** ZeroAddressProvider: ZeroAddressProvider */
|
|
25
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_PROVIDER = 0x1777; // 6007
|
|
26
|
+
/** DescriptionTooLong: Description too long */
|
|
27
|
+
export const AGENTIC_COMMERCE_V3_ERROR__DESCRIPTION_TOO_LONG = 0x1778; // 6008
|
|
28
|
+
/** ProviderCannotBeClient: Provider cannot be the client */
|
|
29
|
+
export const AGENTIC_COMMERCE_V3_ERROR__PROVIDER_CANNOT_BE_CLIENT = 0x1779; // 6009
|
|
30
|
+
/** EvaluatorCannotBeProvider: Evaluator cannot be the provider */
|
|
31
|
+
export const AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_PROVIDER = 0x177a; // 6010
|
|
32
|
+
/** EvaluatorCannotBeClient: Evaluator cannot be the client */
|
|
33
|
+
export const AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_CLIENT = 0x177b; // 6011
|
|
34
|
+
/** InvalidHookProgram: Invalid hook program */
|
|
35
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_HOOK_PROGRAM = 0x177c; // 6012
|
|
36
|
+
/** HookNotWhitelisted: Hook not whitelisted */
|
|
37
|
+
export const AGENTIC_COMMERCE_V3_ERROR__HOOK_NOT_WHITELISTED = 0x177d; // 6013
|
|
38
|
+
/** InvalidJob: Invalid job */
|
|
39
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB = 0x177e; // 6014
|
|
40
|
+
/** WrongStatus: Wrong job status */
|
|
41
|
+
export const AGENTIC_COMMERCE_V3_ERROR__WRONG_STATUS = 0x177f; // 6015
|
|
42
|
+
/** AmountMustBeGreaterThanZero: Amount must be greater than zero */
|
|
43
|
+
export const AGENTIC_COMMERCE_V3_ERROR__AMOUNT_MUST_BE_GREATER_THAN_ZERO = 0x1780; // 6016
|
|
44
|
+
/** InvalidPaymentToken: Invalid payment token */
|
|
45
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_PAYMENT_TOKEN = 0x1781; // 6017
|
|
46
|
+
/** BudgetNotSet: Budget not set */
|
|
47
|
+
export const AGENTIC_COMMERCE_V3_ERROR__BUDGET_NOT_SET = 0x1782; // 6018
|
|
48
|
+
/** BudgetMismatch: Budget mismatch */
|
|
49
|
+
export const AGENTIC_COMMERCE_V3_ERROR__BUDGET_MISMATCH = 0x1783; // 6019
|
|
50
|
+
/** ProviderNotSet: Provider not set */
|
|
51
|
+
export const AGENTIC_COMMERCE_V3_ERROR__PROVIDER_NOT_SET = 0x1784; // 6020
|
|
52
|
+
/** ExpiryTooShort: Expiry too short */
|
|
53
|
+
export const AGENTIC_COMMERCE_V3_ERROR__EXPIRY_TOO_SHORT = 0x1785; // 6021
|
|
54
|
+
/** ExpiredAtMustBeInTheFuture: ExpiredAt must be in the future */
|
|
55
|
+
export const AGENTIC_COMMERCE_V3_ERROR__EXPIRED_AT_MUST_BE_IN_THE_FUTURE = 0x1786; // 6022
|
|
56
|
+
/** PlatformFeeTooHigh: Platform fee too high */
|
|
57
|
+
export const AGENTIC_COMMERCE_V3_ERROR__PLATFORM_FEE_TOO_HIGH = 0x1787; // 6023
|
|
58
|
+
/** FeesTooHigh: Combined fees too high */
|
|
59
|
+
export const AGENTIC_COMMERCE_V3_ERROR__FEES_TOO_HIGH = 0x1788; // 6024
|
|
60
|
+
/** InvalidDestination: Invalid destination account */
|
|
61
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_DESTINATION = 0x1789; // 6025
|
|
62
|
+
/** InvalidVaultAuthority: Invalid vault authority */
|
|
63
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_AUTHORITY = 0x178a; // 6026
|
|
64
|
+
/** InvalidVaultOwner: Invalid vault owner */
|
|
65
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_OWNER = 0x178b; // 6027
|
|
66
|
+
/** InvalidVaultMint: Invalid vault mint */
|
|
67
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_MINT = 0x178c; // 6028
|
|
68
|
+
/** BudgetMintNotSet: Budget mint must be set when budget amount is nonzero */
|
|
69
|
+
export const AGENTIC_COMMERCE_V3_ERROR__BUDGET_MINT_NOT_SET = 0x178d; // 6029
|
|
70
|
+
/** InvalidJobCounter: Job counter must be >= 1 */
|
|
71
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB_COUNTER = 0x178e; // 6030
|
|
72
|
+
/** InsufficientVaultBalance: Insufficient vault balance */
|
|
73
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INSUFFICIENT_VAULT_BALANCE = 0x178f; // 6031
|
|
74
|
+
/** MissingRequiredAccount: Missing required account for funded job */
|
|
75
|
+
export const AGENTIC_COMMERCE_V3_ERROR__MISSING_REQUIRED_ACCOUNT = 0x1790; // 6032
|
|
76
|
+
/** ArithmeticOverflow: Arithmetic overflow */
|
|
77
|
+
export const AGENTIC_COMMERCE_V3_ERROR__ARITHMETIC_OVERFLOW = 0x1791; // 6033
|
|
78
|
+
/** HookProgramIsUpgradeable: Hook program must be immutable (upgrade authority must be None) */
|
|
79
|
+
export const AGENTIC_COMMERCE_V3_ERROR__HOOK_PROGRAM_IS_UPGRADEABLE = 0x1792; // 6034
|
|
80
|
+
/** MissingHookProgram: Missing hook program account: job declares a hook but hook_program was not supplied */
|
|
81
|
+
export const AGENTIC_COMMERCE_V3_ERROR__MISSING_HOOK_PROGRAM = 0x1793; // 6035
|
|
82
|
+
/** InvalidAutoCompleteParams: Invalid complete_opt_params: must be empty (legacy mode) or [u16 submit_count][...] with submit_count <= remaining_accounts.len() */
|
|
83
|
+
export const AGENTIC_COMMERCE_V3_ERROR__INVALID_AUTO_COMPLETE_PARAMS = 0x1794; // 6036
|
|
84
|
+
let agenticCommerceV3ErrorMessages;
|
|
85
|
+
if (process.env.NODE_ENV !== "production") {
|
|
86
|
+
agenticCommerceV3ErrorMessages = {
|
|
87
|
+
[AGENTIC_COMMERCE_V3_ERROR__AMOUNT_MUST_BE_GREATER_THAN_ZERO]: `Amount must be greater than zero`,
|
|
88
|
+
[AGENTIC_COMMERCE_V3_ERROR__ARITHMETIC_OVERFLOW]: `Arithmetic overflow`,
|
|
89
|
+
[AGENTIC_COMMERCE_V3_ERROR__BUDGET_MINT_NOT_SET]: `Budget mint must be set when budget amount is nonzero`,
|
|
90
|
+
[AGENTIC_COMMERCE_V3_ERROR__BUDGET_MISMATCH]: `Budget mismatch`,
|
|
91
|
+
[AGENTIC_COMMERCE_V3_ERROR__BUDGET_NOT_SET]: `Budget not set`,
|
|
92
|
+
[AGENTIC_COMMERCE_V3_ERROR__DESCRIPTION_TOO_LONG]: `Description too long`,
|
|
93
|
+
[AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_CLIENT]: `Evaluator cannot be the client`,
|
|
94
|
+
[AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_PROVIDER]: `Evaluator cannot be the provider`,
|
|
95
|
+
[AGENTIC_COMMERCE_V3_ERROR__EXPIRED_AT_MUST_BE_IN_THE_FUTURE]: `ExpiredAt must be in the future`,
|
|
96
|
+
[AGENTIC_COMMERCE_V3_ERROR__EXPIRY_TOO_SHORT]: `Expiry too short`,
|
|
97
|
+
[AGENTIC_COMMERCE_V3_ERROR__FEES_TOO_HIGH]: `Combined fees too high`,
|
|
98
|
+
[AGENTIC_COMMERCE_V3_ERROR__HOOK_NOT_WHITELISTED]: `Hook not whitelisted`,
|
|
99
|
+
[AGENTIC_COMMERCE_V3_ERROR__HOOK_PROGRAM_IS_UPGRADEABLE]: `Hook program must be immutable (upgrade authority must be None)`,
|
|
100
|
+
[AGENTIC_COMMERCE_V3_ERROR__INSUFFICIENT_VAULT_BALANCE]: `Insufficient vault balance`,
|
|
101
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_AUTO_COMPLETE_PARAMS]: `Invalid complete_opt_params: must be empty (legacy mode) or [u16 submit_count][...] with submit_count <= remaining_accounts.len()`,
|
|
102
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_DESTINATION]: `Invalid destination account`,
|
|
103
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_HOOK_PROGRAM]: `Invalid hook program`,
|
|
104
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB]: `Invalid job`,
|
|
105
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB_COUNTER]: `Job counter must be >= 1`,
|
|
106
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_PAYMENT_TOKEN]: `Invalid payment token`,
|
|
107
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_AUTHORITY]: `Invalid vault authority`,
|
|
108
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_MINT]: `Invalid vault mint`,
|
|
109
|
+
[AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_OWNER]: `Invalid vault owner`,
|
|
110
|
+
[AGENTIC_COMMERCE_V3_ERROR__MISSING_HOOK_PROGRAM]: `Missing hook program account: job declares a hook but hook_program was not supplied`,
|
|
111
|
+
[AGENTIC_COMMERCE_V3_ERROR__MISSING_REQUIRED_ACCOUNT]: `Missing required account for funded job`,
|
|
112
|
+
[AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT]: `Only client`,
|
|
113
|
+
[AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT_OR_PROVIDER]: `Only client or provider`,
|
|
114
|
+
[AGENTIC_COMMERCE_V3_ERROR__ONLY_EVALUATOR]: `Only evaluator`,
|
|
115
|
+
[AGENTIC_COMMERCE_V3_ERROR__ONLY_PROVIDER]: `Only provider`,
|
|
116
|
+
[AGENTIC_COMMERCE_V3_ERROR__PLATFORM_FEE_TOO_HIGH]: `Platform fee too high`,
|
|
117
|
+
[AGENTIC_COMMERCE_V3_ERROR__PROVIDER_CANNOT_BE_CLIENT]: `Provider cannot be the client`,
|
|
118
|
+
[AGENTIC_COMMERCE_V3_ERROR__PROVIDER_NOT_SET]: `Provider not set`,
|
|
119
|
+
[AGENTIC_COMMERCE_V3_ERROR__UNAUTHORIZED]: `Unauthorized`,
|
|
120
|
+
[AGENTIC_COMMERCE_V3_ERROR__WRONG_STATUS]: `Wrong job status`,
|
|
121
|
+
[AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS]: `ZeroAddress`,
|
|
122
|
+
[AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_EVALUATOR]: `ZeroAddressEvaluator`,
|
|
123
|
+
[AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_PROVIDER]: `ZeroAddressProvider`,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export function getAgenticCommerceV3ErrorMessage(code) {
|
|
127
|
+
if (process.env.NODE_ENV !== "production") {
|
|
128
|
+
return agenticCommerceV3ErrorMessages[code];
|
|
129
|
+
}
|
|
130
|
+
return "Error message not available in production bundles.";
|
|
131
|
+
}
|
|
132
|
+
export function isAgenticCommerceV3Error(error, transactionMessage, code) {
|
|
133
|
+
return isProgramError(error, transactionMessage, AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, code);
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=agenticCommerceV3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agenticCommerceV3.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/agenticCommerceV3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,GAIf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AAE3E,iCAAiC;AACjC,MAAM,CAAC,MAAM,uCAAuC,GAAG,MAAM,CAAC,CAAC,OAAO;AACtE,oDAAoD;AACpD,MAAM,CAAC,MAAM,kDAAkD,GAAG,MAAM,CAAC,CAAC,OAAO;AACjF,oCAAoC;AACpC,MAAM,CAAC,MAAM,yCAAyC,GAAG,MAAM,CAAC,CAAC,OAAO;AACxE,kCAAkC;AAClC,MAAM,CAAC,MAAM,wCAAwC,GAAG,MAAM,CAAC,CAAC,OAAO;AACvE,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AmD,CAAC,EAAE,yCAAyC;QAChG,CAAC,sCAAsC,CAAC,EAAE,aAAa;QACvD,CAAC,kDAAkD,CAAC,EAAE,yBAAyB;QAC/E,CAAC,yCAAyC,CAAC,EAAE,gBAAgB;QAC7D,CAAC,wCAAwC,CAAC,EAAE,eAAe;QAC3D,CAAC,gDAAgD,CAAC,EAAE,uBAAuB;QAC3E,CAAC,oDAAoD,CAAC,EAAE,+BAA+B;QACvF,CAAC,2CAA2C,CAAC,EAAE,kBAAkB;QACjE,CAAC,uCAAuC,CAAC,EAAE,cAAc;QACzD,CAAC,uCAAuC,CAAC,EAAE,kBAAkB;QAC7D,CAAC,uCAAuC,CAAC,EAAE,aAAa;QACxD,CAAC,iDAAiD,CAAC,EAAE,sBAAsB;QAC3E,CAAC,gDAAgD,CAAC,EAAE,qBAAqB;KAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,IAA4B;IAE5B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;QAC1C,OACE,8BACD,CAAC,IAAI,CAAC,CAAC;IACV,CAAC;IAED,OAAO,oDAAoD,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,wBAAwB,CAGtC,KAAc,EACd,kBAEC,EACD,IAAwB;IAGxB,OAAO,cAAc,CACnB,KAAK,EACL,kBAAkB,EAClB,mCAAmC,EACnC,IAAI,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 "./agenticCommerceV3.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 "./agenticCommerceV3.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 "./accounts/index.js";
|
|
9
|
+
export * from "./errors/index.js";
|
|
10
|
+
export * from "./instructions/index.js";
|
|
11
|
+
export * from "./pdas/index.js";
|
|
12
|
+
export * from "./programs/index.js";
|
|
13
|
+
export * from "./types/index.js";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/solana/generated/acp/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 "./accounts/index.js";
|
|
9
|
+
export * from "./errors/index.js";
|
|
10
|
+
export * from "./instructions/index.js";
|
|
11
|
+
export * from "./pdas/index.js";
|
|
12
|
+
export * from "./programs/index.js";
|
|
13
|
+
export * from "./types/index.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/solana/generated/acp/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, 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 ACCEPT_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getAcceptAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type AcceptAuthorityInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountNewAuthority extends string | AccountMeta<string> = string, TAccountAcpState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountNewAuthority extends string ? ReadonlySignerAccount<TAccountNewAuthority> & AccountSignerMeta<TAccountNewAuthority> : TAccountNewAuthority,
|
|
14
|
+
TAccountAcpState extends string ? WritableAccount<TAccountAcpState> : TAccountAcpState,
|
|
15
|
+
...TRemainingAccounts
|
|
16
|
+
]>;
|
|
17
|
+
export type AcceptAuthorityInstructionData = {
|
|
18
|
+
discriminator: ReadonlyUint8Array;
|
|
19
|
+
};
|
|
20
|
+
export type AcceptAuthorityInstructionDataArgs = {};
|
|
21
|
+
export declare function getAcceptAuthorityInstructionDataEncoder(): FixedSizeEncoder<AcceptAuthorityInstructionDataArgs>;
|
|
22
|
+
export declare function getAcceptAuthorityInstructionDataDecoder(): FixedSizeDecoder<AcceptAuthorityInstructionData>;
|
|
23
|
+
export declare function getAcceptAuthorityInstructionDataCodec(): FixedSizeCodec<AcceptAuthorityInstructionDataArgs, AcceptAuthorityInstructionData>;
|
|
24
|
+
export type AcceptAuthorityAsyncInput<TAccountNewAuthority extends string = string, TAccountAcpState extends string = string> = {
|
|
25
|
+
newAuthority: TransactionSigner<TAccountNewAuthority>;
|
|
26
|
+
acpState?: Address<TAccountAcpState>;
|
|
27
|
+
};
|
|
28
|
+
export declare function getAcceptAuthorityInstructionAsync<TAccountNewAuthority extends string, TAccountAcpState extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AcceptAuthorityAsyncInput<TAccountNewAuthority, TAccountAcpState>, config?: {
|
|
29
|
+
programAddress?: TProgramAddress;
|
|
30
|
+
}): Promise<AcceptAuthorityInstruction<TProgramAddress, TAccountNewAuthority, TAccountAcpState>>;
|
|
31
|
+
export type AcceptAuthorityInput<TAccountNewAuthority extends string = string, TAccountAcpState extends string = string> = {
|
|
32
|
+
newAuthority: TransactionSigner<TAccountNewAuthority>;
|
|
33
|
+
acpState: Address<TAccountAcpState>;
|
|
34
|
+
};
|
|
35
|
+
export declare function getAcceptAuthorityInstruction<TAccountNewAuthority extends string, TAccountAcpState extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AcceptAuthorityInput<TAccountNewAuthority, TAccountAcpState>, config?: {
|
|
36
|
+
programAddress?: TProgramAddress;
|
|
37
|
+
}): AcceptAuthorityInstruction<TProgramAddress, TAccountNewAuthority, TAccountAcpState>;
|
|
38
|
+
export type ParsedAcceptAuthorityInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
39
|
+
programAddress: Address<TProgram>;
|
|
40
|
+
accounts: {
|
|
41
|
+
newAuthority: TAccountMetas[0];
|
|
42
|
+
acpState: TAccountMetas[1];
|
|
43
|
+
};
|
|
44
|
+
data: AcceptAuthorityInstructionData;
|
|
45
|
+
};
|
|
46
|
+
export declare function parseAcceptAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAcceptAuthorityInstruction<TProgram, TAccountMetas>;
|
|
47
|
+
//# sourceMappingURL=acceptAuthority.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptAuthority.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/acceptAuthority.ts"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B,CACjB,CA4BA;AAED,MAAM,MAAM,gCAAgC,CAC1C,QAAQ,SAAS,MAAM,GAAG,OAAO,mCAAmC,EACpE,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACnE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC5B,CAAC;IACF,IAAI,EAAE,8BAA8B,CAAC;CACtC,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,gCAAgC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAgB3D"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, 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 ACCEPT_AUTHORITY_DISCRIMINATOR = new Uint8Array([
|
|
13
|
+
107, 86, 198, 91, 33, 12, 107, 160,
|
|
14
|
+
]);
|
|
15
|
+
export function getAcceptAuthorityDiscriminatorBytes() {
|
|
16
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(ACCEPT_AUTHORITY_DISCRIMINATOR);
|
|
17
|
+
}
|
|
18
|
+
export function getAcceptAuthorityInstructionDataEncoder() {
|
|
19
|
+
return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({ ...value, discriminator: ACCEPT_AUTHORITY_DISCRIMINATOR }));
|
|
20
|
+
}
|
|
21
|
+
export function getAcceptAuthorityInstructionDataDecoder() {
|
|
22
|
+
return getStructDecoder([
|
|
23
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
export function getAcceptAuthorityInstructionDataCodec() {
|
|
27
|
+
return combineCodec(getAcceptAuthorityInstructionDataEncoder(), getAcceptAuthorityInstructionDataDecoder());
|
|
28
|
+
}
|
|
29
|
+
export async function getAcceptAuthorityInstructionAsync(input, config) {
|
|
30
|
+
// Program address.
|
|
31
|
+
const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
|
|
32
|
+
// Original accounts.
|
|
33
|
+
const originalAccounts = {
|
|
34
|
+
newAuthority: { value: input.newAuthority ?? null, isWritable: false },
|
|
35
|
+
acpState: { value: input.acpState ?? null, isWritable: true },
|
|
36
|
+
};
|
|
37
|
+
const accounts = originalAccounts;
|
|
38
|
+
// Resolve default values.
|
|
39
|
+
if (!accounts.acpState.value) {
|
|
40
|
+
accounts.acpState.value = await findAcpStatePda();
|
|
41
|
+
}
|
|
42
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
43
|
+
return Object.freeze({
|
|
44
|
+
accounts: [
|
|
45
|
+
getAccountMeta(accounts.newAuthority),
|
|
46
|
+
getAccountMeta(accounts.acpState),
|
|
47
|
+
],
|
|
48
|
+
data: getAcceptAuthorityInstructionDataEncoder().encode({}),
|
|
49
|
+
programAddress,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
export function getAcceptAuthorityInstruction(input, config) {
|
|
53
|
+
// Program address.
|
|
54
|
+
const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
|
|
55
|
+
// Original accounts.
|
|
56
|
+
const originalAccounts = {
|
|
57
|
+
newAuthority: { value: input.newAuthority ?? null, isWritable: false },
|
|
58
|
+
acpState: { value: input.acpState ?? null, isWritable: true },
|
|
59
|
+
};
|
|
60
|
+
const accounts = originalAccounts;
|
|
61
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
62
|
+
return Object.freeze({
|
|
63
|
+
accounts: [
|
|
64
|
+
getAccountMeta(accounts.newAuthority),
|
|
65
|
+
getAccountMeta(accounts.acpState),
|
|
66
|
+
],
|
|
67
|
+
data: getAcceptAuthorityInstructionDataEncoder().encode({}),
|
|
68
|
+
programAddress,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export function parseAcceptAuthorityInstruction(instruction) {
|
|
72
|
+
if (instruction.accounts.length < 2) {
|
|
73
|
+
// TODO: Coded error.
|
|
74
|
+
throw new Error("Not enough accounts");
|
|
75
|
+
}
|
|
76
|
+
let accountIndex = 0;
|
|
77
|
+
const getNextAccount = () => {
|
|
78
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
79
|
+
accountIndex += 1;
|
|
80
|
+
return accountMeta;
|
|
81
|
+
};
|
|
82
|
+
return {
|
|
83
|
+
programAddress: instruction.programAddress,
|
|
84
|
+
accounts: { newAuthority: getNextAccount(), acpState: getNextAccount() },
|
|
85
|
+
data: getAcceptAuthorityInstructionDataDecoder().decode(instruction.data),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=acceptAuthority.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptAuthority.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/acceptAuthority.ts"],"names":[],"mappings":"AAA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AAQ,GAAG,gBAGhB,CAAC;IAEF,MAAM,cAAc,GAAG,qBAAqB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IAC1E,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,QAAQ,EAAE;YACR,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC;SAClC;QACD,IAAI,EAAE,wCAAwC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3D,cAAc;KAKf,CAAC,CAAC;AACL,CAAC;AAcD,MAAM,UAAU,+BAA+B,CAI7C,WAEyC;IAEzC,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,qBAAqB;QACrB,MAAM,IAAI,KAAK,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,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;QACxE,IAAI,EAAE,wCAAwC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
10
|
+
export declare const ADD_HOOK_WHITELIST_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getAddHookWhitelistDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type AddHookWhitelistInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountAcpState extends string | AccountMeta<string> = string, TAccountHookWhitelist extends string | AccountMeta<string> = string, TAccountHookProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
14
|
+
TAccountAcpState extends string ? ReadonlyAccount<TAccountAcpState> : TAccountAcpState,
|
|
15
|
+
TAccountHookWhitelist extends string ? WritableAccount<TAccountHookWhitelist> : TAccountHookWhitelist,
|
|
16
|
+
TAccountHookProgramData extends string ? ReadonlyAccount<TAccountHookProgramData> : TAccountHookProgramData,
|
|
17
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type AddHookWhitelistInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
hook: Address;
|
|
23
|
+
};
|
|
24
|
+
export type AddHookWhitelistInstructionDataArgs = {
|
|
25
|
+
hook: Address;
|
|
26
|
+
};
|
|
27
|
+
export declare function getAddHookWhitelistInstructionDataEncoder(): FixedSizeEncoder<AddHookWhitelistInstructionDataArgs>;
|
|
28
|
+
export declare function getAddHookWhitelistInstructionDataDecoder(): FixedSizeDecoder<AddHookWhitelistInstructionData>;
|
|
29
|
+
export declare function getAddHookWhitelistInstructionDataCodec(): FixedSizeCodec<AddHookWhitelistInstructionDataArgs, AddHookWhitelistInstructionData>;
|
|
30
|
+
export type AddHookWhitelistAsyncInput<TAccountAuthority extends string = string, TAccountAcpState extends string = string, TAccountHookWhitelist extends string = string, TAccountHookProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
31
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
32
|
+
acpState?: Address<TAccountAcpState>;
|
|
33
|
+
hookWhitelist?: Address<TAccountHookWhitelist>;
|
|
34
|
+
hookProgramData?: Address<TAccountHookProgramData>;
|
|
35
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
36
|
+
hook: AddHookWhitelistInstructionDataArgs["hook"];
|
|
37
|
+
};
|
|
38
|
+
export declare function getAddHookWhitelistInstructionAsync<TAccountAuthority extends string, TAccountAcpState extends string, TAccountHookWhitelist extends string, TAccountHookProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AddHookWhitelistAsyncInput<TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>, config?: {
|
|
39
|
+
programAddress?: TProgramAddress;
|
|
40
|
+
}): Promise<AddHookWhitelistInstruction<TProgramAddress, TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>>;
|
|
41
|
+
export type AddHookWhitelistInput<TAccountAuthority extends string = string, TAccountAcpState extends string = string, TAccountHookWhitelist extends string = string, TAccountHookProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
42
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
43
|
+
acpState: Address<TAccountAcpState>;
|
|
44
|
+
hookWhitelist: Address<TAccountHookWhitelist>;
|
|
45
|
+
hookProgramData: Address<TAccountHookProgramData>;
|
|
46
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
47
|
+
hook: AddHookWhitelistInstructionDataArgs["hook"];
|
|
48
|
+
};
|
|
49
|
+
export declare function getAddHookWhitelistInstruction<TAccountAuthority extends string, TAccountAcpState extends string, TAccountHookWhitelist extends string, TAccountHookProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AddHookWhitelistInput<TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>, config?: {
|
|
50
|
+
programAddress?: TProgramAddress;
|
|
51
|
+
}): AddHookWhitelistInstruction<TProgramAddress, TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>;
|
|
52
|
+
export type ParsedAddHookWhitelistInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
53
|
+
programAddress: Address<TProgram>;
|
|
54
|
+
accounts: {
|
|
55
|
+
authority: TAccountMetas[0];
|
|
56
|
+
acpState: TAccountMetas[1];
|
|
57
|
+
hookWhitelist: TAccountMetas[2];
|
|
58
|
+
hookProgramData: TAccountMetas[3];
|
|
59
|
+
systemProgram: TAccountMetas[4];
|
|
60
|
+
};
|
|
61
|
+
data: AddHookWhitelistInstructionData;
|
|
62
|
+
};
|
|
63
|
+
export declare function parseAddHookWhitelistInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddHookWhitelistInstruction<TProgram, TAccountMetas>;
|
|
64
|
+
//# sourceMappingURL=addHookWhitelist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addHookWhitelist.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/addHookWhitelist.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AAO3E,eAAO,MAAM,gCAAgC,yBAE3C,CAAC;AAEH,wBAAgB,qCAAqC,uBAIpD;AAED,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,MAAM,GAAG,OAAO,mCAAmC,EACpE,iBAAiB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,gBAAgB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC9D,qBAAqB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,uBAAuB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACrE,qBAAqB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GACxD,kCAAkC,EACpC,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC5D,WAAW,CAAC,QAAQ,CAAC,GACvB,mBAAmB,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CACrB;IACE,iBAAiB,SAAS,MAAM,GAC5B,q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