@virtuals-protocol/acp-node-v2 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,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 { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
+
export const FUND_REQUEST_INTENT_ID_DISCRIMINATOR = new Uint8Array([
|
|
10
|
+
115, 10, 133, 59, 77, 84, 106, 104,
|
|
11
|
+
]);
|
|
12
|
+
export function getFundRequestIntentIdDiscriminatorBytes() {
|
|
13
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(FUND_REQUEST_INTENT_ID_DISCRIMINATOR);
|
|
14
|
+
}
|
|
15
|
+
/** Gets the encoder for {@link FundRequestIntentIdArgs} account data. */
|
|
16
|
+
export function getFundRequestIntentIdEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
19
|
+
["jobId", getU64Encoder()],
|
|
20
|
+
["intentId", getU64Encoder()],
|
|
21
|
+
["bump", getU8Encoder()],
|
|
22
|
+
]), (value) => ({
|
|
23
|
+
...value,
|
|
24
|
+
discriminator: FUND_REQUEST_INTENT_ID_DISCRIMINATOR,
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
/** Gets the decoder for {@link FundRequestIntentId} account data. */
|
|
28
|
+
export function getFundRequestIntentIdDecoder() {
|
|
29
|
+
return getStructDecoder([
|
|
30
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
31
|
+
["jobId", getU64Decoder()],
|
|
32
|
+
["intentId", getU64Decoder()],
|
|
33
|
+
["bump", getU8Decoder()],
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
/** Gets the codec for {@link FundRequestIntentId} account data. */
|
|
37
|
+
export function getFundRequestIntentIdCodec() {
|
|
38
|
+
return combineCodec(getFundRequestIntentIdEncoder(), getFundRequestIntentIdDecoder());
|
|
39
|
+
}
|
|
40
|
+
export function decodeFundRequestIntentId(encodedAccount) {
|
|
41
|
+
return decodeAccount(encodedAccount, getFundRequestIntentIdDecoder());
|
|
42
|
+
}
|
|
43
|
+
export async function fetchFundRequestIntentId(rpc, address, config) {
|
|
44
|
+
const maybeAccount = await fetchMaybeFundRequestIntentId(rpc, address, config);
|
|
45
|
+
assertAccountExists(maybeAccount);
|
|
46
|
+
return maybeAccount;
|
|
47
|
+
}
|
|
48
|
+
export async function fetchMaybeFundRequestIntentId(rpc, address, config) {
|
|
49
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address, config);
|
|
50
|
+
return decodeFundRequestIntentId(maybeAccount);
|
|
51
|
+
}
|
|
52
|
+
export async function fetchAllFundRequestIntentId(rpc, addresses, config) {
|
|
53
|
+
const maybeAccounts = await fetchAllMaybeFundRequestIntentId(rpc, addresses, config);
|
|
54
|
+
assertAccountsExist(maybeAccounts);
|
|
55
|
+
return maybeAccounts;
|
|
56
|
+
}
|
|
57
|
+
export async function fetchAllMaybeFundRequestIntentId(rpc, addresses, config) {
|
|
58
|
+
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|
|
59
|
+
return maybeAccounts.map((maybeAccount) => decodeFundRequestIntentId(maybeAccount));
|
|
60
|
+
}
|
|
61
|
+
export function getFundRequestIntentIdSize() {
|
|
62
|
+
return 25;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=fundRequestIntentId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fundRequestIntentId.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,oCAAoC,GAAG,IAAI,UAAU,CAAC;IACjE,GAAG,EAAE,E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AC9C,OAA0B,EAC1B,MAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,6BAA6B,CACtD,GAAG,EACH,OAAO,EACP,MAAM,CACP,CAAC;IACF,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAClC,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAGjD,GAA8C,EAC9C,OAA0B,EAC1B,MAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,yBAAyB,CAAC,YAAY,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,gCAAgC,CAC1D,GAAG,EACH,SAAS,EACT,MAAM,CACP,CAAC;IACF,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACnC,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gCAAgC,CACpD,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CACxC,yBAAyB,CAAC,YAAY,CAAC,CACxC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B;IACxC,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export declare const HOOK_METADATA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getHookMetadataDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type HookMetadata = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
requiredSelectors: number;
|
|
14
|
+
bump: number;
|
|
15
|
+
};
|
|
16
|
+
export type HookMetadataArgs = {
|
|
17
|
+
requiredSelectors: number;
|
|
18
|
+
bump: number;
|
|
19
|
+
};
|
|
20
|
+
/** Gets the encoder for {@link HookMetadataArgs} account data. */
|
|
21
|
+
export declare function getHookMetadataEncoder(): FixedSizeEncoder<HookMetadataArgs>;
|
|
22
|
+
/** Gets the decoder for {@link HookMetadata} account data. */
|
|
23
|
+
export declare function getHookMetadataDecoder(): FixedSizeDecoder<HookMetadata>;
|
|
24
|
+
/** Gets the codec for {@link HookMetadata} account data. */
|
|
25
|
+
export declare function getHookMetadataCodec(): FixedSizeCodec<HookMetadataArgs, HookMetadata>;
|
|
26
|
+
export declare function decodeHookMetadata<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<HookMetadata, TAddress>;
|
|
27
|
+
export declare function decodeHookMetadata<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<HookMetadata, TAddress>;
|
|
28
|
+
export declare function fetchHookMetadata<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<HookMetadata, TAddress>>;
|
|
29
|
+
export declare function fetchMaybeHookMetadata<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<HookMetadata, TAddress>>;
|
|
30
|
+
export declare function fetchAllHookMetadata(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<HookMetadata>[]>;
|
|
31
|
+
export declare function fetchAllMaybeHookMetadata(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<HookMetadata>[]>;
|
|
32
|
+
export declare function getHookMetadataSize(): number;
|
|
33
|
+
//# sourceMappingURL=hookMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hookMetadata.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAUpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,2BAA2B,yBAEtC,CAAC;AAEH,wBAAgB,iCAAiC,uBAIhD;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,aAAa,EAAE,kBAAkB,CAAC;IAClC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,kEAAkE;AAClE,wBAAgB,sBAAsB,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,CAS3E;AAED,8DAA8D;AAC9D,wBAAgB,sBAAsB,IAAI,gBAAgB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,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC,CAGvC;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
+
export const HOOK_METADATA_DISCRIMINATOR = new Uint8Array([
|
|
10
|
+
119, 227, 48, 236, 101, 194, 218, 85,
|
|
11
|
+
]);
|
|
12
|
+
export function getHookMetadataDiscriminatorBytes() {
|
|
13
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(HOOK_METADATA_DISCRIMINATOR);
|
|
14
|
+
}
|
|
15
|
+
/** Gets the encoder for {@link HookMetadataArgs} account data. */
|
|
16
|
+
export function getHookMetadataEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
19
|
+
["requiredSelectors", getU8Encoder()],
|
|
20
|
+
["bump", getU8Encoder()],
|
|
21
|
+
]), (value) => ({ ...value, discriminator: HOOK_METADATA_DISCRIMINATOR }));
|
|
22
|
+
}
|
|
23
|
+
/** Gets the decoder for {@link HookMetadata} account data. */
|
|
24
|
+
export function getHookMetadataDecoder() {
|
|
25
|
+
return getStructDecoder([
|
|
26
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
27
|
+
["requiredSelectors", getU8Decoder()],
|
|
28
|
+
["bump", getU8Decoder()],
|
|
29
|
+
]);
|
|
30
|
+
}
|
|
31
|
+
/** Gets the codec for {@link HookMetadata} account data. */
|
|
32
|
+
export function getHookMetadataCodec() {
|
|
33
|
+
return combineCodec(getHookMetadataEncoder(), getHookMetadataDecoder());
|
|
34
|
+
}
|
|
35
|
+
export function decodeHookMetadata(encodedAccount) {
|
|
36
|
+
return decodeAccount(encodedAccount, getHookMetadataDecoder());
|
|
37
|
+
}
|
|
38
|
+
export async function fetchHookMetadata(rpc, address, config) {
|
|
39
|
+
const maybeAccount = await fetchMaybeHookMetadata(rpc, address, config);
|
|
40
|
+
assertAccountExists(maybeAccount);
|
|
41
|
+
return maybeAccount;
|
|
42
|
+
}
|
|
43
|
+
export async function fetchMaybeHookMetadata(rpc, address, config) {
|
|
44
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address, config);
|
|
45
|
+
return decodeHookMetadata(maybeAccount);
|
|
46
|
+
}
|
|
47
|
+
export async function fetchAllHookMetadata(rpc, addresses, config) {
|
|
48
|
+
const maybeAccounts = await fetchAllMaybeHookMetadata(rpc, addresses, config);
|
|
49
|
+
assertAccountsExist(maybeAccounts);
|
|
50
|
+
return maybeAccounts;
|
|
51
|
+
}
|
|
52
|
+
export async function fetchAllMaybeHookMetadata(rpc, addresses, config) {
|
|
53
|
+
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|
|
54
|
+
return maybeAccounts.map((maybeAccount) => decodeHookMetadata(maybeAccount));
|
|
55
|
+
}
|
|
56
|
+
export function getHookMetadataSize() {
|
|
57
|
+
return 10;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=hookMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hookMetadata.js","sourceRoot":"","sources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AC;AAC/E,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type Option, type OptionOrNullable, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export declare const HOOK_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getHookStateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type HookState = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
acpProgram: Address;
|
|
14
|
+
authority: Address;
|
|
15
|
+
pendingAuthority: Option<Address>;
|
|
16
|
+
intentCounter: bigint;
|
|
17
|
+
bump: number;
|
|
18
|
+
};
|
|
19
|
+
export type HookStateArgs = {
|
|
20
|
+
acpProgram: Address;
|
|
21
|
+
authority: Address;
|
|
22
|
+
pendingAuthority: OptionOrNullable<Address>;
|
|
23
|
+
intentCounter: number | bigint;
|
|
24
|
+
bump: number;
|
|
25
|
+
};
|
|
26
|
+
/** Gets the encoder for {@link HookStateArgs} account data. */
|
|
27
|
+
export declare function getHookStateEncoder(): Encoder<HookStateArgs>;
|
|
28
|
+
/** Gets the decoder for {@link HookState} account data. */
|
|
29
|
+
export declare function getHookStateDecoder(): Decoder<HookState>;
|
|
30
|
+
/** Gets the codec for {@link HookState} account data. */
|
|
31
|
+
export declare function getHookStateCodec(): Codec<HookStateArgs, HookState>;
|
|
32
|
+
export declare function decodeHookState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<HookState, TAddress>;
|
|
33
|
+
export declare function decodeHookState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<HookState, TAddress>;
|
|
34
|
+
export declare function fetchHookState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<HookState, TAddress>>;
|
|
35
|
+
export declare function fetchMaybeHookState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<HookState, TAddress>>;
|
|
36
|
+
export declare function fetchAllHookState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<HookState>[]>;
|
|
37
|
+
export declare function fetchAllMaybeHookState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<HookState>[]>;
|
|
38
|
+
//# sourceMappingURL=hookState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hookState.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/hookState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAgBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,wBAAwB,yBAEnC,CAAC;AAEH,wBAAgB,8BAA8B,uBAE7C;AAED,MAAM,MAAM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C,SAAS,EAAE,QAAQ,CAAC,CAAC,CAIvC;AAED,wBAAsB,mBAAmB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EACxE,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAG5C;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAI/B;AAED,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,CAGpC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getOptionDecoder, getOptionEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
+
export const HOOK_STATE_DISCRIMINATOR = new Uint8Array([
|
|
10
|
+
10, 13, 71, 116, 92, 105, 237, 231,
|
|
11
|
+
]);
|
|
12
|
+
export function getHookStateDiscriminatorBytes() {
|
|
13
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(HOOK_STATE_DISCRIMINATOR);
|
|
14
|
+
}
|
|
15
|
+
/** Gets the encoder for {@link HookStateArgs} account data. */
|
|
16
|
+
export function getHookStateEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
19
|
+
["acpProgram", getAddressEncoder()],
|
|
20
|
+
["authority", getAddressEncoder()],
|
|
21
|
+
["pendingAuthority", getOptionEncoder(getAddressEncoder())],
|
|
22
|
+
["intentCounter", getU64Encoder()],
|
|
23
|
+
["bump", getU8Encoder()],
|
|
24
|
+
]), (value) => ({ ...value, discriminator: HOOK_STATE_DISCRIMINATOR }));
|
|
25
|
+
}
|
|
26
|
+
/** Gets the decoder for {@link HookState} account data. */
|
|
27
|
+
export function getHookStateDecoder() {
|
|
28
|
+
return getStructDecoder([
|
|
29
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
30
|
+
["acpProgram", getAddressDecoder()],
|
|
31
|
+
["authority", getAddressDecoder()],
|
|
32
|
+
["pendingAuthority", getOptionDecoder(getAddressDecoder())],
|
|
33
|
+
["intentCounter", getU64Decoder()],
|
|
34
|
+
["bump", getU8Decoder()],
|
|
35
|
+
]);
|
|
36
|
+
}
|
|
37
|
+
/** Gets the codec for {@link HookState} account data. */
|
|
38
|
+
export function getHookStateCodec() {
|
|
39
|
+
return combineCodec(getHookStateEncoder(), getHookStateDecoder());
|
|
40
|
+
}
|
|
41
|
+
export function decodeHookState(encodedAccount) {
|
|
42
|
+
return decodeAccount(encodedAccount, getHookStateDecoder());
|
|
43
|
+
}
|
|
44
|
+
export async function fetchHookState(rpc, address, config) {
|
|
45
|
+
const maybeAccount = await fetchMaybeHookState(rpc, address, config);
|
|
46
|
+
assertAccountExists(maybeAccount);
|
|
47
|
+
return maybeAccount;
|
|
48
|
+
}
|
|
49
|
+
export async function fetchMaybeHookState(rpc, address, config) {
|
|
50
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address, config);
|
|
51
|
+
return decodeHookState(maybeAccount);
|
|
52
|
+
}
|
|
53
|
+
export async function fetchAllHookState(rpc, addresses, config) {
|
|
54
|
+
const maybeAccounts = await fetchAllMaybeHookState(rpc, addresses, config);
|
|
55
|
+
assertAccountsExist(maybeAccounts);
|
|
56
|
+
return maybeAccounts;
|
|
57
|
+
}
|
|
58
|
+
export async function fetchAllMaybeHookState(rpc, addresses, config) {
|
|
59
|
+
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|
|
60
|
+
return maybeAccounts.map((maybeAccount) => decodeHookState(maybeAccount));
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=hookState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hookState.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/hookState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,UAAU,CAAC;IACrD,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACnC,CAAC,C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B,cAAwE;IAExE,OAAO,aAAa,CAClB,cAA+C,EAC/C,mBAAmB,EAAE,CACtB,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,GAA8C,EAC9C,OAA0B,EAC1B,MAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAClC,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAA8C,EAC9C,OAA0B,EAC1B,MAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,eAAe,CAAC,YAAY,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,sBAAsB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAC3E,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACnC,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 "./fundRequestIntentId.js";
|
|
9
|
+
export * from "./hookMetadata.js";
|
|
10
|
+
export * from "./hookState.js";
|
|
11
|
+
export * from "./intent.js";
|
|
12
|
+
export * from "./providerEscrowIntentId.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 "./fundRequestIntentId.js";
|
|
9
|
+
export * from "./hookMetadata.js";
|
|
10
|
+
export * from "./hookState.js";
|
|
11
|
+
export * from "./intent.js";
|
|
12
|
+
export * from "./providerEscrowIntentId.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export declare const INTENT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getIntentDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type Intent = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
id: bigint;
|
|
14
|
+
jobId: bigint;
|
|
15
|
+
actor: Address;
|
|
16
|
+
isEscrow: boolean;
|
|
17
|
+
isSigned: boolean;
|
|
18
|
+
from: Address;
|
|
19
|
+
token: Address;
|
|
20
|
+
amount: bigint;
|
|
21
|
+
recipient: Address;
|
|
22
|
+
bump: number;
|
|
23
|
+
/**
|
|
24
|
+
* Cached escrow authority PDA bump (L-02). Set during post_submit;
|
|
25
|
+
* 0 for non-escrow intents. Avoids recomputing find_program_address
|
|
26
|
+
* in auto_sign_escrow on every completion/rejection.
|
|
27
|
+
*/
|
|
28
|
+
escrowBump: number;
|
|
29
|
+
};
|
|
30
|
+
export type IntentArgs = {
|
|
31
|
+
id: number | bigint;
|
|
32
|
+
jobId: number | bigint;
|
|
33
|
+
actor: Address;
|
|
34
|
+
isEscrow: boolean;
|
|
35
|
+
isSigned: boolean;
|
|
36
|
+
from: Address;
|
|
37
|
+
token: Address;
|
|
38
|
+
amount: number | bigint;
|
|
39
|
+
recipient: Address;
|
|
40
|
+
bump: number;
|
|
41
|
+
/**
|
|
42
|
+
* Cached escrow authority PDA bump (L-02). Set during post_submit;
|
|
43
|
+
* 0 for non-escrow intents. Avoids recomputing find_program_address
|
|
44
|
+
* in auto_sign_escrow on every completion/rejection.
|
|
45
|
+
*/
|
|
46
|
+
escrowBump: number;
|
|
47
|
+
};
|
|
48
|
+
/** Gets the encoder for {@link IntentArgs} account data. */
|
|
49
|
+
export declare function getIntentEncoder(): FixedSizeEncoder<IntentArgs>;
|
|
50
|
+
/** Gets the decoder for {@link Intent} account data. */
|
|
51
|
+
export declare function getIntentDecoder(): FixedSizeDecoder<Intent>;
|
|
52
|
+
/** Gets the codec for {@link Intent} account data. */
|
|
53
|
+
export declare function getIntentCodec(): FixedSizeCodec<IntentArgs, Intent>;
|
|
54
|
+
export declare function decodeIntent<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Intent, TAddress>;
|
|
55
|
+
export declare function decodeIntent<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Intent, TAddress>;
|
|
56
|
+
export declare function fetchIntent<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Intent, TAddress>>;
|
|
57
|
+
export declare function fetchMaybeIntent<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Intent, TAddress>>;
|
|
58
|
+
export declare function fetchAllIntent(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Intent>[]>;
|
|
59
|
+
export declare function fetchAllMaybeIntent(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Intent>[]>;
|
|
60
|
+
export declare function getIntentSize(): number;
|
|
61
|
+
//# sourceMappingURL=intent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/intent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAgBpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,oBAAoB,yBAE/B,CAAC;AAEH,wBAAgB,2BAA2B,uBAE1C;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,aAAa,EAAE,kBAAkB,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IAC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AS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAI5B;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAGjC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBooleanDecoder, getBooleanEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
+
export const INTENT_DISCRIMINATOR = new Uint8Array([
|
|
10
|
+
247, 162, 35, 165, 254, 111, 129, 109,
|
|
11
|
+
]);
|
|
12
|
+
export function getIntentDiscriminatorBytes() {
|
|
13
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(INTENT_DISCRIMINATOR);
|
|
14
|
+
}
|
|
15
|
+
/** Gets the encoder for {@link IntentArgs} account data. */
|
|
16
|
+
export function getIntentEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
19
|
+
["id", getU64Encoder()],
|
|
20
|
+
["jobId", getU64Encoder()],
|
|
21
|
+
["actor", getAddressEncoder()],
|
|
22
|
+
["isEscrow", getBooleanEncoder()],
|
|
23
|
+
["isSigned", getBooleanEncoder()],
|
|
24
|
+
["from", getAddressEncoder()],
|
|
25
|
+
["token", getAddressEncoder()],
|
|
26
|
+
["amount", getU64Encoder()],
|
|
27
|
+
["recipient", getAddressEncoder()],
|
|
28
|
+
["bump", getU8Encoder()],
|
|
29
|
+
["escrowBump", getU8Encoder()],
|
|
30
|
+
]), (value) => ({ ...value, discriminator: INTENT_DISCRIMINATOR }));
|
|
31
|
+
}
|
|
32
|
+
/** Gets the decoder for {@link Intent} account data. */
|
|
33
|
+
export function getIntentDecoder() {
|
|
34
|
+
return getStructDecoder([
|
|
35
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
36
|
+
["id", getU64Decoder()],
|
|
37
|
+
["jobId", getU64Decoder()],
|
|
38
|
+
["actor", getAddressDecoder()],
|
|
39
|
+
["isEscrow", getBooleanDecoder()],
|
|
40
|
+
["isSigned", getBooleanDecoder()],
|
|
41
|
+
["from", getAddressDecoder()],
|
|
42
|
+
["token", getAddressDecoder()],
|
|
43
|
+
["amount", getU64Decoder()],
|
|
44
|
+
["recipient", getAddressDecoder()],
|
|
45
|
+
["bump", getU8Decoder()],
|
|
46
|
+
["escrowBump", getU8Decoder()],
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
/** Gets the codec for {@link Intent} account data. */
|
|
50
|
+
export function getIntentCodec() {
|
|
51
|
+
return combineCodec(getIntentEncoder(), getIntentDecoder());
|
|
52
|
+
}
|
|
53
|
+
export function decodeIntent(encodedAccount) {
|
|
54
|
+
return decodeAccount(encodedAccount, getIntentDecoder());
|
|
55
|
+
}
|
|
56
|
+
export async function fetchIntent(rpc, address, config) {
|
|
57
|
+
const maybeAccount = await fetchMaybeIntent(rpc, address, config);
|
|
58
|
+
assertAccountExists(maybeAccount);
|
|
59
|
+
return maybeAccount;
|
|
60
|
+
}
|
|
61
|
+
export async function fetchMaybeIntent(rpc, address, config) {
|
|
62
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address, config);
|
|
63
|
+
return decodeIntent(maybeAccount);
|
|
64
|
+
}
|
|
65
|
+
export async function fetchAllIntent(rpc, addresses, config) {
|
|
66
|
+
const maybeAccounts = await fetchAllMaybeIntent(rpc, addresses, config);
|
|
67
|
+
assertAccountsExist(maybeAccounts);
|
|
68
|
+
return maybeAccounts;
|
|
69
|
+
}
|
|
70
|
+
export async function fetchAllMaybeIntent(rpc, addresses, config) {
|
|
71
|
+
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|
|
72
|
+
return maybeAccounts.map((maybeAccount) => decodeIntent(maybeAccount));
|
|
73
|
+
}
|
|
74
|
+
export function getIntentSize() {
|
|
75
|
+
return 164;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=intent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/intent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,UAAU,CAAC;IACjD,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACtC,CAAC,CAAC;AAEH,MAAM,UA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aAAa,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export declare const PROVIDER_ESCROW_INTENT_ID_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getProviderEscrowIntentIdDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type ProviderEscrowIntentId = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
jobId: bigint;
|
|
14
|
+
intentId: bigint;
|
|
15
|
+
bump: number;
|
|
16
|
+
};
|
|
17
|
+
export type ProviderEscrowIntentIdArgs = {
|
|
18
|
+
jobId: number | bigint;
|
|
19
|
+
intentId: number | bigint;
|
|
20
|
+
bump: number;
|
|
21
|
+
};
|
|
22
|
+
/** Gets the encoder for {@link ProviderEscrowIntentIdArgs} account data. */
|
|
23
|
+
export declare function getProviderEscrowIntentIdEncoder(): FixedSizeEncoder<ProviderEscrowIntentIdArgs>;
|
|
24
|
+
/** Gets the decoder for {@link ProviderEscrowIntentId} account data. */
|
|
25
|
+
export declare function getProviderEscrowIntentIdDecoder(): FixedSizeDecoder<ProviderEscrowIntentId>;
|
|
26
|
+
/** Gets the codec for {@link ProviderEscrowIntentId} account data. */
|
|
27
|
+
export declare function getProviderEscrowIntentIdCodec(): FixedSizeCodec<ProviderEscrowIntentIdArgs, ProviderEscrowIntentId>;
|
|
28
|
+
export declare function decodeProviderEscrowIntentId<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ProviderEscrowIntentId, TAddress>;
|
|
29
|
+
export declare function decodeProviderEscrowIntentId<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ProviderEscrowIntentId, TAddress>;
|
|
30
|
+
export declare function fetchProviderEscrowIntentId<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ProviderEscrowIntentId, TAddress>>;
|
|
31
|
+
export declare function fetchMaybeProviderEscrowIntentId<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ProviderEscrowIntentId, TAddress>>;
|
|
32
|
+
export declare function fetchAllProviderEscrowIntentId(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ProviderEscrowIntentId>[]>;
|
|
33
|
+
export declare function fetchAllMaybeProviderEscrowIntentId(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ProviderEscrowIntentId>[]>;
|
|
34
|
+
export declare function getProviderEscrowIntentIdSize(): number;
|
|
35
|
+
//# sourceMappingURL=providerEscrowIntentId.d.ts.map
|
package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerEscrowIntentId.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAYpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,uCAAuC,yBAElD,CAAC;AAEH,wBAAgB,2CAA2C,uBAI1D;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,kBAAkB,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,4EAA4E;AAC5E,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,0BAA0B,CAAC,CAa/F;AAED,wEAAwE;AACxE,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAO3F;AAED,sEAAsE;AACtE,wBAAgB,8BAA8B,IAAI,cAAc,CAC9D,0BAA0B,EAC1B,sBAAsB,CACvB,CAKA;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAC3E,cAAc,EAAE,cAAc,CAAC,QAAQ,CAAC,GACvC,O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AED,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD"}
|
|
@@ -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 { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
+
export const PROVIDER_ESCROW_INTENT_ID_DISCRIMINATOR = new Uint8Array([
|
|
10
|
+
132, 9, 212, 245, 34, 170, 187, 104,
|
|
11
|
+
]);
|
|
12
|
+
export function getProviderEscrowIntentIdDiscriminatorBytes() {
|
|
13
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(PROVIDER_ESCROW_INTENT_ID_DISCRIMINATOR);
|
|
14
|
+
}
|
|
15
|
+
/** Gets the encoder for {@link ProviderEscrowIntentIdArgs} account data. */
|
|
16
|
+
export function getProviderEscrowIntentIdEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
19
|
+
["jobId", getU64Encoder()],
|
|
20
|
+
["intentId", getU64Encoder()],
|
|
21
|
+
["bump", getU8Encoder()],
|
|
22
|
+
]), (value) => ({
|
|
23
|
+
...value,
|
|
24
|
+
discriminator: PROVIDER_ESCROW_INTENT_ID_DISCRIMINATOR,
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
/** Gets the decoder for {@link ProviderEscrowIntentId} account data. */
|
|
28
|
+
export function getProviderEscrowIntentIdDecoder() {
|
|
29
|
+
return getStructDecoder([
|
|
30
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
31
|
+
["jobId", getU64Decoder()],
|
|
32
|
+
["intentId", getU64Decoder()],
|
|
33
|
+
["bump", getU8Decoder()],
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
/** Gets the codec for {@link ProviderEscrowIntentId} account data. */
|
|
37
|
+
export function getProviderEscrowIntentIdCodec() {
|
|
38
|
+
return combineCodec(getProviderEscrowIntentIdEncoder(), getProviderEscrowIntentIdDecoder());
|
|
39
|
+
}
|
|
40
|
+
export function decodeProviderEscrowIntentId(encodedAccount) {
|
|
41
|
+
return decodeAccount(encodedAccount, getProviderEscrowIntentIdDecoder());
|
|
42
|
+
}
|
|
43
|
+
export async function fetchProviderEscrowIntentId(rpc, address, config) {
|
|
44
|
+
const maybeAccount = await fetchMaybeProviderEscrowIntentId(rpc, address, config);
|
|
45
|
+
assertAccountExists(maybeAccount);
|
|
46
|
+
return maybeAccount;
|
|
47
|
+
}
|
|
48
|
+
export async function fetchMaybeProviderEscrowIntentId(rpc, address, config) {
|
|
49
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address, config);
|
|
50
|
+
return decodeProviderEscrowIntentId(maybeAccount);
|
|
51
|
+
}
|
|
52
|
+
export async function fetchAllProviderEscrowIntentId(rpc, addresses, config) {
|
|
53
|
+
const maybeAccounts = await fetchAllMaybeProviderEscrowIntentId(rpc, addresses, config);
|
|
54
|
+
assertAccountsExist(maybeAccounts);
|
|
55
|
+
return maybeAccounts;
|
|
56
|
+
}
|
|
57
|
+
export async function fetchAllMaybeProviderEscrowIntentId(rpc, addresses, config) {
|
|
58
|
+
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|
|
59
|
+
return maybeAccounts.map((maybeAccount) => decodeProviderEscrowIntentId(maybeAccount));
|
|
60
|
+
}
|
|
61
|
+
export function getProviderEscrowIntentIdSize() {
|
|
62
|
+
return 25;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=providerEscrowIntentId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerEscrowIntentId.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,uCAAuC,GAAG,IAAI,UAAU,CAAC;IACpE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,2CAA2C;IACzD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,uCAAuC,CACxC,CAAC;AACJ,CAAC;AAeD,4EAA4E;AAC5E,MAAM,UAAU,gCAAgC;IAC9C,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;QAC1B,CAAC,UAAU,EAAE,aAAa,EAAE,CAAC;QAC7B,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC;KACzB,CAAC,EACF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACV,GAAG,KAAK;QACR,aAAa,EAAE,uCAAuC;KACvD,CAAC,CACH,CAAC;AACJ,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,gCAAgC;IAC9C,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE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5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CACxC,4BAA4B,CAAC,YAAY,CAAC,CAC3C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B;IAC3C,OAAO,EAAE,CAAC;AACZ,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
|
+
export * from "./accounts/index.js";
|
|
9
|
+
export * from "./instructions/index.js";
|
|
10
|
+
export * from "./pdas/index.js";
|
|
11
|
+
export * from "./programs/index.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/solana/generated/fund-transfer-hook/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|