@solana/signers 2.0.0-experimental.025ef21

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.
Files changed (49) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +570 -0
  3. package/dist/index.browser.cjs +347 -0
  4. package/dist/index.browser.cjs.map +1 -0
  5. package/dist/index.browser.js +316 -0
  6. package/dist/index.browser.js.map +1 -0
  7. package/dist/index.native.js +316 -0
  8. package/dist/index.native.js.map +1 -0
  9. package/dist/index.node.cjs +347 -0
  10. package/dist/index.node.cjs.map +1 -0
  11. package/dist/index.node.js +316 -0
  12. package/dist/index.node.js.map +1 -0
  13. package/dist/types/account-signer-meta.d.ts +21 -0
  14. package/dist/types/account-signer-meta.d.ts.map +1 -0
  15. package/dist/types/add-signers.d.ts +9 -0
  16. package/dist/types/add-signers.d.ts.map +1 -0
  17. package/dist/types/deduplicate-signers.d.ts +5 -0
  18. package/dist/types/deduplicate-signers.d.ts.map +1 -0
  19. package/dist/types/fee-payer-signer.d.ts +10 -0
  20. package/dist/types/fee-payer-signer.d.ts.map +1 -0
  21. package/dist/types/index.d.ts +17 -0
  22. package/dist/types/index.d.ts.map +1 -0
  23. package/dist/types/keypair-signer.d.ts +22 -0
  24. package/dist/types/keypair-signer.d.ts.map +1 -0
  25. package/dist/types/message-modifying-signer.d.ts +20 -0
  26. package/dist/types/message-modifying-signer.d.ts.map +1 -0
  27. package/dist/types/message-partial-signer.d.ts +20 -0
  28. package/dist/types/message-partial-signer.d.ts.map +1 -0
  29. package/dist/types/message-signer.d.ts +16 -0
  30. package/dist/types/message-signer.d.ts.map +1 -0
  31. package/dist/types/noop-signer.d.ts +8 -0
  32. package/dist/types/noop-signer.d.ts.map +1 -0
  33. package/dist/types/sign-transaction.d.ts +33 -0
  34. package/dist/types/sign-transaction.d.ts.map +1 -0
  35. package/dist/types/signable-message.d.ts +12 -0
  36. package/dist/types/signable-message.d.ts.map +1 -0
  37. package/dist/types/transaction-modifying-signer.d.ts +20 -0
  38. package/dist/types/transaction-modifying-signer.d.ts.map +1 -0
  39. package/dist/types/transaction-partial-signer.d.ts +20 -0
  40. package/dist/types/transaction-partial-signer.d.ts.map +1 -0
  41. package/dist/types/transaction-sending-signer.d.ts +21 -0
  42. package/dist/types/transaction-sending-signer.d.ts.map +1 -0
  43. package/dist/types/transaction-signer.d.ts +17 -0
  44. package/dist/types/transaction-signer.d.ts.map +1 -0
  45. package/dist/types/transaction-with-single-sending-signer.d.ts +11 -0
  46. package/dist/types/transaction-with-single-sending-signer.d.ts.map +1 -0
  47. package/dist/types/types.d.ts +7 -0
  48. package/dist/types/types.d.ts.map +1 -0
  49. package/package.json +106 -0
@@ -0,0 +1,33 @@
1
+ import { SignatureBytes } from '@solana/keys';
2
+ import { CompilableTransaction, IFullySignedTransaction, ITransactionWithSignatures } from '@solana/transactions';
3
+ import { ITransactionWithSigners } from './account-signer-meta.js';
4
+ import { ITransactionWithSingleSendingSigner } from './transaction-with-single-sending-signer.js';
5
+ type CompilableTransactionWithSigners = CompilableTransaction & ITransactionWithSigners & Partial<ITransactionWithSignatures>;
6
+ /**
7
+ * Signs a transaction using any signers that may be stored in IAccountSignerMeta instruction accounts
8
+ * as well as any signers provided explicitly to this function.
9
+ * It will ignore TransactionSendingSigners since this function does not send the transaction.
10
+ */
11
+ export declare function partiallySignTransactionWithSigners<TTransaction extends CompilableTransactionWithSigners = CompilableTransactionWithSigners>(transaction: TTransaction, config?: {
12
+ abortSignal?: AbortSignal;
13
+ }): Promise<TTransaction & ITransactionWithSignatures>;
14
+ /**
15
+ * Signs a transaction using any signers that may be stored in IAccountSignerMeta instruction accounts
16
+ * as well as any signers provided explicitly to this function.
17
+ * It will assert that the transaction is fully signed before returning.
18
+ * It will ignore TransactionSendingSigners since this function does not send the transaction.
19
+ */
20
+ export declare function signTransactionWithSigners<TTransaction extends CompilableTransactionWithSigners = CompilableTransactionWithSigners>(transaction: TTransaction, config?: {
21
+ abortSignal?: AbortSignal;
22
+ }): Promise<TTransaction & IFullySignedTransaction>;
23
+ /**
24
+ * Signs and sends a transaction using any signers that may be stored in IAccountSignerMeta
25
+ * instruction accounts as well as any signers provided explicitly to this function.
26
+ * It will identify a single TransactionSendingSigners to use for sending the transaction, if any.
27
+ * Otherwise, it will send the transaction using the provided fallbackSender.
28
+ */
29
+ export declare function signAndSendTransactionWithSigners<TTransaction extends CompilableTransactionWithSigners & ITransactionWithSingleSendingSigner = CompilableTransactionWithSigners & ITransactionWithSingleSendingSigner>(transaction: TTransaction, config?: {
30
+ abortSignal?: AbortSignal;
31
+ }): Promise<SignatureBytes>;
32
+ export {};
33
+ //# sourceMappingURL=sign-transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-transaction.d.ts","sourceRoot":"","sources":["../../src/sign-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAEH,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA6B,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAM3F,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAE/F,KAAK,gCAAgC,GAAG,qBAAqB,GACzD,uBAAuB,GACvB,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAExC;;;;GAIG;AACH,wBAAsB,mCAAmC,CACrD,YAAY,SAAS,gCAAgC,GAAG,gCAAgC,EAExF,WAAW,EAAE,YAAY,EACzB,MAAM,GAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,GAC3C,OAAO,CAAC,YAAY,GAAG,0BAA0B,CAAC,CAOpD;AAED;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC5C,YAAY,SAAS,gCAAgC,GAAG,gCAAgC,EAExF,WAAW,EAAE,YAAY,EACzB,MAAM,GAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,GAC3C,OAAO,CAAC,YAAY,GAAG,uBAAuB,CAAC,CAIjD;AAED;;;;;GAKG;AACH,wBAAsB,iCAAiC,CACnD,YAAY,SAAS,gCAAgC,GACjD,mCAAmC,GAAG,gCAAgC,GAAG,mCAAmC,EAClH,WAAW,EAAE,YAAY,EAAE,MAAM,GAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CA0BhG"}
@@ -0,0 +1,12 @@
1
+ import { SignatureDictionary } from './types.js';
2
+ /** Defines a message that needs signing and its current set of signatures if any. */
3
+ export type SignableMessage = Readonly<{
4
+ content: Uint8Array;
5
+ signatures: SignatureDictionary;
6
+ }>;
7
+ /**
8
+ * Creates a signable message from a provided content.
9
+ * If a string is provided, it will be UTF-8 encoded.
10
+ */
11
+ export declare function createSignableMessage(content: string | Uint8Array, signatures?: SignatureDictionary): SignableMessage;
12
+ //# sourceMappingURL=signable-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signable-message.d.ts","sourceRoot":"","sources":["../../src/signable-message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,qFAAqF;AACrF,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACnC,OAAO,EAAE,UAAU,CAAC;IACpB,UAAU,EAAE,mBAAmB,CAAC;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,wBAAgB,qBAAqB,CACjC,OAAO,EAAE,MAAM,GAAG,UAAU,EAC5B,UAAU,GAAE,mBAAwB,GACrC,eAAe,CAKjB"}
@@ -0,0 +1,20 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { CompilableTransaction } from '@solana/transactions';
3
+ import { BaseSignerConfig } from './types.js';
4
+ export type TransactionModifyingSignerConfig = BaseSignerConfig;
5
+ /** Defines a signer capable of signing transactions. */
6
+ export type TransactionModifyingSigner<TAddress extends string = string> = Readonly<{
7
+ address: Address<TAddress>;
8
+ modifyAndSignTransactions<TTransaction extends CompilableTransaction>(transactions: readonly TTransaction[], config?: TransactionModifyingSignerConfig): Promise<readonly TTransaction[]>;
9
+ }>;
10
+ /** Checks whether the provided value implements the {@link TransactionModifyingSigner} interface. */
11
+ export declare function isTransactionModifyingSigner<TAddress extends string>(value: {
12
+ address: Address<TAddress>;
13
+ [key: string]: unknown;
14
+ }): value is TransactionModifyingSigner<TAddress>;
15
+ /** Asserts that the provided value implements the {@link TransactionModifyingSigner} interface. */
16
+ export declare function assertIsTransactionModifyingSigner<TAddress extends string>(value: {
17
+ address: Address<TAddress>;
18
+ [key: string]: unknown;
19
+ }): asserts value is TransactionModifyingSigner<TAddress>;
20
+ //# sourceMappingURL=transaction-modifying-signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-modifying-signer.d.ts","sourceRoot":"","sources":["../../src/transaction-modifying-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC;AAEhE,wDAAwD;AACxD,MAAM,MAAM,0BAA0B,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IAChF,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,yBAAyB,CAAC,YAAY,SAAS,qBAAqB,EAChE,YAAY,EAAE,SAAS,YAAY,EAAE,EACrC,MAAM,CAAC,EAAE,gCAAgC,GAC1C,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC;AAEH,qGAAqG;AACrG,wBAAgB,4BAA4B,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IACzE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,KAAK,IAAI,0BAA0B,CAAC,QAAQ,CAAC,CAEhD;AAED,mGAAmG;AACnG,wBAAgB,kCAAkC,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IAC/E,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,KAAK,IAAI,0BAA0B,CAAC,QAAQ,CAAC,CAKxD"}
@@ -0,0 +1,20 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { CompilableTransaction } from '@solana/transactions';
3
+ import { BaseSignerConfig, SignatureDictionary } from './types.js';
4
+ export type TransactionPartialSignerConfig = BaseSignerConfig;
5
+ /** Defines a signer capable of signing transactions. */
6
+ export type TransactionPartialSigner<TAddress extends string = string> = Readonly<{
7
+ address: Address<TAddress>;
8
+ signTransactions(transactions: readonly CompilableTransaction[], config?: TransactionPartialSignerConfig): Promise<readonly SignatureDictionary[]>;
9
+ }>;
10
+ /** Checks whether the provided value implements the {@link TransactionPartialSigner} interface. */
11
+ export declare function isTransactionPartialSigner<TAddress extends string>(value: {
12
+ address: Address<TAddress>;
13
+ [key: string]: unknown;
14
+ }): value is TransactionPartialSigner<TAddress>;
15
+ /** Asserts that the provided value implements the {@link TransactionPartialSigner} interface. */
16
+ export declare function assertIsTransactionPartialSigner<TAddress extends string>(value: {
17
+ address: Address<TAddress>;
18
+ [key: string]: unknown;
19
+ }): asserts value is TransactionPartialSigner<TAddress>;
20
+ //# sourceMappingURL=transaction-partial-signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-partial-signer.d.ts","sourceRoot":"","sources":["../../src/transaction-partial-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEhE,MAAM,MAAM,8BAA8B,GAAG,gBAAgB,CAAC;AAE9D,wDAAwD;AACxD,MAAM,MAAM,wBAAwB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IAC9E,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,gBAAgB,CACZ,YAAY,EAAE,SAAS,qBAAqB,EAAE,EAC9C,MAAM,CAAC,EAAE,8BAA8B,GACxC,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC,CAAC;CAC9C,CAAC,CAAC;AAEH,mGAAmG;AACnG,wBAAgB,0BAA0B,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IACvE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,KAAK,IAAI,wBAAwB,CAAC,QAAQ,CAAC,CAE9C;AAED,iGAAiG;AACjG,wBAAgB,gCAAgC,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IAC7E,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,KAAK,IAAI,wBAAwB,CAAC,QAAQ,CAAC,CAKtD"}
@@ -0,0 +1,21 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { SignatureBytes } from '@solana/keys';
3
+ import { CompilableTransaction } from '@solana/transactions';
4
+ import { BaseSignerConfig } from './types.js';
5
+ export type TransactionSendingSignerConfig = BaseSignerConfig;
6
+ /** Defines a signer capable of signing and sending transactions simultaneously. */
7
+ export type TransactionSendingSigner<TAddress extends string = string> = Readonly<{
8
+ address: Address<TAddress>;
9
+ signAndSendTransactions(transactions: readonly CompilableTransaction[], config?: TransactionSendingSignerConfig): Promise<readonly SignatureBytes[]>;
10
+ }>;
11
+ /** Checks whether the provided value implements the {@link TransactionSendingSigner} interface. */
12
+ export declare function isTransactionSendingSigner<TAddress extends string>(value: {
13
+ address: Address<TAddress>;
14
+ [key: string]: unknown;
15
+ }): value is TransactionSendingSigner<TAddress>;
16
+ /** Asserts that the provided value implements the {@link TransactionSendingSigner} interface. */
17
+ export declare function assertIsTransactionSendingSigner<TAddress extends string>(value: {
18
+ address: Address<TAddress>;
19
+ [key: string]: unknown;
20
+ }): asserts value is TransactionSendingSigner<TAddress>;
21
+ //# sourceMappingURL=transaction-sending-signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-sending-signer.d.ts","sourceRoot":"","sources":["../../src/transaction-sending-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,8BAA8B,GAAG,gBAAgB,CAAC;AAE9D,mFAAmF;AACnF,MAAM,MAAM,wBAAwB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IAC9E,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,uBAAuB,CACnB,YAAY,EAAE,SAAS,qBAAqB,EAAE,EAC9C,MAAM,CAAC,EAAE,8BAA8B,GACxC,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CAAC;CACzC,CAAC,CAAC;AAEH,mGAAmG;AACnG,wBAAgB,0BAA0B,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IACvE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,KAAK,IAAI,wBAAwB,CAAC,QAAQ,CAAC,CAE9C;AAED,iGAAiG;AACjG,wBAAgB,gCAAgC,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IAC7E,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,KAAK,IAAI,wBAAwB,CAAC,QAAQ,CAAC,CAKtD"}
@@ -0,0 +1,17 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { TransactionModifyingSigner } from './transaction-modifying-signer.js';
3
+ import { TransactionPartialSigner } from './transaction-partial-signer.js';
4
+ import { TransactionSendingSigner } from './transaction-sending-signer.js';
5
+ /** Defines a signer capable of signing transactions. */
6
+ export type TransactionSigner<TAddress extends string = string> = TransactionPartialSigner<TAddress> | TransactionModifyingSigner<TAddress> | TransactionSendingSigner<TAddress>;
7
+ /** Checks whether the provided value implements the {@link TransactionSigner} interface. */
8
+ export declare function isTransactionSigner<TAddress extends string>(value: {
9
+ address: Address<TAddress>;
10
+ [key: string]: unknown;
11
+ }): value is TransactionSigner<TAddress>;
12
+ /** Asserts that the provided value implements the {@link TransactionSigner} interface. */
13
+ export declare function assertIsTransactionSigner<TAddress extends string>(value: {
14
+ address: Address<TAddress>;
15
+ [key: string]: unknown;
16
+ }): asserts value is TransactionSigner<TAddress>;
17
+ //# sourceMappingURL=transaction-signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-signer.d.ts","sourceRoot":"","sources":["../../src/transaction-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAgC,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC1G,OAAO,EAA8B,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,EAA8B,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAEpG,wDAAwD;AACxD,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,IACxD,wBAAwB,CAAC,QAAQ,CAAC,GAClC,0BAA0B,CAAC,QAAQ,CAAC,GACpC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AAEzC,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IAChE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,KAAK,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAIvC;AAED,0FAA0F;AAC1F,wBAAgB,yBAAyB,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,EAAE;IACtE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,KAAK,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAK/C"}
@@ -0,0 +1,11 @@
1
+ import { CompilableTransaction } from '@solana/transactions';
2
+ import { ITransactionWithSigners } from './account-signer-meta.js';
3
+ /** Defines a transaction with exactly one {@link TransactionSendingSigner}. */
4
+ export type ITransactionWithSingleSendingSigner = ITransactionWithSigners & {
5
+ readonly __transactionWithSingleSendingSigner: unique symbol;
6
+ };
7
+ /** Checks whether the provided transaction has exactly one {@link TransactionSendingSigner}. */
8
+ export declare function isTransactionWithSingleSendingSigner<TTransaction extends CompilableTransaction>(transaction: TTransaction): transaction is TTransaction & ITransactionWithSingleSendingSigner;
9
+ /** Asserts that the provided transaction has exactly one {@link TransactionSendingSigner}. */
10
+ export declare function assertIsTransactionWithSingleSendingSigner<TTransaction extends CompilableTransaction>(transaction: TTransaction): asserts transaction is TTransaction & ITransactionWithSingleSendingSigner;
11
+ //# sourceMappingURL=transaction-with-single-sending-signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-with-single-sending-signer.d.ts","sourceRoot":"","sources":["../../src/transaction-with-single-sending-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAA6B,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAK3F,+EAA+E;AAC/E,MAAM,MAAM,mCAAmC,GAAG,uBAAuB,GAAG;IACxE,QAAQ,CAAC,oCAAoC,EAAE,OAAO,MAAM,CAAC;CAChE,CAAC;AAEF,gGAAgG;AAChG,wBAAgB,oCAAoC,CAAC,YAAY,SAAS,qBAAqB,EAC3F,WAAW,EAAE,YAAY,GAC1B,WAAW,IAAI,YAAY,GAAG,mCAAmC,CAOnE;AAED,8FAA8F;AAC9F,wBAAgB,0CAA0C,CAAC,YAAY,SAAS,qBAAqB,EACjG,WAAW,EAAE,YAAY,GAC1B,OAAO,CAAC,WAAW,IAAI,YAAY,GAAG,mCAAmC,CAwB3E"}
@@ -0,0 +1,7 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { SignatureBytes } from '@solana/keys';
3
+ export type SignatureDictionary = Readonly<Record<Address, SignatureBytes>>;
4
+ export type BaseSignerConfig = Readonly<{
5
+ abortSignal?: AbortSignal;
6
+ }>;
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;AAE5E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "@solana/signers",
3
+ "version": "2.0.0-experimental.025ef21",
4
+ "description": "An abstraction layer over signing messages and transactions in Solana",
5
+ "exports": {
6
+ "browser": {
7
+ "import": "./dist/index.browser.js",
8
+ "require": "./dist/index.browser.cjs"
9
+ },
10
+ "node": {
11
+ "import": "./dist/index.node.js",
12
+ "require": "./dist/index.node.cjs"
13
+ },
14
+ "react-native": "./dist/index.native.js",
15
+ "types": "./dist/types/index.d.ts"
16
+ },
17
+ "browser": {
18
+ "./dist/index.node.cjs": "./dist/index.browser.cjs",
19
+ "./dist/index.node.js": "./dist/index.browser.js"
20
+ },
21
+ "main": "./dist/index.node.cjs",
22
+ "module": "./dist/index.node.js",
23
+ "react-native": "./dist/index.native.js",
24
+ "types": "./dist/types/index.d.ts",
25
+ "type": "module",
26
+ "files": [
27
+ "./dist/"
28
+ ],
29
+ "sideEffects": false,
30
+ "keywords": [
31
+ "blockchain",
32
+ "solana",
33
+ "web3"
34
+ ],
35
+ "author": "Solana Labs Maintainers <maintainers@solanalabs.com>",
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/solana-labs/solana-web3.js"
40
+ },
41
+ "bugs": {
42
+ "url": "http://github.com/solana-labs/solana-web3.js/issues"
43
+ },
44
+ "browserslist": [
45
+ "supports bigint and not dead",
46
+ "maintained node versions"
47
+ ],
48
+ "engine": {
49
+ "node": ">=17.4"
50
+ },
51
+ "dependencies": {
52
+ "@solana/addresses": "2.0.0-experimental.025ef21",
53
+ "@solana/errors": "2.0.0-experimental.025ef21",
54
+ "@solana/keys": "2.0.0-experimental.025ef21",
55
+ "@solana/transactions": "2.0.0-experimental.025ef21",
56
+ "@solana/instructions": "2.0.0-experimental.025ef21"
57
+ },
58
+ "devDependencies": {
59
+ "@solana/eslint-config-solana": "^1.0.2",
60
+ "@swc/jest": "^0.2.29",
61
+ "@types/jest": "^29.5.11",
62
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
63
+ "@typescript-eslint/parser": "^6.3.0",
64
+ "agadoo": "^3.0.0",
65
+ "eslint": "^8.45.0",
66
+ "eslint-plugin-jest": "^27.4.2",
67
+ "eslint-plugin-sort-keys-fix": "^1.1.2",
68
+ "jest": "^29.7.0",
69
+ "jest-environment-jsdom": "^29.7.0",
70
+ "jest-runner-eslint": "^2.1.2",
71
+ "jest-runner-prettier": "^1.0.0",
72
+ "prettier": "^3.1",
73
+ "tsup": "^8.0.1",
74
+ "typescript": "^5.2.2",
75
+ "version-from-git": "^1.1.1",
76
+ "@solana/rpc-types": "2.0.0-experimental.025ef21",
77
+ "build-scripts": "0.0.0",
78
+ "test-config": "0.0.0",
79
+ "test-matchers": "0.0.0",
80
+ "text-encoding-impl": "0.0.0",
81
+ "tsconfig": "0.0.0"
82
+ },
83
+ "bundlewatch": {
84
+ "defaultCompression": "gzip",
85
+ "files": [
86
+ {
87
+ "path": "./dist/index*.js"
88
+ }
89
+ ]
90
+ },
91
+ "scripts": {
92
+ "compile:js": "tsup --config build-scripts/tsup.config.package.ts",
93
+ "compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
94
+ "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
95
+ "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
96
+ "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
97
+ "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
98
+ "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
99
+ "test:treeshakability:browser": "agadoo dist/index.browser.js",
100
+ "test:treeshakability:native": "agadoo dist/index.native.js",
101
+ "test:treeshakability:node": "agadoo dist/index.node.js",
102
+ "test:typecheck": "tsc --noEmit",
103
+ "test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --rootDir . --silent",
104
+ "test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --rootDir . --silent"
105
+ }
106
+ }