@solana-program/system 0.1.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.
- package/README.md +38 -0
- package/dist/src/index.js +1432 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.mjs +1320 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/types/src/generated/accounts/index.d.ts +9 -0
- package/dist/types/src/generated/accounts/index.d.ts.map +1 -0
- package/dist/types/src/generated/accounts/nonce.d.ts +38 -0
- package/dist/types/src/generated/accounts/nonce.d.ts.map +1 -0
- package/dist/types/src/generated/errors/index.d.ts +9 -0
- package/dist/types/src/generated/errors/index.d.ts.map +1 -0
- package/dist/types/src/generated/errors/system.d.ts +35 -0
- package/dist/types/src/generated/errors/system.d.ts.map +1 -0
- package/dist/types/src/generated/index.d.ts +14 -0
- package/dist/types/src/generated/index.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts +58 -0
- package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/allocate.d.ts +51 -0
- package/dist/types/src/generated/instructions/allocate.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/allocateWithSeed.d.ts +69 -0
- package/dist/types/src/generated/instructions/allocateWithSeed.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/assign.d.ts +51 -0
- package/dist/types/src/generated/instructions/assign.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/assignWithSeed.d.ts +65 -0
- package/dist/types/src/generated/instructions/assignWithSeed.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts +57 -0
- package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/createAccount.d.ts +66 -0
- package/dist/types/src/generated/instructions/createAccount.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts +79 -0
- package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/index.d.ts +21 -0
- package/dist/types/src/generated/instructions/index.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts +62 -0
- package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/transferSol.d.ts +57 -0
- package/dist/types/src/generated/instructions/transferSol.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts +71 -0
- package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts +45 -0
- package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts.map +1 -0
- package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts +75 -0
- package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts.map +1 -0
- package/dist/types/src/generated/programs/index.d.ts +9 -0
- package/dist/types/src/generated/programs/index.d.ts.map +1 -0
- package/dist/types/src/generated/programs/system.d.ts +63 -0
- package/dist/types/src/generated/programs/system.d.ts.map +1 -0
- package/dist/types/src/generated/shared/index.d.ts +61 -0
- package/dist/types/src/generated/shared/index.d.ts.map +1 -0
- package/dist/types/src/generated/types/index.d.ts +10 -0
- package/dist/types/src/generated/types/index.d.ts.map +1 -0
- package/dist/types/src/generated/types/nonceState.d.ts +17 -0
- package/dist/types/src/generated/types/nonceState.d.ts.map +1 -0
- package/dist/types/src/generated/types/nonceVersion.d.ts +17 -0
- package/dist/types/src/generated/types/nonceVersion.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/test/_setup.d.ts +15 -0
- package/dist/types/test/_setup.d.ts.map +1 -0
- package/dist/types/test/initializeNonceAccount.test.d.ts +2 -0
- package/dist/types/test/initializeNonceAccount.test.d.ts.map +1 -0
- package/dist/types/test/transferSol.test.d.ts +2 -0
- package/dist/types/test/transferSol.test.d.ts.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
export * from './advanceNonceAccount';
|
|
9
|
+
export * from './allocate';
|
|
10
|
+
export * from './allocateWithSeed';
|
|
11
|
+
export * from './assign';
|
|
12
|
+
export * from './assignWithSeed';
|
|
13
|
+
export * from './authorizeNonceAccount';
|
|
14
|
+
export * from './createAccount';
|
|
15
|
+
export * from './createAccountWithSeed';
|
|
16
|
+
export * from './initializeNonceAccount';
|
|
17
|
+
export * from './transferSol';
|
|
18
|
+
export * from './transferSolWithSeed';
|
|
19
|
+
export * from './upgradeNonceAccount';
|
|
20
|
+
export * from './withdrawNonceAccount';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Address } from '@solana/addresses';
|
|
9
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
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<[
|
|
18
|
+
TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
|
|
19
|
+
TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
|
|
20
|
+
TAccountRentSysvar extends string ? ReadonlyAccount<TAccountRentSysvar> : TAccountRentSysvar,
|
|
21
|
+
...TRemainingAccounts
|
|
22
|
+
]>;
|
|
23
|
+
export type InitializeNonceAccountInstructionData = {
|
|
24
|
+
discriminator: number;
|
|
25
|
+
nonceAuthority: Address;
|
|
26
|
+
};
|
|
27
|
+
export type InitializeNonceAccountInstructionDataArgs = {
|
|
28
|
+
nonceAuthority: Address;
|
|
29
|
+
};
|
|
30
|
+
export declare function getInitializeNonceAccountInstructionDataEncoder(): Encoder<InitializeNonceAccountInstructionDataArgs>;
|
|
31
|
+
export declare function getInitializeNonceAccountInstructionDataDecoder(): Decoder<InitializeNonceAccountInstructionData>;
|
|
32
|
+
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> = {
|
|
40
|
+
nonceAccount: Address<TAccountNonceAccount>;
|
|
41
|
+
recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
|
|
42
|
+
rentSysvar?: Address<TAccountRentSysvar>;
|
|
43
|
+
nonceAuthority: InitializeNonceAccountInstructionDataArgs['nonceAuthority'];
|
|
44
|
+
};
|
|
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[]> = {
|
|
53
|
+
programAddress: Address<TProgram>;
|
|
54
|
+
accounts: {
|
|
55
|
+
nonceAccount: TAccountMetas[0];
|
|
56
|
+
recentBlockhashesSysvar: TAccountMetas[1];
|
|
57
|
+
rentSysvar: TAccountMetas[2];
|
|
58
|
+
};
|
|
59
|
+
data: InitializeNonceAccountInstructionData;
|
|
60
|
+
};
|
|
61
|
+
export declare function parseInitializeNonceAccountInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeNonceAccountInstruction<TProgram, TAccountMetas>;
|
|
62
|
+
//# sourceMappingURL=initializeNonceAccount.d.ts.map
|
|
@@ -0,0 +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,EAGR,MAAM,qBAAqB,CAAC;AAM7B,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,YAA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AAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,YAAY,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"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Address } from '@solana/addresses';
|
|
9
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
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<[
|
|
18
|
+
TAccountSource extends string ? WritableSignerAccount<TAccountSource> & IAccountSignerMeta<TAccountSource> : TAccountSource,
|
|
19
|
+
TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination,
|
|
20
|
+
...TRemainingAccounts
|
|
21
|
+
]>;
|
|
22
|
+
export type TransferSolInstructionData = {
|
|
23
|
+
discriminator: number;
|
|
24
|
+
amount: bigint;
|
|
25
|
+
};
|
|
26
|
+
export type TransferSolInstructionDataArgs = {
|
|
27
|
+
amount: number | bigint;
|
|
28
|
+
};
|
|
29
|
+
export declare function getTransferSolInstructionDataEncoder(): Encoder<TransferSolInstructionDataArgs>;
|
|
30
|
+
export declare function getTransferSolInstructionDataDecoder(): Decoder<TransferSolInstructionData>;
|
|
31
|
+
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> = {
|
|
38
|
+
source: TransactionSigner<TAccountSource>;
|
|
39
|
+
destination: Address<TAccountDestination>;
|
|
40
|
+
amount: TransferSolInstructionDataArgs['amount'];
|
|
41
|
+
};
|
|
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[]> = {
|
|
49
|
+
programAddress: Address<TProgram>;
|
|
50
|
+
accounts: {
|
|
51
|
+
source: TAccountMetas[0];
|
|
52
|
+
destination: TAccountMetas[1];
|
|
53
|
+
};
|
|
54
|
+
data: TransferSolInstructionData;
|
|
55
|
+
};
|
|
56
|
+
export declare function parseTransferSolInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedTransferSolInstruction<TProgram, TAccountMetas>;
|
|
57
|
+
//# sourceMappingURL=transferSol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferSol.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/transferSol.ts"],"names":[],"mappings":"AAAA;;;;;;GAM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C/B,CAAC;IACF,IAAI,EAAE,0BAA0B,CAAC;CAClC,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,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,4BAA4B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAmBvD"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Address } from '@solana/addresses';
|
|
9
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
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<[
|
|
19
|
+
TAccountSource extends string ? WritableAccount<TAccountSource> : TAccountSource,
|
|
20
|
+
TAccountBaseAccount extends string ? ReadonlySignerAccount<TAccountBaseAccount> & IAccountSignerMeta<TAccountBaseAccount> : TAccountBaseAccount,
|
|
21
|
+
TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination,
|
|
22
|
+
...TRemainingAccounts
|
|
23
|
+
]>;
|
|
24
|
+
export type TransferSolWithSeedInstructionData = {
|
|
25
|
+
discriminator: number;
|
|
26
|
+
amount: bigint;
|
|
27
|
+
fromSeed: string;
|
|
28
|
+
fromOwner: Address;
|
|
29
|
+
};
|
|
30
|
+
export type TransferSolWithSeedInstructionDataArgs = {
|
|
31
|
+
amount: number | bigint;
|
|
32
|
+
fromSeed: string;
|
|
33
|
+
fromOwner: Address;
|
|
34
|
+
};
|
|
35
|
+
export declare function getTransferSolWithSeedInstructionDataEncoder(): Encoder<TransferSolWithSeedInstructionDataArgs>;
|
|
36
|
+
export declare function getTransferSolWithSeedInstructionDataDecoder(): Decoder<TransferSolWithSeedInstructionData>;
|
|
37
|
+
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> = {
|
|
47
|
+
source: Address<TAccountSource>;
|
|
48
|
+
baseAccount: TransactionSigner<TAccountBaseAccount>;
|
|
49
|
+
destination: Address<TAccountDestination>;
|
|
50
|
+
amount: TransferSolWithSeedInstructionDataArgs['amount'];
|
|
51
|
+
fromSeed: TransferSolWithSeedInstructionDataArgs['fromSeed'];
|
|
52
|
+
fromOwner: TransferSolWithSeedInstructionDataArgs['fromOwner'];
|
|
53
|
+
};
|
|
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[]> = {
|
|
62
|
+
programAddress: Address<TProgram>;
|
|
63
|
+
accounts: {
|
|
64
|
+
source: TAccountMetas[0];
|
|
65
|
+
baseAccount: TAccountMetas[1];
|
|
66
|
+
destination: TAccountMetas[2];
|
|
67
|
+
};
|
|
68
|
+
data: TransferSolWithSeedInstructionData;
|
|
69
|
+
};
|
|
70
|
+
export declare function parseTransferSolWithSeedInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedTransferSolWithSeedInstruction<TProgram, TAccountMetas>;
|
|
71
|
+
//# sourceMappingURL=transferSolWithSeed.d.ts.map
|
|
@@ -0,0 +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,EAGR,MAAM,qBAAqB,CAAC;AAY7B,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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MAAM,GACjC,OAAO,CAAC,cAAc,CAAC,GACvB,cAAc,CAAC;IACnB,WAAW,EAAE,mBAAmB,SAAS,MAAM,GAC3C,OAAO,CAAC,mBAAmB,CAAC,GAC5B,mBAAmB,CAAC;IACxB,WAAW,EAAE,mBAAmB,SAAS,MAAM,GAC3C,OAAO,CAAC,mBAAmB,CAAC,GAC5B,mBAAmB,CAAC;CACzB,EACD,IAAI,EAAE,sCAAsC,EAC5C,cAAc,GAAE,OAAO,CAAC,QAAQ,CAA2D,EAC3F,iBAAiB,CAAC,EAAE,kBAAkB,0HAkBvC;AAED,MAAM,MAAM,oCAAoC,CAC9C,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,aAAa,SAAS,SAAS,YAAY,EAAE,GAAG,SAAS,YAAY,EAAE,IACrE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Address } from '@solana/addresses';
|
|
9
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
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<[
|
|
16
|
+
TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
|
|
17
|
+
...TRemainingAccounts
|
|
18
|
+
]>;
|
|
19
|
+
export type UpgradeNonceAccountInstructionData = {
|
|
20
|
+
discriminator: number;
|
|
21
|
+
};
|
|
22
|
+
export type UpgradeNonceAccountInstructionDataArgs = {};
|
|
23
|
+
export declare function getUpgradeNonceAccountInstructionDataEncoder(): Encoder<UpgradeNonceAccountInstructionDataArgs>;
|
|
24
|
+
export declare function getUpgradeNonceAccountInstructionDataDecoder(): Decoder<UpgradeNonceAccountInstructionData>;
|
|
25
|
+
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> = {
|
|
30
|
+
nonceAccount: Address<TAccountNonceAccount>;
|
|
31
|
+
};
|
|
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[]> = {
|
|
38
|
+
programAddress: Address<TProgram>;
|
|
39
|
+
accounts: {
|
|
40
|
+
nonceAccount: TAccountMetas[0];
|
|
41
|
+
};
|
|
42
|
+
data: UpgradeNonceAccountInstructionData;
|
|
43
|
+
};
|
|
44
|
+
export declare function parseUpgradeNonceAccountInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedUpgradeNonceAccountInstruction<TProgram, TAccountMetas>;
|
|
45
|
+
//# sourceMappingURL=upgradeNonceAccount.d.ts.map
|
|
@@ -0,0 +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,EACL,OAAO,EACP,OAAO,EAGR,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAO9B,MAAM,MAAM,8BAA8B,CACxC,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,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,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,yCAAyC,CACnD,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,oBAAoB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACnE,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,GAAG,kBAAkB;CACtB,CACF,CAAC;AAEJ,MAAM,MAAM,kCAAkC,GAAG;IAA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AAC;CAC1B,EACD,cAAc,GAAE,OAAO,CAAC,QAAQ,CAA2D,EAC3F,iBAAiB,CAAC,EAAE,kBAAkB,sFAcvC;AAED,MAAM,MAAM,oCAAoC,CAC9C,QAAQ,SAAS,MAAM,GAAG,kCAAkC,EAC5D,aAAa,SAAS,SAAS,YAAY,EAAE,GAAG,SAAS,YAAY,EAAE,IACrE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;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"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Address } from '@solana/addresses';
|
|
9
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
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<[
|
|
21
|
+
TAccountNonceAccount extends string ? WritableAccount<TAccountNonceAccount> : TAccountNonceAccount,
|
|
22
|
+
TAccountRecipientAccount extends string ? WritableAccount<TAccountRecipientAccount> : TAccountRecipientAccount,
|
|
23
|
+
TAccountRecentBlockhashesSysvar extends string ? ReadonlyAccount<TAccountRecentBlockhashesSysvar> : TAccountRecentBlockhashesSysvar,
|
|
24
|
+
TAccountRentSysvar extends string ? ReadonlyAccount<TAccountRentSysvar> : TAccountRentSysvar,
|
|
25
|
+
TAccountNonceAuthority extends string ? ReadonlySignerAccount<TAccountNonceAuthority> & IAccountSignerMeta<TAccountNonceAuthority> : TAccountNonceAuthority,
|
|
26
|
+
...TRemainingAccounts
|
|
27
|
+
]>;
|
|
28
|
+
export type WithdrawNonceAccountInstructionData = {
|
|
29
|
+
discriminator: number;
|
|
30
|
+
withdrawAmount: bigint;
|
|
31
|
+
};
|
|
32
|
+
export type WithdrawNonceAccountInstructionDataArgs = {
|
|
33
|
+
withdrawAmount: number | bigint;
|
|
34
|
+
};
|
|
35
|
+
export declare function getWithdrawNonceAccountInstructionDataEncoder(): Encoder<WithdrawNonceAccountInstructionDataArgs>;
|
|
36
|
+
export declare function getWithdrawNonceAccountInstructionDataDecoder(): Decoder<WithdrawNonceAccountInstructionData>;
|
|
37
|
+
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> = {
|
|
47
|
+
nonceAccount: Address<TAccountNonceAccount>;
|
|
48
|
+
recipientAccount: Address<TAccountRecipientAccount>;
|
|
49
|
+
recentBlockhashesSysvar?: Address<TAccountRecentBlockhashesSysvar>;
|
|
50
|
+
rentSysvar?: Address<TAccountRentSysvar>;
|
|
51
|
+
nonceAuthority: TransactionSigner<TAccountNonceAuthority>;
|
|
52
|
+
withdrawAmount: WithdrawNonceAccountInstructionDataArgs['withdrawAmount'];
|
|
53
|
+
};
|
|
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[]> = {
|
|
64
|
+
programAddress: Address<TProgram>;
|
|
65
|
+
accounts: {
|
|
66
|
+
nonceAccount: TAccountMetas[0];
|
|
67
|
+
recipientAccount: TAccountMetas[1];
|
|
68
|
+
recentBlockhashesSysvar: TAccountMetas[2];
|
|
69
|
+
rentSysvar: TAccountMetas[3];
|
|
70
|
+
nonceAuthority: TAccountMetas[4];
|
|
71
|
+
};
|
|
72
|
+
data: WithdrawNonceAccountInstructionData;
|
|
73
|
+
};
|
|
74
|
+
export declare function parseWithdrawNonceAccountInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedWithdrawNonceAccountInstruction<TProgram, TAccountMetas>;
|
|
75
|
+
//# sourceMappingURL=withdrawNonceAccount.d.ts.map
|
|
@@ -0,0 +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,EAGR,MAAM,qBAAqB,CAAC;AAW7B,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,CAAC,MAAM,CAAC,GAAG,6CAA6C,EACxE,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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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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
export * from './system';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/programs/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Address } from '@solana/addresses';
|
|
9
|
+
import { Program, ProgramWithErrors } from '@solana/programs';
|
|
10
|
+
import { SystemProgramError, SystemProgramErrorCode } from '../errors';
|
|
11
|
+
import { ParsedAdvanceNonceAccountInstruction, ParsedAllocateInstruction, ParsedAllocateWithSeedInstruction, ParsedAssignInstruction, ParsedAssignWithSeedInstruction, ParsedAuthorizeNonceAccountInstruction, ParsedCreateAccountInstruction, ParsedCreateAccountWithSeedInstruction, ParsedInitializeNonceAccountInstruction, ParsedTransferSolInstruction, ParsedTransferSolWithSeedInstruction, ParsedUpgradeNonceAccountInstruction, ParsedWithdrawNonceAccountInstruction } from '../instructions';
|
|
12
|
+
export declare const SYSTEM_PROGRAM_ADDRESS: Address<"11111111111111111111111111111111">;
|
|
13
|
+
export type SystemProgram = Program<'11111111111111111111111111111111'> & ProgramWithErrors<SystemProgramErrorCode, SystemProgramError>;
|
|
14
|
+
export declare function getSystemProgram(): SystemProgram;
|
|
15
|
+
export declare enum SystemAccount {
|
|
16
|
+
Nonce = 0
|
|
17
|
+
}
|
|
18
|
+
export declare enum SystemInstruction {
|
|
19
|
+
CreateAccount = 0,
|
|
20
|
+
Assign = 1,
|
|
21
|
+
TransferSol = 2,
|
|
22
|
+
CreateAccountWithSeed = 3,
|
|
23
|
+
AdvanceNonceAccount = 4,
|
|
24
|
+
WithdrawNonceAccount = 5,
|
|
25
|
+
InitializeNonceAccount = 6,
|
|
26
|
+
AuthorizeNonceAccount = 7,
|
|
27
|
+
Allocate = 8,
|
|
28
|
+
AllocateWithSeed = 9,
|
|
29
|
+
AssignWithSeed = 10,
|
|
30
|
+
TransferSolWithSeed = 11,
|
|
31
|
+
UpgradeNonceAccount = 12
|
|
32
|
+
}
|
|
33
|
+
export declare function identifySystemInstruction(instruction: {
|
|
34
|
+
data: Uint8Array;
|
|
35
|
+
} | Uint8Array): SystemInstruction;
|
|
36
|
+
export type ParsedSystemInstruction<TProgram extends string = '11111111111111111111111111111111'> = ({
|
|
37
|
+
instructionType: SystemInstruction.CreateAccount;
|
|
38
|
+
} & ParsedCreateAccountInstruction<TProgram>) | ({
|
|
39
|
+
instructionType: SystemInstruction.Assign;
|
|
40
|
+
} & ParsedAssignInstruction<TProgram>) | ({
|
|
41
|
+
instructionType: SystemInstruction.TransferSol;
|
|
42
|
+
} & ParsedTransferSolInstruction<TProgram>) | ({
|
|
43
|
+
instructionType: SystemInstruction.CreateAccountWithSeed;
|
|
44
|
+
} & ParsedCreateAccountWithSeedInstruction<TProgram>) | ({
|
|
45
|
+
instructionType: SystemInstruction.AdvanceNonceAccount;
|
|
46
|
+
} & ParsedAdvanceNonceAccountInstruction<TProgram>) | ({
|
|
47
|
+
instructionType: SystemInstruction.WithdrawNonceAccount;
|
|
48
|
+
} & ParsedWithdrawNonceAccountInstruction<TProgram>) | ({
|
|
49
|
+
instructionType: SystemInstruction.InitializeNonceAccount;
|
|
50
|
+
} & ParsedInitializeNonceAccountInstruction<TProgram>) | ({
|
|
51
|
+
instructionType: SystemInstruction.AuthorizeNonceAccount;
|
|
52
|
+
} & ParsedAuthorizeNonceAccountInstruction<TProgram>) | ({
|
|
53
|
+
instructionType: SystemInstruction.Allocate;
|
|
54
|
+
} & ParsedAllocateInstruction<TProgram>) | ({
|
|
55
|
+
instructionType: SystemInstruction.AllocateWithSeed;
|
|
56
|
+
} & ParsedAllocateWithSeedInstruction<TProgram>) | ({
|
|
57
|
+
instructionType: SystemInstruction.AssignWithSeed;
|
|
58
|
+
} & ParsedAssignWithSeedInstruction<TProgram>) | ({
|
|
59
|
+
instructionType: SystemInstruction.TransferSolWithSeed;
|
|
60
|
+
} & ParsedTransferSolWithSeedInstruction<TProgram>) | ({
|
|
61
|
+
instructionType: SystemInstruction.UpgradeNonceAccount;
|
|
62
|
+
} & ParsedUpgradeNonceAccountInstruction<TProgram>);
|
|
63
|
+
//# sourceMappingURL=system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.d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BAAmB,CAAC;CACxD,GAAG,oCAAoC,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Address, ProgramDerivedAddress } from '@solana/addresses';
|
|
9
|
+
import { AccountRole, IAccountMeta } from '@solana/instructions';
|
|
10
|
+
import { IAccountSignerMeta, TransactionSigner } from '@solana/signers';
|
|
11
|
+
/**
|
|
12
|
+
* Asserts that the given value is not null or undefined.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function expectSome<T>(value: T | null | undefined): T;
|
|
16
|
+
/**
|
|
17
|
+
* Asserts that the given value is a PublicKey.
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare function expectAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): Address<T>;
|
|
21
|
+
/**
|
|
22
|
+
* Asserts that the given value is a PDA.
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare function expectProgramDerivedAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): ProgramDerivedAddress<T>;
|
|
26
|
+
/**
|
|
27
|
+
* Asserts that the given value is a TransactionSigner.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function expectTransactionSigner<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): TransactionSigner<T>;
|
|
31
|
+
/**
|
|
32
|
+
* Defines an instruction account to resolve.
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export type ResolvedAccount<T extends string = string, U extends Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null = Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null> = {
|
|
36
|
+
isWritable: boolean;
|
|
37
|
+
value: U;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Add an account meta with a default role if only an address is provided.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare function accountMetaWithDefault<TAccount extends string | IAccountMeta<string>, TRole extends AccountRole>(account: TAccount | undefined, role: TRole): (TAccount extends string ? {
|
|
44
|
+
address: Address<TAccount>;
|
|
45
|
+
role: TRole;
|
|
46
|
+
} : TAccount) | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Defines an instruction that stores additional bytes on-chain.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
export type IInstructionWithByteDelta = {
|
|
52
|
+
byteDelta: number;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Get account metas and signers from resolved accounts.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export declare function getAccountMetasWithSigners<TKey extends string = string>(accounts: Record<TKey, ResolvedAccount>, optionalAccountStrategy: 'omitted' | 'programId', programAddress: Address): Record<TKey, IAccountMeta | IAccountSignerMeta>;
|
|
59
|
+
export declare function isTransactionSigner<TAddress extends string = string>(value: Address<TAddress> | ProgramDerivedAddress<TAddress> | TransactionSigner<TAddress>): value is TransactionSigner<TAddress>;
|
|
60
|
+
export declare function memcmp(data: Uint8Array, bytes: Uint8Array, offset: number): boolean;
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EAEP,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,WAAW,EACX,YAAY,EAEb,MAAM,sBAAsB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AC;IACpB,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AAEF;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,EAC9C,KAAK,SAAS,WAAW,EACzB,OAAO,EAAE,QAAQ,GAAG,SAAS,EAAE,IAAI,EAAE,KAAK;aAK3B,QAAQ,QAAQ,CAAC;UAAQ,KAAK;0BAE9C;AAED;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EACrE,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,EACvC,uBAAuB,EAAE,SAAS,GAAG,WAAW,EAChD,cAAc,EAAE,OAAO,GACtB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,kBAAkB,CAAC,CA2BjD;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAClE,KAAK,EACD,OAAO,CAAC,QAAQ,CAAC,GACjB,qBAAqB,CAAC,QAAQ,CAAC,GAC/B,iBAAiB,CAAC,QAAQ,CAAC,GAC9B,KAAK,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAOtC;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,WAIzE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
export * from './nonceState';
|
|
9
|
+
export * from './nonceVersion';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Codec, Decoder, Encoder } from '@solana/codecs-core';
|
|
9
|
+
export declare enum NonceState {
|
|
10
|
+
Uninitialized = 0,
|
|
11
|
+
Initialized = 1
|
|
12
|
+
}
|
|
13
|
+
export type NonceStateArgs = NonceState;
|
|
14
|
+
export declare function getNonceStateEncoder(): Encoder<NonceStateArgs>;
|
|
15
|
+
export declare function getNonceStateDecoder(): Decoder<NonceState>;
|
|
16
|
+
export declare function getNonceStateCodec(): Codec<NonceStateArgs, NonceState>;
|
|
17
|
+
//# sourceMappingURL=nonceState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonceState.d.ts","sourceRoot":"","sources":["../../../../../src/generated/types/nonceState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAgB,MAAM,qBAAqB,CAAC;AAO5E,oBAAY,UAAU;IACpB,aAAa,IAAA;IACb,WAAW,IAAA;CACZ;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC;AAExC,wBAAgB,oBAAoB,IAAI,OAAO,CAAC,cAAc,CAAC,CAE9D;AAED,wBAAgB,oBAAoB,IAAI,OAAO,CAAC,UAAU,CAAC,CAE1D;AAED,wBAAgB,kBAAkB,IAAI,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAEtE"}
|