@solana/transactions 2.0.0-experimental.6466d76 → 2.0.0-experimental.651e653
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 +165 -162
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +168 -166
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +168 -166
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +165 -162
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +168 -166
- 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/decompile-transaction.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/serializers/transaction.d.ts +2 -0
- package/dist/types/serializers/transaction.d.ts.map +1 -1
- package/package.json +12 -11
package/dist/index.browser.cjs
CHANGED
|
@@ -2,29 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var codecsStrings = require('@solana/codecs-strings');
|
|
4
4
|
var addresses = require('@solana/addresses');
|
|
5
|
+
var functional = require('@solana/functional');
|
|
5
6
|
var codecsCore = require('@solana/codecs-core');
|
|
6
7
|
var codecsDataStructures = require('@solana/codecs-data-structures');
|
|
7
8
|
var codecsNumbers = require('@solana/codecs-numbers');
|
|
8
|
-
var functional = require('@solana/functional');
|
|
9
9
|
var keys = require('@solana/keys');
|
|
10
10
|
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
// src/unsigned-transaction.ts
|
|
14
|
-
function getUnsignedTransaction(transaction) {
|
|
15
|
-
if ("signatures" in transaction) {
|
|
16
|
-
const {
|
|
17
|
-
signatures: _,
|
|
18
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
19
|
-
...unsignedTransaction
|
|
20
|
-
} = transaction;
|
|
21
|
-
return unsignedTransaction;
|
|
22
|
-
} else {
|
|
23
|
-
return transaction;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// src/blockhash.ts
|
|
11
|
+
// ../rpc-types/dist/index.browser.js
|
|
28
12
|
var base58Encoder;
|
|
29
13
|
function assertIsBlockhash(putativeBlockhash) {
|
|
30
14
|
if (!base58Encoder)
|
|
@@ -48,6 +32,22 @@ function assertIsBlockhash(putativeBlockhash) {
|
|
|
48
32
|
});
|
|
49
33
|
}
|
|
50
34
|
}
|
|
35
|
+
|
|
36
|
+
// src/unsigned-transaction.ts
|
|
37
|
+
function getUnsignedTransaction(transaction) {
|
|
38
|
+
if ("signatures" in transaction) {
|
|
39
|
+
const {
|
|
40
|
+
signatures: _,
|
|
41
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
42
|
+
...unsignedTransaction
|
|
43
|
+
} = transaction;
|
|
44
|
+
return unsignedTransaction;
|
|
45
|
+
} else {
|
|
46
|
+
return transaction;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// src/blockhash.ts
|
|
51
51
|
function isTransactionWithBlockhashLifetime(transaction) {
|
|
52
52
|
const lifetimeConstraintShapeMatches = "lifetimeConstraint" in transaction && typeof transaction.lifetimeConstraint.blockhash === "string" && typeof transaction.lifetimeConstraint.lastValidBlockHeight === "bigint";
|
|
53
53
|
if (!lifetimeConstraintShapeMatches)
|
|
@@ -217,6 +217,151 @@ function prependTransactionInstruction(instruction, transaction) {
|
|
|
217
217
|
Object.freeze(out);
|
|
218
218
|
return out;
|
|
219
219
|
}
|
|
220
|
+
|
|
221
|
+
// src/decompile-transaction.ts
|
|
222
|
+
function getAccountMetas(message) {
|
|
223
|
+
const { header } = message;
|
|
224
|
+
const numWritableSignerAccounts = header.numSignerAccounts - header.numReadonlySignerAccounts;
|
|
225
|
+
const numWritableNonSignerAccounts = message.staticAccounts.length - header.numSignerAccounts - header.numReadonlyNonSignerAccounts;
|
|
226
|
+
const accountMetas = [];
|
|
227
|
+
let accountIndex = 0;
|
|
228
|
+
for (let i = 0; i < numWritableSignerAccounts; i++) {
|
|
229
|
+
accountMetas.push({
|
|
230
|
+
address: message.staticAccounts[accountIndex],
|
|
231
|
+
role: AccountRole.WRITABLE_SIGNER
|
|
232
|
+
});
|
|
233
|
+
accountIndex++;
|
|
234
|
+
}
|
|
235
|
+
for (let i = 0; i < header.numReadonlySignerAccounts; i++) {
|
|
236
|
+
accountMetas.push({
|
|
237
|
+
address: message.staticAccounts[accountIndex],
|
|
238
|
+
role: AccountRole.READONLY_SIGNER
|
|
239
|
+
});
|
|
240
|
+
accountIndex++;
|
|
241
|
+
}
|
|
242
|
+
for (let i = 0; i < numWritableNonSignerAccounts; i++) {
|
|
243
|
+
accountMetas.push({
|
|
244
|
+
address: message.staticAccounts[accountIndex],
|
|
245
|
+
role: AccountRole.WRITABLE
|
|
246
|
+
});
|
|
247
|
+
accountIndex++;
|
|
248
|
+
}
|
|
249
|
+
for (let i = 0; i < header.numReadonlyNonSignerAccounts; i++) {
|
|
250
|
+
accountMetas.push({
|
|
251
|
+
address: message.staticAccounts[accountIndex],
|
|
252
|
+
role: AccountRole.READONLY
|
|
253
|
+
});
|
|
254
|
+
accountIndex++;
|
|
255
|
+
}
|
|
256
|
+
return accountMetas;
|
|
257
|
+
}
|
|
258
|
+
function getAddressLookupMetas(compiledAddressTableLookups, addressesByLookupTableAddress) {
|
|
259
|
+
const compiledAddressTableLookupAddresses = compiledAddressTableLookups.map((l) => l.lookupTableAddress);
|
|
260
|
+
const missing = compiledAddressTableLookupAddresses.filter((a) => addressesByLookupTableAddress[a] === void 0);
|
|
261
|
+
if (missing.length > 0) {
|
|
262
|
+
const missingAddresses = missing.join(", ");
|
|
263
|
+
throw new Error(`Addresses not provided for lookup tables: [${missingAddresses}]`);
|
|
264
|
+
}
|
|
265
|
+
const readOnlyMetas = [];
|
|
266
|
+
const writableMetas = [];
|
|
267
|
+
for (const lookup of compiledAddressTableLookups) {
|
|
268
|
+
const addresses = addressesByLookupTableAddress[lookup.lookupTableAddress];
|
|
269
|
+
const highestIndex = Math.max(...lookup.readableIndices, ...lookup.writableIndices);
|
|
270
|
+
if (highestIndex >= addresses.length) {
|
|
271
|
+
throw new Error(
|
|
272
|
+
`Cannot look up index ${highestIndex} in lookup table [${lookup.lookupTableAddress}]. The lookup table may have been extended since the addresses provided were retrieved.`
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
const readOnlyForLookup = lookup.readableIndices.map((r) => ({
|
|
276
|
+
address: addresses[r],
|
|
277
|
+
addressIndex: r,
|
|
278
|
+
lookupTableAddress: lookup.lookupTableAddress,
|
|
279
|
+
role: AccountRole.READONLY
|
|
280
|
+
}));
|
|
281
|
+
readOnlyMetas.push(...readOnlyForLookup);
|
|
282
|
+
const writableForLookup = lookup.writableIndices.map((w) => ({
|
|
283
|
+
address: addresses[w],
|
|
284
|
+
addressIndex: w,
|
|
285
|
+
lookupTableAddress: lookup.lookupTableAddress,
|
|
286
|
+
role: AccountRole.WRITABLE
|
|
287
|
+
}));
|
|
288
|
+
writableMetas.push(...writableForLookup);
|
|
289
|
+
}
|
|
290
|
+
return [...writableMetas, ...readOnlyMetas];
|
|
291
|
+
}
|
|
292
|
+
function convertInstruction(instruction, accountMetas) {
|
|
293
|
+
const programAddress = accountMetas[instruction.programAddressIndex]?.address;
|
|
294
|
+
if (!programAddress) {
|
|
295
|
+
throw new Error(`Could not find program address at index ${instruction.programAddressIndex}`);
|
|
296
|
+
}
|
|
297
|
+
const accounts = instruction.accountIndices?.map((accountIndex) => accountMetas[accountIndex]);
|
|
298
|
+
const { data } = instruction;
|
|
299
|
+
return {
|
|
300
|
+
programAddress,
|
|
301
|
+
...accounts && accounts.length ? { accounts } : {},
|
|
302
|
+
...data && data.length ? { data } : {}
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
function getLifetimeConstraint(messageLifetimeToken, firstInstruction, lastValidBlockHeight) {
|
|
306
|
+
if (!firstInstruction || !isAdvanceNonceAccountInstruction(firstInstruction)) {
|
|
307
|
+
return {
|
|
308
|
+
blockhash: messageLifetimeToken,
|
|
309
|
+
lastValidBlockHeight: lastValidBlockHeight ?? 2n ** 64n - 1n
|
|
310
|
+
// U64 MAX
|
|
311
|
+
};
|
|
312
|
+
} else {
|
|
313
|
+
const nonceAccountAddress = firstInstruction.accounts[0].address;
|
|
314
|
+
addresses.assertIsAddress(nonceAccountAddress);
|
|
315
|
+
const nonceAuthorityAddress = firstInstruction.accounts[2].address;
|
|
316
|
+
addresses.assertIsAddress(nonceAuthorityAddress);
|
|
317
|
+
return {
|
|
318
|
+
nonce: messageLifetimeToken,
|
|
319
|
+
nonceAccountAddress,
|
|
320
|
+
nonceAuthorityAddress
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
function convertSignatures(compiledTransaction) {
|
|
325
|
+
const {
|
|
326
|
+
compiledMessage: { staticAccounts },
|
|
327
|
+
signatures
|
|
328
|
+
} = compiledTransaction;
|
|
329
|
+
return signatures.reduce((acc, sig, index) => {
|
|
330
|
+
const allZeros = sig.every((byte) => byte === 0);
|
|
331
|
+
if (allZeros)
|
|
332
|
+
return acc;
|
|
333
|
+
const address = staticAccounts[index];
|
|
334
|
+
return { ...acc, [address]: sig };
|
|
335
|
+
}, {});
|
|
336
|
+
}
|
|
337
|
+
function decompileTransaction(compiledTransaction, config) {
|
|
338
|
+
const { compiledMessage } = compiledTransaction;
|
|
339
|
+
const feePayer = compiledMessage.staticAccounts[0];
|
|
340
|
+
if (!feePayer)
|
|
341
|
+
throw new Error("No fee payer set in CompiledTransaction");
|
|
342
|
+
const accountMetas = getAccountMetas(compiledMessage);
|
|
343
|
+
const accountLookupMetas = "addressTableLookups" in compiledMessage && compiledMessage.addressTableLookups !== void 0 && compiledMessage.addressTableLookups.length > 0 ? getAddressLookupMetas(compiledMessage.addressTableLookups, config?.addressesByLookupTableAddress ?? {}) : [];
|
|
344
|
+
const transactionMetas = [...accountMetas, ...accountLookupMetas];
|
|
345
|
+
const instructions = compiledMessage.instructions.map(
|
|
346
|
+
(compiledInstruction) => convertInstruction(compiledInstruction, transactionMetas)
|
|
347
|
+
);
|
|
348
|
+
const firstInstruction = instructions[0];
|
|
349
|
+
const lifetimeConstraint = getLifetimeConstraint(
|
|
350
|
+
compiledMessage.lifetimeToken,
|
|
351
|
+
firstInstruction,
|
|
352
|
+
config?.lastValidBlockHeight
|
|
353
|
+
);
|
|
354
|
+
const signatures = convertSignatures(compiledTransaction);
|
|
355
|
+
return functional.pipe(
|
|
356
|
+
createTransaction({ version: compiledMessage.version }),
|
|
357
|
+
(tx) => setTransactionFeePayer(feePayer, tx),
|
|
358
|
+
(tx) => instructions.reduce((acc, instruction) => {
|
|
359
|
+
return appendTransactionInstruction(instruction, acc);
|
|
360
|
+
}, tx),
|
|
361
|
+
(tx) => "blockhash" in lifetimeConstraint ? setTransactionLifetimeUsingBlockhash(lifetimeConstraint, tx) : setTransactionLifetimeUsingDurableNonce(lifetimeConstraint, tx),
|
|
362
|
+
(tx) => Object.keys(signatures).length > 0 ? { ...tx, signatures } : tx
|
|
363
|
+
);
|
|
364
|
+
}
|
|
220
365
|
function upsert(addressMap, address, update) {
|
|
221
366
|
addressMap[address] = update(addressMap[address] ?? { role: AccountRole.READONLY });
|
|
222
367
|
}
|
|
@@ -710,149 +855,6 @@ function getCompiledTransaction(transaction) {
|
|
|
710
855
|
signatures
|
|
711
856
|
};
|
|
712
857
|
}
|
|
713
|
-
function getAccountMetas(message) {
|
|
714
|
-
const { header } = message;
|
|
715
|
-
const numWritableSignerAccounts = header.numSignerAccounts - header.numReadonlySignerAccounts;
|
|
716
|
-
const numWritableNonSignerAccounts = message.staticAccounts.length - header.numSignerAccounts - header.numReadonlyNonSignerAccounts;
|
|
717
|
-
const accountMetas = [];
|
|
718
|
-
let accountIndex = 0;
|
|
719
|
-
for (let i = 0; i < numWritableSignerAccounts; i++) {
|
|
720
|
-
accountMetas.push({
|
|
721
|
-
address: message.staticAccounts[accountIndex],
|
|
722
|
-
role: AccountRole.WRITABLE_SIGNER
|
|
723
|
-
});
|
|
724
|
-
accountIndex++;
|
|
725
|
-
}
|
|
726
|
-
for (let i = 0; i < header.numReadonlySignerAccounts; i++) {
|
|
727
|
-
accountMetas.push({
|
|
728
|
-
address: message.staticAccounts[accountIndex],
|
|
729
|
-
role: AccountRole.READONLY_SIGNER
|
|
730
|
-
});
|
|
731
|
-
accountIndex++;
|
|
732
|
-
}
|
|
733
|
-
for (let i = 0; i < numWritableNonSignerAccounts; i++) {
|
|
734
|
-
accountMetas.push({
|
|
735
|
-
address: message.staticAccounts[accountIndex],
|
|
736
|
-
role: AccountRole.WRITABLE
|
|
737
|
-
});
|
|
738
|
-
accountIndex++;
|
|
739
|
-
}
|
|
740
|
-
for (let i = 0; i < header.numReadonlyNonSignerAccounts; i++) {
|
|
741
|
-
accountMetas.push({
|
|
742
|
-
address: message.staticAccounts[accountIndex],
|
|
743
|
-
role: AccountRole.READONLY
|
|
744
|
-
});
|
|
745
|
-
accountIndex++;
|
|
746
|
-
}
|
|
747
|
-
return accountMetas;
|
|
748
|
-
}
|
|
749
|
-
function getAddressLookupMetas(compiledAddressTableLookups, addressesByLookupTableAddress) {
|
|
750
|
-
const compiledAddressTableLookupAddresses = compiledAddressTableLookups.map((l) => l.lookupTableAddress);
|
|
751
|
-
const missing = compiledAddressTableLookupAddresses.filter((a) => addressesByLookupTableAddress[a] === void 0);
|
|
752
|
-
if (missing.length > 0) {
|
|
753
|
-
const missingAddresses = missing.join(", ");
|
|
754
|
-
throw new Error(`Addresses not provided for lookup tables: [${missingAddresses}]`);
|
|
755
|
-
}
|
|
756
|
-
const readOnlyMetas = [];
|
|
757
|
-
const writableMetas = [];
|
|
758
|
-
for (const lookup of compiledAddressTableLookups) {
|
|
759
|
-
const addresses = addressesByLookupTableAddress[lookup.lookupTableAddress];
|
|
760
|
-
const highestIndex = Math.max(...lookup.readableIndices, ...lookup.writableIndices);
|
|
761
|
-
if (highestIndex >= addresses.length) {
|
|
762
|
-
throw new Error(
|
|
763
|
-
`Cannot look up index ${highestIndex} in lookup table [${lookup.lookupTableAddress}]. The lookup table may have been extended since the addresses provided were retrieved.`
|
|
764
|
-
);
|
|
765
|
-
}
|
|
766
|
-
const readOnlyForLookup = lookup.readableIndices.map((r) => ({
|
|
767
|
-
address: addresses[r],
|
|
768
|
-
addressIndex: r,
|
|
769
|
-
lookupTableAddress: lookup.lookupTableAddress,
|
|
770
|
-
role: AccountRole.READONLY
|
|
771
|
-
}));
|
|
772
|
-
readOnlyMetas.push(...readOnlyForLookup);
|
|
773
|
-
const writableForLookup = lookup.writableIndices.map((w) => ({
|
|
774
|
-
address: addresses[w],
|
|
775
|
-
addressIndex: w,
|
|
776
|
-
lookupTableAddress: lookup.lookupTableAddress,
|
|
777
|
-
role: AccountRole.WRITABLE
|
|
778
|
-
}));
|
|
779
|
-
writableMetas.push(...writableForLookup);
|
|
780
|
-
}
|
|
781
|
-
return [...writableMetas, ...readOnlyMetas];
|
|
782
|
-
}
|
|
783
|
-
function convertInstruction(instruction, accountMetas) {
|
|
784
|
-
const programAddress = accountMetas[instruction.programAddressIndex]?.address;
|
|
785
|
-
if (!programAddress) {
|
|
786
|
-
throw new Error(`Could not find program address at index ${instruction.programAddressIndex}`);
|
|
787
|
-
}
|
|
788
|
-
const accounts = instruction.accountIndices?.map((accountIndex) => accountMetas[accountIndex]);
|
|
789
|
-
const { data } = instruction;
|
|
790
|
-
return {
|
|
791
|
-
programAddress,
|
|
792
|
-
...accounts && accounts.length ? { accounts } : {},
|
|
793
|
-
...data && data.length ? { data } : {}
|
|
794
|
-
};
|
|
795
|
-
}
|
|
796
|
-
function getLifetimeConstraint(messageLifetimeToken, firstInstruction, lastValidBlockHeight) {
|
|
797
|
-
if (!firstInstruction || !isAdvanceNonceAccountInstruction(firstInstruction)) {
|
|
798
|
-
return {
|
|
799
|
-
blockhash: messageLifetimeToken,
|
|
800
|
-
lastValidBlockHeight: lastValidBlockHeight ?? 2n ** 64n - 1n
|
|
801
|
-
// U64 MAX
|
|
802
|
-
};
|
|
803
|
-
} else {
|
|
804
|
-
const nonceAccountAddress = firstInstruction.accounts[0].address;
|
|
805
|
-
addresses.assertIsAddress(nonceAccountAddress);
|
|
806
|
-
const nonceAuthorityAddress = firstInstruction.accounts[2].address;
|
|
807
|
-
addresses.assertIsAddress(nonceAuthorityAddress);
|
|
808
|
-
return {
|
|
809
|
-
nonce: messageLifetimeToken,
|
|
810
|
-
nonceAccountAddress,
|
|
811
|
-
nonceAuthorityAddress
|
|
812
|
-
};
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
function convertSignatures(compiledTransaction) {
|
|
816
|
-
const {
|
|
817
|
-
compiledMessage: { staticAccounts },
|
|
818
|
-
signatures
|
|
819
|
-
} = compiledTransaction;
|
|
820
|
-
return signatures.reduce((acc, sig, index) => {
|
|
821
|
-
const allZeros = sig.every((byte) => byte === 0);
|
|
822
|
-
if (allZeros)
|
|
823
|
-
return acc;
|
|
824
|
-
const address = staticAccounts[index];
|
|
825
|
-
return { ...acc, [address]: sig };
|
|
826
|
-
}, {});
|
|
827
|
-
}
|
|
828
|
-
function decompileTransaction(compiledTransaction, config) {
|
|
829
|
-
const { compiledMessage } = compiledTransaction;
|
|
830
|
-
const feePayer = compiledMessage.staticAccounts[0];
|
|
831
|
-
if (!feePayer)
|
|
832
|
-
throw new Error("No fee payer set in CompiledTransaction");
|
|
833
|
-
const accountMetas = getAccountMetas(compiledMessage);
|
|
834
|
-
const accountLookupMetas = "addressTableLookups" in compiledMessage && compiledMessage.addressTableLookups !== void 0 && compiledMessage.addressTableLookups.length > 0 ? getAddressLookupMetas(compiledMessage.addressTableLookups, config?.addressesByLookupTableAddress ?? {}) : [];
|
|
835
|
-
const transactionMetas = [...accountMetas, ...accountLookupMetas];
|
|
836
|
-
const instructions = compiledMessage.instructions.map(
|
|
837
|
-
(compiledInstruction) => convertInstruction(compiledInstruction, transactionMetas)
|
|
838
|
-
);
|
|
839
|
-
const firstInstruction = instructions[0];
|
|
840
|
-
const lifetimeConstraint = getLifetimeConstraint(
|
|
841
|
-
compiledMessage.lifetimeToken,
|
|
842
|
-
firstInstruction,
|
|
843
|
-
config?.lastValidBlockHeight
|
|
844
|
-
);
|
|
845
|
-
const signatures = convertSignatures(compiledTransaction);
|
|
846
|
-
return functional.pipe(
|
|
847
|
-
createTransaction({ version: compiledMessage.version }),
|
|
848
|
-
(tx) => setTransactionFeePayer(feePayer, tx),
|
|
849
|
-
(tx) => instructions.reduce((acc, instruction) => {
|
|
850
|
-
return appendTransactionInstruction(instruction, acc);
|
|
851
|
-
}, tx),
|
|
852
|
-
(tx) => "blockhash" in lifetimeConstraint ? setTransactionLifetimeUsingBlockhash(lifetimeConstraint, tx) : setTransactionLifetimeUsingDurableNonce(lifetimeConstraint, tx),
|
|
853
|
-
(tx) => compiledTransaction.signatures.length ? { ...tx, signatures } : tx
|
|
854
|
-
);
|
|
855
|
-
}
|
|
856
858
|
|
|
857
859
|
// src/serializers/transaction.ts
|
|
858
860
|
function getCompiledTransactionEncoder() {
|
|
@@ -941,16 +943,17 @@ function getBase64EncodedWireTransaction(transaction) {
|
|
|
941
943
|
}
|
|
942
944
|
|
|
943
945
|
exports.appendTransactionInstruction = appendTransactionInstruction;
|
|
944
|
-
exports.assertIsBlockhash = assertIsBlockhash;
|
|
945
946
|
exports.assertIsDurableNonceTransaction = assertIsDurableNonceTransaction;
|
|
946
947
|
exports.assertIsTransactionWithBlockhashLifetime = assertIsTransactionWithBlockhashLifetime;
|
|
947
948
|
exports.assertTransactionIsFullySigned = assertTransactionIsFullySigned;
|
|
948
949
|
exports.compileMessage = compileMessage;
|
|
949
950
|
exports.createTransaction = createTransaction;
|
|
951
|
+
exports.decompileTransaction = decompileTransaction;
|
|
950
952
|
exports.getBase64EncodedWireTransaction = getBase64EncodedWireTransaction;
|
|
951
953
|
exports.getCompiledMessageCodec = getCompiledMessageCodec;
|
|
952
954
|
exports.getCompiledMessageDecoder = getCompiledMessageDecoder;
|
|
953
955
|
exports.getCompiledMessageEncoder = getCompiledMessageEncoder;
|
|
956
|
+
exports.getCompiledTransactionDecoder = getCompiledTransactionDecoder;
|
|
954
957
|
exports.getSignatureFromTransaction = getSignatureFromTransaction;
|
|
955
958
|
exports.getTransactionCodec = getTransactionCodec;
|
|
956
959
|
exports.getTransactionDecoder = getTransactionDecoder;
|