@solana/signers 2.0.0-experimental.3331786
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/LICENSE +20 -0
- package/README.md +368 -0
- package/dist/index.browser.cjs +138 -0
- package/dist/index.browser.cjs.map +1 -0
- package/dist/index.browser.js +118 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.development.js +1200 -0
- package/dist/index.development.js.map +1 -0
- package/dist/index.native.js +118 -0
- package/dist/index.native.js.map +1 -0
- package/dist/index.node.cjs +138 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.js +118 -0
- package/dist/index.node.js.map +1 -0
- package/dist/index.production.min.js +33 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/keypair-signer.d.ts +22 -0
- package/dist/types/keypair-signer.d.ts.map +1 -0
- package/dist/types/message-modifying-signer.d.ts +18 -0
- package/dist/types/message-modifying-signer.d.ts.map +1 -0
- package/dist/types/message-partial-signer.d.ts +19 -0
- package/dist/types/message-partial-signer.d.ts.map +1 -0
- package/dist/types/message-signer.d.ts +16 -0
- package/dist/types/message-signer.d.ts.map +1 -0
- package/dist/types/signable-message.d.ts +12 -0
- package/dist/types/signable-message.d.ts.map +1 -0
- package/dist/types/transaction-modifying-signer.d.ts +18 -0
- package/dist/types/transaction-modifying-signer.d.ts.map +1 -0
- package/dist/types/transaction-partial-signer.d.ts +19 -0
- package/dist/types/transaction-partial-signer.d.ts.map +1 -0
- package/dist/types/transaction-sending-signer.d.ts +19 -0
- package/dist/types/transaction-sending-signer.d.ts.map +1 -0
- package/dist/types/transaction-signer.d.ts +17 -0
- package/dist/types/transaction-signer.d.ts.map +1 -0
- package/dist/types/types.d.ts +4 -0
- package/dist/types/types.d.ts.map +1 -0
- package/package.json +103 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { TransactionModifyingSigner } from './transaction-modifying-signer';
|
|
3
|
+
import { TransactionPartialSigner } from './transaction-partial-signer';
|
|
4
|
+
import { TransactionSendingSigner } from './transaction-sending-signer';
|
|
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 @@
|
|
|
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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@solana/signers",
|
|
3
|
+
"version": "2.0.0-experimental.3331786",
|
|
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-development",
|
|
53
|
+
"@solana/keys": "2.0.0-development",
|
|
54
|
+
"@solana/transactions": "2.0.0-development"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@solana/eslint-config-solana": "^1.0.2",
|
|
58
|
+
"@swc/jest": "^0.2.29",
|
|
59
|
+
"@types/jest": "^29.5.6",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
61
|
+
"@typescript-eslint/parser": "^6.3.0",
|
|
62
|
+
"agadoo": "^3.0.0",
|
|
63
|
+
"eslint": "^8.45.0",
|
|
64
|
+
"eslint-plugin-jest": "^27.4.2",
|
|
65
|
+
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
66
|
+
"jest": "^29.7.0",
|
|
67
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
68
|
+
"jest-runner-eslint": "^2.1.2",
|
|
69
|
+
"jest-runner-prettier": "^1.0.0",
|
|
70
|
+
"prettier": "^2.8",
|
|
71
|
+
"tsup": "7.2.0",
|
|
72
|
+
"typescript": "^5.2.2",
|
|
73
|
+
"version-from-git": "^1.1.1",
|
|
74
|
+
"test-config": "0.0.0",
|
|
75
|
+
"build-scripts": "0.0.0",
|
|
76
|
+
"test-matchers": "0.0.0",
|
|
77
|
+
"text-encoding-impl": "0.0.0",
|
|
78
|
+
"tsconfig": "0.0.0"
|
|
79
|
+
},
|
|
80
|
+
"bundlewatch": {
|
|
81
|
+
"defaultCompression": "gzip",
|
|
82
|
+
"files": [
|
|
83
|
+
{
|
|
84
|
+
"path": "./dist/index*.js"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"compile:js": "tsup --config build-scripts/tsup.config.library.ts",
|
|
90
|
+
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
|
|
91
|
+
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
92
|
+
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
|
|
93
|
+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
|
|
94
|
+
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
95
|
+
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
96
|
+
"test:treeshakability:browser": "agadoo dist/index.browser.js",
|
|
97
|
+
"test:treeshakability:native": "agadoo dist/index.native.js",
|
|
98
|
+
"test:treeshakability:node": "agadoo dist/index.node.js",
|
|
99
|
+
"test:typecheck": "tsc --noEmit",
|
|
100
|
+
"test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
101
|
+
"test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --rootDir . --silent"
|
|
102
|
+
}
|
|
103
|
+
}
|