@solana/transactions 2.0.0-experimental.76cf6b4 → 2.0.0-experimental.7712fc3
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/README.md +7 -3
- package/dist/index.browser.cjs +221 -156
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +221 -160
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +223 -160
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +221 -156
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +223 -160
- package/dist/index.node.js.map +1 -1
- package/dist/types/accounts.d.ts.map +1 -1
- package/dist/types/blockhash.d.ts +1 -4
- package/dist/types/blockhash.d.ts.map +1 -1
- package/dist/types/decompile-transaction.d.ts +9 -1
- package/dist/types/decompile-transaction.d.ts.map +1 -1
- package/dist/types/durable-nonce.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instructions.d.ts +2 -0
- package/dist/types/instructions.d.ts.map +1 -1
- package/dist/types/serializers/message.d.ts.map +1 -1
- package/dist/types/serializers/transaction-version.d.ts.map +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/package.json +18 -39
- package/dist/index.development.js +0 -1628
- package/dist/index.development.js.map +0 -1
- package/dist/index.production.min.js +0 -32
|
@@ -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,EAAE,mBAAmB,EAA0B,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAwB,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAU3D,wBAAgB,6BAA6B,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,CAUxF;AAED,wBAAgB,qBAAqB,IAAI,mBAAmB,CACxD,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAC/E,CAEA;AAED,wBAAgB,qBAAqB,CACjC,MAAM,CAAC,EAAE,0BAA0B,GACpC,mBAAmB,CAAC,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAAC,CAInG;AAED,wBAAgB,mBAAmB,CAC/B,MAAM,CAAC,EAAE,0BAA0B,GACpC,iBAAiB,CAAC,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAAC,CAEjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signatures.d.ts","sourceRoot":"","sources":["../../src/signatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"signatures.d.ts","sourceRoot":"","sources":["../../src/signatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,mBAAmB,CAAC;AASrE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAa,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAIvD,MAAM,WAAW,uBAAwB,SAAQ,0BAA0B;IACvE,QAAQ,CAAC,OAAO,EAAE,OAAO,MAAM,CAAC;CACnC;AACD,MAAM,WAAW,0BAA0B;IACvC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;CAClE;AAID,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,wBAAwB,GAAG,0BAA0B,GACnE,SAAS,CASX;AAED,wBAAsB,wBAAwB,CAAC,YAAY,SAAS,qBAAqB,EACrF,QAAQ,EAAE,aAAa,EAAE,EACzB,WAAW,EAAE,YAAY,GAAG,CAAC,YAAY,GAAG,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,CAkB/D"}
|
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.7712fc3",
|
|
4
4
|
"description": "Helpers for creating and serializing transactions",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -46,36 +46,14 @@
|
|
|
46
46
|
"maintained node versions"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@solana/addresses": "2.0.0-experimental.
|
|
50
|
-
"@solana/codecs-core": "2.0.0-experimental.
|
|
51
|
-
"@solana/codecs-
|
|
52
|
-
"@solana/codecs-
|
|
53
|
-
"@solana/codecs-
|
|
54
|
-
"@solana/
|
|
55
|
-
"@solana/
|
|
56
|
-
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@solana/eslint-config-solana": "^1.0.2",
|
|
59
|
-
"@swc/jest": "^0.2.29",
|
|
60
|
-
"@types/jest": "^29.5.11",
|
|
61
|
-
"@types/node": "18.11.19",
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
63
|
-
"@typescript-eslint/parser": "^6.3.0",
|
|
64
|
-
"agadoo": "^3.0.0",
|
|
65
|
-
"eslint": "^8.45.0",
|
|
66
|
-
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
67
|
-
"jest": "^29.7.0",
|
|
68
|
-
"jest-runner-eslint": "^2.1.2",
|
|
69
|
-
"jest-runner-prettier": "^1.0.0",
|
|
70
|
-
"prettier": "^3.1",
|
|
71
|
-
"tsup": "^8.0.1",
|
|
72
|
-
"typescript": "^5.2.2",
|
|
73
|
-
"version-from-git": "^1.1.1",
|
|
74
|
-
"@solana/instructions": "2.0.0-experimental.76cf6b4",
|
|
75
|
-
"test-matchers": "0.0.0",
|
|
76
|
-
"build-scripts": "0.0.0",
|
|
77
|
-
"test-config": "0.0.0",
|
|
78
|
-
"tsconfig": "0.0.0"
|
|
49
|
+
"@solana/addresses": "2.0.0-experimental.7712fc3",
|
|
50
|
+
"@solana/codecs-core": "2.0.0-experimental.7712fc3",
|
|
51
|
+
"@solana/codecs-numbers": "2.0.0-experimental.7712fc3",
|
|
52
|
+
"@solana/codecs-strings": "2.0.0-experimental.7712fc3",
|
|
53
|
+
"@solana/codecs-data-structures": "2.0.0-experimental.7712fc3",
|
|
54
|
+
"@solana/functional": "2.0.0-experimental.7712fc3",
|
|
55
|
+
"@solana/errors": "2.0.0-experimental.7712fc3",
|
|
56
|
+
"@solana/keys": "2.0.0-experimental.7712fc3"
|
|
79
57
|
},
|
|
80
58
|
"bundlewatch": {
|
|
81
59
|
"defaultCompression": "gzip",
|
|
@@ -86,18 +64,19 @@
|
|
|
86
64
|
]
|
|
87
65
|
},
|
|
88
66
|
"scripts": {
|
|
89
|
-
"compile:js": "tsup --config build-scripts/tsup.config.
|
|
90
|
-
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
|
|
91
|
-
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
92
|
-
"publish-
|
|
67
|
+
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
68
|
+
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
|
|
69
|
+
"dev": "jest -c node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
70
|
+
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag experimental --access public --no-git-checks",
|
|
71
|
+
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
|
|
93
72
|
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
|
|
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",
|
|
73
|
+
"test:lint": "jest -c node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
74
|
+
"test:prettier": "jest -c node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
96
75
|
"test:treeshakability:browser": "agadoo dist/index.browser.js",
|
|
97
76
|
"test:treeshakability:native": "agadoo dist/index.native.js",
|
|
98
77
|
"test:treeshakability:node": "agadoo dist/index.node.js",
|
|
99
78
|
"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"
|
|
79
|
+
"test:unit:browser": "jest -c node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
80
|
+
"test:unit:node": "jest -c node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent"
|
|
102
81
|
}
|
|
103
82
|
}
|