@solana/signers
Advanced tools
Comparing version 2.0.0-experimental.89b469e to 2.0.0-experimental.9855bfb
import { AccountRole, IAccountLookupMeta, IAccountMeta, IInstruction } from '@solana/instructions'; | ||
import { BaseTransaction, TransactionVersion } from '@solana/transactions'; | ||
import { TransactionSigner } from './transaction-signer'; | ||
import { TransactionSigner } from './transaction-signer.js'; | ||
/** An extension of the IAccountMeta type that keeps track of its transaction signer. */ | ||
@@ -5,0 +5,0 @@ export interface IAccountSignerMeta<TAddress extends string = string, TSigner extends TransactionSigner = TransactionSigner> extends IAccountMeta<TAddress> { |
import { IInstruction } from '@solana/instructions'; | ||
import { BaseTransaction } from '@solana/transactions'; | ||
import { IInstructionWithSigners, ITransactionWithSigners } from './account-signer-meta'; | ||
import { TransactionSigner } from './transaction-signer'; | ||
import { IInstructionWithSigners, ITransactionWithSigners } from './account-signer-meta.js'; | ||
import { TransactionSigner } from './transaction-signer.js'; | ||
/** Attaches the provided signers to the account metas of an instruction when applicable. */ | ||
@@ -6,0 +6,0 @@ export declare function addSignersToInstruction<TInstruction extends IInstruction>(signers: TransactionSigner[], instruction: TInstruction | (TInstruction & IInstructionWithSigners)): TInstruction & IInstructionWithSigners; |
@@ -1,5 +0,5 @@ | ||
import { MessageSigner } from './message-signer'; | ||
import { TransactionSigner } from './transaction-signer'; | ||
import { MessageSigner } from './message-signer.js'; | ||
import { TransactionSigner } from './transaction-signer.js'; | ||
/** Removes all duplicated signers from a provided array by comparing their addresses. */ | ||
export declare function deduplicateSigners<TSigner extends MessageSigner | TransactionSigner>(signers: readonly TSigner[]): readonly TSigner[]; | ||
//# sourceMappingURL=deduplicate-signers.d.ts.map |
@@ -1,16 +0,16 @@ | ||
export * from './account-signer-meta'; | ||
export * from './add-signers'; | ||
export * from './keypair-signer'; | ||
export * from './message-modifying-signer'; | ||
export * from './message-partial-signer'; | ||
export * from './message-signer'; | ||
export * from './noop-signer'; | ||
export * from './sign-transaction'; | ||
export * from './signable-message'; | ||
export * from './transaction-modifying-signer'; | ||
export * from './transaction-partial-signer'; | ||
export * from './transaction-sending-signer'; | ||
export * from './transaction-signer'; | ||
export * from './transaction-with-single-sending-signer'; | ||
export * from './types'; | ||
export * from './account-signer-meta.js'; | ||
export * from './add-signers.js'; | ||
export * from './keypair-signer.js'; | ||
export * from './message-modifying-signer.js'; | ||
export * from './message-partial-signer.js'; | ||
export * from './message-signer.js'; | ||
export * from './noop-signer.js'; | ||
export * from './sign-transaction.js'; | ||
export * from './signable-message.js'; | ||
export * from './transaction-modifying-signer.js'; | ||
export * from './transaction-partial-signer.js'; | ||
export * from './transaction-sending-signer.js'; | ||
export * from './transaction-signer.js'; | ||
export * from './transaction-with-single-sending-signer.js'; | ||
export * from './types.js'; | ||
//# sourceMappingURL=index.d.ts.map |
import { Address } from '@solana/addresses'; | ||
import { MessagePartialSigner } from './message-partial-signer'; | ||
import { TransactionPartialSigner } from './transaction-partial-signer'; | ||
import { MessagePartialSigner } from './message-partial-signer.js'; | ||
import { TransactionPartialSigner } from './transaction-partial-signer.js'; | ||
/** Defines a signer capable of signing messages and transactions using a CryptoKeyPair. */ | ||
@@ -5,0 +5,0 @@ export type KeyPairSigner<TAddress extends string = string> = MessagePartialSigner<TAddress> & TransactionPartialSigner<TAddress> & { |
import { Address } from '@solana/addresses'; | ||
import { SignableMessage } from './signable-message'; | ||
import { BaseSignerConfig } from './types'; | ||
import { SignableMessage } from './signable-message.js'; | ||
import { BaseSignerConfig } from './types.js'; | ||
export type MessageModifyingSignerConfig = BaseSignerConfig; | ||
@@ -5,0 +5,0 @@ /** Defines a signer capable of signing messages. */ |
import { Address } from '@solana/addresses'; | ||
import { SignableMessage } from './signable-message'; | ||
import { BaseSignerConfig, SignatureDictionary } from './types'; | ||
import { SignableMessage } from './signable-message.js'; | ||
import { BaseSignerConfig, SignatureDictionary } from './types.js'; | ||
export type MessagePartialSignerConfig = BaseSignerConfig; | ||
@@ -5,0 +5,0 @@ /** Defines a signer capable of signing messages. */ |
import { Address } from '@solana/addresses'; | ||
import { MessageModifyingSigner } from './message-modifying-signer'; | ||
import { MessagePartialSigner } from './message-partial-signer'; | ||
import { MessageModifyingSigner } from './message-modifying-signer.js'; | ||
import { MessagePartialSigner } from './message-partial-signer.js'; | ||
/** Defines a signer capable of signing messages. */ | ||
@@ -5,0 +5,0 @@ export type MessageSigner<TAddress extends string = string> = MessagePartialSigner<TAddress> | MessageModifyingSigner<TAddress>; |
import { Address } from '@solana/addresses'; | ||
import { MessagePartialSigner } from './message-partial-signer'; | ||
import { TransactionPartialSigner } from './transaction-partial-signer'; | ||
import { MessagePartialSigner } from './message-partial-signer.js'; | ||
import { TransactionPartialSigner } from './transaction-partial-signer.js'; | ||
/** Defines a no-operation signer that pretends to partially sign messages and transactions. */ | ||
@@ -5,0 +5,0 @@ export type NoopSigner<TAddress extends string = string> = MessagePartialSigner<TAddress> & TransactionPartialSigner<TAddress>; |
import { SignatureBytes } from '@solana/keys'; | ||
import { CompilableTransaction, IFullySignedTransaction, ITransactionWithSignatures } from '@solana/transactions'; | ||
import { ITransactionWithSigners } from './account-signer-meta'; | ||
import { ITransactionWithSingleSendingSigner } from './transaction-with-single-sending-signer'; | ||
import { ITransactionWithSigners } from './account-signer-meta.js'; | ||
import { ITransactionWithSingleSendingSigner } from './transaction-with-single-sending-signer.js'; | ||
type CompilableTransactionWithSigners = CompilableTransaction & ITransactionWithSigners & Partial<ITransactionWithSignatures>; | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { SignatureDictionary } from './types'; | ||
import { SignatureDictionary } from './types.js'; | ||
/** Defines a message that needs signing and its current set of signatures if any. */ | ||
@@ -3,0 +3,0 @@ export type SignableMessage = Readonly<{ |
import { Address } from '@solana/addresses'; | ||
import { CompilableTransaction } from '@solana/transactions'; | ||
import { BaseSignerConfig } from './types'; | ||
import { BaseSignerConfig } from './types.js'; | ||
export type TransactionModifyingSignerConfig = BaseSignerConfig; | ||
@@ -5,0 +5,0 @@ /** Defines a signer capable of signing transactions. */ |
import { Address } from '@solana/addresses'; | ||
import { CompilableTransaction } from '@solana/transactions'; | ||
import { BaseSignerConfig, SignatureDictionary } from './types'; | ||
import { BaseSignerConfig, SignatureDictionary } from './types.js'; | ||
export type TransactionPartialSignerConfig = BaseSignerConfig; | ||
@@ -5,0 +5,0 @@ /** Defines a signer capable of signing transactions. */ |
import { Address } from '@solana/addresses'; | ||
import { SignatureBytes } from '@solana/keys'; | ||
import { CompilableTransaction } from '@solana/transactions'; | ||
import { BaseSignerConfig } from './types'; | ||
import { BaseSignerConfig } from './types.js'; | ||
export type TransactionSendingSignerConfig = BaseSignerConfig; | ||
@@ -6,0 +6,0 @@ /** Defines a signer capable of signing and sending transactions simultaneously. */ |
import { Address } from '@solana/addresses'; | ||
import { TransactionModifyingSigner } from './transaction-modifying-signer'; | ||
import { TransactionPartialSigner } from './transaction-partial-signer'; | ||
import { TransactionSendingSigner } from './transaction-sending-signer'; | ||
import { TransactionModifyingSigner } from './transaction-modifying-signer.js'; | ||
import { TransactionPartialSigner } from './transaction-partial-signer.js'; | ||
import { TransactionSendingSigner } from './transaction-sending-signer.js'; | ||
/** Defines a signer capable of signing transactions. */ | ||
@@ -6,0 +6,0 @@ export type TransactionSigner<TAddress extends string = string> = TransactionPartialSigner<TAddress> | TransactionModifyingSigner<TAddress> | TransactionSendingSigner<TAddress>; |
import { CompilableTransaction } from '@solana/transactions'; | ||
import { ITransactionWithSigners } from './account-signer-meta'; | ||
import { ITransactionWithSigners } from './account-signer-meta.js'; | ||
/** Defines a transaction with exactly one {@link TransactionSendingSigner}. */ | ||
@@ -4,0 +4,0 @@ export type ITransactionWithSingleSendingSigner = ITransactionWithSigners & { |
{ | ||
"name": "@solana/signers", | ||
"version": "2.0.0-experimental.89b469e", | ||
"version": "2.0.0-experimental.9855bfb", | ||
"description": "An abstraction layer over signing messages and transactions in Solana", | ||
@@ -52,6 +52,6 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-experimental.89b469e", | ||
"@solana/instructions": "2.0.0-experimental.89b469e", | ||
"@solana/keys": "2.0.0-experimental.89b469e", | ||
"@solana/transactions": "2.0.0-experimental.89b469e" | ||
"@solana/addresses": "2.0.0-experimental.9855bfb", | ||
"@solana/instructions": "2.0.0-experimental.9855bfb", | ||
"@solana/keys": "2.0.0-experimental.9855bfb", | ||
"@solana/transactions": "2.0.0-experimental.9855bfb" | ||
}, | ||
@@ -61,3 +61,3 @@ "devDependencies": { | ||
"@swc/jest": "^0.2.29", | ||
"@types/jest": "^29.5.6", | ||
"@types/jest": "^29.5.11", | ||
"@typescript-eslint/eslint-plugin": "^6.7.0", | ||
@@ -93,3 +93,3 @@ "@typescript-eslint/parser": "^6.3.0", | ||
"compile:js": "tsup --config build-scripts/tsup.config.library.ts", | ||
"compile:typedefs": "tsc -p ./tsconfig.declarations.json", | ||
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs", | ||
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch", | ||
@@ -96,0 +96,0 @@ "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
595923
24
+ Added@solana/addresses@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/assertions@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/codecs-data-structures@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/functional@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/instructions@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/keys@2.0.0-experimental.9855bfb(transitive)
+ Added@solana/transactions@2.0.0-experimental.9855bfb(transitive)
- Removed@solana/addresses@2.0.0-experimental.89b469e(transitive)
- Removed@solana/assertions@2.0.0-experimental.89b469e(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.89b469e(transitive)
- Removed@solana/codecs-data-structures@2.0.0-experimental.89b469e(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.89b469e(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.89b469e(transitive)
- Removed@solana/functional@2.0.0-experimental.89b469e(transitive)
- Removed@solana/instructions@2.0.0-experimental.89b469e(transitive)
- Removed@solana/keys@2.0.0-experimental.89b469e(transitive)
- Removed@solana/transactions@2.0.0-experimental.89b469e(transitive)