@solana/transactions 2.0.0-experimental.f5c87d2 → 2.0.0-experimental.fbd3974
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/LICENSE +1 -1
- package/README.md +314 -5
- package/dist/index.browser.cjs +571 -244
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +564 -246
- package/dist/index.browser.js.map +1 -1
- package/dist/index.development.js +1111 -660
- package/dist/index.development.js.map +1 -1
- package/dist/index.native.js +566 -246
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +571 -244
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +566 -246
- package/dist/index.node.js.map +1 -1
- package/dist/index.production.min.js +20 -11
- package/dist/types/accounts.d.ts +1 -1
- package/dist/types/accounts.d.ts.map +1 -1
- package/dist/types/blockhash.d.ts +1 -1
- package/dist/types/blockhash.d.ts.map +1 -1
- package/dist/types/compilable-transaction.d.ts +6 -0
- package/dist/types/compilable-transaction.d.ts.map +1 -0
- package/dist/types/compile-address-table-lookups.d.ts.map +1 -1
- package/dist/types/compile-transaction.d.ts +3 -4
- package/dist/types/compile-transaction.d.ts.map +1 -1
- package/dist/types/decompile-transaction.d.ts +5 -0
- package/dist/types/decompile-transaction.d.ts.map +1 -0
- package/dist/types/durable-nonce.d.ts +7 -6
- package/dist/types/durable-nonce.d.ts.map +1 -1
- package/dist/types/fee-payer.d.ts +2 -1
- package/dist/types/fee-payer.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/message.d.ts +1 -5
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/serializers/address-table-lookup.d.ts +5 -3
- package/dist/types/serializers/address-table-lookup.d.ts.map +1 -1
- package/dist/types/serializers/header.d.ts +4 -2
- package/dist/types/serializers/header.d.ts.map +1 -1
- package/dist/types/serializers/index.d.ts +2 -0
- package/dist/types/serializers/index.d.ts.map +1 -0
- package/dist/types/serializers/instruction.d.ts +4 -2
- package/dist/types/serializers/instruction.d.ts.map +1 -1
- package/dist/types/serializers/message.d.ts +4 -4
- package/dist/types/serializers/message.d.ts.map +1 -1
- package/dist/types/serializers/transaction-version.d.ts +4 -4
- package/dist/types/serializers/transaction-version.d.ts.map +1 -1
- package/dist/types/serializers/transaction.d.ts +6 -5
- package/dist/types/serializers/transaction.d.ts.map +1 -1
- package/dist/types/signatures.d.ts +12 -3
- package/dist/types/signatures.d.ts.map +1 -1
- package/dist/types/types.d.ts +7 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/wire-transaction.d.ts +2 -2
- package/dist/types/wire-transaction.d.ts.map +1 -1
- package/package.json +21 -15
- package/dist/types/serializers/unimplemented.d.ts +0 -3
- package/dist/types/serializers/unimplemented.d.ts.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ITransactionWithBlockhashLifetime } from './blockhash';
|
|
2
|
+
import { IDurableNonceTransaction } from './durable-nonce';
|
|
3
|
+
import { ITransactionWithFeePayer } from './fee-payer';
|
|
4
|
+
import { BaseTransaction } from './types';
|
|
5
|
+
export type CompilableTransaction = BaseTransaction & ITransactionWithFeePayer & (ITransactionWithBlockhashLifetime | IDurableNonceTransaction);
|
|
6
|
+
//# sourceMappingURL=compilable-transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compilable-transaction.d.ts","sourceRoot":"","sources":["../../src/compilable-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAC/C,wBAAwB,GACxB,CAAC,iCAAiC,GAAG,wBAAwB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile-address-table-lookups.d.ts","sourceRoot":"","sources":["../../src/compile-address-table-lookups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"compile-address-table-lookups.d.ts","sourceRoot":"","sources":["../../src/compile-address-table-lookups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IAC/B,kBAAkB,EAAE,oBAAoB,CAAC;IACzC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC,CAAC;AAEH,wBAAgB,8BAA8B,CAAC,eAAe,EAAE,eAAe,GAAG,kBAAkB,EAAE,CAyBrG"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Ed25519Signature } from '@solana/keys';
|
|
2
|
-
import {
|
|
2
|
+
import { CompilableTransaction } from './compilable-transaction';
|
|
3
|
+
import { CompiledMessage } from './message';
|
|
3
4
|
import { ITransactionWithSignatures } from './signatures';
|
|
4
|
-
type CompiledTransaction = Readonly<{
|
|
5
|
+
export type CompiledTransaction = Readonly<{
|
|
5
6
|
compiledMessage: CompiledMessage;
|
|
6
7
|
signatures: Ed25519Signature[];
|
|
7
8
|
}>;
|
|
8
|
-
type CompilableTransaction = Parameters<typeof compileMessage>[0];
|
|
9
9
|
export declare function getCompiledTransaction(transaction: CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures)): CompiledTransaction;
|
|
10
|
-
export {};
|
|
11
10
|
//# sourceMappingURL=compile-transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile-transaction.d.ts","sourceRoot":"","sources":["../../src/compile-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"compile-transaction.d.ts","sourceRoot":"","sources":["../../src/compile-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAkB,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACvC,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,gBAAgB,EAAE,CAAC;CAClC,CAAC,CAAC;AAEH,wBAAgB,sBAAsB,CAClC,WAAW,EAAE,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,GAC1F,mBAAmB,CAgBrB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CompilableTransaction } from './compilable-transaction';
|
|
2
|
+
import { CompiledTransaction } from './compile-transaction';
|
|
3
|
+
import { ITransactionWithSignatures } from './signatures';
|
|
4
|
+
export declare function decompileTransaction(compiledTransaction: CompiledTransaction, lastValidBlockHeight?: bigint): CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures);
|
|
5
|
+
//# sourceMappingURL=decompile-transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decompile-transaction.d.ts","sourceRoot":"","sources":["../../src/decompile-transaction.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAM5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAyH1D,wBAAgB,oBAAoB,CAChC,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,CAAC,EAAE,MAAM,GAC9B,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAyC9E"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Base58EncodedAddress } from '@solana/addresses';
|
|
2
|
-
import { IInstruction, IInstructionWithAccounts, IInstructionWithData } from '@solana/instructions';
|
|
3
|
-
import {
|
|
2
|
+
import { IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlyAccount, ReadonlySignerAccount, WritableAccount, WritableSignerAccount } from '@solana/instructions';
|
|
3
|
+
import { ITransactionWithSignatures } from './signatures';
|
|
4
4
|
import { BaseTransaction } from './types';
|
|
5
5
|
type AdvanceNonceAccountInstruction<TNonceAccountAddress extends string = string, TNonceAuthorityAddress extends string = string> = IInstruction<'11111111111111111111111111111111'> & IInstructionWithAccounts<readonly [
|
|
6
6
|
WritableAccount<TNonceAccountAddress>,
|
|
7
7
|
ReadonlyAccount<'SysvarRecentB1ockHashes11111111111111111111'>,
|
|
8
|
-
ReadonlySignerAccount<TNonceAuthorityAddress>
|
|
8
|
+
ReadonlySignerAccount<TNonceAuthorityAddress> | WritableSignerAccount<TNonceAuthorityAddress>
|
|
9
9
|
]> & IInstructionWithData<AdvanceNonceAccountInstructionData>;
|
|
10
10
|
type AdvanceNonceAccountInstructionData = Uint8Array & {
|
|
11
|
-
readonly
|
|
11
|
+
readonly __brand: unique symbol;
|
|
12
12
|
};
|
|
13
13
|
type DurableNonceConfig<TNonceAccountAddress extends string = string, TNonceAuthorityAddress extends string = string, TNonceValue extends string = string> = Readonly<{
|
|
14
14
|
readonly nonce: Nonce<TNonceValue>;
|
|
@@ -16,7 +16,7 @@ type DurableNonceConfig<TNonceAccountAddress extends string = string, TNonceAuth
|
|
|
16
16
|
readonly nonceAuthorityAddress: Base58EncodedAddress<TNonceAuthorityAddress>;
|
|
17
17
|
}>;
|
|
18
18
|
export type Nonce<TNonceValue extends string = string> = TNonceValue & {
|
|
19
|
-
readonly
|
|
19
|
+
readonly __brand: unique symbol;
|
|
20
20
|
};
|
|
21
21
|
type NonceLifetimeConstraint<TNonceValue extends string = string> = Readonly<{
|
|
22
22
|
nonce: Nonce<TNonceValue>;
|
|
@@ -29,6 +29,7 @@ export interface IDurableNonceTransaction<TNonceAccountAddress extends string =
|
|
|
29
29
|
readonly lifetimeConstraint: NonceLifetimeConstraint<TNonceValue>;
|
|
30
30
|
}
|
|
31
31
|
export declare function assertIsDurableNonceTransaction(transaction: BaseTransaction | (BaseTransaction & IDurableNonceTransaction)): asserts transaction is BaseTransaction & IDurableNonceTransaction;
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function isAdvanceNonceAccountInstruction(instruction: IInstruction): instruction is AdvanceNonceAccountInstruction;
|
|
33
|
+
export declare function setTransactionLifetimeUsingDurableNonce<TTransaction extends BaseTransaction, TNonceAccountAddress extends string = string, TNonceAuthorityAddress extends string = string, TNonceValue extends string = string>({ nonce, nonceAccountAddress, nonceAuthorityAddress, }: DurableNonceConfig<TNonceAccountAddress, TNonceAuthorityAddress, TNonceValue>, transaction: TTransaction | (TTransaction & IDurableNonceTransaction)): Omit<TTransaction, keyof ITransactionWithSignatures> & IDurableNonceTransaction<TNonceAccountAddress, TNonceAuthorityAddress, TNonceValue>;
|
|
33
34
|
export {};
|
|
34
35
|
//# sourceMappingURL=durable-nonce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-nonce.d.ts","sourceRoot":"","sources":["../../src/durable-nonce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,
|
|
1
|
+
{"version":3,"file":"durable-nonce.d.ts","sourceRoot":"","sources":["../../src/durable-nonce.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,5 +4,6 @@ import { BaseTransaction } from './types';
|
|
|
4
4
|
export interface ITransactionWithFeePayer<TAddress extends string = string> {
|
|
5
5
|
readonly feePayer: Base58EncodedAddress<TAddress>;
|
|
6
6
|
}
|
|
7
|
-
export declare function setTransactionFeePayer<TFeePayerAddress extends string, TTransaction extends BaseTransaction>(feePayer: Base58EncodedAddress<TFeePayerAddress>, transaction:
|
|
7
|
+
export declare function setTransactionFeePayer<TFeePayerAddress extends string, TTransaction extends BaseTransaction>(feePayer: Base58EncodedAddress<TFeePayerAddress>, transaction: (TTransaction & ITransactionWithSignatures) | (TTransaction & ITransactionWithFeePayer<string> & ITransactionWithSignatures)): Omit<TTransaction, keyof ITransactionWithSignatures> & ITransactionWithFeePayer<TFeePayerAddress>;
|
|
8
|
+
export declare function setTransactionFeePayer<TFeePayerAddress extends string, TTransaction extends BaseTransaction>(feePayer: Base58EncodedAddress<TFeePayerAddress>, transaction: TTransaction | (TTransaction & ITransactionWithFeePayer<string>)): TTransaction & ITransactionWithFeePayer<TFeePayerAddress>;
|
|
8
9
|
//# sourceMappingURL=fee-payer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fee-payer.d.ts","sourceRoot":"","sources":["../../src/fee-payer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,wBAAwB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IACtE,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,SAAS,MAAM,EAAE,YAAY,SAAS,eAAe,EACxG,QAAQ,EAAE,oBAAoB,CAAC,gBAAgB,CAAC,EAChD,WAAW,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"fee-payer.d.ts","sourceRoot":"","sources":["../../src/fee-payer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,wBAAwB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IACtE,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,SAAS,MAAM,EAAE,YAAY,SAAS,eAAe,EACxG,QAAQ,EAAE,oBAAoB,CAAC,gBAAgB,CAAC,EAChD,WAAW,EACL,CAAC,YAAY,GAAG,0BAA0B,CAAC,GAC3C,CAAC,YAAY,GAAG,wBAAwB,CAAC,MAAM,CAAC,GAAG,0BAA0B,CAAC,GACrF,IAAI,CAAC,YAAY,EAAE,MAAM,0BAA0B,CAAC,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;AAErG,wBAAgB,sBAAsB,CAAC,gBAAgB,SAAS,MAAM,EAAE,YAAY,SAAS,eAAe,EACxG,QAAQ,EAAE,oBAAoB,CAAC,gBAAgB,CAAC,EAChD,WAAW,EAAE,YAAY,GAAG,CAAC,YAAY,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC,GAC9E,YAAY,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './blockhash';
|
|
2
|
+
export * from './compilable-transaction';
|
|
2
3
|
export * from './create-transaction';
|
|
3
4
|
export * from './durable-nonce';
|
|
4
5
|
export * from './fee-payer';
|
|
5
6
|
export * from './instructions';
|
|
7
|
+
export * from './serializers';
|
|
6
8
|
export * from './signatures';
|
|
7
9
|
export * from './types';
|
|
8
10
|
export * from './wire-transaction';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC"}
|
package/dist/types/message.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompilableTransaction } from './compilable-transaction';
|
|
2
2
|
import { getCompiledAddressTableLookups } from './compile-address-table-lookups';
|
|
3
3
|
import { getCompiledMessageHeader } from './compile-header';
|
|
4
4
|
import { getCompiledInstructions } from './compile-instructions';
|
|
5
5
|
import { getCompiledLifetimeToken } from './compile-lifetime-token';
|
|
6
6
|
import { getCompiledStaticAccounts } from './compile-static-accounts';
|
|
7
|
-
import { IDurableNonceTransaction } from './durable-nonce';
|
|
8
|
-
import { ITransactionWithFeePayer } from './fee-payer';
|
|
9
|
-
import { BaseTransaction } from './types';
|
|
10
7
|
type BaseCompiledMessage = Readonly<{
|
|
11
8
|
header: ReturnType<typeof getCompiledMessageHeader>;
|
|
12
9
|
instructions: ReturnType<typeof getCompiledInstructions>;
|
|
13
10
|
lifetimeToken: ReturnType<typeof getCompiledLifetimeToken>;
|
|
14
11
|
staticAccounts: ReturnType<typeof getCompiledStaticAccounts>;
|
|
15
12
|
}>;
|
|
16
|
-
type CompilableTransaction = BaseTransaction & ITransactionWithFeePayer & (ITransactionWithBlockhashLifetime | IDurableNonceTransaction);
|
|
17
13
|
export type CompiledMessage = LegacyCompiledMessage | VersionedCompiledMessage;
|
|
18
14
|
type LegacyCompiledMessage = BaseCompiledMessage & Readonly<{
|
|
19
15
|
version: 'legacy';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAChC,MAAM,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;IACpD,YAAY,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IACzD,aAAa,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;IAC3D,cAAc,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;CAChE,CAAC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,wBAAwB,CAAC;AAE/E,KAAK,qBAAqB,GAAG,mBAAmB,GAC5C,QAAQ,CAAC;IACL,OAAO,EAAE,QAAQ,CAAC;CACrB,CAAC,CAAC;AAEP,KAAK,wBAAwB,GAAG,mBAAmB,GAC/C,QAAQ,CAAC;IACL,mBAAmB,CAAC,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;IACxE,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEP,wBAAgB,cAAc,CAC1B,WAAW,EAAE,qBAAqB,GAAG,QAAQ,CAAC;IAAE,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC,GACrE,qBAAqB,CAAC;AACzB,wBAAgB,cAAc,CAAC,WAAW,EAAE,qBAAqB,GAAG,wBAAwB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getCompiledAddressTableLookups } from '../compile-address-table-lookups';
|
|
1
|
+
import { type Codec, type Decoder, type Encoder } from '@solana/codecs-core';
|
|
2
|
+
import type { getCompiledAddressTableLookups } from '../compile-address-table-lookups';
|
|
3
3
|
type AddressTableLookup = ReturnType<typeof getCompiledAddressTableLookups>[number];
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function getAddressTableLookupEncoder(): Encoder<AddressTableLookup>;
|
|
5
|
+
export declare function getAddressTableLookupDecoder(): Decoder<AddressTableLookup>;
|
|
6
|
+
export declare function getAddressTableLookupCodec(): Codec<AddressTableLookup>;
|
|
5
7
|
export {};
|
|
6
8
|
//# sourceMappingURL=address-table-lookup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-table-lookup.d.ts","sourceRoot":"","sources":["../../../src/serializers/address-table-lookup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"address-table-lookup.d.ts","sourceRoot":"","sources":["../../../src/serializers/address-table-lookup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAgB,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAI3F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAoBpF,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAyB1E;AAGD,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAyB1E;AAED,wBAAgB,0BAA0B,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAEtE"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
2
2
|
import { getCompiledMessageHeader } from '../compile-header';
|
|
3
3
|
type MessageHeader = ReturnType<typeof getCompiledMessageHeader>;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function getMessageHeaderEncoder(): Encoder<MessageHeader>;
|
|
5
|
+
export declare function getMessageHeaderDecoder(): Decoder<MessageHeader>;
|
|
6
|
+
export declare function getMessageHeaderCodec(): Codec<MessageHeader>;
|
|
5
7
|
export {};
|
|
6
8
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/serializers/header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/serializers/header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAI9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AA4DjE,wBAAgB,uBAAuB,IAAI,OAAO,CAAC,aAAa,CAAC,CAWhE;AAED,wBAAgB,uBAAuB,IAAI,OAAO,CAAC,aAAa,CAAC,CAWhE;AAED,wBAAgB,qBAAqB,IAAI,KAAK,CAAC,aAAa,CAAC,CAW5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/serializers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
2
2
|
import { getCompiledInstructions } from '../compile-instructions';
|
|
3
3
|
type Instruction = ReturnType<typeof getCompiledInstructions>[number];
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function getInstructionEncoder(): Encoder<Instruction>;
|
|
5
|
+
export declare function getInstructionDecoder(): Decoder<Instruction>;
|
|
6
|
+
export declare function getInstructionCodec(): Codec<Instruction>;
|
|
5
7
|
export {};
|
|
6
8
|
//# sourceMappingURL=instruction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/serializers/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/serializers/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,OAAO,EAAE,OAAO,EAA0B,MAAM,qBAAqB,CAAC;AAWpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAmBtE,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CA6B5D;AAGD,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CA6B5D;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,WAAW,CAAC,CAExD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
2
2
|
import { CompiledMessage } from '../message';
|
|
3
|
-
export declare function getCompiledMessageEncoder():
|
|
4
|
-
export declare function getCompiledMessageDecoder():
|
|
5
|
-
export declare function getCompiledMessageCodec():
|
|
3
|
+
export declare function getCompiledMessageEncoder(): Encoder<CompiledMessage>;
|
|
4
|
+
export declare function getCompiledMessageDecoder(): Decoder<CompiledMessage>;
|
|
5
|
+
export declare function getCompiledMessageCodec(): Codec<CompiledMessage>;
|
|
6
6
|
//# sourceMappingURL=message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/serializers/message.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/serializers/message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgB,OAAO,EAAE,OAAO,EAA0B,MAAM,qBAAqB,CAAC;AAapG,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAwH7C,wBAAgB,yBAAyB,IAAI,OAAO,CAAC,eAAe,CAAC,CAapE;AAED,wBAAgB,yBAAyB,IAAI,OAAO,CAAC,eAAe,CAAC,CAepE;AAED,wBAAgB,uBAAuB,IAAI,KAAK,CAAC,eAAe,CAAC,CAEhE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
2
2
|
import { TransactionVersion } from '../types';
|
|
3
|
-
export declare function getTransactionVersionDecoder():
|
|
4
|
-
export declare function getTransactionVersionEncoder():
|
|
5
|
-
export declare function getTransactionVersionCodec():
|
|
3
|
+
export declare function getTransactionVersionDecoder(): Decoder<TransactionVersion>;
|
|
4
|
+
export declare function getTransactionVersionEncoder(): Encoder<TransactionVersion>;
|
|
5
|
+
export declare function getTransactionVersionCodec(): Codec<TransactionVersion>;
|
|
6
6
|
//# sourceMappingURL=transaction-version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-version.d.ts","sourceRoot":"","sources":["../../../src/serializers/transaction-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transaction-version.d.ts","sourceRoot":"","sources":["../../../src/serializers/transaction-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAgC9C,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAK1E;AAED,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAK1E;AAED,wBAAgB,0BAA0B,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAEtE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare function getTransactionEncoder():
|
|
5
|
-
export
|
|
1
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
2
|
+
import { CompilableTransaction } from '../compilable-transaction';
|
|
3
|
+
import { ITransactionWithSignatures } from '../signatures';
|
|
4
|
+
export declare function getTransactionEncoder(): Encoder<CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures)>;
|
|
5
|
+
export declare function getTransactionDecoder(lastValidBlockHeight?: bigint): Decoder<CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures)>;
|
|
6
|
+
export declare function getTransactionCodec(lastValidBlockHeight?: bigint): Codec<CompilableTransaction | (CompilableTransaction & ITransactionWithSignatures)>;
|
|
6
7
|
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/serializers/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/serializers/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,OAAO,EAAE,OAAO,EAA0B,MAAM,qBAAqB,CAAC;AAYpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AA8C3D,wBAAgB,qBAAqB,IAAI,OAAO,CAC5C,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAC/E,CAEA;AAED,wBAAgB,qBAAqB,CACjC,oBAAoB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAAC,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAAC,CAIvF;AAED,wBAAgB,mBAAmB,CAC/B,oBAAoB,CAAC,EAAE,MAAM,GAC9B,KAAK,CAAC,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAAC,CAErF"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { Base58EncodedAddress } from '@solana/addresses';
|
|
2
2
|
import { Ed25519Signature } from '@solana/keys';
|
|
3
|
-
import {
|
|
3
|
+
import { CompilableTransaction } from './compilable-transaction';
|
|
4
|
+
import { ITransactionWithFeePayer } from './fee-payer';
|
|
4
5
|
export interface IFullySignedTransaction extends ITransactionWithSignatures {
|
|
5
|
-
readonly
|
|
6
|
+
readonly __brand: unique symbol;
|
|
6
7
|
}
|
|
7
8
|
export interface ITransactionWithSignatures {
|
|
8
9
|
readonly signatures: Readonly<Record<Base58EncodedAddress, Ed25519Signature>>;
|
|
9
10
|
}
|
|
10
|
-
export
|
|
11
|
+
export type TransactionSignature = string & {
|
|
12
|
+
readonly __brand: unique symbol;
|
|
13
|
+
};
|
|
14
|
+
export declare function assertIsTransactionSignature(putativeTransactionSignature: string): asserts putativeTransactionSignature is TransactionSignature;
|
|
15
|
+
export declare function isTransactionSignature(putativeTransactionSignature: string): putativeTransactionSignature is TransactionSignature;
|
|
16
|
+
export declare function getSignatureFromTransaction(transaction: ITransactionWithFeePayer & ITransactionWithSignatures): TransactionSignature;
|
|
17
|
+
export declare function signTransaction<TTransaction extends CompilableTransaction>(keyPairs: CryptoKeyPair[], transaction: TTransaction | (TTransaction & ITransactionWithSignatures)): Promise<TTransaction & ITransactionWithSignatures>;
|
|
18
|
+
export declare function transactionSignature(putativeTransactionSignature: string): TransactionSignature;
|
|
19
|
+
export declare function assertTransactionIsFullySigned<TTransaction extends CompilableTransaction>(transaction: TTransaction & ITransactionWithSignatures): asserts transaction is TTransaction & IFullySignedTransaction;
|
|
11
20
|
//# sourceMappingURL=signatures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signatures.d.ts","sourceRoot":"","sources":["../../src/signatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"signatures.d.ts","sourceRoot":"","sources":["../../src/signatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA2B,MAAM,mBAAmB,CAAC;AAIlF,OAAO,EAAE,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAE3D,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,oBAAoB,EAAE,gBAAgB,CAAC,CAAC,CAAC;CACjF;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,MAAM,CAAA;CAAE,CAAC;AAKhF,wBAAgB,4BAA4B,CACxC,4BAA4B,EAAE,MAAM,GACrC,OAAO,CAAC,4BAA4B,IAAI,oBAAoB,CAwB9D;AAED,wBAAgB,sBAAsB,CAClC,4BAA4B,EAAE,MAAM,GACrC,4BAA4B,IAAI,oBAAoB,CAmBtD;AAED,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,wBAAwB,GAAG,0BAA0B,GACnE,oBAAoB,CAatB;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,0BAA0B,CAAC,CAmBpD;AAED,wBAAgB,oBAAoB,CAAC,4BAA4B,EAAE,MAAM,GAAG,oBAAoB,CAG/F;AAED,wBAAgB,8BAA8B,CAAC,YAAY,SAAS,qBAAqB,EACrF,WAAW,EAAE,YAAY,GAAG,0BAA0B,GACvD,OAAO,CAAC,WAAW,IAAI,YAAY,GAAG,uBAAuB,CAY/D"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { IAccountMeta, IInstruction } from '@solana/instructions';
|
|
2
|
+
/** A string of bytes that are definitely a serialized message */
|
|
3
|
+
export type SerializedMessageBytes = Uint8Array & {
|
|
4
|
+
readonly __serializedMessageBytes: unique symbol;
|
|
5
|
+
};
|
|
6
|
+
export type SerializedMessageBytesBase64 = string & {
|
|
7
|
+
readonly __serializedMessageBytesBase64: unique symbol;
|
|
8
|
+
};
|
|
2
9
|
export type BaseTransaction = Readonly<{
|
|
3
10
|
instructions: readonly IInstruction[];
|
|
4
11
|
version: TransactionVersion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACnC,YAAY,EAAE,SAAS,YAAY,EAAE,CAAC;IACtC,OAAO,EAAE,kBAAkB,CAAC;CAC/B,CAAC,CAAC;AAEH,KAAK,iBAAiB,GAAG,eAAe,GACpC,QAAQ,CAAC;IACL,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,GAClD,QAAQ,CAAC;QAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;KAAE,CAAC,CAAC,EAAE,CAAC;IACjE,OAAO,EAAE,QAAQ,CAAC;CACrB,CAAC,CAAC;AAEP,KAAK,aAAa,GAAG,eAAe,GAChC,QAAQ,CAAC;IACL,YAAY,EAAE,SAAS,YAAY,EAAE,CAAC;IACtC,OAAO,EAAE,CAAC,CAAC;CACd,CAAC,CAAC;AAEP,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,aAAa,CAAC;AAC5D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAElE,iEAAiE;AACjE,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,wBAAwB,EAAE,OAAO,MAAM,CAAA;CAAE,CAAC;AACvG,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,8BAA8B,EAAE,OAAO,MAAM,CAAA;CAAE,CAAC;AAE/G,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACnC,YAAY,EAAE,SAAS,YAAY,EAAE,CAAC;IACtC,OAAO,EAAE,kBAAkB,CAAC;CAC/B,CAAC,CAAC;AAEH,KAAK,iBAAiB,GAAG,eAAe,GACpC,QAAQ,CAAC;IACL,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,GAClD,QAAQ,CAAC;QAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;KAAE,CAAC,CAAC,EAAE,CAAC;IACjE,OAAO,EAAE,QAAQ,CAAC;CACrB,CAAC,CAAC;AAEP,KAAK,aAAa,GAAG,eAAe,GAChC,QAAQ,CAAC;IACL,YAAY,EAAE,SAAS,YAAY,EAAE,CAAC;IACtC,OAAO,EAAE,CAAC,CAAC;CACd,CAAC,CAAC;AAEP,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,aAAa,CAAC;AAC5D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getTransactionEncoder } from './serializers/transaction';
|
|
2
2
|
export type Base64EncodedWireTransaction = string & {
|
|
3
|
-
readonly
|
|
3
|
+
readonly __brand: unique symbol;
|
|
4
4
|
};
|
|
5
|
-
export declare function getBase64EncodedWireTransaction(transaction: Parameters<ReturnType<typeof getTransactionEncoder>['
|
|
5
|
+
export declare function getBase64EncodedWireTransaction(transaction: Parameters<ReturnType<typeof getTransactionEncoder>['encode']>[0]): Base64EncodedWireTransaction;
|
|
6
6
|
//# sourceMappingURL=wire-transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-transaction.d.ts","sourceRoot":"","sources":["../../src/wire-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG;IAChD,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"wire-transaction.d.ts","sourceRoot":"","sources":["../../src/wire-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG;IAChD,QAAQ,CAAC,OAAO,EAAE,OAAO,MAAM,CAAC;CACnC,CAAC;AAEF,wBAAgB,+BAA+B,CAC3C,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAC/E,4BAA4B,CAO9B"}
|
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.fbd3974",
|
|
4
4
|
"description": "Helpers for creating and serializing transactions",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -46,27 +46,32 @@
|
|
|
46
46
|
"maintained node versions"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@solana/
|
|
51
|
-
"@solana/
|
|
49
|
+
"@solana/addresses": "2.0.0-experimental.fbd3974",
|
|
50
|
+
"@solana/codecs-core": "2.0.0-experimental.fbd3974",
|
|
51
|
+
"@solana/codecs-data-structures": "2.0.0-experimental.fbd3974",
|
|
52
|
+
"@solana/codecs-numbers": "2.0.0-experimental.fbd3974",
|
|
53
|
+
"@solana/codecs-strings": "2.0.0-experimental.fbd3974",
|
|
54
|
+
"@solana/functional": "2.0.0-experimental.fbd3974",
|
|
55
|
+
"@solana/keys": "2.0.0-experimental.fbd3974"
|
|
52
56
|
},
|
|
53
57
|
"devDependencies": {
|
|
54
58
|
"@solana/eslint-config-solana": "^1.0.2",
|
|
55
|
-
"@swc/jest": "^0.2.
|
|
56
|
-
"@types/jest": "^29.5.
|
|
57
|
-
"@
|
|
58
|
-
"@typescript-eslint/
|
|
59
|
+
"@swc/jest": "^0.2.29",
|
|
60
|
+
"@types/jest": "^29.5.6",
|
|
61
|
+
"@types/node": "^20.6.3",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
63
|
+
"@typescript-eslint/parser": "^6.3.0",
|
|
59
64
|
"agadoo": "^3.0.0",
|
|
60
65
|
"eslint": "^8.45.0",
|
|
61
66
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
62
|
-
"jest": "^29.
|
|
63
|
-
"jest-runner-eslint": "^2.1.
|
|
67
|
+
"jest": "^29.7.0",
|
|
68
|
+
"jest-runner-eslint": "^2.1.2",
|
|
64
69
|
"jest-runner-prettier": "^1.0.0",
|
|
65
|
-
"prettier": "^2.
|
|
70
|
+
"prettier": "^2.8",
|
|
66
71
|
"tsup": "7.2.0",
|
|
67
|
-
"typescript": "^5.
|
|
72
|
+
"typescript": "^5.2.2",
|
|
68
73
|
"version-from-git": "^1.1.1",
|
|
69
|
-
"@solana/instructions": "2.0.0-experimental.
|
|
74
|
+
"@solana/instructions": "2.0.0-experimental.fbd3974",
|
|
70
75
|
"build-scripts": "0.0.0",
|
|
71
76
|
"test-config": "0.0.0",
|
|
72
77
|
"test-matchers": "0.0.0",
|
|
@@ -85,11 +90,12 @@
|
|
|
85
90
|
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
|
|
86
91
|
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
87
92
|
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
|
|
93
|
+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
|
|
88
94
|
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
89
95
|
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
90
96
|
"test:treeshakability:browser": "agadoo dist/index.browser.js",
|
|
91
|
-
"test:treeshakability:native": "agadoo dist/index.
|
|
92
|
-
"test:treeshakability:node": "agadoo dist/index.
|
|
97
|
+
"test:treeshakability:native": "agadoo dist/index.native.js",
|
|
98
|
+
"test:treeshakability:node": "agadoo dist/index.node.js",
|
|
93
99
|
"test:typecheck": "tsc --noEmit",
|
|
94
100
|
"test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
95
101
|
"test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --rootDir . --silent"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../src/serializers/unimplemented.ts"],"names":[],"mappings":"AAOA,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,KAAK,CAIjE;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,KAAK,CAIjE"}
|