@solana-program/system 0.1.3 → 0.3.0

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.
Files changed (47) hide show
  1. package/dist/src/index.cjs +414 -678
  2. package/dist/src/index.cjs.map +1 -1
  3. package/dist/src/index.js +281 -530
  4. package/dist/src/index.js.map +1 -1
  5. package/dist/types/src/generated/accounts/nonce.d.ts +12 -16
  6. package/dist/types/src/generated/accounts/nonce.d.ts.map +1 -1
  7. package/dist/types/src/generated/errors/system.d.ts +20 -27
  8. package/dist/types/src/generated/errors/system.d.ts.map +1 -1
  9. package/dist/types/src/generated/index.d.ts +0 -1
  10. package/dist/types/src/generated/index.d.ts.map +1 -1
  11. package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts +6 -25
  12. package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts.map +1 -1
  13. package/dist/types/src/generated/instructions/allocate.d.ts +6 -20
  14. package/dist/types/src/generated/instructions/allocate.d.ts.map +1 -1
  15. package/dist/types/src/generated/instructions/allocateWithSeed.d.ts +6 -26
  16. package/dist/types/src/generated/instructions/allocateWithSeed.d.ts.map +1 -1
  17. package/dist/types/src/generated/instructions/assign.d.ts +6 -20
  18. package/dist/types/src/generated/instructions/assign.d.ts.map +1 -1
  19. package/dist/types/src/generated/instructions/assignWithSeed.d.ts +6 -25
  20. package/dist/types/src/generated/instructions/assignWithSeed.d.ts.map +1 -1
  21. package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts +6 -23
  22. package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts.map +1 -1
  23. package/dist/types/src/generated/instructions/createAccount.d.ts +6 -25
  24. package/dist/types/src/generated/instructions/createAccount.d.ts.map +1 -1
  25. package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts +6 -30
  26. package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts.map +1 -1
  27. package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts +6 -25
  28. package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts.map +1 -1
  29. package/dist/types/src/generated/instructions/transferSol.d.ts +6 -23
  30. package/dist/types/src/generated/instructions/transferSol.d.ts.map +1 -1
  31. package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts +6 -28
  32. package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts.map +1 -1
  33. package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts +6 -18
  34. package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts.map +1 -1
  35. package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts +6 -32
  36. package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts.map +1 -1
  37. package/dist/types/src/generated/programs/system.d.ts +1 -5
  38. package/dist/types/src/generated/programs/system.d.ts.map +1 -1
  39. package/dist/types/src/generated/shared/index.d.ts +2 -13
  40. package/dist/types/src/generated/shared/index.d.ts.map +1 -1
  41. package/dist/types/src/generated/types/nonceState.d.ts +1 -1
  42. package/dist/types/src/generated/types/nonceState.d.ts.map +1 -1
  43. package/dist/types/src/generated/types/nonceVersion.d.ts +1 -1
  44. package/dist/types/src/generated/types/nonceVersion.d.ts.map +1 -1
  45. package/dist/types/test/_setup.d.ts +5 -5
  46. package/dist/types/test/_setup.d.ts.map +1 -1
  47. package/package.json +13 -22
@@ -5,34 +5,30 @@
5
5
  *
6
6
  * @see https://github.com/metaplex-foundation/kinobi
7
7
  */
8
- import { Account, EncodedAccount, FetchAccountConfig, FetchAccountsConfig, MaybeAccount, MaybeEncodedAccount, fetchEncodedAccount, fetchEncodedAccounts } from '@solana/accounts';
9
- import { Address } from '@solana/addresses';
10
- import { Codec, Decoder, Encoder } from '@solana/codecs';
8
+ import { Account, Address, Codec, Decoder, EncodedAccount, Encoder, FetchAccountConfig, FetchAccountsConfig, MaybeAccount, MaybeEncodedAccount, fetchEncodedAccount, fetchEncodedAccounts } from '@solana/web3.js';
11
9
  import { NonceState, NonceStateArgs, NonceVersion, NonceVersionArgs } from '../types';
12
- export type Nonce<TAddress extends string = string> = Account<NonceAccountData, TAddress>;
13
- export type MaybeNonce<TAddress extends string = string> = MaybeAccount<NonceAccountData, TAddress>;
14
- export type NonceAccountData = {
10
+ export type Nonce = {
15
11
  version: NonceVersion;
16
12
  state: NonceState;
17
13
  authority: Address;
18
14
  blockhash: Address;
19
15
  lamportsPerSignature: bigint;
20
16
  };
21
- export type NonceAccountDataArgs = {
17
+ export type NonceArgs = {
22
18
  version: NonceVersionArgs;
23
19
  state: NonceStateArgs;
24
20
  authority: Address;
25
21
  blockhash: Address;
26
22
  lamportsPerSignature: number | bigint;
27
23
  };
28
- export declare function getNonceAccountDataEncoder(): Encoder<NonceAccountDataArgs>;
29
- export declare function getNonceAccountDataDecoder(): Decoder<NonceAccountData>;
30
- export declare function getNonceAccountDataCodec(): Codec<NonceAccountDataArgs, NonceAccountData>;
31
- export declare function decodeNonce<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Nonce<TAddress>;
32
- export declare function decodeNonce<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeNonce<TAddress>;
33
- export declare function fetchNonce<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Nonce<TAddress>>;
34
- export declare function fetchMaybeNonce<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeNonce<TAddress>>;
35
- export declare function fetchAllNonce(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Nonce[]>;
36
- export declare function fetchAllMaybeNonce(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeNonce[]>;
24
+ export declare function getNonceEncoder(): Encoder<NonceArgs>;
25
+ export declare function getNonceDecoder(): Decoder<Nonce>;
26
+ export declare function getNonceCodec(): Codec<NonceArgs, Nonce>;
27
+ export declare function decodeNonce<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Nonce, TAddress>;
28
+ export declare function decodeNonce<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Nonce, TAddress>;
29
+ export declare function fetchNonce<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Nonce, TAddress>>;
30
+ export declare function fetchMaybeNonce<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Nonce, TAddress>>;
31
+ export declare function fetchAllNonce(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Nonce>[]>;
32
+ export declare function fetchAllMaybeNonce(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Nonce>[]>;
37
33
  export declare function getNonceSize(): number;
38
34
  //# sourceMappingURL=nonce.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nonce.d.ts","sourceRoot":"","sources":["../../../../../src/generated/accounts/nonce.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EAInB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EAMR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,gBAAgB,EAKjB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,KAAK,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,IAAI,OAAO,CAC3D,gBAAgB,EAChB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AAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAGxC;AAED,wBAAsB,aAAa,CACjC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAI3B;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAGhC;AAED,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
@@ -5,31 +5,24 @@
5
5
  *
6
6
  * @see https://github.com/metaplex-foundation/kinobi
7
7
  */
8
- export declare const enum SystemProgramErrorCode {
9
- /** AccountAlreadyInUse: an account with the same address already exists */
10
- ACCOUNT_ALREADY_IN_USE = 0,// 0
11
- /** ResultWithNegativeLamports: account does not have enough SOL to perform the operation */
12
- RESULT_WITH_NEGATIVE_LAMPORTS = 1,// 1
13
- /** InvalidProgramId: cannot assign account to this program id */
14
- INVALID_PROGRAM_ID = 2,// 2
15
- /** InvalidAccountDataLength: cannot allocate account data of this length */
16
- INVALID_ACCOUNT_DATA_LENGTH = 3,// 3
17
- /** MaxSeedLengthExceeded: length of requested seed is too long */
18
- MAX_SEED_LENGTH_EXCEEDED = 4,// 4
19
- /** AddressWithSeedMismatch: provided address does not match addressed derived from seed */
20
- ADDRESS_WITH_SEED_MISMATCH = 5,// 5
21
- /** NonceNoRecentBlockhashes: advancing stored nonce requires a populated RecentBlockhashes sysvar */
22
- NONCE_NO_RECENT_BLOCKHASHES = 6,// 6
23
- /** NonceBlockhashNotExpired: stored nonce is still in recent_blockhashes */
24
- NONCE_BLOCKHASH_NOT_EXPIRED = 7,// 7
25
- /** NonceUnexpectedBlockhashValue: specified nonce does not match stored nonce */
26
- NONCE_UNEXPECTED_BLOCKHASH_VALUE = 8
27
- }
28
- export declare class SystemProgramError extends Error {
29
- readonly name = "SystemProgramError";
30
- readonly code: SystemProgramErrorCode;
31
- readonly cause: Error | undefined;
32
- constructor(code: SystemProgramErrorCode, name: string, message: string, cause?: Error);
33
- }
34
- export declare function getSystemProgramErrorFromCode(code: SystemProgramErrorCode, cause?: Error): SystemProgramError;
8
+ /** AccountAlreadyInUse: an account with the same address already exists */
9
+ export declare const SYSTEM_ERROR__ACCOUNT_ALREADY_IN_USE = 0;
10
+ /** ResultWithNegativeLamports: account does not have enough SOL to perform the operation */
11
+ export declare const SYSTEM_ERROR__RESULT_WITH_NEGATIVE_LAMPORTS = 1;
12
+ /** InvalidProgramId: cannot assign account to this program id */
13
+ export declare const SYSTEM_ERROR__INVALID_PROGRAM_ID = 2;
14
+ /** InvalidAccountDataLength: cannot allocate account data of this length */
15
+ export declare const SYSTEM_ERROR__INVALID_ACCOUNT_DATA_LENGTH = 3;
16
+ /** MaxSeedLengthExceeded: length of requested seed is too long */
17
+ export declare const SYSTEM_ERROR__MAX_SEED_LENGTH_EXCEEDED = 4;
18
+ /** AddressWithSeedMismatch: provided address does not match addressed derived from seed */
19
+ export declare const SYSTEM_ERROR__ADDRESS_WITH_SEED_MISMATCH = 5;
20
+ /** NonceNoRecentBlockhashes: advancing stored nonce requires a populated RecentBlockhashes sysvar */
21
+ export declare const SYSTEM_ERROR__NONCE_NO_RECENT_BLOCKHASHES = 6;
22
+ /** NonceBlockhashNotExpired: stored nonce is still in recent_blockhashes */
23
+ export declare const SYSTEM_ERROR__NONCE_BLOCKHASH_NOT_EXPIRED = 7;
24
+ /** NonceUnexpectedBlockhashValue: specified nonce does not match stored nonce */
25
+ export declare const SYSTEM_ERROR__NONCE_UNEXPECTED_BLOCKHASH_VALUE = 8;
26
+ export type SystemError = typeof SYSTEM_ERROR__ACCOUNT_ALREADY_IN_USE | typeof SYSTEM_ERROR__ADDRESS_WITH_SEED_MISMATCH | typeof SYSTEM_ERROR__INVALID_ACCOUNT_DATA_LENGTH | typeof SYSTEM_ERROR__INVALID_PROGRAM_ID | typeof SYSTEM_ERROR__MAX_SEED_LENGTH_EXCEEDED | typeof SYSTEM_ERROR__NONCE_BLOCKHASH_NOT_EXPIRED | typeof SYSTEM_ERROR__NONCE_NO_RECENT_BLOCKHASHES | typeof SYSTEM_ERROR__NONCE_UNEXPECTED_BLOCKHASH_VALUE | typeof SYSTEM_ERROR__RESULT_WITH_NEGATIVE_LAMPORTS;
27
+ export declare function getSystemErrorMessage(code: SystemError): string;
35
28
  //# sourceMappingURL=system.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../../src/generated/errors/system.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,0BAAkB,sBAAsB;IACtC,2EAA2E;IAC3E,sBAAsB,IAAM,CAAE,IAAI;IAClC,4FAA4F;IAC5F,6BAA6B,IAAM,CAAE,IAAI;IACzC,iEAAiE;IACjE,kBAAkB,IAAM,CAAE,IAAI;IAC9B,4EAA4E;IAC5E,2BAA2B,IAAM,CAAE,IAAI;IACvC,kEAAkE;IAClE,wBAAwB,IAAM,CAAE,IAAI;IACpC,2FAA2F;IAC3F,0BAA0B,IAAM,CAAE,IAAI;IACtC,qGAAqG;IACrG,2BAA2B,IAAM,CAAE,IAAI;IACvC,4EAA4E;IAC5E,2BAA2B,IAAM,CAAE,IAAI;IACvC,iFAAiF;IACjF,gCAAgC,IAAM;CACvC;AAED,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,SAAkB,IAAI,wBAAwB;IAE9C,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAC;IAEtC,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;gBAGhC,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,KAAK;CAMhB;AA8CD,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,sBAAsB,EAC5B,KAAK,CAAC,EAAE,KAAK,GACZ,kBAAkB,CAoBpB"}
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../../src/generated/errors/system.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,2EAA2E;AAC3E,eAAO,MAAM,oCAAoC,IAAM,CAAC;AACxD,4FAA4F;AAC5F,eAAO,MAAM,2CAA2C,IAAM,CAAC;AAC/D,iEAAiE;AACjE,eAAO,MAAM,gCAAgC,IAAM,CAAC;AACpD,4EAA4E;AAC5E,eAAO,MAAM,yCAAyC,IAAM,CAAC;AAC7D,kEAAkE;AAClE,eAAO,MAAM,sCAAsC,IAAM,CAAC;AAC1D,2FAA2F;AAC3F,eAAO,MAAM,wCAAwC,IAAM,CAAC;AAC5D,qGAAqG;AACrG,eAAO,MAAM,yCAAyC,IAAM,CAAC;AAC7D,4EAA4E;AAC5E,eAAO,MAAM,yCAAyC,IAAM,CAAC;AAC7D,iFAAiF;AACjF,eAAO,MAAM,8CAA8C,IAAM,CAAC;AAElE,MAAM,MAAM,WAAW,GACnB,OAAO,oCAAoC,GAC3C,OAAO,wCAAwC,GAC/C,OAAO,yCAAyC,GAChD,OAAO,gCAAgC,GACvC,OAAO,sCAAsC,GAC7C,OAAO,yCAAyC,GAChD,OAAO,yCAAyC,GAChD,OAAO,8CAA8C,GACrD,OAAO,2CAA2C,CAAC;AAiBvD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAM/D"}
@@ -9,6 +9,5 @@ export * from './accounts';
9
9
  export * from './errors';
10
10
  export * from './instructions';
11
11
  export * from './programs';
12
- export * from './shared';
13
12
  export * from './types';
14
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -5,17 +5,9 @@
5
5
  *
6
6
  * @see https://github.com/metaplex-foundation/kinobi
7
7
  */
8
- import { Address } from '@solana/addresses';
9
- import { Codec, Decoder, Encoder } from '@solana/codecs';
10
- import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlyAccount, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type AdvanceNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
14
- TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
15
- TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> : TAccountNonceAuthority,
16
- ...TRemainingAccounts
17
- ]>;
18
- export type AdvanceNonceAccountInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlyAccount, ReadonlySignerAccount, TransactionSigner, WritableAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type AdvanceNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
19
11
  TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
20
12
  TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
21
13
  TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> & IAccountSignerMeta<TAccountNonceAuthority> : TAccountNonceAuthority,
@@ -28,24 +20,13 @@ export type AdvanceNonceAccountInstructionDataArgs = {};
28
20
  export declare function getAdvanceNonceAccountInstructionDataEncoder(): Encoder<AdvanceNonceAccountInstructionDataArgs>;
29
21
  export declare function getAdvanceNonceAccountInstructionDataDecoder(): Decoder<AdvanceNonceAccountInstructionData>;
30
22
  export declare function getAdvanceNonceAccountInstructionDataCodec(): Codec<AdvanceNonceAccountInstructionDataArgs, AdvanceNonceAccountInstructionData>;
31
- export type AdvanceNonceAccountInput<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountNonceAuthority extends string> = {
32
- nonceAccount: Address<TAccountNonceAccount>;
33
- recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
34
- nonceAuthority: Address<TAccountNonceAuthority>;
35
- };
36
- export type AdvanceNonceAccountInputWithSigners<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountNonceAuthority extends string> = {
23
+ export type AdvanceNonceAccountInput<TAccountNonceAccount extends string = string, TAccountRecentBlockhashesSysvar extends string = string, TAccountNonceAuthority extends string = string> = {
37
24
  nonceAccount: Address<TAccountNonceAccount>;
38
25
  recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
39
26
  nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
40
27
  };
41
- export declare function getAdvanceNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountNonceAuthority extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AdvanceNonceAccountInputWithSigners<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>): AdvanceNonceAccountInstructionWithSigners<TProgram, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>;
42
- export declare function getAdvanceNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountNonceAuthority extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AdvanceNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>): AdvanceNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>;
43
- export declare function getAdvanceNonceAccountInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
44
- nonceAccount: TAccountNonceAccount extends string ? Address<TAccountNonceAccount> : TAccountNonceAccount;
45
- recentBlockhashesSysvar?: TAccountRecentBlockhashesSysvar extends string ? Address<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar;
46
- nonceAuthority: TAccountNonceAuthority extends string ? Address<TAccountNonceAuthority> : TAccountNonceAuthority;
47
- }, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): AdvanceNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority, TRemainingAccounts>;
48
- export type ParsedAdvanceNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
28
+ export declare function getAdvanceNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountNonceAuthority extends string>(input: AdvanceNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>): AdvanceNonceAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountNonceAuthority>;
29
+ export type ParsedAdvanceNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
49
30
  programAddress: Address<TProgram>;
50
31
  accounts: {
51
32
  nonceAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"advanceNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/advanceNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAA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B,CAAC;IACzB,uBAAuB,CAAC,EAAE,+BAA+B,SAAS,MAAM,GACpE,OAAO,CAAC,+BAA+B,CAAC,GACxC,+BAA+B,CAAC;IACpC,cAAc,EAAE,sBAAsB,SAAS,MAAM,GACjD,OAAO,CAAC,sBAAsB,CAAC,GAC/B,sBAAsB,CAAC;CAC5B,EACD,cAAc,GAAE,OAAO,CAAC,QAAQ,CAA2D,EAC3F,iBAAiB,CAAC,EAAE,kBAAkB,+IAyBvC;AAED,MAAM,MAAM,oCAAoC,CAC9C,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,aAAa,SAAS,SAAS,YAAY,EAAE,GAAG,SAAS,YAAY,EAAE,IACrE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAClC,CAAC;IACF,IAAI,EAAE,kCAAkC,CAAC;CAC1C,CAAC;AAEF,wBAAgB,mCAAmC,CACjD,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,YAAY,EAAE,EAE7C,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,GACjC,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,oCAAoC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsB/D"}
1
+ {"version":3,"file":"advanceNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/advanceNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EAC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i
7
7
  */
8
- import { Address } from '@solana/addresses';
9
- import { Codec, Decoder, Encoder } from '@solana/codecs';
10
- import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, WritableSignerAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type AllocateInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> : TAccountNewAccount,
14
- ...TRemainingAccounts
15
- ]>;
16
- export type AllocateInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, TransactionSigner, WritableSignerAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type AllocateInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
17
11
  TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> & IAccountSignerMeta<TAccountNewAccount> : TAccountNewAccount,
18
12
  ...TRemainingAccounts
19
13
  ]>;
@@ -27,20 +21,12 @@ export type AllocateInstructionDataArgs = {
27
21
  export declare function getAllocateInstructionDataEncoder(): Encoder<AllocateInstructionDataArgs>;
28
22
  export declare function getAllocateInstructionDataDecoder(): Decoder<AllocateInstructionData>;
29
23
  export declare function getAllocateInstructionDataCodec(): Codec<AllocateInstructionDataArgs, AllocateInstructionData>;
30
- export type AllocateInput<TAccountNewAccount extends string> = {
31
- newAccount: Address<TAccountNewAccount>;
32
- space: AllocateInstructionDataArgs['space'];
33
- };
34
- export type AllocateInputWithSigners<TAccountNewAccount extends string> = {
24
+ export type AllocateInput<TAccountNewAccount extends string = string> = {
35
25
  newAccount: TransactionSigner<TAccountNewAccount>;
36
26
  space: AllocateInstructionDataArgs['space'];
37
27
  };
38
- export declare function getAllocateInstruction<TAccountNewAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AllocateInputWithSigners<TAccountNewAccount>): AllocateInstructionWithSigners<TProgram, TAccountNewAccount>;
39
- export declare function getAllocateInstruction<TAccountNewAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AllocateInput<TAccountNewAccount>): AllocateInstruction<TProgram, TAccountNewAccount>;
40
- export declare function getAllocateInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
41
- newAccount: TAccountNewAccount extends string ? Address<TAccountNewAccount> : TAccountNewAccount;
42
- }, args: AllocateInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): AllocateInstruction<TProgram, TAccountNewAccount, TRemainingAccounts>;
43
- export type ParsedAllocateInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
28
+ export declare function getAllocateInstruction<TAccountNewAccount extends string>(input: AllocateInput<TAccountNewAccount>): AllocateInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNewAccount>;
29
+ export type ParsedAllocateInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
44
30
  programAddress: Address<TProgram>;
45
31
  accounts: {
46
32
  newAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"all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,EACvD,aAAa,SAAS,SAAS,YAAY,EAAE,GAAG,SAAS,YAAY,EAAE,IACrE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC9B,CAAC;IACF,IAAI,EAAE,uBAAuB,CAAC;CAC/B,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,YAAY,EAAE,EAE7C,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,GACjC,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,yBAAyB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkBpD"}
@@ -5,16 +5,9 @@
5
5
  *
6
6
  * @see https://github.com/metaplex-foundation/kinobi
7
7
  */
8
- import { Address } from '@solana/addresses';
9
- import { Codec, Decoder, Encoder } from '@solana/codecs';
10
- import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type AllocateWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountNewAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountNewAccount extends string ? WritableAccount<TAccountNewAccount> : TAccountNewAccount,
14
- TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> : TAccountBaseAccount,
15
- ...TRemainingAccounts
16
- ]>;
17
- export type AllocateWithSeedInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountNewAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, TransactionSigner, WritableAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type AllocateWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountNewAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
18
11
  TAccountNewAccount extends string ? WritableAccount<TAccountNewAccount> : TAccountNewAccount,
19
12
  TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
20
13
  ...TRemainingAccounts
@@ -35,15 +28,7 @@ export type AllocateWithSeedInstructionDataArgs = {
35
28
  export declare function getAllocateWithSeedInstructionDataEncoder(): Encoder<AllocateWithSeedInstructionDataArgs>;
36
29
  export declare function getAllocateWithSeedInstructionDataDecoder(): Decoder<AllocateWithSeedInstructionData>;
37
30
  export declare function getAllocateWithSeedInstructionDataCodec(): Codec<AllocateWithSeedInstructionDataArgs, AllocateWithSeedInstructionData>;
38
- export type AllocateWithSeedInput<TAccountNewAccount extends string, TAccountBaseAccount extends string> = {
39
- newAccount: Address<TAccountNewAccount>;
40
- baseAccount: Address<TAccountBaseAccount>;
41
- base: AllocateWithSeedInstructionDataArgs['base'];
42
- seed: AllocateWithSeedInstructionDataArgs['seed'];
43
- space: AllocateWithSeedInstructionDataArgs['space'];
44
- programAddress: AllocateWithSeedInstructionDataArgs['programAddress'];
45
- };
46
- export type AllocateWithSeedInputWithSigners<TAccountNewAccount extends string, TAccountBaseAccount extends string> = {
31
+ export type AllocateWithSeedInput<TAccountNewAccount extends string = string, TAccountBaseAccount extends string = string> = {
47
32
  newAccount: Address<TAccountNewAccount>;
48
33
  baseAccount: TransactionSigner<TAccountBaseAccount>;
49
34
  base: AllocateWithSeedInstructionDataArgs['base'];
@@ -51,13 +36,8 @@ export type AllocateWithSeedInputWithSigners<TAccountNewAccount extends string,
51
36
  space: AllocateWithSeedInstructionDataArgs['space'];
52
37
  programAddress: AllocateWithSeedInstructionDataArgs['programAddress'];
53
38
  };
54
- export declare function getAllocateWithSeedInstruction<TAccountNewAccount extends string, TAccountBaseAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AllocateWithSeedInputWithSigners<TAccountNewAccount, TAccountBaseAccount>): AllocateWithSeedInstructionWithSigners<TProgram, TAccountNewAccount, TAccountBaseAccount>;
55
- export declare function getAllocateWithSeedInstruction<TAccountNewAccount extends string, TAccountBaseAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AllocateWithSeedInput<TAccountNewAccount, TAccountBaseAccount>): AllocateWithSeedInstruction<TProgram, TAccountNewAccount, TAccountBaseAccount>;
56
- export declare function getAllocateWithSeedInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountNewAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
57
- newAccount: TAccountNewAccount extends string ? Address<TAccountNewAccount> : TAccountNewAccount;
58
- baseAccount: TAccountBaseAccount extends string ? Address<TAccountBaseAccount> : TAccountBaseAccount;
59
- }, args: AllocateWithSeedInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): AllocateWithSeedInstruction<TProgram, TAccountNewAccount, TAccountBaseAccount, TRemainingAccounts>;
60
- export type ParsedAllocateWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
39
+ export declare function getAllocateWithSeedInstruction<TAccountNewAccount extends string, TAccountBaseAccount extends string>(input: AllocateWithSeedInput<TAccountNewAccount, TAccountBaseAccount>): AllocateWithSeedInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNewAccount, TAccountBaseAccount>;
40
+ export type ParsedAllocateWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
61
41
  programAddress: Address<TProgram>;
62
42
  accounts: {
63
43
  newAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"allocateWithSeed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/allocateWithSeed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EAWR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOxE,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,kBAAkB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,mBAAmB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,kBAAkB,SAAS,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IACzD,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CACtB;IACE,kBAAkB,SAAS,MAAM,GAC7B,eAAe,CAAC,kBAAkB,CAAC,GACnC,kBAAkB;IACtB,mBAAmB,SAAS,MAAM,GAC9B,qBAAqB,CAAC,mBAAmB,CA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AE,aAAa,CAAC,CAmB5D"}
1
+ {"version":3,"file":"allocateWithSeed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/allocateWithSeed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EAehB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,kBAAkB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,mBAAmB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,kBAAkB,SAAS,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC7D,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CACtB;IACE,kBAAkB,SAAS,MAAM,GAC7B,eAAe,CAAC,kBAAkB,CAAC,GACnC,kBAAkB;IACtB,mBAAmB,SAAS,MAAM,GAC9B,qBAAqB,CAAC,mBAAmB,CAAC,GACxC,kBAAkB,CAAC,mBAAmB,CAAC,GACzC,mBAAmB;IACvB,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,+BAA+B,GAAG;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,IAAI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,CAAC,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,+BAA+B,CAAC;CACvC,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,YAAY,EAAE,EAE7C,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,GACjC,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,iCAAiC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAmB5D"}
@@ -5,15 +5,9 @@
5
5
  *
6
6
  * @see https://github.com/metaplex-foundation/kinobi
7
7
  */
8
- import { Address } from '@solana/addresses';
9
- import { Codec, Decoder, Encoder } from '@solana/codecs';
10
- import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, WritableSignerAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type AssignInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountAccount extends string ? WritableSignerAccount<TAccountAccount> : TAccountAccount,
14
- ...TRemainingAccounts
15
- ]>;
16
- export type AssignInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, TransactionSigner, WritableSignerAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type AssignInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
17
11
  TAccountAccount extends string ? WritableSignerAccount<TAccountAccount> & IAccountSignerMeta<TAccountAccount> : TAccountAccount,
18
12
  ...TRemainingAccounts
19
13
  ]>;
@@ -27,20 +21,12 @@ export type AssignInstructionDataArgs = {
27
21
  export declare function getAssignInstructionDataEncoder(): Encoder<AssignInstructionDataArgs>;
28
22
  export declare function getAssignInstructionDataDecoder(): Decoder<AssignInstructionData>;
29
23
  export declare function getAssignInstructionDataCodec(): Codec<AssignInstructionDataArgs, AssignInstructionData>;
30
- export type AssignInput<TAccountAccount extends string> = {
31
- account: Address<TAccountAccount>;
32
- programAddress: AssignInstructionDataArgs['programAddress'];
33
- };
34
- export type AssignInputWithSigners<TAccountAccount extends string> = {
24
+ export type AssignInput<TAccountAccount extends string = string> = {
35
25
  account: TransactionSigner<TAccountAccount>;
36
26
  programAddress: AssignInstructionDataArgs['programAddress'];
37
27
  };
38
- export declare function getAssignInstruction<TAccountAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AssignInputWithSigners<TAccountAccount>): AssignInstructionWithSigners<TProgram, TAccountAccount>;
39
- export declare function getAssignInstruction<TAccountAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AssignInput<TAccountAccount>): AssignInstruction<TProgram, TAccountAccount>;
40
- export declare function getAssignInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
41
- account: TAccountAccount extends string ? Address<TAccountAccount> : TAccountAccount;
42
- }, args: AssignInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): AssignInstruction<TProgram, TAccountAccount, TRemainingAccounts>;
43
- export type ParsedAssignInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
28
+ export declare function getAssignInstruction<TAccountAccount extends string>(input: AssignInput<TAccountAccount>): AssignInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountAccount>;
29
+ export type ParsedAssignInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
44
30
  programAddress: Address<TProgram>;
45
31
  accounts: {
46
32
  account: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"assign.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/assign.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EAOR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOxE,MAAM,MAAM,iBAAiB,CAC3B,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,eAAe,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC9D,kBAAkB,SAAS,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IACzD,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CACtB;IACE,eAAe,SAAS,MAAM,GAC1B,qBAAqB,CAAC,eAAe,CAAC,GACtC,eAAe;IACnB,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,4BAA4B,CACtC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,eAAe,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC9D,kBAAkB,SAAS,KAAK,CAAC,YAAY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,SAAS,MAAM,EACjE,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,GAClC,iBAAiB,CAAC,OAAO,sBAAsB,EAAE,eAAe,CAAC,CA0BnE;AAED,MAAM,MAAM,uBAAuB,CACjC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,aAAa,SAAS,SAAS,YAAY,EAAE,GAAG,SAAS,YAAY,EAAE,IACrE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC3B,CAAC;IACF,IAAI,EAAE,qBAAqB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,YAAY,EAAE,EAE7C,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,GACjC,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,uBAAuB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkBlD"}
@@ -5,16 +5,9 @@
5
5
  *
6
6
  * @see https://github.com/metaplex-foundation/kinobi
7
7
  */
8
- import { Address } from '@solana/addresses';
9
- import { Codec, Decoder, Encoder } from '@solana/codecs';
10
- import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type AssignWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountAccount extends string ? WritableAccount<TAccountAccount> : TAccountAccount,
14
- TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> : TAccountBaseAccount,
15
- ...TRemainingAccounts
16
- ]>;
17
- export type AssignWithSeedInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, TransactionSigner, WritableAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type AssignWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
18
11
  TAccountAccount extends string ? WritableAccount<TAccountAccount> : TAccountAccount,
19
12
  TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
20
13
  ...TRemainingAccounts
@@ -33,27 +26,15 @@ export type AssignWithSeedInstructionDataArgs = {
33
26
  export declare function getAssignWithSeedInstructionDataEncoder(): Encoder<AssignWithSeedInstructionDataArgs>;
34
27
  export declare function getAssignWithSeedInstructionDataDecoder(): Decoder<AssignWithSeedInstructionData>;
35
28
  export declare function getAssignWithSeedInstructionDataCodec(): Codec<AssignWithSeedInstructionDataArgs, AssignWithSeedInstructionData>;
36
- export type AssignWithSeedInput<TAccountAccount extends string, TAccountBaseAccount extends string> = {
37
- account: Address<TAccountAccount>;
38
- baseAccount: Address<TAccountBaseAccount>;
39
- base: AssignWithSeedInstructionDataArgs['base'];
40
- seed: AssignWithSeedInstructionDataArgs['seed'];
41
- programAddress: AssignWithSeedInstructionDataArgs['programAddress'];
42
- };
43
- export type AssignWithSeedInputWithSigners<TAccountAccount extends string, TAccountBaseAccount extends string> = {
29
+ export type AssignWithSeedInput<TAccountAccount extends string = string, TAccountBaseAccount extends string = string> = {
44
30
  account: Address<TAccountAccount>;
45
31
  baseAccount: TransactionSigner<TAccountBaseAccount>;
46
32
  base: AssignWithSeedInstructionDataArgs['base'];
47
33
  seed: AssignWithSeedInstructionDataArgs['seed'];
48
34
  programAddress: AssignWithSeedInstructionDataArgs['programAddress'];
49
35
  };
50
- export declare function getAssignWithSeedInstruction<TAccountAccount extends string, TAccountBaseAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AssignWithSeedInputWithSigners<TAccountAccount, TAccountBaseAccount>): AssignWithSeedInstructionWithSigners<TProgram, TAccountAccount, TAccountBaseAccount>;
51
- export declare function getAssignWithSeedInstruction<TAccountAccount extends string, TAccountBaseAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AssignWithSeedInput<TAccountAccount, TAccountBaseAccount>): AssignWithSeedInstruction<TProgram, TAccountAccount, TAccountBaseAccount>;
52
- export declare function getAssignWithSeedInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
53
- account: TAccountAccount extends string ? Address<TAccountAccount> : TAccountAccount;
54
- baseAccount: TAccountBaseAccount extends string ? Address<TAccountBaseAccount> : TAccountBaseAccount;
55
- }, args: AssignWithSeedInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): AssignWithSeedInstruction<TProgram, TAccountAccount, TAccountBaseAccount, TRemainingAccounts>;
56
- export type ParsedAssignWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
36
+ export declare function getAssignWithSeedInstruction<TAccountAccount extends string, TAccountBaseAccount extends string>(input: AssignWithSeedInput<TAccountAccount, TAccountBaseAccount>): AssignWithSeedInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountAccount, TAccountBaseAccount>;
37
+ export type ParsedAssignWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
57
38
  programAddress: Address<TProgram>;
58
39
  accounts: {
59
40
  account: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"assignWithSeed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/assignWithSeed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EASR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOxE,MAAM,MAAM,yBAAyB,CACnC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,eAAe,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC9D,mBAAmB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,kBAAkB,SAAS,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IACzD,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CACtB;IACE,eAAe,SAAS,MAAM,GAC1B,eAAe,CAAC,eAAe,CAAC,GAChC,eAAe;IACnB,mBAAmB,SAAS,MAAM,GAC9B,qBAAqB,CAAC,mBAAmB,CAAC,GAC1C,mBAAmB;IACvB,GAAG,kBAAkB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i
7
7
  */
8
- import { Address } from '@solana/addresses';
9
- import { Codec, Decoder, Encoder } from '@solana/codecs';
10
- import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type AuthorizeNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
14
- TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> : TAccountNonceAuthority,
15
- ...TRemainingAccounts
16
- ]>;
17
- export type AuthorizeNonceAccountInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, TransactionSigner, WritableAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type AuthorizeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
18
11
  TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
19
12
  TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> & IAccountSignerMeta<TAccountNonceAuthority> : TAccountNonceAuthority,
20
13
  ...TRemainingAccounts
@@ -29,23 +22,13 @@ export type AuthorizeNonceAccountInstructionDataArgs = {
29
22
  export declare function getAuthorizeNonceAccountInstructionDataEncoder(): Encoder<AuthorizeNonceAccountInstructionDataArgs>;
30
23
  export declare function getAuthorizeNonceAccountInstructionDataDecoder(): Decoder<AuthorizeNonceAccountInstructionData>;
31
24
  export declare function getAuthorizeNonceAccountInstructionDataCodec(): Codec<AuthorizeNonceAccountInstructionDataArgs, AuthorizeNonceAccountInstructionData>;
32
- export type AuthorizeNonceAccountInput<TAccountNonceAccount extends string, TAccountNonceAuthority extends string> = {
33
- nonceAccount: Address<TAccountNonceAccount>;
34
- nonceAuthority: Address<TAccountNonceAuthority>;
35
- newNonceAuthority: AuthorizeNonceAccountInstructionDataArgs['newNonceAuthority'];
36
- };
37
- export type AuthorizeNonceAccountInputWithSigners<TAccountNonceAccount extends string, TAccountNonceAuthority extends string> = {
25
+ export type AuthorizeNonceAccountInput<TAccountNonceAccount extends string = string, TAccountNonceAuthority extends string = string> = {
38
26
  nonceAccount: Address<TAccountNonceAccount>;
39
27
  nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
40
28
  newNonceAuthority: AuthorizeNonceAccountInstructionDataArgs['newNonceAuthority'];
41
29
  };
42
- export declare function getAuthorizeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountNonceAuthority extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AuthorizeNonceAccountInputWithSigners<TAccountNonceAccount, TAccountNonceAuthority>): AuthorizeNonceAccountInstructionWithSigners<TProgram, TAccountNonceAccount, TAccountNonceAuthority>;
43
- export declare function getAuthorizeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountNonceAuthority extends string, TProgram extends string = '11111111111111111111111111111111'>(input: AuthorizeNonceAccountInput<TAccountNonceAccount, TAccountNonceAuthority>): AuthorizeNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountNonceAuthority>;
44
- export declare function getAuthorizeNonceAccountInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
45
- nonceAccount: TAccountNonceAccount extends string ? Address<TAccountNonceAccount> : TAccountNonceAccount;
46
- nonceAuthority: TAccountNonceAuthority extends string ? Address<TAccountNonceAuthority> : TAccountNonceAuthority;
47
- }, args: AuthorizeNonceAccountInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): AuthorizeNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountNonceAuthority, TRemainingAccounts>;
48
- export type ParsedAuthorizeNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
30
+ export declare function getAuthorizeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountNonceAuthority extends string>(input: AuthorizeNonceAccountInput<TAccountNonceAccount, TAccountNonceAuthority>): AuthorizeNonceAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount, TAccountNonceAuthority>;
31
+ export type ParsedAuthorizeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
49
32
  programAddress: Address<TProgram>;
50
33
  accounts: {
51
34
  nonceAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"authorizeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/authorizeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EAOR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL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,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,YAAY,EAAE,EAE7C,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,GACjC,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,sCAAsC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAqBjE"}
1
+ {"version":3,"file":"authorizeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/authorizeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EAShB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,gCAAgC,CAC1C,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,sBAAsB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACrE,kBAAkB,SAAS,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC7D,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CACtB;IACE,oBAAoB,SAAS,MAAM,GAC/B,eAAe,CAAC,oBAAoB,CAAC,GACrC,oBAAoB;IACxB,sBAAsB,SAAS,MAAM,GACjC,qBAAqB,CAAC,sBAAsB,CAAC,GAC3C,kBAAkB,CAAC,sBAAsB,CAAC,GAC5C,sBAAsB;IAC1B,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,oCAAoC,GAAG;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB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