@solana/transaction-messages
Advanced tools
Comparing version 2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38 to 2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2
@@ -458,2 +458,16 @@ import { SolanaError, SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME, SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE, SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME, SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE, SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES } from '@solana/errors'; | ||
// src/compile/message.ts | ||
function newCompileTransactionMessage(transaction) { | ||
const addressMap = getAddressMapFromInstructions(transaction.feePayer, transaction.instructions); | ||
const orderedAccounts = getOrderedAccountsFromAddressMap(addressMap); | ||
return { | ||
...transaction.version !== "legacy" ? { addressTableLookups: getCompiledAddressTableLookups(orderedAccounts) } : null, | ||
header: getCompiledMessageHeader(orderedAccounts), | ||
instructions: getCompiledInstructions(transaction.instructions, orderedAccounts), | ||
lifetimeToken: getCompiledLifetimeToken(transaction.lifetimeConstraint), | ||
staticAccounts: getCompiledStaticAccounts(orderedAccounts), | ||
version: transaction.version | ||
}; | ||
} | ||
// src/create-transaction-message.ts | ||
@@ -582,4 +596,4 @@ function createTransactionMessage({ | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getCompiledStaticAccounts, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getCompiledStaticAccounts, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, newCompileTransactionMessage, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.browser.js.map |
@@ -458,2 +458,16 @@ import { SolanaError, SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME, SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE, SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME, SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE, SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES } from '@solana/errors'; | ||
// src/compile/message.ts | ||
function newCompileTransactionMessage(transaction) { | ||
const addressMap = getAddressMapFromInstructions(transaction.feePayer, transaction.instructions); | ||
const orderedAccounts = getOrderedAccountsFromAddressMap(addressMap); | ||
return { | ||
...transaction.version !== "legacy" ? { addressTableLookups: getCompiledAddressTableLookups(orderedAccounts) } : null, | ||
header: getCompiledMessageHeader(orderedAccounts), | ||
instructions: getCompiledInstructions(transaction.instructions, orderedAccounts), | ||
lifetimeToken: getCompiledLifetimeToken(transaction.lifetimeConstraint), | ||
staticAccounts: getCompiledStaticAccounts(orderedAccounts), | ||
version: transaction.version | ||
}; | ||
} | ||
// src/create-transaction-message.ts | ||
@@ -582,4 +596,4 @@ function createTransactionMessage({ | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getCompiledStaticAccounts, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getCompiledStaticAccounts, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, newCompileTransactionMessage, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.native.js.map |
@@ -458,2 +458,16 @@ import { SolanaError, SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME, SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE, SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME, SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE, SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES } from '@solana/errors'; | ||
// src/compile/message.ts | ||
function newCompileTransactionMessage(transaction) { | ||
const addressMap = getAddressMapFromInstructions(transaction.feePayer, transaction.instructions); | ||
const orderedAccounts = getOrderedAccountsFromAddressMap(addressMap); | ||
return { | ||
...transaction.version !== "legacy" ? { addressTableLookups: getCompiledAddressTableLookups(orderedAccounts) } : null, | ||
header: getCompiledMessageHeader(orderedAccounts), | ||
instructions: getCompiledInstructions(transaction.instructions, orderedAccounts), | ||
lifetimeToken: getCompiledLifetimeToken(transaction.lifetimeConstraint), | ||
staticAccounts: getCompiledStaticAccounts(orderedAccounts), | ||
version: transaction.version | ||
}; | ||
} | ||
// src/create-transaction-message.ts | ||
@@ -582,4 +596,4 @@ function createTransactionMessage({ | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getCompiledStaticAccounts, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getCompiledStaticAccounts, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, newCompileTransactionMessage, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.node.js.map |
@@ -6,3 +6,4 @@ export * from './accounts.js'; | ||
export * from './lifetime-token.js'; | ||
export * from './message.js'; | ||
export * from './static-accounts.js'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@solana/transaction-messages", | ||
"version": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38", | ||
"version": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2", | ||
"description": "Helpers for creating transaction messages", | ||
@@ -49,9 +49,9 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38", | ||
"@solana/codecs-core": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38", | ||
"@solana/codecs-data-structures": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38", | ||
"@solana/codecs-numbers": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38", | ||
"@solana/errors": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38", | ||
"@solana/instructions": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38", | ||
"@solana/rpc-types": "2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38" | ||
"@solana/addresses": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2", | ||
"@solana/codecs-core": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2", | ||
"@solana/codecs-data-structures": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2", | ||
"@solana/codecs-numbers": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2", | ||
"@solana/errors": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2", | ||
"@solana/instructions": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2", | ||
"@solana/rpc-types": "2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2" | ||
}, | ||
@@ -58,0 +58,0 @@ "bundlewatch": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
435888
10824
55
3230
+ Added@solana/addresses@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/assertions@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/codecs-core@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/codecs-data-structures@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/codecs-numbers@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/codecs-strings@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/errors@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/instructions@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
+ Added@solana/rpc-types@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2(transitive)
- Removed@solana/addresses@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/assertions@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/codecs-core@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/codecs-data-structures@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/codecs-numbers@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/codecs-strings@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/errors@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/instructions@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
- Removed@solana/rpc-types@2.0.0-preview.1.20240408133046.55bbe46a054ae4688c3a59c5fda5577e90188a38(transitive)
Updated@solana/addresses@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2
Updated@solana/codecs-core@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2
Updated@solana/codecs-numbers@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2
Updated@solana/errors@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2
Updated@solana/instructions@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2
Updated@solana/rpc-types@2.0.0-preview.1.20240408133244.04328ea0daf967a9e93617e90ff1d3e4aabb7ba2