@solana/transactions 2.0.0-experimental.c9bd7fa → 2.0.0-experimental.ca243cb
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/dist/index.browser.cjs +176 -134
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +177 -138
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +177 -138
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +176 -134
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +177 -138
- package/dist/index.node.js.map +1 -1
- package/dist/types/blockhash.d.ts +1 -4
- package/dist/types/blockhash.d.ts.map +1 -1
- package/dist/types/compilable-transaction.d.ts +4 -4
- package/dist/types/compile-address-table-lookups.d.ts +1 -1
- package/dist/types/compile-header.d.ts +1 -1
- package/dist/types/compile-instructions.d.ts +1 -1
- package/dist/types/compile-lifetime-token.d.ts +1 -1
- package/dist/types/compile-static-accounts.d.ts +1 -1
- package/dist/types/decompile-transaction.d.ts +9 -1
- package/dist/types/decompile-transaction.d.ts.map +1 -1
- package/dist/types/fee-payer.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/message.d.ts +6 -6
- package/dist/types/serializers/address-table-lookup.d.ts +1 -1
- package/dist/types/serializers/header.d.ts +1 -1
- package/dist/types/serializers/instruction.d.ts +1 -1
- package/dist/types/serializers/transaction-version.d.ts +1 -1
- package/dist/types/serializers/transaction.d.ts +5 -2
- package/dist/types/serializers/transaction.d.ts.map +1 -1
- package/dist/types/signatures.d.ts.map +1 -1
- package/dist/types/unsigned-transaction.d.ts +1 -1
- package/package.json +12 -11
- package/dist/index.development.js +0 -1628
- package/dist/index.development.js.map +0 -1
- package/dist/index.production.min.js +0 -32
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariableSizeCodec, type VariableSizeDecoder, type VariableSizeEncoder } from '@solana/codecs-core';
|
|
2
|
-
import type { getCompiledAddressTableLookups } from '../compile-address-table-lookups';
|
|
2
|
+
import type { getCompiledAddressTableLookups } from '../compile-address-table-lookups.js';
|
|
3
3
|
type AddressTableLookup = ReturnType<typeof getCompiledAddressTableLookups>[number];
|
|
4
4
|
export declare function getAddressTableLookupEncoder(): VariableSizeEncoder<AddressTableLookup>;
|
|
5
5
|
export declare function getAddressTableLookupDecoder(): VariableSizeDecoder<AddressTableLookup>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from '@solana/codecs-core';
|
|
2
|
-
import { getCompiledMessageHeader } from '../compile-header';
|
|
2
|
+
import { getCompiledMessageHeader } from '../compile-header.js';
|
|
3
3
|
type MessageHeader = ReturnType<typeof getCompiledMessageHeader>;
|
|
4
4
|
export declare function getMessageHeaderEncoder(): FixedSizeEncoder<MessageHeader, 3>;
|
|
5
5
|
export declare function getMessageHeaderDecoder(): FixedSizeDecoder<MessageHeader, 3>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariableSizeCodec, VariableSizeDecoder, VariableSizeEncoder } from '@solana/codecs-core';
|
|
2
|
-
import { getCompiledInstructions } from '../compile-instructions';
|
|
2
|
+
import { getCompiledInstructions } from '../compile-instructions.js';
|
|
3
3
|
type Instruction = ReturnType<typeof getCompiledInstructions>[number];
|
|
4
4
|
export declare function getInstructionEncoder(): VariableSizeEncoder<Instruction>;
|
|
5
5
|
export declare function getInstructionDecoder(): VariableSizeDecoder<Instruction>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariableSizeCodec, VariableSizeDecoder, VariableSizeEncoder } from '@solana/codecs-core';
|
|
2
|
-
import { TransactionVersion } from '../types';
|
|
2
|
+
import { TransactionVersion } from '../types.js';
|
|
3
3
|
export declare function getTransactionVersionEncoder(): VariableSizeEncoder<TransactionVersion>;
|
|
4
4
|
export declare function getTransactionVersionDecoder(): VariableSizeDecoder<TransactionVersion>;
|
|
5
5
|
export declare function getTransactionVersionCodec(): VariableSizeCodec<TransactionVersion>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { VariableSizeCodec, VariableSizeDecoder, VariableSizeEncoder } from '@solana/codecs-core';
|
|
2
2
|
import { CompilableTransaction } from '../compilable-transaction.js';
|
|
3
|
+
import { CompiledTransaction } from '../compile-transaction.js';
|
|
4
|
+
import { DecompileTransactionConfig } from '../decompile-transaction.js';
|
|
3
5
|
import { ITransactionWithSignatures } from '../signatures.js';
|
|
6
|
+
export declare function getCompiledTransactionDecoder(): VariableSizeDecoder<CompiledTransaction>;
|
|
4
7
|
export declare function getTransactionEncoder(): VariableSizeEncoder<CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures)>;
|
|
5
|
-
export declare function getTransactionDecoder(
|
|
6
|
-
export declare function getTransactionCodec(
|
|
8
|
+
export declare function getTransactionDecoder(config?: DecompileTransactionConfig): VariableSizeDecoder<CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures)>;
|
|
9
|
+
export declare function getTransactionCodec(config?: DecompileTransactionConfig): VariableSizeCodec<CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures)>;
|
|
7
10
|
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/serializers/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACtB,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/serializers/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACtB,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAA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,0BAA0B,CAAC,GACxE,OAAO,CAAC,YAAY,GAAG,0BAA0B,CAAC,CAmBpD;AAED,wBAAsB,eAAe,CAAC,YAAY,SAAS,qBAAqB,EAC5E,QAAQ,EAAE,aAAa,EAAE,EACzB,WAAW,EAAE,YAAY,GAAG,CAAC,YAAY,GAAG,0BAA0B,CAAC,GACxE,OAAO,CAAC,YAAY,GAAG,uBAAuB,CAAC,CAKjD;AAED,wBAAgB,8BAA8B,CAAC,YAAY,SAAS,qBAAqB,EACrF,WAAW,EAAE,YAAY,GAAG,0BAA0B,GACvD,OAAO,CAAC,WAAW,IAAI,YAAY,GAAG,uBAAuB,CAiB/D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ITransactionWithSignatures } from '.';
|
|
2
|
-
import { BaseTransaction } from './types';
|
|
2
|
+
import { BaseTransaction } from './types.js';
|
|
3
3
|
export declare function getUnsignedTransaction<TTransaction extends BaseTransaction>(transaction: TTransaction | (TTransaction & ITransactionWithSignatures)): TTransaction | Omit<TTransaction & ITransactionWithSignatures, keyof ITransactionWithSignatures>;
|
|
4
4
|
//# sourceMappingURL=unsigned-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.ca243cb",
|
|
4
4
|
"description": "Helpers for creating and serializing transactions",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"maintained node versions"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@solana/
|
|
50
|
-
"@solana/codecs-
|
|
51
|
-
"@solana/codecs-numbers": "2.0.0-experimental.
|
|
52
|
-
"@solana/codecs-strings": "2.0.0-experimental.
|
|
53
|
-
"@solana/
|
|
54
|
-
"@solana/functional": "2.0.0-experimental.
|
|
55
|
-
"@solana/keys": "2.0.0-experimental.
|
|
49
|
+
"@solana/codecs-core": "2.0.0-experimental.ca243cb",
|
|
50
|
+
"@solana/codecs-data-structures": "2.0.0-experimental.ca243cb",
|
|
51
|
+
"@solana/codecs-numbers": "2.0.0-experimental.ca243cb",
|
|
52
|
+
"@solana/codecs-strings": "2.0.0-experimental.ca243cb",
|
|
53
|
+
"@solana/addresses": "2.0.0-experimental.ca243cb",
|
|
54
|
+
"@solana/functional": "2.0.0-experimental.ca243cb",
|
|
55
|
+
"@solana/keys": "2.0.0-experimental.ca243cb"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@solana/eslint-config-solana": "^1.0.2",
|
|
@@ -71,11 +71,12 @@
|
|
|
71
71
|
"tsup": "^8.0.1",
|
|
72
72
|
"typescript": "^5.2.2",
|
|
73
73
|
"version-from-git": "^1.1.1",
|
|
74
|
+
"@solana/instructions": "2.0.0-experimental.ca243cb",
|
|
74
75
|
"build-scripts": "0.0.0",
|
|
76
|
+
"@solana/rpc-types": "2.0.0-experimental.ca243cb",
|
|
75
77
|
"test-config": "0.0.0",
|
|
76
78
|
"test-matchers": "0.0.0",
|
|
77
|
-
"tsconfig": "0.0.0"
|
|
78
|
-
"@solana/instructions": "2.0.0-experimental.c9bd7fa"
|
|
79
|
+
"tsconfig": "0.0.0"
|
|
79
80
|
},
|
|
80
81
|
"bundlewatch": {
|
|
81
82
|
"defaultCompression": "gzip",
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
]
|
|
87
88
|
},
|
|
88
89
|
"scripts": {
|
|
89
|
-
"compile:js": "tsup --config build-scripts/tsup.config.
|
|
90
|
+
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
90
91
|
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
|
|
91
92
|
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
92
93
|
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
|