Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
refactor(experimental): export every type from the sham
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Nov 20, 2023
1 parent b575706 commit ffe4c15
Showing 1 changed file with 285 additions and 0 deletions.
285 changes: 285 additions & 0 deletions packages/library-legacy-sham/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,288 @@
/**
* Here we re-export all of the types that we haven't provided sham interfaces for. In doing so,
* consumers' projects will typecheck as though they're using the real legacy library, but they may
* not work if they also depend on the implementation that underlies the type.
*/
export type {
Account,
AccountBalancePair,
AccountChangeCallback,
AccountInfo,
AccountKeysFromLookups,
AccountMeta,
AccountsModeBlockResponse,
AddressLookupTableAccount,
AddressLookupTableAccountArgs,
AddressLookupTableInstruction,
AddressLookupTableProgram,
AddressLookupTableState,
AdvanceNonceParams,
AllocateParams,
AllocateWithSeedParams,
AssignParams,
AssignWithSeedParams,
Authorized,
AuthorizedVoter,
AuthorizeNonceParams,
AuthorizeStakeParams,
AuthorizeVoteParams,
AuthorizeVoteWithSeedParams,
AuthorizeWithSeedStakeParams,
BaseTransactionConfirmationStrategy,
Blockhash,
BlockhashWithExpiryBlockHeight,
BlockheightBasedTransactionConfirmationStrategy,
BlockProduction,
BlockResponse,
BlockSignatures,
BlockTimestamp,
BPF_LOADER_DEPRECATED_PROGRAM_ID,
BPF_LOADER_PROGRAM_ID,
BpfLoader,
CloseLookupTableParams,
Cluster,
Commitment,
CompiledInnerInstruction,
CompiledInstruction,
CompileLegacyArgs,
CompileV0Args,
ComputeBudgetInstruction,
ComputeBudgetInstructionType,
ComputeBudgetProgram,
ConfirmedBlock,
ConfirmedSignatureInfo,
ConfirmedSignaturesForAddress2Options,
ConfirmedTransaction,
ConfirmedTransactionMeta,
ConfirmOptions,
Connection,
ConnectionConfig,
ContactInfo,
Context,
CreateAccountParams,
CreateAccountWithSeedParams,
CreateEd25519InstructionWithPrivateKeyParams,
CreateEd25519InstructionWithPublicKeyParams,
CreateLookupTableParams,
CreateNonceAccountParams,
CreateNonceAccountWithSeedParams,
CreateSecp256k1InstructionWithEthAddressParams,
CreateSecp256k1InstructionWithPrivateKeyParams,
CreateSecp256k1InstructionWithPublicKeyParams,
CreateStakeAccountParams,
CreateStakeAccountWithSeedParams,
CreateVoteAccountParams,
DataSizeFilter,
DataSlice,
DeactivateLookupTableParams,
DeactivateStakeParams,
DecodedTransferInstruction,
DecodedTransferWithSeedInstruction,
DecompileArgs,
DelegateStakeParams,
DurableNonce,
DurableNonceTransactionConfirmationStrategy,
Ed25519Keypair,
Ed25519Program,
Enum,
EpochCredits,
EpochInfo,
EpochSchedule,
ExtendLookupTableParams,
FeeCalculator,
FetchFn,
FetchMiddleware,
Finality,
FreezeLookupTableParams,
GetAccountInfoConfig,
GetAccountKeysArgs,
GetBalanceConfig,
GetBlockConfig,
GetBlockHeightConfig,
GetBlockProductionConfig,
GetEpochInfoConfig,
GetInflationRewardConfig,
GetLargestAccountsConfig,
GetLatestBlockhashConfig,
GetMultipleAccountsConfig,
GetNonceAndContextConfig,
GetNonceConfig,
GetParsedProgramAccountsConfig,
GetProgramAccountsConfig,
GetProgramAccountsFilter,
GetProgramAccountsResponse,
GetRecentPrioritizationFeesConfig,
GetSlotConfig,
GetSlotLeaderConfig,
GetStakeActivationConfig,
GetStakeMinimumDelegationConfig,
GetSupplyConfig,
GetTokenAccountsByOwnerConfig,
GetTransactionConfig,
GetTransactionCountConfig,
GetVersionedBlockConfig,
GetVersionedTransactionConfig,
HttpHeaders,
InflationGovernor,
InflationRate,
InflationReward,
Info,
InitializeAccountParams,
InitializeNonceParams,
InitializeStakeParams,
IsBlockhashValidConfig,
KeyedAccountInfo,
Keypair,
LargestAccountsFilter,
LeaderSchedule,
LoadedAddresses,
Loader,
Lockout,
Lockup,
Logs,
LogsCallback,
LogsFilter,
LookupTableInstructionType,
MemcmpFilter,
MergeStakeParams,
Message,
MessageAccountKeys,
MessageAddressTableLookup,
MessageArgs,
MessageCompiledInstruction,
MessageHeader,
MessageV0,
MessageV0Args,
NonceAccount,
NonceInformation,
NoneModeBlockResponse,
ParsedAccountData,
ParsedAccountsModeBlockResponse,
ParsedAddressTableLookup,
ParsedBlockResponse,
ParsedConfirmedTransaction,
ParsedConfirmedTransactionMeta,
ParsedInnerInstruction,
ParsedInstruction,
ParsedMessage,
ParsedMessageAccount,
ParsedNoneModeBlockResponse,
ParsedTransaction,
ParsedTransactionMeta,
ParsedTransactionWithMeta,
PartiallyDecodedInstruction,
PerfSample,
PriorVoter,
ProgramAccountChangeCallback,
PublicKey,
PublicKeyData,
PublicKeyInitData,
RecentPrioritizationFees,
RequestHeapFrameParams,
RequestUnitsParams,
RootChangeCallback,
RpcResponseAndContext,
Secp256k1Program,
sendAndConfirmRawTransaction,
sendAndConfirmTransaction,
SendOptions,
SendTransactionError,
SerializeConfig,
SetComputeUnitLimitParams,
SetComputeUnitPriceParams,
SignaturePubkeyPair,
SignatureReceivedNotification,
SignatureResult,
SignatureResultCallback,
SignaturesForAddressOptions,
SignatureStatus,
SignatureStatusConfig,
SignatureStatusNotification,
SignatureSubscriptionCallback,
SignatureSubscriptionOptions,
Signer,
SimulatedTransactionAccountInfo,
SimulatedTransactionResponse,
SimulateTransactionConfig,
SlotChangeCallback,
SlotInfo,
SlotUpdate,
SlotUpdateCallback,
SOLANA_SCHEMA,
SolanaJSONRPCError,
SolanaJSONRPCErrorCode,
SolanaJSONRPCErrorCodeEnum,
SplitStakeParams,
SplitStakeWithSeedParams,
STAKE_CONFIG_ID,
StakeActivationData,
StakeAuthorizationLayout,
StakeAuthorizationType,
StakeInstruction,
StakeInstructionType,
StakeProgram,
Struct,
Supply,
SystemInstruction,
SystemInstructionType,
SystemProgram,
SYSVAR_CLOCK_PUBKEY,
SYSVAR_EPOCH_SCHEDULE_PUBKEY,
SYSVAR_INSTRUCTIONS_PUBKEY,
SYSVAR_RECENT_BLOCKHASHES_PUBKEY,
SYSVAR_RENT_PUBKEY,
SYSVAR_REWARDS_PUBKEY,
SYSVAR_SLOT_HASHES_PUBKEY,
SYSVAR_SLOT_HISTORY_PUBKEY,
SYSVAR_STAKE_HISTORY_PUBKEY,
TokenAccountBalancePair,
TokenAccountsFilter,
TokenAmount,
TokenBalance,
TransactionBlockhashCtor,
TransactionConfirmationStatus,
TransactionConfirmationStrategy,
TransactionCtorFields_DEPRECATED,
TransactionCtorFields,
TransactionError,
TransactionExpiredBlockheightExceededError,
TransactionExpiredNonceInvalidError,
TransactionExpiredTimeoutError,
TransactionInstruction,
TransactionInstructionCtorFields,
TransactionMessage,
TransactionMessageArgs,
TransactionNonceCtor,
TransactionResponse,
TransactionReturnData,
TransactionReturnDataEncoding,
TransactionSignature,
TransactionStatus,
TransactionVersion,
TransferParams,
TransferWithSeedParams,
VALIDATOR_INFO_KEY,
ValidatorInfo,
Version,
VersionedAccountsModeBlockResponse,
VersionedBlockResponse,
VersionedNoneModeBlockResponse,
VersionedTransactionResponse,
VOTE_PROGRAM_ID,
VoteAccount,
VoteAccountInfo,
VoteAccountStatus,
VoteAuthorizationLayout,
VoteAuthorizationType,
VoteInit,
VoteInstruction,
VoteInstructionType,
VoteProgram,
WithdrawFromVoteAccountParams,
WithdrawNonceParams,
WithdrawStakeParams,
} from '@solana/web3.js-legacy/declarations';

export * from './key-pair';
export * from './public-key';
export const LAMPORTS_PER_SOL = 1_000_000_000;
Expand Down

0 comments on commit ffe4c15

Please sign in to comment.