@solana/transactions 2.0.0-experimental.9bf9fdb → 2.0.0-experimental.9e133fd
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 +1 -1
- package/dist/index.browser.cjs +815 -41
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +803 -42
- package/dist/index.browser.js.map +1 -1
- package/dist/index.development.js +1784 -41
- package/dist/index.development.js.map +1 -1
- package/dist/index.native.js +803 -42
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +813 -41
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +803 -42
- package/dist/index.node.js.map +1 -1
- package/dist/index.production.min.js +16 -5
- package/dist/types/accounts.d.ts +28 -0
- package/dist/types/blockhash.d.ts +9 -1
- package/dist/types/compile-address-table-lookups.d.ts +10 -0
- package/dist/types/compile-header.d.ts +9 -0
- package/dist/types/compile-instructions.d.ts +10 -0
- package/dist/types/compile-lifetime-token.d.ts +3 -0
- package/dist/types/compile-static-accounts.d.ts +4 -0
- package/dist/types/compile-transaction.d.ts +11 -0
- package/dist/types/durable-nonce.d.ts +20 -7
- package/dist/types/fee-payer.d.ts +3 -2
- package/dist/types/index.d.ts +2 -0
- package/dist/types/message.d.ts +30 -0
- package/dist/types/serializers/address-table-lookup.d.ts +6 -0
- package/dist/types/serializers/header.d.ts +8 -0
- package/dist/types/serializers/index.d.ts +2 -0
- package/dist/types/serializers/instruction.d.ts +6 -0
- package/dist/types/serializers/message.d.ts +6 -0
- package/dist/types/serializers/transaction-version.d.ts +6 -0
- package/dist/types/serializers/transaction.d.ts +6 -0
- package/dist/types/serializers/unimplemented.d.ts +3 -0
- package/dist/types/signatures.d.ts +14 -7
- package/dist/types/types.d.ts +7 -0
- package/dist/types/unsigned-transaction.d.ts +4 -0
- package/dist/types/wire-transaction.d.ts +6 -0
- package/package.json +23 -22
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { IAccountMeta, IInstruction } from '@solana/instructions';
|
|
2
|
+
/** A string of bytes that are definitely a serialized message */
|
|
3
|
+
export type SerializedMessageBytes = Uint8Array & {
|
|
4
|
+
readonly __serializedMessageBytes: unique symbol;
|
|
5
|
+
};
|
|
6
|
+
export type SerializedMessageBytesBase64 = string & {
|
|
7
|
+
readonly __serializedMessageBytesBase64: unique symbol;
|
|
8
|
+
};
|
|
2
9
|
export type BaseTransaction = Readonly<{
|
|
3
10
|
instructions: readonly IInstruction[];
|
|
4
11
|
version: TransactionVersion;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ITransactionWithSignatures } from '.';
|
|
2
|
+
import { BaseTransaction } from './types';
|
|
3
|
+
export declare function getUnsignedTransaction<TTransaction extends BaseTransaction>(transaction: TTransaction | (TTransaction & ITransactionWithSignatures)): TTransaction | Omit<TTransaction & ITransactionWithSignatures, keyof ITransactionWithSignatures>;
|
|
4
|
+
//# sourceMappingURL=unsigned-transaction.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { getTransactionEncoder } from './serializers/transaction';
|
|
2
|
+
export type Base64EncodedWireTransaction = string & {
|
|
3
|
+
readonly __brand: unique symbol;
|
|
4
|
+
};
|
|
5
|
+
export declare function getBase64EncodedWireTransaction(transaction: Parameters<ReturnType<typeof getTransactionEncoder>['serialize']>[0]): Base64EncodedWireTransaction;
|
|
6
|
+
//# sourceMappingURL=wire-transaction.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/transactions",
|
|
3
|
-
"version": "2.0.0-experimental.
|
|
3
|
+
"version": "2.0.0-experimental.9e133fd",
|
|
4
4
|
"description": "Helpers for creating and serializing transactions",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -46,31 +46,31 @@
|
|
|
46
46
|
"maintained node versions"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@metaplex-foundation/umi-serializers": "^0.8.
|
|
50
|
-
"@solana/
|
|
49
|
+
"@metaplex-foundation/umi-serializers": "^0.8.9",
|
|
50
|
+
"@solana/addresses": "2.0.0-experimental.9e133fd",
|
|
51
|
+
"@solana/codecs-core": "2.0.0-experimental.9e133fd",
|
|
52
|
+
"@solana/codecs-data-structures": "2.0.0-experimental.9e133fd",
|
|
53
|
+
"@solana/codecs-numbers": "2.0.0-experimental.9e133fd",
|
|
54
|
+
"@solana/keys": "2.0.0-experimental.9e133fd"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"@solana/eslint-config-solana": "^1.0.
|
|
54
|
-
"@swc/
|
|
55
|
-
"@
|
|
56
|
-
"@types/
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
58
|
-
"@typescript-eslint/parser": "^
|
|
57
|
+
"@solana/eslint-config-solana": "^1.0.2",
|
|
58
|
+
"@swc/jest": "^0.2.28",
|
|
59
|
+
"@types/jest": "^29.5.5",
|
|
60
|
+
"@types/node": "^20.6.3",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
62
|
+
"@typescript-eslint/parser": "^6.3.0",
|
|
59
63
|
"agadoo": "^3.0.0",
|
|
60
|
-
"eslint": "^8.
|
|
64
|
+
"eslint": "^8.45.0",
|
|
61
65
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
62
|
-
"jest": "^29.
|
|
63
|
-
"jest-runner-eslint": "^2.
|
|
66
|
+
"jest": "^29.7.0",
|
|
67
|
+
"jest-runner-eslint": "^2.1.0",
|
|
64
68
|
"jest-runner-prettier": "^1.0.0",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"tsup": "6.7.0",
|
|
69
|
-
"typescript": "^5.0.3",
|
|
69
|
+
"prettier": "^2.8",
|
|
70
|
+
"tsup": "7.2.0",
|
|
71
|
+
"typescript": "^5.2.2",
|
|
70
72
|
"version-from-git": "^1.1.1",
|
|
71
|
-
"@solana/instructions": "2.0.0-experimental.
|
|
72
|
-
"@solana/keys": "2.0.0-experimental.9bf9fdb",
|
|
73
|
-
"@solana/rpc-core": "2.0.0-experimental.9bf9fdb",
|
|
73
|
+
"@solana/instructions": "2.0.0-experimental.9e133fd",
|
|
74
74
|
"build-scripts": "0.0.0",
|
|
75
75
|
"test-config": "0.0.0",
|
|
76
76
|
"test-matchers": "0.0.0",
|
|
@@ -89,11 +89,12 @@
|
|
|
89
89
|
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
|
|
90
90
|
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
91
91
|
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
|
|
92
|
+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
|
|
92
93
|
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
93
94
|
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
94
95
|
"test:treeshakability:browser": "agadoo dist/index.browser.js",
|
|
95
|
-
"test:treeshakability:native": "agadoo dist/index.
|
|
96
|
-
"test:treeshakability:node": "agadoo dist/index.
|
|
96
|
+
"test:treeshakability:native": "agadoo dist/index.native.js",
|
|
97
|
+
"test:treeshakability:node": "agadoo dist/index.node.js",
|
|
97
98
|
"test:typecheck": "tsc --noEmit",
|
|
98
99
|
"test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
99
100
|
"test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --rootDir . --silent"
|