@solana-program/system 0.1.2 → 0.2.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 (33) hide show
  1. package/dist/src/index.cjs +240 -410
  2. package/dist/src/index.cjs.map +1 -1
  3. package/dist/src/index.js +240 -396
  4. package/dist/src/index.js.map +1 -1
  5. package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts +5 -21
  6. package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts.map +1 -1
  7. package/dist/types/src/generated/instructions/allocate.d.ts +5 -16
  8. package/dist/types/src/generated/instructions/allocate.d.ts.map +1 -1
  9. package/dist/types/src/generated/instructions/allocateWithSeed.d.ts +5 -22
  10. package/dist/types/src/generated/instructions/allocateWithSeed.d.ts.map +1 -1
  11. package/dist/types/src/generated/instructions/assign.d.ts +5 -16
  12. package/dist/types/src/generated/instructions/assign.d.ts.map +1 -1
  13. package/dist/types/src/generated/instructions/assignWithSeed.d.ts +5 -21
  14. package/dist/types/src/generated/instructions/assignWithSeed.d.ts.map +1 -1
  15. package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts +5 -19
  16. package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts.map +1 -1
  17. package/dist/types/src/generated/instructions/createAccount.d.ts +5 -21
  18. package/dist/types/src/generated/instructions/createAccount.d.ts.map +1 -1
  19. package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts +5 -26
  20. package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts.map +1 -1
  21. package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts +5 -22
  22. package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts.map +1 -1
  23. package/dist/types/src/generated/instructions/transferSol.d.ts +5 -19
  24. package/dist/types/src/generated/instructions/transferSol.d.ts.map +1 -1
  25. package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts +5 -24
  26. package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts.map +1 -1
  27. package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts +5 -15
  28. package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts.map +1 -1
  29. package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts +5 -28
  30. package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts.map +1 -1
  31. package/dist/types/src/generated/shared/index.d.ts +2 -10
  32. package/dist/types/src/generated/shared/index.d.ts.map +1 -1
  33. package/package.json +13 -17
@@ -9,13 +9,8 @@ import { Address } from '@solana/addresses';
9
9
  import { Codec, Decoder, Encoder } from '@solana/codecs';
10
10
  import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlyAccount, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
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<[
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
13
+ 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
14
  TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
20
15
  TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
21
16
  TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> & IAccountSignerMeta<TAccountNonceAuthority> : TAccountNonceAuthority,
@@ -28,24 +23,13 @@ export type AdvanceNonceAccountInstructionDataArgs = {};
28
23
  export declare function getAdvanceNonceAccountInstructionDataEncoder(): Encoder<AdvanceNonceAccountInstructionDataArgs>;
29
24
  export declare function getAdvanceNonceAccountInstructionDataDecoder(): Decoder<AdvanceNonceAccountInstructionData>;
30
25
  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> = {
26
+ export type AdvanceNonceAccountInput<TAccountNonceAccount extends string = string, TAccountRecentBlockhashesSysvar extends string = string, TAccountNonceAuthority extends string = string> = {
37
27
  nonceAccount: Address<TAccountNonceAccount>;
38
28
  recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
39
29
  nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
40
30
  };
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[]> = {
31
+ 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>;
32
+ export type ParsedAdvanceNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
49
33
  programAddress: Address<TProgram>;
50
34
  accounts: {
51
35
  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,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EAOR,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,8BAA8B,CACxC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAA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rE;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,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,KAAK,EACL,OAAO,EACP,OAAO,EAOR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,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;AACxE,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,+BAA+B,SAC3B,MAAM,GACN,YAAY,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACxE,sB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AM,EAC9C,sBAAsB,SAAS,MAAM,EAErC,KAAK,EAAE,wBAAwB,CAC7B,oBAAoB,EACpB,+BAA+B,EAC/B,sBAAsB,CACvB,GACA,8BAA8B,CAC/B,OAAO,sBAAsB,EAC7B,oBAAoB,EACpB,+BAA+B,EAC/B,sBAAsB,CACvB,CAyCA;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;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"}
@@ -9,11 +9,8 @@ import { Address } from '@solana/addresses';
9
9
  import { Codec, Decoder, Encoder } from '@solana/codecs';
10
10
  import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, WritableSignerAccount } from '@solana/instructions';
11
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<[
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
13
+ 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
14
  TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> & IAccountSignerMeta<TAccountNewAccount> : TAccountNewAccount,
18
15
  ...TRemainingAccounts
19
16
  ]>;
@@ -27,20 +24,12 @@ export type AllocateInstructionDataArgs = {
27
24
  export declare function getAllocateInstructionDataEncoder(): Encoder<AllocateInstructionDataArgs>;
28
25
  export declare function getAllocateInstructionDataDecoder(): Decoder<AllocateInstructionData>;
29
26
  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> = {
27
+ export type AllocateInput<TAccountNewAccount extends string = string> = {
35
28
  newAccount: TransactionSigner<TAccountNewAccount>;
36
29
  space: AllocateInstructionDataArgs['space'];
37
30
  };
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[]> = {
31
+ export declare function getAllocateInstruction<TAccountNewAccount extends string>(input: AllocateInput<TAccountNewAccount>): AllocateInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNewAccount>;
32
+ export type ParsedAllocateInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
44
33
  programAddress: Address<TProgram>;
45
34
  accounts: {
46
35
  newAccount: TAccountMetas[0];
@@ -1 +1 @@
1
- {"version":3,"file":"allocate.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/allocate.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,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOxE,MAAM,MAAM,mBAAmB,CAC7B,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,kBAAkB,SAAS,MAAM,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AQ,CAAC,GACjC,wBAAwB,CAAC,aAAa,CAAC,GACvC,oBAAoB,CAAC,UAAU,CAAC,GACjC,yBAAyB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkBpD"}
@@ -9,12 +9,8 @@ import { Address } from '@solana/addresses';
9
9
  import { Codec, Decoder, Encoder } from '@solana/codecs';
10
10
  import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
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<[
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
13
+ 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
14
  TAccountNewAccount extends string ? WritableAccount<TAccountNewAccount> : TAccountNewAccount,
19
15
  TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
20
16
  ...TRemainingAccounts
@@ -35,15 +31,7 @@ export type AllocateWithSeedInstructionDataArgs = {
35
31
  export declare function getAllocateWithSeedInstructionDataEncoder(): Encoder<AllocateWithSeedInstructionDataArgs>;
36
32
  export declare function getAllocateWithSeedInstructionDataDecoder(): Decoder<AllocateWithSeedInstructionData>;
37
33
  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> = {
34
+ export type AllocateWithSeedInput<TAccountNewAccount extends string = string, TAccountBaseAccount extends string = string> = {
47
35
  newAccount: Address<TAccountNewAccount>;
48
36
  baseAccount: TransactionSigner<TAccountBaseAccount>;
49
37
  base: AllocateWithSeedInstructionDataArgs['base'];
@@ -51,13 +39,8 @@ export type AllocateWithSeedInputWithSigners<TAccountNewAccount extends string,
51
39
  space: AllocateWithSeedInstructionDataArgs['space'];
52
40
  programAddress: AllocateWithSeedInstructionDataArgs['programAddress'];
53
41
  };
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[]> = {
42
+ export declare function getAllocateWithSeedInstruction<TAccountNewAccount extends string, TAccountBaseAccount extends string>(input: AllocateWithSeedInput<TAccountNewAccount, TAccountBaseAccount>): AllocateWithSeedInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNewAccount, TAccountBaseAccount>;
43
+ export type ParsedAllocateWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
61
44
  programAddress: Address<TProgram>;
62
45
  accounts: {
63
46
  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,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ountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, WritableSignerAccount } from '@solana/instructions';
11
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<[
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
13
+ 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
14
  TAccountAccount extends string ? WritableSignerAccount<TAccountAccount> & IAccountSignerMeta<TAccountAccount> : TAccountAccount,
18
15
  ...TRemainingAccounts
19
16
  ]>;
@@ -27,20 +24,12 @@ export type AssignInstructionDataArgs = {
27
24
  export declare function getAssignInstructionDataEncoder(): Encoder<AssignInstructionDataArgs>;
28
25
  export declare function getAssignInstructionDataDecoder(): Decoder<AssignInstructionData>;
29
26
  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> = {
27
+ export type AssignInput<TAccountAccount extends string = string> = {
35
28
  account: TransactionSigner<TAccountAccount>;
36
29
  programAddress: AssignInstructionDataArgs['programAddress'];
37
30
  };
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[]> = {
31
+ export declare function getAssignInstruction<TAccountAccount extends string>(input: AssignInput<TAccountAccount>): AssignInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountAccount>;
32
+ export type ParsedAssignInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
44
33
  programAddress: Address<TProgram>;
45
34
  accounts: {
46
35
  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,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AS,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"}
@@ -9,12 +9,8 @@ import { Address } from '@solana/addresses';
9
9
  import { Codec, Decoder, Encoder } from '@solana/codecs';
10
10
  import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
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<[
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
13
+ 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
14
  TAccountAccount extends string ? WritableAccount<TAccountAccount> : TAccountAccount,
19
15
  TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
20
16
  ...TRemainingAccounts
@@ -33,27 +29,15 @@ export type AssignWithSeedInstructionDataArgs = {
33
29
  export declare function getAssignWithSeedInstructionDataEncoder(): Encoder<AssignWithSeedInstructionDataArgs>;
34
30
  export declare function getAssignWithSeedInstructionDataDecoder(): Decoder<AssignWithSeedInstructionData>;
35
31
  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> = {
32
+ export type AssignWithSeedInput<TAccountAccount extends string = string, TAccountBaseAccount extends string = string> = {
44
33
  account: Address<TAccountAccount>;
45
34
  baseAccount: TransactionSigner<TAccountBaseAccount>;
46
35
  base: AssignWithSeedInstructionDataArgs['base'];
47
36
  seed: AssignWithSeedInstructionDataArgs['seed'];
48
37
  programAddress: AssignWithSeedInstructionDataArgs['programAddress'];
49
38
  };
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[]> = {
39
+ export declare function getAssignWithSeedInstruction<TAccountAccount extends string, TAccountBaseAccount extends string>(input: AssignWithSeedInput<TAccountAccount, TAccountBaseAccount>): AssignWithSeedInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountAccount, TAccountBaseAccount>;
40
+ export type ParsedAssignWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
57
41
  programAddress: Address<TProgram>;
58
42
  accounts: {
59
43
  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;AAC9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EAC7B,eAAe,EACf,mBAAmB,CACpB,CAkCA;AAED,MAAM,MAAM,+BAA+B,CACzC,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;QAC1B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,6BAA6B,CAAC;CACrC,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,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,+BAA+B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAmB1D"}
@@ -9,12 +9,8 @@ import { Address } from '@solana/addresses';
9
9
  import { Codec, Decoder, Encoder } from '@solana/codecs';
10
10
  import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, WritableAccount } from '@solana/instructions';
11
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<[
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
13
+ 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
14
  TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
19
15
  TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> & IAccountSignerMeta<TAccountNonceAuthority> : TAccountNonceAuthority,
20
16
  ...TRemainingAccounts
@@ -29,23 +25,13 @@ export type AuthorizeNonceAccountInstructionDataArgs = {
29
25
  export declare function getAuthorizeNonceAccountInstructionDataEncoder(): Encoder<AuthorizeNonceAccountInstructionDataArgs>;
30
26
  export declare function getAuthorizeNonceAccountInstructionDataDecoder(): Decoder<AuthorizeNonceAccountInstructionData>;
31
27
  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> = {
28
+ export type AuthorizeNonceAccountInput<TAccountNonceAccount extends string = string, TAccountNonceAuthority extends string = string> = {
38
29
  nonceAccount: Address<TAccountNonceAccount>;
39
30
  nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
40
31
  newNonceAuthority: AuthorizeNonceAccountInstructionDataArgs['newNonceAuthority'];
41
32
  };
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[]> = {
33
+ export declare function getAuthorizeNonceAccountInstruction<TAccountNonceAccount extends string, TAccountNonceAuthority extends string>(input: AuthorizeNonceAccountInput<TAccountNonceAccount, TAccountNonceAuthority>): AuthorizeNonceAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountNonceAccount, TAccountNonceAuthority>;
34
+ export type ParsedAuthorizeNonceAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
49
35
  programAddress: Address<TProgram>;
50
36
  accounts: {
51
37
  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,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,gCAAgC,CAC1C,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,sBAAsB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACrE,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,sBAAsB,SAAS,MAAM,GACjC,qBAAqB,CAAC,sBAAsB,CAAC,GAC7C,sBAAsB;IAC1B,GAAG,kB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C/B,sBAAsB,CAAC;CAC5B,EACD,IAAI,EAAE,wCAAwC,EAC9C,cAAc,GAAE,OAAO,CAAC,QAAQ,CAA2D,EAC3F,iBAAiB,CAAC,EAAE,kBAAkB,gHAmBvC;AAED,MAAM,MAAM,sCAAsC,CAChD,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,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAClC,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,CAqBjE"}
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,EACL,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;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAA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AAC;CAClF,CAAC;AAEF,wBAAgB,mCAAmC,CACjD,oBAAoB,SAAS,MAAM,EACnC,sBAAsB,SAAS,MAAM,EAErC,KAAK,EAAE,0BAA0B,CAC/B,oBAAoB,EACpB,sBAAsB,CACvB,GACA,gCAAgC,CACjC,OAAO,sBAAsB,EAC7B,oBAAoB,EACpB,sBAAsB,CACvB,CAkCA;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,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAClC,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,CAqBjE"}
@@ -9,13 +9,9 @@ import { Address } from '@solana/addresses';
9
9
  import { Codec, Decoder, Encoder } from '@solana/codecs';
10
10
  import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, WritableSignerAccount } from '@solana/instructions';
11
11
  import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
12
13
  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<[
14
+ 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
15
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
20
16
  TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> & IAccountSignerMeta<TAccountNewAccount> : TAccountNewAccount,
21
17
  ...TRemainingAccounts
@@ -34,27 +30,15 @@ export type CreateAccountInstructionDataArgs = {
34
30
  export declare function getCreateAccountInstructionDataEncoder(): Encoder<CreateAccountInstructionDataArgs>;
35
31
  export declare function getCreateAccountInstructionDataDecoder(): Decoder<CreateAccountInstructionData>;
36
32
  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> = {
33
+ export type CreateAccountInput<TAccountPayer extends string = string, TAccountNewAccount extends string = string> = {
45
34
  payer: TransactionSigner<TAccountPayer>;
46
35
  newAccount: TransactionSigner<TAccountNewAccount>;
47
36
  lamports: CreateAccountInstructionDataArgs['lamports'];
48
37
  space: CreateAccountInstructionDataArgs['space'];
49
38
  programAddress: CreateAccountInstructionDataArgs['programAddress'];
50
39
  };
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[]> = {
40
+ export declare function getCreateAccountInstruction<TAccountPayer extends string, TAccountNewAccount extends string>(input: CreateAccountInput<TAccountPayer, TAccountNewAccount>): CreateAccountInstruction<typeof SYSTEM_PROGRAM_ADDRESS, TAccountPayer, TAccountNewAccount> & IInstructionWithByteDelta;
41
+ export type ParsedCreateAccountInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
58
42
  programAddress: Address<TProgram>;
59
43
  accounts: {
60
44
  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,GACxB,qBAAqB,CAAC,aAAa,CAAC,GACpC,aAAa;IACjB,kBAAkB,SAAS,MAAM,GAC7B,qBAAqB,CAAC,kBAAkB,CAAC,GACzC,kBAAkB;IACtB,GAAG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4B,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"}
@@ -9,13 +9,8 @@ import { Address } from '@solana/addresses';
9
9
  import { Codec, Decoder, Encoder } from '@solana/codecs';
10
10
  import { IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlySignerAccount, WritableAccount, WritableSignerAccount } from '@solana/instructions';
11
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<[
12
+ import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
13
+ 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
14
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
20
15
  TAccountNewAccount extends string ? WritableAccount<TAccountNewAccount> : TAccountNewAccount,
21
16
  TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
@@ -39,17 +34,7 @@ export type CreateAccountWithSeedInstructionDataArgs = {
39
34
  export declare function getCreateAccountWithSeedInstructionDataEncoder(): Encoder<CreateAccountWithSeedInstructionDataArgs>;
40
35
  export declare function getCreateAccountWithSeedInstructionDataDecoder(): Decoder<CreateAccountWithSeedInstructionData>;
41
36
  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> = {
37
+ export type CreateAccountWithSeedInput<TAccountPayer extends string = string, TAccountNewAccount extends string = string, TAccountBaseAccount extends string = string> = {
53
38
  payer: TransactionSigner<TAccountPayer>;
54
39
  newAccount: Address<TAccountNewAccount>;
55
40
  baseAccount: TransactionSigner<TAccountBaseAccount>;
@@ -59,14 +44,8 @@ export type CreateAccountWithSeedInputWithSigners<TAccountPayer extends string,
59
44
  space: CreateAccountWithSeedInstructionDataArgs['space'];
60
45
  programAddress: CreateAccountWithSeedInstructionDataArgs['programAddress'];
61
46
  };
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[]> = {
47
+ 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>;
48
+ export type ParsedCreateAccountWithSeedInstruction<TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
70
49
  programAddress: Address<TProgram>;
71
50
  accounts: {
72
51
  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,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,KAAK,CAAC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