@streamflow/common 11.0.0-alpha.p334.45cbb4e → 11.0.0-alpha.p334.7c3dbf7

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.
@@ -2,7 +2,7 @@ import * as _solana_web3_js from '@solana/web3.js';
2
2
  import { PublicKey, MemcmpFilter, Connection, TransactionInstruction, VersionedTransaction, AccountInfo, BlockhashWithExpiryBlockHeight, Context, Commitment, Keypair, Transaction, AddressLookupTableAccount, RpcResponseAndContext, SimulatedTransactionResponse, SignatureStatus } from '@solana/web3.js';
3
3
  import BN from 'bn.js';
4
4
  import PQueue from 'p-queue';
5
- import { IdlTypes, IdlAccounts, Program } from '@coral-xyz/anchor';
5
+ import { Idl, Program, IdlTypes, IdlAccounts } from '@coral-xyz/anchor';
6
6
  import { Mint } from '@solana/spl-token';
7
7
  import { SignerWalletAdapter } from '@solana/wallet-adapter-base';
8
8
 
@@ -1079,6 +1079,11 @@ declare enum ICluster {
1079
1079
  Testnet = "testnet",
1080
1080
  Local = "local"
1081
1081
  }
1082
+ type IdlInstruction<IDL extends Idl, Name extends IDL["instructions"][number]["name"]> = Extract<IDL["instructions"][number], {
1083
+ name: Name;
1084
+ }>;
1085
+ type IdlAccountsOfMethod<IDL extends Idl, M extends keyof Program<IDL>["methods"]> = Parameters<ReturnType<Program<IDL>["methods"][M]>["accounts"]>[0];
1086
+ type IdlArgsOfMethod<IDL extends Idl, M extends keyof Program<IDL>["methods"]> = Parameters<Program<IDL>["methods"][M]>;
1082
1087
  type PartnerOracleTypes = IdlTypes<PartnerOracle>;
1083
1088
  type PartnerOracleAccounts = IdlAccounts<PartnerOracle>;
1084
1089
  /**
@@ -1328,4 +1333,4 @@ type UnwrapAutoSimulate<T extends IInteractExt = IInteractExt> = Omit<T, "comput
1328
1333
  };
1329
1334
  declare const unwrapExecutionParams: <T extends IInteractExt>({ computeLimit, ...rest }: T, connection: Connection) => UnwrapAutoSimulate<T>;
1330
1335
 
1331
- export { type Account, type AtaParams, type CheckAssociatedTokenAccountsData, type ComputeLimitEstimate, type ComputePriceEstimate, type ConfirmationParams, ContractError, ICluster, type IInteractExt, type IProgramAccount, type ITransactionExt, type ITransactionExtResolved, type ITransactionResult, type PartnerOracle, type PartnerOracleAccounts, type PartnerOracleTypes, type ThrottleParams, type TransactionExecutionParams, TransactionFailedError, ata, ataBatchExist, buildPartnerOracle, buildSendThrottler, checkOrCreateAtaBatch, confirmAndEnsureTransaction, createAndEstimateTransaction, createAtaBatch, createVersionedTransaction, deserializeRawTransaction, enrichAtaParams, estimateComputeUnitPrice, executeMultipleTransactions, executeTransaction, generateCreateAtaBatchTx, getFilters, getMintAndProgram, getMultipleAccountsInfoBatched, getProgramAccounts, isSignerKeypair, isSignerWallet, isTransactionVersioned, pk, prepareBaseInstructions, prepareTransaction, prepareWrappedAccount, resolveTransactionAccounts, sendAndConfirmTransaction, signAndExecuteTransaction, signTransaction, simulateTransaction, unwrapExecutionParams };
1336
+ export { type Account, type AtaParams, type CheckAssociatedTokenAccountsData, type ComputeLimitEstimate, type ComputePriceEstimate, type ConfirmationParams, ContractError, ICluster, type IInteractExt, type IProgramAccount, type ITransactionExt, type ITransactionExtResolved, type ITransactionResult, type IdlAccountsOfMethod, type IdlArgsOfMethod, type IdlInstruction, type PartnerOracle, type PartnerOracleAccounts, type PartnerOracleTypes, type ThrottleParams, type TransactionExecutionParams, TransactionFailedError, ata, ataBatchExist, buildPartnerOracle, buildSendThrottler, checkOrCreateAtaBatch, confirmAndEnsureTransaction, createAndEstimateTransaction, createAtaBatch, createVersionedTransaction, deserializeRawTransaction, enrichAtaParams, estimateComputeUnitPrice, executeMultipleTransactions, executeTransaction, generateCreateAtaBatchTx, getFilters, getMintAndProgram, getMultipleAccountsInfoBatched, getProgramAccounts, isSignerKeypair, isSignerWallet, isTransactionVersioned, pk, prepareBaseInstructions, prepareTransaction, prepareWrappedAccount, resolveTransactionAccounts, sendAndConfirmTransaction, signAndExecuteTransaction, signTransaction, simulateTransaction, unwrapExecutionParams };
@@ -1,5 +1,5 @@
1
1
  import { ICluster } from './solana/index.js';
2
- export { Account, AtaParams, CheckAssociatedTokenAccountsData, ComputeLimitEstimate, ComputePriceEstimate, ConfirmationParams, ContractError, IInteractExt, IProgramAccount, ITransactionExt, ITransactionExtResolved, ITransactionResult, PartnerOracle, PartnerOracleAccounts, PartnerOracleTypes, ThrottleParams, TransactionExecutionParams, TransactionFailedError, ata, ataBatchExist, buildPartnerOracle, buildSendThrottler, checkOrCreateAtaBatch, confirmAndEnsureTransaction, createAndEstimateTransaction, createAtaBatch, createVersionedTransaction, deserializeRawTransaction, enrichAtaParams, estimateComputeUnitPrice, executeMultipleTransactions, executeTransaction, generateCreateAtaBatchTx, getFilters, getMintAndProgram, getMultipleAccountsInfoBatched, getProgramAccounts, isSignerKeypair, isSignerWallet, isTransactionVersioned, pk, prepareBaseInstructions, prepareTransaction, prepareWrappedAccount, resolveTransactionAccounts, sendAndConfirmTransaction, signAndExecuteTransaction, signTransaction, simulateTransaction, unwrapExecutionParams } from './solana/index.js';
2
+ export { Account, AtaParams, CheckAssociatedTokenAccountsData, ComputeLimitEstimate, ComputePriceEstimate, ConfirmationParams, ContractError, IInteractExt, IProgramAccount, ITransactionExt, ITransactionExtResolved, ITransactionResult, IdlAccountsOfMethod, IdlArgsOfMethod, IdlInstruction, PartnerOracle, PartnerOracleAccounts, PartnerOracleTypes, ThrottleParams, TransactionExecutionParams, TransactionFailedError, ata, ataBatchExist, buildPartnerOracle, buildSendThrottler, checkOrCreateAtaBatch, confirmAndEnsureTransaction, createAndEstimateTransaction, createAtaBatch, createVersionedTransaction, deserializeRawTransaction, enrichAtaParams, estimateComputeUnitPrice, executeMultipleTransactions, executeTransaction, generateCreateAtaBatchTx, getFilters, getMintAndProgram, getMultipleAccountsInfoBatched, getProgramAccounts, isSignerKeypair, isSignerWallet, isTransactionVersioned, pk, prepareBaseInstructions, prepareTransaction, prepareWrappedAccount, resolveTransactionAccounts, sendAndConfirmTransaction, signAndExecuteTransaction, signTransaction, simulateTransaction, unwrapExecutionParams } from './solana/index.js';
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import BN from 'bn.js';
5
5
  import 'p-queue';