@solana/transaction-messages
Advanced tools
Comparing version 2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628 to 2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465
@@ -415,2 +415,9 @@ import { SolanaError, SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME, 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/static-accounts.ts | ||
function getCompiledStaticAccounts(orderedAccounts) { | ||
const firstLookupTableAccountIndex = orderedAccounts.findIndex((account) => "lookupTableAddress" in account); | ||
const orderedStaticAccounts = firstLookupTableAccountIndex === -1 ? orderedAccounts : orderedAccounts.slice(0, firstLookupTableAccountIndex); | ||
return orderedStaticAccounts.map(({ address }) => address); | ||
} | ||
// src/create-transaction-message.ts | ||
@@ -539,4 +546,4 @@ function createTransactionMessage({ | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, 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, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.browser.js.map |
@@ -415,2 +415,9 @@ import { SolanaError, SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME, 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/static-accounts.ts | ||
function getCompiledStaticAccounts(orderedAccounts) { | ||
const firstLookupTableAccountIndex = orderedAccounts.findIndex((account) => "lookupTableAddress" in account); | ||
const orderedStaticAccounts = firstLookupTableAccountIndex === -1 ? orderedAccounts : orderedAccounts.slice(0, firstLookupTableAccountIndex); | ||
return orderedStaticAccounts.map(({ address }) => address); | ||
} | ||
// src/create-transaction-message.ts | ||
@@ -539,4 +546,4 @@ function createTransactionMessage({ | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, 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, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.native.js.map |
@@ -415,2 +415,9 @@ import { SolanaError, SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME, 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/static-accounts.ts | ||
function getCompiledStaticAccounts(orderedAccounts) { | ||
const firstLookupTableAccountIndex = orderedAccounts.findIndex((account) => "lookupTableAddress" in account); | ||
const orderedStaticAccounts = firstLookupTableAccountIndex === -1 ? orderedAccounts : orderedAccounts.slice(0, firstLookupTableAccountIndex); | ||
return orderedStaticAccounts.map(({ address }) => address); | ||
} | ||
// src/create-transaction-message.ts | ||
@@ -539,4 +546,4 @@ function createTransactionMessage({ | ||
export { ADDRESS_MAP_TYPE_PROPERTY, AddressMapEntryType, appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, createTransactionMessage, getAddressMapFromInstructions, getAddressTableLookupCodec, getAddressTableLookupDecoder, getAddressTableLookupEncoder, getCompiledAddressTableLookups, getCompiledInstructions, getCompiledLifetimeToken, getCompiledMessageHeader, getInstructionCodec, getInstructionDecoder, getInstructionEncoder, getMessageHeaderCodec, getMessageHeaderDecoder, getMessageHeaderEncoder, getOrderedAccountsFromAddressMap, 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, newIsAdvanceNonceAccountInstruction, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.node.js.map |
@@ -6,2 +6,3 @@ export * from './accounts.js'; | ||
export * from './lifetime-token.js'; | ||
export * from './static-accounts.js'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@solana/transaction-messages", | ||
"version": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628", | ||
"version": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465", | ||
"description": "Helpers for creating transaction messages", | ||
@@ -49,9 +49,9 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628", | ||
"@solana/codecs-core": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628", | ||
"@solana/codecs-data-structures": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628", | ||
"@solana/codecs-numbers": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628", | ||
"@solana/errors": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628", | ||
"@solana/instructions": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628", | ||
"@solana/rpc-types": "2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628" | ||
"@solana/addresses": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465", | ||
"@solana/codecs-core": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465", | ||
"@solana/codecs-data-structures": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465", | ||
"@solana/codecs-numbers": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465", | ||
"@solana/errors": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465", | ||
"@solana/instructions": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465", | ||
"@solana/rpc-types": "2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465" | ||
}, | ||
@@ -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
393759
49
2938
+ Added@solana/addresses@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/assertions@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/codecs-core@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/codecs-data-structures@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/codecs-numbers@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/codecs-strings@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/errors@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/instructions@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
+ Added@solana/rpc-types@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465(transitive)
- Removed@solana/addresses@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/assertions@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/codecs-core@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/codecs-data-structures@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/codecs-numbers@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/codecs-strings@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/errors@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/instructions@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
- Removed@solana/rpc-types@2.0.0-preview.1.20240408102530.d9cfe21b9ffbff4361e9d67b50a186cc7b9fe628(transitive)
Updated@solana/addresses@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465
Updated@solana/codecs-core@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465
Updated@solana/codecs-numbers@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465
Updated@solana/errors@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465
Updated@solana/instructions@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465
Updated@solana/rpc-types@2.0.0-preview.1.20240408132640.1ea6f703ec0b5838e3189c929a6e0f9172919465