@solana-mobile/guardian-client 0.0.0-stage → 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 +8 -2
- package/dist/src/index.js +4641 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.mjs +4282 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/types/generated/accounts/appAccount.d.ts +50 -0
- package/dist/types/generated/accounts/guardiansConfig.d.ts +54 -0
- package/dist/types/generated/accounts/index.d.ts +10 -0
- package/dist/types/generated/accounts/pendingRegistry.d.ts +35 -0
- package/dist/types/generated/constants/guardian.d.ts +8 -0
- package/dist/types/generated/constants/index.d.ts +8 -0
- package/dist/types/generated/errors/guardian.d.ts +95 -0
- package/dist/types/generated/errors/index.d.ts +8 -0
- package/dist/types/generated/events/appAuthorityAccepted.d.ts +42 -0
- package/dist/types/generated/events/appAuthorityProposed.d.ts +42 -0
- package/dist/types/generated/events/appDeveloperUpdated.d.ts +42 -0
- package/dist/types/generated/events/appRegistered.d.ts +42 -0
- package/dist/types/generated/events/configAuthorityAccepted.d.ts +38 -0
- package/dist/types/generated/events/configAuthorityProposed.d.ts +38 -0
- package/dist/types/generated/events/configInitialized.d.ts +46 -0
- package/dist/types/generated/events/configUpdated.d.ts +52 -0
- package/dist/types/generated/events/guardianAdded.d.ts +34 -0
- package/dist/types/generated/events/guardianRegistered.d.ts +46 -0
- package/dist/types/generated/events/guardianRemoved.d.ts +42 -0
- package/dist/types/generated/events/guardianVoteAuthorityRotated.d.ts +42 -0
- package/dist/types/generated/events/index.d.ts +25 -0
- package/dist/types/generated/events/releaseApproved.d.ts +27 -0
- package/dist/types/generated/events/releaseCancelled.d.ts +38 -0
- package/dist/types/generated/events/releaseExpired.d.ts +38 -0
- package/dist/types/generated/events/releaseProposed.d.ts +42 -0
- package/dist/types/generated/events/releaseRejected.d.ts +27 -0
- package/dist/types/generated/events/voteCast.d.ts +55 -0
- package/dist/types/generated/index.d.ts +15 -0
- package/dist/types/generated/instructions/acceptAppAuthority.d.ts +71 -0
- package/dist/types/generated/instructions/acceptConfigAuthority.d.ts +71 -0
- package/dist/types/generated/instructions/addGuardian.d.ts +90 -0
- package/dist/types/generated/instructions/cancelRelease.d.ts +78 -0
- package/dist/types/generated/instructions/expireRelease.d.ts +71 -0
- package/dist/types/generated/instructions/index.d.ts +24 -0
- package/dist/types/generated/instructions/initializeConfig.d.ts +135 -0
- package/dist/types/generated/instructions/proposeAppAuthority.d.ts +76 -0
- package/dist/types/generated/instructions/proposeConfigAuthority.d.ts +76 -0
- package/dist/types/generated/instructions/proposeRelease.d.ts +121 -0
- package/dist/types/generated/instructions/registerApp.d.ts +87 -0
- package/dist/types/generated/instructions/registerGuardian.d.ts +120 -0
- package/dist/types/generated/instructions/removeGuardian.d.ts +120 -0
- package/dist/types/generated/instructions/rotateVoteAuthority.d.ts +80 -0
- package/dist/types/generated/instructions/setAppDeveloper.d.ts +112 -0
- package/dist/types/generated/instructions/updateConfig.d.ts +88 -0
- package/dist/types/generated/instructions/vote.d.ts +116 -0
- package/dist/types/generated/instructions/writeReleaseManifest.d.ts +104 -0
- package/dist/types/generated/pdas/bondVault.d.ts +11 -0
- package/dist/types/generated/pdas/guardiansConfig.d.ts +11 -0
- package/dist/types/generated/pdas/index.d.ts +10 -0
- package/dist/types/generated/pdas/pendingRegistry.d.ts +11 -0
- package/dist/types/generated/programs/guardian.d.ts +179 -0
- package/dist/types/generated/programs/index.d.ts +8 -0
- package/dist/types/generated/types/bondInfo.d.ts +19 -0
- package/dist/types/generated/types/guardianInfo.d.ts +19 -0
- package/dist/types/generated/types/index.d.ts +14 -0
- package/dist/types/generated/types/pendingRelease.d.ts +29 -0
- package/dist/types/generated/types/publishedApp.d.ts +16 -0
- package/dist/types/generated/types/releaseManifest.d.ts +45 -0
- package/dist/types/generated/types/releaseResolution.d.ts +65 -0
- package/dist/types/generated/types/voteFinding.d.ts +24 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/manifest.d.ts +72 -0
- package/dist/types/proposal.d.ts +66 -0
- package/package.json +58 -3
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from '@solana/program-client-core';
|
|
10
|
+
import { GUARDIAN_PROGRAM_ADDRESS } from '../programs';
|
|
11
|
+
export declare const SET_APP_DEVELOPER_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
|
+
export declare function getSetAppDeveloperDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type SetAppDeveloperInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountFunder extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountApp extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = 'GUARDsVUfAaydbPU6QGcpWRLUkExaULtaygwEtkdhZAD', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountFunder extends string ? WritableSignerAccount<TAccountFunder> & AccountSignerMeta<TAccountFunder> : TAccountFunder,
|
|
15
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
16
|
+
TAccountApp extends string ? WritableAccount<TAccountApp> : TAccountApp,
|
|
17
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
19
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
20
|
+
...TRemainingAccounts
|
|
21
|
+
]>;
|
|
22
|
+
export type SetAppDeveloperInstructionData = {
|
|
23
|
+
discriminator: ReadonlyUint8Array;
|
|
24
|
+
developer: Address;
|
|
25
|
+
allowed: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type SetAppDeveloperInstructionDataArgs = {
|
|
28
|
+
developer: Address | HasAddress;
|
|
29
|
+
allowed: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function getSetAppDeveloperInstructionDataEncoder(): FixedSizeEncoder<SetAppDeveloperInstructionDataArgs>;
|
|
32
|
+
export declare function getSetAppDeveloperInstructionDataDecoder(): FixedSizeDecoder<SetAppDeveloperInstructionData>;
|
|
33
|
+
export declare function getSetAppDeveloperInstructionDataCodec(): FixedSizeCodec<SetAppDeveloperInstructionDataArgs, SetAppDeveloperInstructionData>;
|
|
34
|
+
export type SetAppDeveloperAsyncInput<TAccountFunder extends InstructionSignerInput = InstructionSignerInput, TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountApp extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
35
|
+
/**
|
|
36
|
+
* Pays rent when a key is added and gets it back when one is removed. Must be owned by the
|
|
37
|
+
* System Program.
|
|
38
|
+
*/
|
|
39
|
+
funder: TAccountFunder;
|
|
40
|
+
/** App authority. */
|
|
41
|
+
authority: TAccountAuthority;
|
|
42
|
+
/**
|
|
43
|
+
* The app. Only the rent for the changed key moves, so vote rent prepaid by `propose_release`
|
|
44
|
+
* stays.
|
|
45
|
+
*/
|
|
46
|
+
app: TAccountApp;
|
|
47
|
+
/** For the rent transfer. */
|
|
48
|
+
systemProgram?: TAccountSystemProgram;
|
|
49
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
50
|
+
eventAuthority?: TAccountEventAuthority;
|
|
51
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
52
|
+
program?: TAccountProgram;
|
|
53
|
+
developer: SetAppDeveloperInstructionDataArgs['developer'];
|
|
54
|
+
allowed: SetAppDeveloperInstructionDataArgs['allowed'];
|
|
55
|
+
};
|
|
56
|
+
export declare function getSetAppDeveloperInstructionAsync<TAccountFunder extends InstructionSignerInput, TAccountAuthority extends InstructionSignerInput, TAccountApp extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: SetAppDeveloperAsyncInput<TAccountFunder, TAccountAuthority, TAccountApp, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
57
|
+
programAddress?: TProgramAddress | {
|
|
58
|
+
readonly address: TProgramAddress;
|
|
59
|
+
};
|
|
60
|
+
}): Promise<SetAppDeveloperInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountFunder, InstructionAccountInputAddress<TAccountFunder>>, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountApp, InstructionAccountInputAddress<TAccountApp>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
61
|
+
export type SetAppDeveloperInput<TAccountFunder extends InstructionSignerInput = InstructionSignerInput, TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountApp extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
62
|
+
/**
|
|
63
|
+
* Pays rent when a key is added and gets it back when one is removed. Must be owned by the
|
|
64
|
+
* System Program.
|
|
65
|
+
*/
|
|
66
|
+
funder: TAccountFunder;
|
|
67
|
+
/** App authority. */
|
|
68
|
+
authority: TAccountAuthority;
|
|
69
|
+
/**
|
|
70
|
+
* The app. Only the rent for the changed key moves, so vote rent prepaid by `propose_release`
|
|
71
|
+
* stays.
|
|
72
|
+
*/
|
|
73
|
+
app: TAccountApp;
|
|
74
|
+
/** For the rent transfer. */
|
|
75
|
+
systemProgram?: TAccountSystemProgram;
|
|
76
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
77
|
+
eventAuthority: TAccountEventAuthority;
|
|
78
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
79
|
+
program?: TAccountProgram;
|
|
80
|
+
developer: SetAppDeveloperInstructionDataArgs['developer'];
|
|
81
|
+
allowed: SetAppDeveloperInstructionDataArgs['allowed'];
|
|
82
|
+
};
|
|
83
|
+
export declare function getSetAppDeveloperInstruction<TAccountFunder extends InstructionSignerInput, TAccountAuthority extends InstructionSignerInput, TAccountApp extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: SetAppDeveloperInput<TAccountFunder, TAccountAuthority, TAccountApp, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
84
|
+
programAddress?: TProgramAddress | {
|
|
85
|
+
readonly address: TProgramAddress;
|
|
86
|
+
};
|
|
87
|
+
}): SetAppDeveloperInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountFunder, InstructionAccountInputAddress<TAccountFunder>>, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountApp, InstructionAccountInputAddress<TAccountApp>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
88
|
+
export type ParsedSetAppDeveloperInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
89
|
+
programAddress: Address<TProgram>;
|
|
90
|
+
accounts: {
|
|
91
|
+
/**
|
|
92
|
+
* Pays rent when a key is added and gets it back when one is removed. Must be owned by the
|
|
93
|
+
* System Program.
|
|
94
|
+
*/
|
|
95
|
+
funder: TAccountMetas[0];
|
|
96
|
+
/** App authority. */
|
|
97
|
+
authority: TAccountMetas[1];
|
|
98
|
+
/**
|
|
99
|
+
* The app. Only the rent for the changed key moves, so vote rent prepaid by `propose_release`
|
|
100
|
+
* stays.
|
|
101
|
+
*/
|
|
102
|
+
app: TAccountMetas[2];
|
|
103
|
+
/** For the rent transfer. */
|
|
104
|
+
systemProgram: TAccountMetas[3];
|
|
105
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
106
|
+
eventAuthority: TAccountMetas[4];
|
|
107
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
108
|
+
program: TAccountMetas[5];
|
|
109
|
+
};
|
|
110
|
+
data: SetAppDeveloperInstructionData;
|
|
111
|
+
};
|
|
112
|
+
export declare function parseSetAppDeveloperInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAppDeveloperInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from '@solana/program-client-core';
|
|
10
|
+
import { GUARDIAN_PROGRAM_ADDRESS } from '../programs';
|
|
11
|
+
export declare const UPDATE_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
|
+
export declare function getUpdateConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type UpdateConfigInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = 'GUARDsVUfAaydbPU6QGcpWRLUkExaULtaygwEtkdhZAD', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
15
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
16
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
17
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type UpdateConfigInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
bondAmount: Option<bigint>;
|
|
23
|
+
policyBundleHash: Option<ReadonlyUint8Array>;
|
|
24
|
+
voteWindow: Option<number>;
|
|
25
|
+
votingPeriod: Option<number>;
|
|
26
|
+
};
|
|
27
|
+
export type UpdateConfigInstructionDataArgs = {
|
|
28
|
+
bondAmount: OptionOrNullable<number | bigint>;
|
|
29
|
+
policyBundleHash: OptionOrNullable<ReadonlyUint8Array>;
|
|
30
|
+
voteWindow: OptionOrNullable<number>;
|
|
31
|
+
votingPeriod: OptionOrNullable<number>;
|
|
32
|
+
};
|
|
33
|
+
export declare function getUpdateConfigInstructionDataEncoder(): Encoder<UpdateConfigInstructionDataArgs>;
|
|
34
|
+
export declare function getUpdateConfigInstructionDataDecoder(): Decoder<UpdateConfigInstructionData>;
|
|
35
|
+
export declare function getUpdateConfigInstructionDataCodec(): Codec<UpdateConfigInstructionDataArgs, UpdateConfigInstructionData>;
|
|
36
|
+
export type UpdateConfigAsyncInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
37
|
+
/** Config authority. */
|
|
38
|
+
authority: TAccountAuthority;
|
|
39
|
+
/** Global config. */
|
|
40
|
+
config?: TAccountConfig;
|
|
41
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
42
|
+
eventAuthority?: TAccountEventAuthority;
|
|
43
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
44
|
+
program?: TAccountProgram;
|
|
45
|
+
bondAmount: UpdateConfigInstructionDataArgs['bondAmount'];
|
|
46
|
+
policyBundleHash: UpdateConfigInstructionDataArgs['policyBundleHash'];
|
|
47
|
+
voteWindow: UpdateConfigInstructionDataArgs['voteWindow'];
|
|
48
|
+
votingPeriod: UpdateConfigInstructionDataArgs['votingPeriod'];
|
|
49
|
+
};
|
|
50
|
+
export declare function getUpdateConfigInstructionAsync<TAccountAuthority extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: UpdateConfigAsyncInput<TAccountAuthority, TAccountConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
51
|
+
programAddress?: TProgramAddress | {
|
|
52
|
+
readonly address: TProgramAddress;
|
|
53
|
+
};
|
|
54
|
+
}): Promise<UpdateConfigInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
55
|
+
export type UpdateConfigInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
56
|
+
/** Config authority. */
|
|
57
|
+
authority: TAccountAuthority;
|
|
58
|
+
/** Global config. */
|
|
59
|
+
config: TAccountConfig;
|
|
60
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
61
|
+
eventAuthority: TAccountEventAuthority;
|
|
62
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
63
|
+
program?: TAccountProgram;
|
|
64
|
+
bondAmount: UpdateConfigInstructionDataArgs['bondAmount'];
|
|
65
|
+
policyBundleHash: UpdateConfigInstructionDataArgs['policyBundleHash'];
|
|
66
|
+
voteWindow: UpdateConfigInstructionDataArgs['voteWindow'];
|
|
67
|
+
votingPeriod: UpdateConfigInstructionDataArgs['votingPeriod'];
|
|
68
|
+
};
|
|
69
|
+
export declare function getUpdateConfigInstruction<TAccountAuthority extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: UpdateConfigInput<TAccountAuthority, TAccountConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
70
|
+
programAddress?: TProgramAddress | {
|
|
71
|
+
readonly address: TProgramAddress;
|
|
72
|
+
};
|
|
73
|
+
}): UpdateConfigInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
74
|
+
export type ParsedUpdateConfigInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
75
|
+
programAddress: Address<TProgram>;
|
|
76
|
+
accounts: {
|
|
77
|
+
/** Config authority. */
|
|
78
|
+
authority: TAccountMetas[0];
|
|
79
|
+
/** Global config. */
|
|
80
|
+
config: TAccountMetas[1];
|
|
81
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
82
|
+
eventAuthority: TAccountMetas[2];
|
|
83
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
84
|
+
program: TAccountMetas[3];
|
|
85
|
+
};
|
|
86
|
+
data: UpdateConfigInstructionData;
|
|
87
|
+
};
|
|
88
|
+
export declare function parseUpdateConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from '@solana/program-client-core';
|
|
10
|
+
import { GUARDIAN_PROGRAM_ADDRESS } from '../programs';
|
|
11
|
+
import { type VoteFinding, type VoteFindingArgs } from '../types';
|
|
12
|
+
export declare const VOTE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
13
|
+
export declare function getVoteDiscriminatorBytes(): ReadonlyUint8Array;
|
|
14
|
+
export type VoteInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountVoteAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountApp extends string | AccountMeta<string> = string, TAccountRegistry extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = 'GUARDsVUfAaydbPU6QGcpWRLUkExaULtaygwEtkdhZAD', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
15
|
+
TAccountVoteAuthority extends string ? ReadonlySignerAccount<TAccountVoteAuthority> & AccountSignerMeta<TAccountVoteAuthority> : TAccountVoteAuthority,
|
|
16
|
+
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
17
|
+
TAccountApp extends string ? WritableAccount<TAccountApp> : TAccountApp,
|
|
18
|
+
TAccountRegistry extends string ? WritableAccount<TAccountRegistry> : TAccountRegistry,
|
|
19
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
20
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
21
|
+
...TRemainingAccounts
|
|
22
|
+
]>;
|
|
23
|
+
export type VoteInstructionData = {
|
|
24
|
+
discriminator: ReadonlyUint8Array;
|
|
25
|
+
approve: boolean;
|
|
26
|
+
versionCode: number;
|
|
27
|
+
manifestHash: ReadonlyUint8Array;
|
|
28
|
+
policyBundleHash: ReadonlyUint8Array;
|
|
29
|
+
findings: Array<VoteFinding>;
|
|
30
|
+
};
|
|
31
|
+
export type VoteInstructionDataArgs = {
|
|
32
|
+
approve: boolean;
|
|
33
|
+
versionCode: number;
|
|
34
|
+
manifestHash: ReadonlyUint8Array;
|
|
35
|
+
policyBundleHash: ReadonlyUint8Array;
|
|
36
|
+
findings: Array<VoteFindingArgs>;
|
|
37
|
+
};
|
|
38
|
+
export declare function getVoteInstructionDataEncoder(): Encoder<VoteInstructionDataArgs>;
|
|
39
|
+
export declare function getVoteInstructionDataDecoder(): Decoder<VoteInstructionData>;
|
|
40
|
+
export declare function getVoteInstructionDataCodec(): Codec<VoteInstructionDataArgs, VoteInstructionData>;
|
|
41
|
+
export type VoteAsyncInput<TAccountVoteAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountApp extends InstructionAccountInput = InstructionAccountInput, TAccountRegistry extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
42
|
+
/**
|
|
43
|
+
* A registered guardian's vote authority. No rent payer is needed, since `propose_release`
|
|
44
|
+
* prepays the votes.
|
|
45
|
+
*/
|
|
46
|
+
voteAuthority: TAccountVoteAuthority;
|
|
47
|
+
/** Global config. */
|
|
48
|
+
config?: TAccountConfig;
|
|
49
|
+
/** App with the release being voted on. */
|
|
50
|
+
app: TAccountApp;
|
|
51
|
+
/** Pending-release registry. The app is removed when its release resolves. */
|
|
52
|
+
registry?: TAccountRegistry;
|
|
53
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
54
|
+
eventAuthority?: TAccountEventAuthority;
|
|
55
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
56
|
+
program?: TAccountProgram;
|
|
57
|
+
approve: VoteInstructionDataArgs['approve'];
|
|
58
|
+
versionCode: VoteInstructionDataArgs['versionCode'];
|
|
59
|
+
manifestHash: VoteInstructionDataArgs['manifestHash'];
|
|
60
|
+
policyBundleHash: VoteInstructionDataArgs['policyBundleHash'];
|
|
61
|
+
findings: VoteInstructionDataArgs['findings'];
|
|
62
|
+
};
|
|
63
|
+
export declare function getVoteInstructionAsync<TAccountVoteAuthority extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountApp extends InstructionAccountInput, TAccountRegistry extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: VoteAsyncInput<TAccountVoteAuthority, TAccountConfig, TAccountApp, TAccountRegistry, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
64
|
+
programAddress?: TProgramAddress | {
|
|
65
|
+
readonly address: TProgramAddress;
|
|
66
|
+
};
|
|
67
|
+
}): Promise<VoteInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountVoteAuthority, InstructionAccountInputAddress<TAccountVoteAuthority>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountApp, InstructionAccountInputAddress<TAccountApp>>, ResolvedInstructionAccountMeta<TAccountRegistry, InstructionAccountInputAddress<TAccountRegistry>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
68
|
+
export type VoteInput<TAccountVoteAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountApp extends InstructionAccountInput = InstructionAccountInput, TAccountRegistry extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
69
|
+
/**
|
|
70
|
+
* A registered guardian's vote authority. No rent payer is needed, since `propose_release`
|
|
71
|
+
* prepays the votes.
|
|
72
|
+
*/
|
|
73
|
+
voteAuthority: TAccountVoteAuthority;
|
|
74
|
+
/** Global config. */
|
|
75
|
+
config: TAccountConfig;
|
|
76
|
+
/** App with the release being voted on. */
|
|
77
|
+
app: TAccountApp;
|
|
78
|
+
/** Pending-release registry. The app is removed when its release resolves. */
|
|
79
|
+
registry: TAccountRegistry;
|
|
80
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
81
|
+
eventAuthority: TAccountEventAuthority;
|
|
82
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
83
|
+
program?: TAccountProgram;
|
|
84
|
+
approve: VoteInstructionDataArgs['approve'];
|
|
85
|
+
versionCode: VoteInstructionDataArgs['versionCode'];
|
|
86
|
+
manifestHash: VoteInstructionDataArgs['manifestHash'];
|
|
87
|
+
policyBundleHash: VoteInstructionDataArgs['policyBundleHash'];
|
|
88
|
+
findings: VoteInstructionDataArgs['findings'];
|
|
89
|
+
};
|
|
90
|
+
export declare function getVoteInstruction<TAccountVoteAuthority extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountApp extends InstructionAccountInput, TAccountRegistry extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: VoteInput<TAccountVoteAuthority, TAccountConfig, TAccountApp, TAccountRegistry, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
91
|
+
programAddress?: TProgramAddress | {
|
|
92
|
+
readonly address: TProgramAddress;
|
|
93
|
+
};
|
|
94
|
+
}): VoteInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountVoteAuthority, InstructionAccountInputAddress<TAccountVoteAuthority>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountApp, InstructionAccountInputAddress<TAccountApp>>, ResolvedInstructionAccountMeta<TAccountRegistry, InstructionAccountInputAddress<TAccountRegistry>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
95
|
+
export type ParsedVoteInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
96
|
+
programAddress: Address<TProgram>;
|
|
97
|
+
accounts: {
|
|
98
|
+
/**
|
|
99
|
+
* A registered guardian's vote authority. No rent payer is needed, since `propose_release`
|
|
100
|
+
* prepays the votes.
|
|
101
|
+
*/
|
|
102
|
+
voteAuthority: TAccountMetas[0];
|
|
103
|
+
/** Global config. */
|
|
104
|
+
config: TAccountMetas[1];
|
|
105
|
+
/** App with the release being voted on. */
|
|
106
|
+
app: TAccountMetas[2];
|
|
107
|
+
/** Pending-release registry. The app is removed when its release resolves. */
|
|
108
|
+
registry: TAccountMetas[3];
|
|
109
|
+
/** CHECK: Only the event authority can invoke self-CPI */
|
|
110
|
+
eventAuthority: TAccountMetas[4];
|
|
111
|
+
/** CHECK: Kept for v1-compatible account ordering and IDL shape */
|
|
112
|
+
program: TAccountMetas[5];
|
|
113
|
+
};
|
|
114
|
+
data: VoteInstructionData;
|
|
115
|
+
};
|
|
116
|
+
export declare function parseVoteInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedVoteInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from '@solana/program-client-core';
|
|
10
|
+
import { GUARDIAN_PROGRAM_ADDRESS } from '../programs';
|
|
11
|
+
export declare const WRITE_RELEASE_MANIFEST_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
|
+
export declare function getWriteReleaseManifestDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type WriteReleaseManifestInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountFunder extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountApp extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountFunder extends string ? WritableSignerAccount<TAccountFunder> & AccountSignerMeta<TAccountFunder> : TAccountFunder,
|
|
15
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
16
|
+
TAccountApp extends string ? WritableAccount<TAccountApp> : TAccountApp,
|
|
17
|
+
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
18
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
19
|
+
...TRemainingAccounts
|
|
20
|
+
]>;
|
|
21
|
+
export type WriteReleaseManifestInstructionData = {
|
|
22
|
+
discriminator: ReadonlyUint8Array;
|
|
23
|
+
versionCode: number;
|
|
24
|
+
manifestLen: number;
|
|
25
|
+
offset: number;
|
|
26
|
+
bytes: ReadonlyUint8Array;
|
|
27
|
+
};
|
|
28
|
+
export type WriteReleaseManifestInstructionDataArgs = {
|
|
29
|
+
versionCode: number;
|
|
30
|
+
manifestLen: number;
|
|
31
|
+
offset: number;
|
|
32
|
+
bytes: ReadonlyUint8Array;
|
|
33
|
+
};
|
|
34
|
+
export declare function getWriteReleaseManifestInstructionDataEncoder(): Encoder<WriteReleaseManifestInstructionDataArgs>;
|
|
35
|
+
export declare function getWriteReleaseManifestInstructionDataDecoder(): Decoder<WriteReleaseManifestInstructionData>;
|
|
36
|
+
export declare function getWriteReleaseManifestInstructionDataCodec(): Codec<WriteReleaseManifestInstructionDataArgs, WriteReleaseManifestInstructionData>;
|
|
37
|
+
export type WriteReleaseManifestAsyncInput<TAccountFunder extends InstructionSignerInput = InstructionSignerInput, TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountApp extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
38
|
+
/**
|
|
39
|
+
* Tops up the app's rent for the manifest buffer on the write that starts a release. Must be
|
|
40
|
+
* owned by the System Program.
|
|
41
|
+
*/
|
|
42
|
+
funder: TAccountFunder;
|
|
43
|
+
/** App authority or one of its developers. */
|
|
44
|
+
authority: TAccountAuthority;
|
|
45
|
+
/** The app. Grows by the manifest buffer on the write that starts a release. */
|
|
46
|
+
app: TAccountApp;
|
|
47
|
+
/** Global config. */
|
|
48
|
+
config?: TAccountConfig;
|
|
49
|
+
/** For the rent transfer. */
|
|
50
|
+
systemProgram?: TAccountSystemProgram;
|
|
51
|
+
versionCode: WriteReleaseManifestInstructionDataArgs['versionCode'];
|
|
52
|
+
manifestLen: WriteReleaseManifestInstructionDataArgs['manifestLen'];
|
|
53
|
+
offset: WriteReleaseManifestInstructionDataArgs['offset'];
|
|
54
|
+
bytes: WriteReleaseManifestInstructionDataArgs['bytes'];
|
|
55
|
+
};
|
|
56
|
+
export declare function getWriteReleaseManifestInstructionAsync<TAccountFunder extends InstructionSignerInput, TAccountAuthority extends InstructionSignerInput, TAccountApp extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: WriteReleaseManifestAsyncInput<TAccountFunder, TAccountAuthority, TAccountApp, TAccountConfig, TAccountSystemProgram>, config?: {
|
|
57
|
+
programAddress?: TProgramAddress | {
|
|
58
|
+
readonly address: TProgramAddress;
|
|
59
|
+
};
|
|
60
|
+
}): Promise<WriteReleaseManifestInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountFunder, InstructionAccountInputAddress<TAccountFunder>>, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountApp, InstructionAccountInputAddress<TAccountApp>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>>;
|
|
61
|
+
export type WriteReleaseManifestInput<TAccountFunder extends InstructionSignerInput = InstructionSignerInput, TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountApp extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
62
|
+
/**
|
|
63
|
+
* Tops up the app's rent for the manifest buffer on the write that starts a release. Must be
|
|
64
|
+
* owned by the System Program.
|
|
65
|
+
*/
|
|
66
|
+
funder: TAccountFunder;
|
|
67
|
+
/** App authority or one of its developers. */
|
|
68
|
+
authority: TAccountAuthority;
|
|
69
|
+
/** The app. Grows by the manifest buffer on the write that starts a release. */
|
|
70
|
+
app: TAccountApp;
|
|
71
|
+
/** Global config. */
|
|
72
|
+
config: TAccountConfig;
|
|
73
|
+
/** For the rent transfer. */
|
|
74
|
+
systemProgram?: TAccountSystemProgram;
|
|
75
|
+
versionCode: WriteReleaseManifestInstructionDataArgs['versionCode'];
|
|
76
|
+
manifestLen: WriteReleaseManifestInstructionDataArgs['manifestLen'];
|
|
77
|
+
offset: WriteReleaseManifestInstructionDataArgs['offset'];
|
|
78
|
+
bytes: WriteReleaseManifestInstructionDataArgs['bytes'];
|
|
79
|
+
};
|
|
80
|
+
export declare function getWriteReleaseManifestInstruction<TAccountFunder extends InstructionSignerInput, TAccountAuthority extends InstructionSignerInput, TAccountApp extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof GUARDIAN_PROGRAM_ADDRESS>(input: WriteReleaseManifestInput<TAccountFunder, TAccountAuthority, TAccountApp, TAccountConfig, TAccountSystemProgram>, config?: {
|
|
81
|
+
programAddress?: TProgramAddress | {
|
|
82
|
+
readonly address: TProgramAddress;
|
|
83
|
+
};
|
|
84
|
+
}): WriteReleaseManifestInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountFunder, InstructionAccountInputAddress<TAccountFunder>>, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountApp, InstructionAccountInputAddress<TAccountApp>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>;
|
|
85
|
+
export type ParsedWriteReleaseManifestInstruction<TProgram extends string = typeof GUARDIAN_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
86
|
+
programAddress: Address<TProgram>;
|
|
87
|
+
accounts: {
|
|
88
|
+
/**
|
|
89
|
+
* Tops up the app's rent for the manifest buffer on the write that starts a release. Must be
|
|
90
|
+
* owned by the System Program.
|
|
91
|
+
*/
|
|
92
|
+
funder: TAccountMetas[0];
|
|
93
|
+
/** App authority or one of its developers. */
|
|
94
|
+
authority: TAccountMetas[1];
|
|
95
|
+
/** The app. Grows by the manifest buffer on the write that starts a release. */
|
|
96
|
+
app: TAccountMetas[2];
|
|
97
|
+
/** Global config. */
|
|
98
|
+
config: TAccountMetas[3];
|
|
99
|
+
/** For the rent transfer. */
|
|
100
|
+
systemProgram: TAccountMetas[4];
|
|
101
|
+
};
|
|
102
|
+
data: WriteReleaseManifestInstructionData;
|
|
103
|
+
};
|
|
104
|
+
export declare function parseWriteReleaseManifestInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWriteReleaseManifestInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type HasAddress, type ProgramDerivedAddress } from '@solana/kit';
|
|
9
|
+
export declare function findBondVaultPda(config?: {
|
|
10
|
+
programAddress?: Address | HasAddress | undefined;
|
|
11
|
+
}): Promise<ProgramDerivedAddress>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type HasAddress, type ProgramDerivedAddress } from '@solana/kit';
|
|
9
|
+
export declare function findGuardiansConfigPda(config?: {
|
|
10
|
+
programAddress?: Address | HasAddress | undefined;
|
|
11
|
+
}): Promise<ProgramDerivedAddress>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from './bondVault';
|
|
9
|
+
export * from './guardiansConfig';
|
|
10
|
+
export * from './pendingRegistry';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type HasAddress, type ProgramDerivedAddress } from '@solana/kit';
|
|
9
|
+
export declare function findPendingRegistryPda(config?: {
|
|
10
|
+
programAddress?: Address | HasAddress | undefined;
|
|
11
|
+
}): Promise<ProgramDerivedAddress>;
|