@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,17 +5,10 @@
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';
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, TransactionSigner, WritableSignerAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
12
10
  import { IInstructionWithByteDelta } from '../shared';
13
- export type CreateAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta<string> = string, TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
14
- TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> : TAccountPayer,
15
- TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> : TAccountNewAccount,
16
- ...TRemainingAccounts
17
- ]>;
18
- export type CreateAccountInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta<string> = string, TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
11
+ export type CreateAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountPayer extends string | IAccountMeta<string> = string, TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
19
12
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
20
13
  TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> & IAccountSignerMeta<TAccountNewAccount> : TAccountNewAccount,
21
14
  ...TRemainingAccounts
@@ -34,27 +27,15 @@ export type CreateAccountInstructionDataArgs = {
34
27
  export declare function getCreateAccountInstructionDataEncoder(): Encoder<CreateAccountInstructionDataArgs>;
35
28
  export declare function getCreateAccountInstructionDataDecoder(): Decoder<CreateAccountInstructionData>;
36
29
  export declare function getCreateAccountInstructionDataCodec(): Codec<CreateAccountInstructionDataArgs, CreateAccountInstructionData>;
37
- export type CreateAccountInput<TAccountPayer extends string, TAccountNewAccount extends string> = {
38
- payer: Address<TAccountPayer>;
39
- newAccount: Address<TAccountNewAccount>;
40
- lamports: CreateAccountInstructionDataArgs['lamports'];
41
- space: CreateAccountInstructionDataArgs['space'];
42
- programAddress: CreateAccountInstructionDataArgs['programAddress'];
43
- };
44
- export type CreateAccountInputWithSigners<TAccountPayer extends string, TAccountNewAccount extends string> = {
30
+ export type CreateAccountInput<TAccountPayer extends string = string, TAccountNewAccount extends string = string> = {
45
31
  payer: TransactionSigner<TAccountPayer>;
46
32
  newAccount: TransactionSigner<TAccountNewAccount>;
47
33
  lamports: CreateAccountInstructionDataArgs['lamports'];
48
34
  space: CreateAccountInstructionDataArgs['space'];
49
35
  programAddress: CreateAccountInstructionDataArgs['programAddress'];
50
36
  };
51
- export declare function getCreateAccountInstruction<TAccountPayer extends string, TAccountNewAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: CreateAccountInputWithSigners<TAccountPayer, TAccountNewAccount>): CreateAccountInstructionWithSigners<TProgram, TAccountPayer, TAccountNewAccount> & IInstructionWithByteDelta;
52
- export declare function getCreateAccountInstruction<TAccountPayer extends string, TAccountNewAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: CreateAccountInput<TAccountPayer, TAccountNewAccount>): CreateAccountInstruction<TProgram, TAccountPayer, TAccountNewAccount> & IInstructionWithByteDelta;
53
- export declare function getCreateAccountInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta<string> = string, TAccountNewAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
54
- payer: TAccountPayer extends string ? Address<TAccountPayer> : TAccountPayer;
55
- newAccount: TAccountNewAccount extends string ? Address<TAccountNewAccount> : TAccountNewAccount;
56
- }, args: CreateAccountInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): CreateAccountInstruction<TProgram, TAccountPayer, TAccountNewAccount, TRemainingAccounts>;
57
- export type ParsedCreateAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
37
+ export declare function getCreateAccountInstruction<TAccountPayer extends string, TAccountNewAccount extends string>(input: CreateAccountInput<TAccountPayer, TAccountNewAccount>): CreateAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountPayer, TAccountNewAccount> & IInstructionWithByteDelta;
38
+ export type ParsedCreateAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
58
39
  programAddress: Address<TProgram>;
59
40
  accounts: {
60
41
  payer: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/createAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,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,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EACL,yBAAyB,EAI1B,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,wBAAwB,CAClC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,aAAa,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,kBAAkB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,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,aAAa,SAAS,MAAM,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Aa,CAAC,CAmBzD"}
1
+ {"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/createAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EAEP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EAWtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,yBAAyB,EAG1B,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,wBAAwB,CAClC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,aAAa,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,kBAAkB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,kBAAkB,SAAS,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC7D,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CACtB;IACE,aAAa,SAAS,MAAM,GACxB,qBAAqB,CAAC,aAAa,CAAC,GAClC,kBAAkB,CAAC,aAAa,CAAC,GACnC,aAAa;IACjB,kBAAkB,SAAS,MAAM,GAC7B,qBAAqB,CAAC,kBAAkB,CAAC,GACvC,kBAAkB,CAAC,kBAAkB,CAAC,GACxC,kBAAkB;IACtB,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,4BAA4B,GAAG;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,EA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,IAAI,EAAE,4BAA4B,CAAC;CACpC,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,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,8BAA8B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAmBzD"}
@@ -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, ReadonlySignerAccount, WritableAccount, WritableSignerAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type CreateAccountWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta<string> = string, TAccountNewAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> : TAccountPayer,
14
- TAccountNewAccount extends string ? WritableAccount<TAccountNewAccount> : TAccountNewAccount,
15
- TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> : TAccountBaseAccount,
16
- ...TRemainingAccounts
17
- ]>;
18
- export type CreateAccountWithSeedInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta<string> = string, 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, WritableSignerAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type CreateAccountWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountPayer extends string | IAccountMeta<string> = string, TAccountNewAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
19
11
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
20
12
  TAccountNewAccount extends string ? WritableAccount<TAccountNewAccount> : TAccountNewAccount,
21
13
  TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
@@ -39,17 +31,7 @@ export type CreateAccountWithSeedInstructionDataArgs = {
39
31
  export declare function getCreateAccountWithSeedInstructionDataEncoder(): Encoder<CreateAccountWithSeedInstructionDataArgs>;
40
32
  export declare function getCreateAccountWithSeedInstructionDataDecoder(): Decoder<CreateAccountWithSeedInstructionData>;
41
33
  export declare function getCreateAccountWithSeedInstructionDataCodec(): Codec<CreateAccountWithSeedInstructionDataArgs, CreateAccountWithSeedInstructionData>;
42
- export type CreateAccountWithSeedInput<TAccountPayer extends string, TAccountNewAccount extends string, TAccountBaseAccount extends string> = {
43
- payer: Address<TAccountPayer>;
44
- newAccount: Address<TAccountNewAccount>;
45
- baseAccount: Address<TAccountBaseAccount>;
46
- base: CreateAccountWithSeedInstructionDataArgs['base'];
47
- seed: CreateAccountWithSeedInstructionDataArgs['seed'];
48
- amount: CreateAccountWithSeedInstructionDataArgs['amount'];
49
- space: CreateAccountWithSeedInstructionDataArgs['space'];
50
- programAddress: CreateAccountWithSeedInstructionDataArgs['programAddress'];
51
- };
52
- export type CreateAccountWithSeedInputWithSigners<TAccountPayer extends string, TAccountNewAccount extends string, TAccountBaseAccount extends string> = {
34
+ export type CreateAccountWithSeedInput<TAccountPayer extends string = string, TAccountNewAccount extends string = string, TAccountBaseAccount extends string = string> = {
53
35
  payer: TransactionSigner<TAccountPayer>;
54
36
  newAccount: Address<TAccountNewAccount>;
55
37
  baseAccount: TransactionSigner<TAccountBaseAccount>;
@@ -59,14 +41,8 @@ export type CreateAccountWithSeedInputWithSigners<TAccountPayer extends string,
59
41
  space: CreateAccountWithSeedInstructionDataArgs['space'];
60
42
  programAddress: CreateAccountWithSeedInstructionDataArgs['programAddress'];
61
43
  };
62
- export declare function getCreateAccountWithSeedInstruction<TAccountPayer extends string, TAccountNewAccount extends string, TAccountBaseAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: CreateAccountWithSeedInputWithSigners<TAccountPayer, TAccountNewAccount, TAccountBaseAccount>): CreateAccountWithSeedInstructionWithSigners<TProgram, TAccountPayer, TAccountNewAccount, TAccountBaseAccount>;
63
- export declare function getCreateAccountWithSeedInstruction<TAccountPayer extends string, TAccountNewAccount extends string, TAccountBaseAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: CreateAccountWithSeedInput<TAccountPayer, TAccountNewAccount, TAccountBaseAccount>): CreateAccountWithSeedInstruction<TProgram, TAccountPayer, TAccountNewAccount, TAccountBaseAccount>;
64
- export declare function getCreateAccountWithSeedInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta<string> = string, TAccountNewAccount extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
65
- payer: TAccountPayer extends string ? Address<TAccountPayer> : TAccountPayer;
66
- newAccount: TAccountNewAccount extends string ? Address<TAccountNewAccount> : TAccountNewAccount;
67
- baseAccount: TAccountBaseAccount extends string ? Address<TAccountBaseAccount> : TAccountBaseAccount;
68
- }, args: CreateAccountWithSeedInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): CreateAccountWithSeedInstruction<TProgram, TAccountPayer, TAccountNewAccount, TAccountBaseAccount, TRemainingAccounts>;
69
- export type ParsedCreateAccountWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
44
+ export declare function getCreateAccountWithSeedInstruction<TAccountPayer extends string, TAccountNewAccount extends string, TAccountBaseAccount extends string>(input: CreateAccountWithSeedInput<TAccountPayer, TAccountNewAccount, TAccountBaseAccount>): CreateAccountWithSeedInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountPayer, TAccountNewAccount, TAccountBaseAccount>;
45
+ export type ParsedCreateAccountWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
70
46
  programAddress: Address<TProgram>;
71
47
  accounts: {
72
48
  payer: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"createAccountWithSeed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/createAccountWithSeed.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,EACf,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOxE,MAAM,MAAM,gCAAgC,CAC1C,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,aAAa,SAAS,MAAM,GAAG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,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,sCAAsC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsBjE"}
1
+ {"version":3,"file":"createAccountWithSeed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/createAccountWithSeed.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,EACf,qBAAqB,EAetB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,gCAAgC,CAC1C,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,aAAa,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,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,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC7D,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CACtB;IACE,aAAa,SAAS,MAAM,GACxB,qBAAqB,CAAC,aAAa,CAAC,GAClC,kBAAkB,CAAC,aAAa,CAAC,GACnC,aAAa;IACjB,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,C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AAmC,CACjD,aAAa,SAAS,MAAM,EAC5B,kBAAkB,SAAS,MAAM,EACjC,mBAAmB,SAAS,MAAM,EAElC,KAAK,EAAE,0BAA0B,CAC/B,aAAa,EACb,kBAAkB,EAClB,mBAAmB,CACpB,GACA,gCAAgC,CACjC,OAAO,sBAAsB,EAC7B,aAAa,EACb,kBAAkB,EAClB,mBAAmB,CACpB,CAqCA;AAED,MAAM,MAAM,sCAAsC,CAChD,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,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC7B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,oCAAoC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,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,sCAAsC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsBjE"}
@@ -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, ReadonlyAccount, WritableAccount } from '@solana/instructions';
11
- export type InitializeNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
12
- TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
13
- TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
14
- TAccountRentSysvar extends string ? ReadonlyAccount<TAccountRentSysvar> : TAccountRentSysvar,
15
- ...TRemainingAccounts
16
- ]>;
17
- export type InitializeNonceAccountInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlyAccount, WritableAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type InitializeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
18
11
  TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
19
12
  TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
20
13
  TAccountRentSysvar extends string ? ReadonlyAccount<TAccountRentSysvar> : TAccountRentSysvar,
@@ -30,26 +23,14 @@ export type InitializeNonceAccountInstructionDataArgs = {
30
23
  export declare function getInitializeNonceAccountInstructionDataEncoder(): Encoder<InitializeNonceAccountInstructionDataArgs>;
31
24
  export declare function getInitializeNonceAccountInstructionDataDecoder(): Decoder<InitializeNonceAccountInstructionData>;
32
25
  export declare function getInitializeNonceAccountInstructionDataCodec(): Codec<InitializeNonceAccountInstructionDataArgs, InitializeNonceAccountInstructionData>;
33
- export type InitializeNonceAccountInput<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string> = {
34
- nonceAccount: Address<TAccountNonceAccount>;
35
- recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
36
- rentSysvar?: Address<TAccountRentSysvar>;
37
- nonceAuthority: InitializeNonceAccountInstructionDataArgs['nonceAuthority'];
38
- };
39
- export type InitializeNonceAccountInputWithSigners<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string> = {
26
+ export type InitializeNonceAccountInput<TAccountNonceAccount extends string = string, TAccountRecentBlockhashesSysvar extends string = string, TAccountRentSysvar extends string = string> = {
40
27
  nonceAccount: Address<TAccountNonceAccount>;
41
28
  recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
42
29
  rentSysvar?: Address<TAccountRentSysvar>;
43
30
  nonceAuthority: InitializeNonceAccountInstructionDataArgs['nonceAuthority'];
44
31
  };
45
- export declare function getInitializeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TProgram extends string = '11111111111111111111111111111111'>(input: InitializeNonceAccountInputWithSigners<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>): InitializeNonceAccountInstructionWithSigners<TProgram, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>;
46
- export declare function getInitializeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TProgram extends string = '11111111111111111111111111111111'>(input: InitializeNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>): InitializeNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>;
47
- export declare function getInitializeNonceAccountInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
48
- nonceAccount: TAccountNonceAccount extends string ? Address<TAccountNonceAccount> : TAccountNonceAccount;
49
- recentBlockhashesSysvar?: TAccountRecentBlockhashesSysvar extends string ? Address<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar;
50
- rentSysvar?: TAccountRentSysvar extends string ? Address<TAccountRentSysvar> : TAccountRentSysvar;
51
- }, args: InitializeNonceAccountInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): InitializeNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TRemainingAccounts>;
52
- export type ParsedInitializeNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
32
+ export declare function getInitializeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string>(input: InitializeNonceAccountInput<TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>): InitializeNonceAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar>;
33
+ export type ParsedInitializeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
53
34
  programAddress: Address<TProgram>;
54
35
  accounts: {
55
36
  nonceAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"initializeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/initializeNonceAccount.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,eAAe,EACf,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAO9B,MAAM,MAAM,iCAAiC,CAC3C,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,+BAA+B,SAC3B,MAAM,GACN,YAAY,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACxE,kBAAkB,SACd,MAAM,GACN,YAAY,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACxE,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,oBAAoB,SAAS,MAAM,GAC/B,eAAe,CAAC,oBAAoB,CAAC,GACrC,oBAAoB;IACxB,+BAA+B,SAAS,MAAM,GAC1C,eAAe,CAAC,+BAA+B,CAAC,GAChD,+BAA+B;IACnC,kBAAkB,SAAS,MAAM,G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ACvB,aAAa,SAAS,SAAS,YAAY,EAAE,EAE7C,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,GACjC,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,uCAAuC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsBlE"}
1
+ {"version":3,"file":"initializeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/initializeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,eAAe,EAShB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,iCAAiC,CAC3C,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,+BAA+B,SAC3B,MAAM,GACN,YAAY,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACxE,kBAAkB,SACd,MAAM,GACN,YAAY,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACxE,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,+BAA+B,SAAS,MAAM,GAC1C,eAAe,CAAC,+BAA+B,CAAC,GAChD,+BAA+B;IACnC,kBAAkB,SAAS,MAAM,GAC7B,eAAe,CAAC,kBAAkB,CAAC,GACnC,kBAAkB;IACtB,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM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AAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC9B,CAAC;IACF,IAAI,EAAE,qCAAqC,CAAC;CAC7C,CAAC;AAEF,wBAAgB,sCAAsC,CACpD,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,uCAAuC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsBlE"}
@@ -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, WritableAccount, WritableSignerAccount } from '@solana/instructions';
11
- import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
- export type TransferSolInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta<string> = string, TAccountDestination extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountSource extends string ? WritableSignerAccount<TAccountSource> : TAccountSource,
14
- TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination,
15
- ...TRemainingAccounts
16
- ]>;
17
- export type TransferSolInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta<string> = string, TAccountDestination 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, WritableAccount, WritableSignerAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type TransferSolInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountSource extends string | IAccountMeta<string> = string, TAccountDestination extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
18
11
  TAccountSource extends string ? WritableSignerAccount<TAccountSource> & IAccountSignerMeta<TAccountSource> : TAccountSource,
19
12
  TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination,
20
13
  ...TRemainingAccounts
@@ -29,23 +22,13 @@ export type TransferSolInstructionDataArgs = {
29
22
  export declare function getTransferSolInstructionDataEncoder(): Encoder<TransferSolInstructionDataArgs>;
30
23
  export declare function getTransferSolInstructionDataDecoder(): Decoder<TransferSolInstructionData>;
31
24
  export declare function getTransferSolInstructionDataCodec(): Codec<TransferSolInstructionDataArgs, TransferSolInstructionData>;
32
- export type TransferSolInput<TAccountSource extends string, TAccountDestination extends string> = {
33
- source: Address<TAccountSource>;
34
- destination: Address<TAccountDestination>;
35
- amount: TransferSolInstructionDataArgs['amount'];
36
- };
37
- export type TransferSolInputWithSigners<TAccountSource extends string, TAccountDestination extends string> = {
25
+ export type TransferSolInput<TAccountSource extends string = string, TAccountDestination extends string = string> = {
38
26
  source: TransactionSigner<TAccountSource>;
39
27
  destination: Address<TAccountDestination>;
40
28
  amount: TransferSolInstructionDataArgs['amount'];
41
29
  };
42
- export declare function getTransferSolInstruction<TAccountSource extends string, TAccountDestination extends string, TProgram extends string = '11111111111111111111111111111111'>(input: TransferSolInputWithSigners<TAccountSource, TAccountDestination>): TransferSolInstructionWithSigners<TProgram, TAccountSource, TAccountDestination>;
43
- export declare function getTransferSolInstruction<TAccountSource extends string, TAccountDestination extends string, TProgram extends string = '11111111111111111111111111111111'>(input: TransferSolInput<TAccountSource, TAccountDestination>): TransferSolInstruction<TProgram, TAccountSource, TAccountDestination>;
44
- export declare function getTransferSolInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta<string> = string, TAccountDestination extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
45
- source: TAccountSource extends string ? Address<TAccountSource> : TAccountSource;
46
- destination: TAccountDestination extends string ? Address<TAccountDestination> : TAccountDestination;
47
- }, args: TransferSolInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): TransferSolInstruction<TProgram, TAccountSource, TAccountDestination, TRemainingAccounts>;
48
- export type ParsedTransferSolInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
30
+ export declare function getTransferSolInstruction<TAccountSource extends string, TAccountDestination extends string>(input: TransferSolInput<TAccountSource, TAccountDestination>): TransferSolInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountSource, TAccountDestination>;
31
+ export type ParsedTransferSolInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
49
32
  programAddress: Address<TProgram>;
50
33
  accounts: {
51
34
  source: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"transferSol.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/transferSol.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EASR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,E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A4B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAmBvD"}
1
+ {"version":3,"file":"transferSol.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/transferSol.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,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EAStB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,sBAAsB,CAChC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,cAAc,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC7D,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,cAAc,SAAS,MAAM,GACzB,qBAAqB,CAAC,cAAc,CAAC,GACnC,kBAAkB,CAAC,cAAc,CAAC,GACpC,cAAc;IAClB,mBAAmB,SAAS,MAAM,GAC9B,eAAe,CAAC,mBAAmB,CAAC,GACpC,mBAAmB;IACvB,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEzE,wBAAgB,oCAAoC,IAAI,OAAO,CAAC,8BAA8B,CAAC,CAQ9F;AAED,wBAAg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@@
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 TransferSolWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TAccountDestination extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountSource extends string ? WritableAccount<TAccountSource> : TAccountSource,
14
- TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> : TAccountBaseAccount,
15
- TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination,
16
- ...TRemainingAccounts
17
- ]>;
18
- export type TransferSolWithSeedInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TAccountDestination 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 TransferSolWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountSource extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TAccountDestination extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
19
11
  TAccountSource extends string ? WritableAccount<TAccountSource> : TAccountSource,
20
12
  TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
21
13
  TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination,
@@ -35,15 +27,7 @@ export type TransferSolWithSeedInstructionDataArgs = {
35
27
  export declare function getTransferSolWithSeedInstructionDataEncoder(): Encoder<TransferSolWithSeedInstructionDataArgs>;
36
28
  export declare function getTransferSolWithSeedInstructionDataDecoder(): Decoder<TransferSolWithSeedInstructionData>;
37
29
  export declare function getTransferSolWithSeedInstructionDataCodec(): Codec<TransferSolWithSeedInstructionDataArgs, TransferSolWithSeedInstructionData>;
38
- export type TransferSolWithSeedInput<TAccountSource extends string, TAccountBaseAccount extends string, TAccountDestination extends string> = {
39
- source: Address<TAccountSource>;
40
- baseAccount: Address<TAccountBaseAccount>;
41
- destination: Address<TAccountDestination>;
42
- amount: TransferSolWithSeedInstructionDataArgs['amount'];
43
- fromSeed: TransferSolWithSeedInstructionDataArgs['fromSeed'];
44
- fromOwner: TransferSolWithSeedInstructionDataArgs['fromOwner'];
45
- };
46
- export type TransferSolWithSeedInputWithSigners<TAccountSource extends string, TAccountBaseAccount extends string, TAccountDestination extends string> = {
30
+ export type TransferSolWithSeedInput<TAccountSource extends string = string, TAccountBaseAccount extends string = string, TAccountDestination extends string = string> = {
47
31
  source: Address<TAccountSource>;
48
32
  baseAccount: TransactionSigner<TAccountBaseAccount>;
49
33
  destination: Address<TAccountDestination>;
@@ -51,14 +35,8 @@ export type TransferSolWithSeedInputWithSigners<TAccountSource extends string, T
51
35
  fromSeed: TransferSolWithSeedInstructionDataArgs['fromSeed'];
52
36
  fromOwner: TransferSolWithSeedInstructionDataArgs['fromOwner'];
53
37
  };
54
- export declare function getTransferSolWithSeedInstruction<TAccountSource extends string, TAccountBaseAccount extends string, TAccountDestination extends string, TProgram extends string = '11111111111111111111111111111111'>(input: TransferSolWithSeedInputWithSigners<TAccountSource, TAccountBaseAccount, TAccountDestination>): TransferSolWithSeedInstructionWithSigners<TProgram, TAccountSource, TAccountBaseAccount, TAccountDestination>;
55
- export declare function getTransferSolWithSeedInstruction<TAccountSource extends string, TAccountBaseAccount extends string, TAccountDestination extends string, TProgram extends string = '11111111111111111111111111111111'>(input: TransferSolWithSeedInput<TAccountSource, TAccountBaseAccount, TAccountDestination>): TransferSolWithSeedInstruction<TProgram, TAccountSource, TAccountBaseAccount, TAccountDestination>;
56
- export declare function getTransferSolWithSeedInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta<string> = string, TAccountBaseAccount extends string | IAccountMeta<string> = string, TAccountDestination extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
57
- source: TAccountSource extends string ? Address<TAccountSource> : TAccountSource;
58
- baseAccount: TAccountBaseAccount extends string ? Address<TAccountBaseAccount> : TAccountBaseAccount;
59
- destination: TAccountDestination extends string ? Address<TAccountDestination> : TAccountDestination;
60
- }, args: TransferSolWithSeedInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): TransferSolWithSeedInstruction<TProgram, TAccountSource, TAccountBaseAccount, TAccountDestination, TRemainingAccounts>;
61
- export type ParsedTransferSolWithSeedInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
38
+ export declare function getTransferSolWithSeedInstruction<TAccountSource extends string, TAccountBaseAccount extends string, TAccountDestination extends string>(input: TransferSolWithSeedInput<TAccountSource, TAccountBaseAccount, TAccountDestination>): TransferSolWithSeedInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountSource, TAccountBaseAccount, TAccountDestination>;
39
+ export type ParsedTransferSolWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
62
40
  programAddress: Address<TProgram>;
63
41
  accounts: {
64
42
  source: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"transferSolWithSeed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/transferSolWithSeed.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,8BAA8B,CACxC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,cAAc,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC7D,mBAAmB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,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,cAAc,SAAS,MAAM,GACzB,eAAe,CAAC,cAAc,CAAC,GAC/B,cAAc;IAClB,mBAAmB,SAAS,MAAM,GAC9B,qBAAqB,CAAC,mBAAmB,CAAC,GAC1C,mBAAmB;IACvB,mBAAmB,SAAS,MAAM,GAC9B,eAAe,CAAC,mBAAmB,CAAC,GACpC,mBAAmB;IACvB,GAAG,kBAAkB;CACtB,CACF,CA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WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC/B,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":"transferSolWithSeed.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/transferSolWithSeed.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,8BAA8B,CACxC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,cAAc,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC7D,mBAAmB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,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,cAAc,SAAS,MAAM,GACzB,eAAe,CAAC,cAAc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AgB,iCAAiC,CAC/C,cAAc,SAAS,MAAM,EAC7B,mBAAmB,SAAS,MAAM,EAClC,mBAAmB,SAAS,MAAM,EAElC,KAAK,EAAE,wBAAwB,CAC7B,cAAc,EACd,mBAAmB,EACnB,mBAAmB,CACpB,GACA,8BAA8B,CAC/B,OAAO,sBAAsB,EAC7B,cAAc,EACd,mBAAmB,EACnB,mBAAmB,CACpB,CAqCA;AAED,MAAM,MAAM,oCAAoC,CAC9C,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,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACzB,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC/B,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"}
@@ -5,14 +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, WritableAccount } from '@solana/instructions';
11
- export type UpgradeNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
12
- TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
13
- ...TRemainingAccounts
14
- ]>;
15
- export type UpgradeNonceAccountInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
8
+ import { Address, Codec, Decoder, Encoder, IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, WritableAccount } from '@solana/web3.js';
9
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
10
+ export type UpgradeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
16
11
  TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
17
12
  ...TRemainingAccounts
18
13
  ]>;
@@ -23,18 +18,11 @@ export type UpgradeNonceAccountInstructionDataArgs = {};
23
18
  export declare function getUpgradeNonceAccountInstructionDataEncoder(): Encoder<UpgradeNonceAccountInstructionDataArgs>;
24
19
  export declare function getUpgradeNonceAccountInstructionDataDecoder(): Decoder<UpgradeNonceAccountInstructionData>;
25
20
  export declare function getUpgradeNonceAccountInstructionDataCodec(): Codec<UpgradeNonceAccountInstructionDataArgs, UpgradeNonceAccountInstructionData>;
26
- export type UpgradeNonceAccountInput<TAccountNonceAccount extends string> = {
27
- nonceAccount: Address<TAccountNonceAccount>;
28
- };
29
- export type UpgradeNonceAccountInputWithSigners<TAccountNonceAccount extends string> = {
21
+ export type UpgradeNonceAccountInput<TAccountNonceAccount extends string = string> = {
30
22
  nonceAccount: Address<TAccountNonceAccount>;
31
23
  };
32
- export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: UpgradeNonceAccountInputWithSigners<TAccountNonceAccount>): UpgradeNonceAccountInstructionWithSigners<TProgram, TAccountNonceAccount>;
33
- export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends string, TProgram extends string = '11111111111111111111111111111111'>(input: UpgradeNonceAccountInput<TAccountNonceAccount>): UpgradeNonceAccountInstruction<TProgram, TAccountNonceAccount>;
34
- export declare function getUpgradeNonceAccountInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
35
- nonceAccount: TAccountNonceAccount extends string ? Address<TAccountNonceAccount> : TAccountNonceAccount;
36
- }, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): UpgradeNonceAccountInstruction<TProgram, TAccountNonceAccount, TRemainingAccounts>;
37
- export type ParsedUpgradeNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
24
+ export declare function getUpgradeNonceAccountInstruction<TAccountNonceAccount extends string>(input: UpgradeNonceAccountInput<TAccountNonceAccount>): UpgradeNonceAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount>;
25
+ export type ParsedUpgradeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
38
26
  programAddress: Address<TProgram>;
39
27
  accounts: {
40
28
  nonceAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"upgradeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/upgradeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,KAAK,E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E;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAChC,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,CAoB/D"}
1
+ {"version":3,"file":"upgradeNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/upgradeNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EAOhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,8BAA8B,CACxC,QAAQ,SAAS,MAAM,GAAG,OAAO,sBAAsB,EACvD,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,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,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,kCAAkC,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,MAAM,MAAM,sCAAsC,GAAG,EAAE,CAAC;AAExD,wBAAgB,4CAA4C,IAAI,OAAO,CAAC,sCAAsC,CAAC,CAK9G;AAED,wBAAgB,4CAA4C,IAAI,OAAO,CAAC,kCAAkC,CAAC,CAE1G;AAED,wBAAgB,0CAA0C,IAAI,KAAK,CACjE,sCAAsC,EACtC,kCAAkC,CACnC,CAKA;AAED,MAAM,MAAM,wBAAwB,CAClC,oBAAoB,SAAS,MAAM,GAAG,MAAM,IAC1C;IACF,YAAY,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC7C,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,oBAAoB,SAAS,MAAM,EAEnC,KAAK,EAAE,wBAAwB,CAAC,oBAAoB,CAAC,GACpD,8BAA8B,CAC/B,OAAO,sBAAsB,EAC7B,oBAAoB,CACrB,CAwBA;AAED,MAAM,MAAM,oCAAoC,CAC9C,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,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAChC,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,CAoB/D"}
@@ -5,19 +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 WithdrawNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecipientAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
14
- TAccountRecipientAccount extends string ? WritableAccount<TAccountRecipientAccount> : TAccountRecipientAccount,
15
- TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
16
- TAccountRentSysvar extends string ? ReadonlyAccount<TAccountRentSysvar> : TAccountRentSysvar,
17
- TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> : TAccountNonceAuthority,
18
- ...TRemainingAccounts
19
- ]>;
20
- export type WithdrawNonceAccountInstructionWithSigners<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecipientAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', 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 WithdrawNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecipientAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
21
11
  TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
22
12
  TAccountRecipientAccount extends string ? WritableAccount<TAccountRecipientAccount> : TAccountRecipientAccount,
23
13
  TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
@@ -35,15 +25,7 @@ export type WithdrawNonceAccountInstructionDataArgs = {
35
25
  export declare function getWithdrawNonceAccountInstructionDataEncoder(): Encoder<WithdrawNonceAccountInstructionDataArgs>;
36
26
  export declare function getWithdrawNonceAccountInstructionDataDecoder(): Decoder<WithdrawNonceAccountInstructionData>;
37
27
  export declare function getWithdrawNonceAccountInstructionDataCodec(): Codec<WithdrawNonceAccountInstructionDataArgs, WithdrawNonceAccountInstructionData>;
38
- export type WithdrawNonceAccountInput<TAccountNonceAccount extends string, TAccountRecipientAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TAccountNonceAuthority extends string> = {
39
- nonceAccount: Address<TAccountNonceAccount>;
40
- recipientAccount: Address<TAccountRecipientAccount>;
41
- recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
42
- rentSysvar?: Address<TAccountRentSysvar>;
43
- nonceAuthority: Address<TAccountNonceAuthority>;
44
- withdrawAmount: WithdrawNonceAccountInstructionDataArgs['withdrawAmount'];
45
- };
46
- export type WithdrawNonceAccountInputWithSigners<TAccountNonceAccount extends string, TAccountRecipientAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TAccountNonceAuthority extends string> = {
28
+ export type WithdrawNonceAccountInput<TAccountNonceAccount extends string = string, TAccountRecipientAccount extends string = string, TAccountRecentBlockhashesSysvar extends string = string, TAccountRentSysvar extends string = string, TAccountNonceAuthority extends string = string> = {
47
29
  nonceAccount: Address<TAccountNonceAccount>;
48
30
  recipientAccount: Address<TAccountRecipientAccount>;
49
31
  recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
@@ -51,16 +33,8 @@ export type WithdrawNonceAccountInputWithSigners<TAccountNonceAccount extends st
51
33
  nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
52
34
  withdrawAmount: WithdrawNonceAccountInstructionDataArgs['withdrawAmount'];
53
35
  };
54
- export declare function getWithdrawNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecipientAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TAccountNonceAuthority extends string, TProgram extends string = '11111111111111111111111111111111'>(input: WithdrawNonceAccountInputWithSigners<TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>): WithdrawNonceAccountInstructionWithSigners<TProgram, TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>;
55
- export declare function getWithdrawNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecipientAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TAccountNonceAuthority extends string, TProgram extends string = '11111111111111111111111111111111'>(input: WithdrawNonceAccountInput<TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>): WithdrawNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>;
56
- export declare function getWithdrawNonceAccountInstructionRaw<TProgram extends string = '11111111111111111111111111111111', TAccountNonceAccount extends string | IAccountMeta<string> = string, TAccountRecipientAccount extends string | IAccountMeta<string> = string, TAccountRecentBlockhashesSysvar extends string | IAccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111', TAccountRentSysvar extends string | IAccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountNonceAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends Array<IAccountMeta<string>> = []>(accounts: {
57
- nonceAccount: TAccountNonceAccount extends string ? Address<TAccountNonceAccount> : TAccountNonceAccount;
58
- recipientAccount: TAccountRecipientAccount extends string ? Address<TAccountRecipientAccount> : TAccountRecipientAccount;
59
- recentBlockhashesSysvar?: TAccountRecentBlockhashesSysvar extends string ? Address<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar;
60
- rentSysvar?: TAccountRentSysvar extends string ? Address<TAccountRentSysvar> : TAccountRentSysvar;
61
- nonceAuthority: TAccountNonceAuthority extends string ? Address<TAccountNonceAuthority> : TAccountNonceAuthority;
62
- }, args: WithdrawNonceAccountInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): WithdrawNonceAccountInstruction<TProgram, TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority, TRemainingAccounts>;
63
- export type ParsedWithdrawNonceAccountInstruction<TProgram extends string = '11111111111111111111111111111111', TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
36
+ export declare function getWithdrawNonceAccountInstruction<TAccountNonceAccount extends string, TAccountRecipientAccount extends string, TAccountRecentBlockhashesSysvar extends string, TAccountRentSysvar extends string, TAccountNonceAuthority extends string>(input: WithdrawNonceAccountInput<TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>): WithdrawNonceAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount, TAccountRecipientAccount, TAccountRecentBlockhashesSysvar, TAccountRentSysvar, TAccountNonceAuthority>;
37
+ export type ParsedWithdrawNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
64
38
  programAddress: Address<TProgram>;
65
39
  accounts: {
66
40
  nonceAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/withdrawNonceAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EASR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOxE,MAAM,MAAM,+BAA+B,CACzC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,wBAAwB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACvE,+BAA+B,SAC3B,MAAM,GACN,YAAY,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACxE,kBAAkB,SACd,MAAM,GACN,YAAY,CA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uCAAuC,EAC7C,cAAc,GAAE,OAAO,CAAC,QAAQ,CAA2D,EAC3F,iBAAiB,CAAC,EAAE,kBAAkB,8LAiCvC;AAED,MAAM,MAAM,qCAAqC,CAC/C,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,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACnC,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC7B,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAClC,CAAC;IACF,IAAI,EAAE,mCAAmC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,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,qCAAqC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAwBhE"}
1
+ {"version":3,"file":"withdrawNonceAccount.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/withdrawNonceAccount.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,EACjB,eAAe,EAShB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,M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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,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACnC,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC7B,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAClC,CAAC;IACF,IAAI,EAAE,mCAAmC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,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,qCAAqC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAwBhE"}
@@ -5,13 +5,9 @@
5
5
  *
6
6
  * @see https://github.com/metaplex-foundation/kinobi
7
7
  */
8
- import { Address } from '@solana/addresses';
9
- import { Program, ProgramWithErrors } from '@solana/programs';
10
- import { SystemProgramError, SystemProgramErrorCode } from '../errors';
8
+ import { Address } from '@solana/web3.js';
11
9
  import { ParsedAdvanceNonceAccountInstruction, ParsedAllocateInstruction, ParsedAllocateWithSeedInstruction, ParsedAssignInstruction, ParsedAssignWithSeedInstruction, ParsedAuthorizeNonceAccountInstruction, ParsedCreateAccountInstruction, ParsedCreateAccountWithSeedInstruction, ParsedInitializeNonceAccountInstruction, ParsedTransferSolInstruction, ParsedTransferSolWithSeedInstruction, ParsedUpgradeNonceAccountInstruction, ParsedWithdrawNonceAccountInstruction } from '../instructions';
12
10
  export declare const SYSTEM_PROGRAM_ADDRESS: Address<"11111111111111111111111111111111">;
13
- export type SystemProgram = Program<'11111111111111111111111111111111'> & ProgramWithErrors<SystemProgramErrorCode, SystemProgramError>;
14
- export declare function getSystemProgram(): SystemProgram;
15
11
  export declare enum SystemAccount {
16
12
  Nonce = 0
17
13
  }