@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.
Files changed (69) hide show
  1. package/README.md +8 -2
  2. package/dist/src/index.js +4641 -0
  3. package/dist/src/index.js.map +1 -0
  4. package/dist/src/index.mjs +4282 -0
  5. package/dist/src/index.mjs.map +1 -0
  6. package/dist/types/generated/accounts/appAccount.d.ts +50 -0
  7. package/dist/types/generated/accounts/guardiansConfig.d.ts +54 -0
  8. package/dist/types/generated/accounts/index.d.ts +10 -0
  9. package/dist/types/generated/accounts/pendingRegistry.d.ts +35 -0
  10. package/dist/types/generated/constants/guardian.d.ts +8 -0
  11. package/dist/types/generated/constants/index.d.ts +8 -0
  12. package/dist/types/generated/errors/guardian.d.ts +95 -0
  13. package/dist/types/generated/errors/index.d.ts +8 -0
  14. package/dist/types/generated/events/appAuthorityAccepted.d.ts +42 -0
  15. package/dist/types/generated/events/appAuthorityProposed.d.ts +42 -0
  16. package/dist/types/generated/events/appDeveloperUpdated.d.ts +42 -0
  17. package/dist/types/generated/events/appRegistered.d.ts +42 -0
  18. package/dist/types/generated/events/configAuthorityAccepted.d.ts +38 -0
  19. package/dist/types/generated/events/configAuthorityProposed.d.ts +38 -0
  20. package/dist/types/generated/events/configInitialized.d.ts +46 -0
  21. package/dist/types/generated/events/configUpdated.d.ts +52 -0
  22. package/dist/types/generated/events/guardianAdded.d.ts +34 -0
  23. package/dist/types/generated/events/guardianRegistered.d.ts +46 -0
  24. package/dist/types/generated/events/guardianRemoved.d.ts +42 -0
  25. package/dist/types/generated/events/guardianVoteAuthorityRotated.d.ts +42 -0
  26. package/dist/types/generated/events/index.d.ts +25 -0
  27. package/dist/types/generated/events/releaseApproved.d.ts +27 -0
  28. package/dist/types/generated/events/releaseCancelled.d.ts +38 -0
  29. package/dist/types/generated/events/releaseExpired.d.ts +38 -0
  30. package/dist/types/generated/events/releaseProposed.d.ts +42 -0
  31. package/dist/types/generated/events/releaseRejected.d.ts +27 -0
  32. package/dist/types/generated/events/voteCast.d.ts +55 -0
  33. package/dist/types/generated/index.d.ts +15 -0
  34. package/dist/types/generated/instructions/acceptAppAuthority.d.ts +71 -0
  35. package/dist/types/generated/instructions/acceptConfigAuthority.d.ts +71 -0
  36. package/dist/types/generated/instructions/addGuardian.d.ts +90 -0
  37. package/dist/types/generated/instructions/cancelRelease.d.ts +78 -0
  38. package/dist/types/generated/instructions/expireRelease.d.ts +71 -0
  39. package/dist/types/generated/instructions/index.d.ts +24 -0
  40. package/dist/types/generated/instructions/initializeConfig.d.ts +135 -0
  41. package/dist/types/generated/instructions/proposeAppAuthority.d.ts +76 -0
  42. package/dist/types/generated/instructions/proposeConfigAuthority.d.ts +76 -0
  43. package/dist/types/generated/instructions/proposeRelease.d.ts +121 -0
  44. package/dist/types/generated/instructions/registerApp.d.ts +87 -0
  45. package/dist/types/generated/instructions/registerGuardian.d.ts +120 -0
  46. package/dist/types/generated/instructions/removeGuardian.d.ts +120 -0
  47. package/dist/types/generated/instructions/rotateVoteAuthority.d.ts +80 -0
  48. package/dist/types/generated/instructions/setAppDeveloper.d.ts +112 -0
  49. package/dist/types/generated/instructions/updateConfig.d.ts +88 -0
  50. package/dist/types/generated/instructions/vote.d.ts +116 -0
  51. package/dist/types/generated/instructions/writeReleaseManifest.d.ts +104 -0
  52. package/dist/types/generated/pdas/bondVault.d.ts +11 -0
  53. package/dist/types/generated/pdas/guardiansConfig.d.ts +11 -0
  54. package/dist/types/generated/pdas/index.d.ts +10 -0
  55. package/dist/types/generated/pdas/pendingRegistry.d.ts +11 -0
  56. package/dist/types/generated/programs/guardian.d.ts +179 -0
  57. package/dist/types/generated/programs/index.d.ts +8 -0
  58. package/dist/types/generated/types/bondInfo.d.ts +19 -0
  59. package/dist/types/generated/types/guardianInfo.d.ts +19 -0
  60. package/dist/types/generated/types/index.d.ts +14 -0
  61. package/dist/types/generated/types/pendingRelease.d.ts +29 -0
  62. package/dist/types/generated/types/publishedApp.d.ts +16 -0
  63. package/dist/types/generated/types/releaseManifest.d.ts +45 -0
  64. package/dist/types/generated/types/releaseResolution.d.ts +65 -0
  65. package/dist/types/generated/types/voteFinding.d.ts +24 -0
  66. package/dist/types/index.d.ts +3 -0
  67. package/dist/types/manifest.d.ts +72 -0
  68. package/dist/types/proposal.d.ts +66 -0
  69. package/package.json +58 -3
@@ -0,0 +1,50 @@
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type HasAddress, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ import { type PendingRelease, type PendingReleaseArgs, type PublishedApp, type PublishedAppArgs } from '../types';
10
+ export declare const APP_ACCOUNT_DISCRIMINATOR: ReadonlyUint8Array;
11
+ export declare function getAppAccountDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type AppAccount = {
13
+ discriminator: ReadonlyUint8Array;
14
+ version: number;
15
+ authority: Address;
16
+ pendingAuthority: Address;
17
+ eventSeq: bigint;
18
+ lastResolvedVersion: number;
19
+ lastFinalizeTs: bigint;
20
+ signingCertificate: ReadonlyUint8Array;
21
+ name: string;
22
+ developers: Set<Address>;
23
+ publishedVersions: Array<PublishedApp>;
24
+ pendingRelease: PendingRelease;
25
+ };
26
+ export type AppAccountArgs = {
27
+ version: number;
28
+ authority: Address | HasAddress;
29
+ pendingAuthority: Address | HasAddress;
30
+ eventSeq: number | bigint;
31
+ lastResolvedVersion: number;
32
+ lastFinalizeTs: number | bigint;
33
+ signingCertificate: ReadonlyUint8Array;
34
+ name: string;
35
+ developers: Set<Address | HasAddress>;
36
+ publishedVersions: Array<PublishedAppArgs>;
37
+ pendingRelease: PendingReleaseArgs;
38
+ };
39
+ /** Gets the encoder for {@link AppAccountArgs} account data. */
40
+ export declare function getAppAccountEncoder(): Encoder<AppAccountArgs>;
41
+ /** Gets the decoder for {@link AppAccount} account data. */
42
+ export declare function getAppAccountDecoder(): Decoder<AppAccount>;
43
+ /** Gets the codec for {@link AppAccount} account data. */
44
+ export declare function getAppAccountCodec(): Codec<AppAccountArgs, AppAccount>;
45
+ export declare function decodeAppAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<AppAccount, TAddress>;
46
+ export declare function decodeAppAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<AppAccount, TAddress>;
47
+ export declare function fetchAppAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<AppAccount, TAddress>>;
48
+ export declare function fetchMaybeAppAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<AppAccount, TAddress>>;
49
+ export declare function fetchAllAppAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<AppAccount>[]>;
50
+ export declare function fetchAllMaybeAppAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<AppAccount>[]>;
@@ -0,0 +1,54 @@
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type HasAddress, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ import { type BondInfo, type BondInfoArgs, type GuardianInfo, type GuardianInfoArgs } from '../types';
10
+ export declare const GUARDIANS_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
11
+ export declare function getGuardiansConfigDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type GuardiansConfig = {
13
+ discriminator: ReadonlyUint8Array;
14
+ version: number;
15
+ bump: number;
16
+ authority: Address;
17
+ pendingAuthority: Address;
18
+ bond: BondInfo;
19
+ updateNonce: number;
20
+ eventSeq: bigint;
21
+ policyBundleHash: ReadonlyUint8Array;
22
+ voteWindow: number;
23
+ votingPeriod: number;
24
+ pendingGuardians: Set<Address>;
25
+ guardians: Map<Address, GuardianInfo>;
26
+ voters: Map<Address, Address>;
27
+ };
28
+ export type GuardiansConfigArgs = {
29
+ version: number;
30
+ bump: number;
31
+ authority: Address | HasAddress;
32
+ pendingAuthority: Address | HasAddress;
33
+ bond: BondInfoArgs;
34
+ updateNonce: number;
35
+ eventSeq: number | bigint;
36
+ policyBundleHash: ReadonlyUint8Array;
37
+ voteWindow: number;
38
+ votingPeriod: number;
39
+ pendingGuardians: Set<Address | HasAddress>;
40
+ guardians: Map<Address | HasAddress, GuardianInfoArgs>;
41
+ voters: Map<Address | HasAddress, Address | HasAddress>;
42
+ };
43
+ /** Gets the encoder for {@link GuardiansConfigArgs} account data. */
44
+ export declare function getGuardiansConfigEncoder(): Encoder<GuardiansConfigArgs>;
45
+ /** Gets the decoder for {@link GuardiansConfig} account data. */
46
+ export declare function getGuardiansConfigDecoder(): Decoder<GuardiansConfig>;
47
+ /** Gets the codec for {@link GuardiansConfig} account data. */
48
+ export declare function getGuardiansConfigCodec(): Codec<GuardiansConfigArgs, GuardiansConfig>;
49
+ export declare function decodeGuardiansConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<GuardiansConfig, TAddress>;
50
+ export declare function decodeGuardiansConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<GuardiansConfig, TAddress>;
51
+ export declare function fetchGuardiansConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<GuardiansConfig, TAddress>>;
52
+ export declare function fetchMaybeGuardiansConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<GuardiansConfig, TAddress>>;
53
+ export declare function fetchAllGuardiansConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<GuardiansConfig>[]>;
54
+ export declare function fetchAllMaybeGuardiansConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<GuardiansConfig>[]>;
@@ -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 './appAccount';
9
+ export * from './guardiansConfig';
10
+ export * from './pendingRegistry';
@@ -0,0 +1,35 @@
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type HasAddress, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const PENDING_REGISTRY_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getPendingRegistryDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type PendingRegistry = {
12
+ discriminator: ReadonlyUint8Array;
13
+ version: number;
14
+ bump: number;
15
+ finalizeSeq: bigint;
16
+ pending: Set<Address>;
17
+ };
18
+ export type PendingRegistryArgs = {
19
+ version: number;
20
+ bump: number;
21
+ finalizeSeq: number | bigint;
22
+ pending: Set<Address | HasAddress>;
23
+ };
24
+ /** Gets the encoder for {@link PendingRegistryArgs} account data. */
25
+ export declare function getPendingRegistryEncoder(): Encoder<PendingRegistryArgs>;
26
+ /** Gets the decoder for {@link PendingRegistry} account data. */
27
+ export declare function getPendingRegistryDecoder(): Decoder<PendingRegistry>;
28
+ /** Gets the codec for {@link PendingRegistry} account data. */
29
+ export declare function getPendingRegistryCodec(): Codec<PendingRegistryArgs, PendingRegistry>;
30
+ export declare function decodePendingRegistry<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PendingRegistry, TAddress>;
31
+ export declare function decodePendingRegistry<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PendingRegistry, TAddress>;
32
+ export declare function fetchPendingRegistry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<PendingRegistry, TAddress>>;
33
+ export declare function fetchMaybePendingRegistry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PendingRegistry, TAddress>>;
34
+ export declare function fetchAllPendingRegistry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<PendingRegistry>[]>;
35
+ export declare function fetchAllMaybePendingRegistry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<PendingRegistry>[]>;
@@ -0,0 +1,8 @@
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 declare const MAX_MANIFEST_LEN: number;
@@ -0,0 +1,8 @@
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 './guardian';
@@ -0,0 +1,95 @@
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 SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
9
+ /** IncorrectAuthority: Incorrect authority */
10
+ export declare const GUARDIAN_ERROR__INCORRECT_AUTHORITY = 6000;
11
+ /** InvalidGuardian: Provided guardian is not in the guardian set */
12
+ export declare const GUARDIAN_ERROR__INVALID_GUARDIAN = 6001;
13
+ /** UnauthorizedVoteAuthority: Signer is not a registered vote authority */
14
+ export declare const GUARDIAN_ERROR__UNAUTHORIZED_VOTE_AUTHORITY = 6002;
15
+ /** GuardianNotPending: Guardian has not been admitted as pending */
16
+ export declare const GUARDIAN_ERROR__GUARDIAN_NOT_PENDING = 6003;
17
+ /** KeyInUse: Key already belongs to a guardian, a pending guardian, or a vote authority */
18
+ export declare const GUARDIAN_ERROR__KEY_IN_USE = 6004;
19
+ /** IncorrectBondDestination: Bond refund destination is not owned by the guardian */
20
+ export declare const GUARDIAN_ERROR__INCORRECT_BOND_DESTINATION = 6005;
21
+ /** ReleaseAlreadyPending: A finalized release is already pending for this app */
22
+ export declare const GUARDIAN_ERROR__RELEASE_ALREADY_PENDING = 6006;
23
+ /** NoPendingRelease: No release is pending for this app */
24
+ export declare const GUARDIAN_ERROR__NO_PENDING_RELEASE = 6007;
25
+ /** ReleaseNotFinalized: The pending release upload is not finalized yet */
26
+ export declare const GUARDIAN_ERROR__RELEASE_NOT_FINALIZED = 6008;
27
+ /** CannotCancelResolvedRelease: The release has resolved and can no longer be cancelled */
28
+ export declare const GUARDIAN_ERROR__CANNOT_CANCEL_RESOLVED_RELEASE = 6009;
29
+ /** VersionCodeMismatch: Uploaded chunk or vote targets a different version code than the pending one */
30
+ export declare const GUARDIAN_ERROR__VERSION_CODE_MISMATCH = 6010;
31
+ /** VersionCodeNotIncreasing: Version code must exceed the app's last resolved version code */
32
+ export declare const GUARDIAN_ERROR__VERSION_CODE_NOT_INCREASING = 6011;
33
+ /** ManifestHashMismatch: The manifest hash does not match the pending release */
34
+ export declare const GUARDIAN_ERROR__MANIFEST_HASH_MISMATCH = 6012;
35
+ /** ManifestTooLarge: Manifest exceeds the maximum length */
36
+ export declare const GUARDIAN_ERROR__MANIFEST_TOO_LARGE = 6013;
37
+ /** VoteFindingsTooLarge: Vote findings exceed the maximum encoded length */
38
+ export declare const GUARDIAN_ERROR__VOTE_FINDINGS_TOO_LARGE = 6014;
39
+ /** PolicyBundleNotAttested: The config has no policy bundle hash set, so a release cannot be finalized */
40
+ export declare const GUARDIAN_ERROR__POLICY_BUNDLE_NOT_ATTESTED = 6015;
41
+ /** PolicyBundleMismatch: Vote names a different policy bundle than the pending release was finalized under */
42
+ export declare const GUARDIAN_ERROR__POLICY_BUNDLE_MISMATCH = 6016;
43
+ /** InvalidPolicyBundleHash: Policy bundle hash must be non-zero */
44
+ export declare const GUARDIAN_ERROR__INVALID_POLICY_BUNDLE_HASH = 6017;
45
+ /** VoteWindowOpen: The last resolved release is still taking late votes; propose once its vote window closes, every guardian has voted, or the guardian set changes */
46
+ export declare const GUARDIAN_ERROR__VOTE_WINDOW_OPEN = 6018;
47
+ /** VoteWindowClosed: The vote window of this resolved release has closed */
48
+ export declare const GUARDIAN_ERROR__VOTE_WINDOW_CLOSED = 6019;
49
+ /** AlreadyVoted: This guardian already voted on the resolved release */
50
+ export declare const GUARDIAN_ERROR__ALREADY_VOTED = 6020;
51
+ /** GuardianSetChangedSinceQuorum: The guardian set changed after this release resolved, so it takes no late votes */
52
+ export declare const GUARDIAN_ERROR__GUARDIAN_SET_CHANGED_SINCE_QUORUM = 6021;
53
+ /** TooManyGuardians: The guardian set is full */
54
+ export declare const GUARDIAN_ERROR__TOO_MANY_GUARDIANS = 6022;
55
+ /** Overflow: Arithmetic overflow */
56
+ export declare const GUARDIAN_ERROR__OVERFLOW = 6023;
57
+ /** InvalidVotingPeriod: The voting period must be at least one second */
58
+ export declare const GUARDIAN_ERROR__INVALID_VOTING_PERIOD = 6024;
59
+ /** NoPendingConfigAuthority: No config authority transfer is pending */
60
+ export declare const GUARDIAN_ERROR__NO_PENDING_CONFIG_AUTHORITY = 6025;
61
+ /** IncorrectPendingConfigAuthority: Signer is not the pending config authority */
62
+ export declare const GUARDIAN_ERROR__INCORRECT_PENDING_CONFIG_AUTHORITY = 6026;
63
+ /** VotingDeadlinePassed: The release's voting deadline has passed */
64
+ export declare const GUARDIAN_ERROR__VOTING_DEADLINE_PASSED = 6027;
65
+ /** ReleaseNotExpired: The release has not expired */
66
+ export declare const GUARDIAN_ERROR__RELEASE_NOT_EXPIRED = 6028;
67
+ /** VersionCodeTooLarge: The version code is above Android's maximum */
68
+ export declare const GUARDIAN_ERROR__VERSION_CODE_TOO_LARGE = 6029;
69
+ /** FunderNotWallet: The funder must be a wallet owned by the System Program */
70
+ export declare const GUARDIAN_ERROR__FUNDER_NOT_WALLET = 6030;
71
+ /** TooManyDevelopers: The app already lists the most developer keys allowed */
72
+ export declare const GUARDIAN_ERROR__TOO_MANY_DEVELOPERS = 6031;
73
+ /** CertificateNotSet: The release has no signing certificate, so it cannot be finalized */
74
+ export declare const GUARDIAN_ERROR__CERTIFICATE_NOT_SET = 6032;
75
+ /** ManifestLengthMismatch: The manifest length differs from the upload in progress */
76
+ export declare const GUARDIAN_ERROR__MANIFEST_LENGTH_MISMATCH = 6033;
77
+ /** ManifestWriteOutOfBounds: The chunk ends past the manifest buffer */
78
+ export declare const GUARDIAN_ERROR__MANIFEST_WRITE_OUT_OF_BOUNDS = 6034;
79
+ /** NoPendingAppAuthority: No app authority transfer is pending */
80
+ export declare const GUARDIAN_ERROR__NO_PENDING_APP_AUTHORITY = 6035;
81
+ /** IncorrectPendingAppAuthority: Signer is not the pending app authority */
82
+ export declare const GUARDIAN_ERROR__INCORRECT_PENDING_APP_AUTHORITY = 6036;
83
+ export type GuardianError = typeof GUARDIAN_ERROR__ALREADY_VOTED | typeof GUARDIAN_ERROR__CANNOT_CANCEL_RESOLVED_RELEASE | typeof GUARDIAN_ERROR__CERTIFICATE_NOT_SET | typeof GUARDIAN_ERROR__FUNDER_NOT_WALLET | typeof GUARDIAN_ERROR__GUARDIAN_NOT_PENDING | typeof GUARDIAN_ERROR__GUARDIAN_SET_CHANGED_SINCE_QUORUM | typeof GUARDIAN_ERROR__INCORRECT_AUTHORITY | typeof GUARDIAN_ERROR__INCORRECT_BOND_DESTINATION | typeof GUARDIAN_ERROR__INCORRECT_PENDING_APP_AUTHORITY | typeof GUARDIAN_ERROR__INCORRECT_PENDING_CONFIG_AUTHORITY | typeof GUARDIAN_ERROR__INVALID_GUARDIAN | typeof GUARDIAN_ERROR__INVALID_POLICY_BUNDLE_HASH | typeof GUARDIAN_ERROR__INVALID_VOTING_PERIOD | typeof GUARDIAN_ERROR__KEY_IN_USE | typeof GUARDIAN_ERROR__MANIFEST_HASH_MISMATCH | typeof GUARDIAN_ERROR__MANIFEST_LENGTH_MISMATCH | typeof GUARDIAN_ERROR__MANIFEST_TOO_LARGE | typeof GUARDIAN_ERROR__MANIFEST_WRITE_OUT_OF_BOUNDS | typeof GUARDIAN_ERROR__NO_PENDING_APP_AUTHORITY | typeof GUARDIAN_ERROR__NO_PENDING_CONFIG_AUTHORITY | typeof GUARDIAN_ERROR__NO_PENDING_RELEASE | typeof GUARDIAN_ERROR__OVERFLOW | typeof GUARDIAN_ERROR__POLICY_BUNDLE_MISMATCH | typeof GUARDIAN_ERROR__POLICY_BUNDLE_NOT_ATTESTED | typeof GUARDIAN_ERROR__RELEASE_ALREADY_PENDING | typeof GUARDIAN_ERROR__RELEASE_NOT_EXPIRED | typeof GUARDIAN_ERROR__RELEASE_NOT_FINALIZED | typeof GUARDIAN_ERROR__TOO_MANY_DEVELOPERS | typeof GUARDIAN_ERROR__TOO_MANY_GUARDIANS | typeof GUARDIAN_ERROR__UNAUTHORIZED_VOTE_AUTHORITY | typeof GUARDIAN_ERROR__VERSION_CODE_MISMATCH | typeof GUARDIAN_ERROR__VERSION_CODE_NOT_INCREASING | typeof GUARDIAN_ERROR__VERSION_CODE_TOO_LARGE | typeof GUARDIAN_ERROR__VOTE_FINDINGS_TOO_LARGE | typeof GUARDIAN_ERROR__VOTE_WINDOW_CLOSED | typeof GUARDIAN_ERROR__VOTE_WINDOW_OPEN | typeof GUARDIAN_ERROR__VOTING_DEADLINE_PASSED;
84
+ export declare function getGuardianErrorMessage(code: GuardianError): string;
85
+ export declare function isGuardianError<TProgramErrorCode extends GuardianError>(error: unknown, transactionMessage: {
86
+ instructions: Record<number, {
87
+ programAddress: Address;
88
+ }>;
89
+ }, code?: TProgramErrorCode, config?: {
90
+ programAddress?: Address | HasAddress;
91
+ }): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
92
+ context: Readonly<{
93
+ code: TProgramErrorCode;
94
+ }>;
95
+ }>;
@@ -0,0 +1,8 @@
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 './guardian';
@@ -0,0 +1,42 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const APP_AUTHORITY_ACCEPTED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getAppAuthorityAcceptedEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type AppAuthorityAcceptedEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the app's event sequence. */
15
+ seq: bigint;
16
+ /** The app account. */
17
+ app: Address;
18
+ /** App authority before the transfer. */
19
+ oldAuthority: Address;
20
+ /** App authority after the transfer. */
21
+ newAuthority: Address;
22
+ };
23
+ export type AppAuthorityAcceptedEventArgs = {
24
+ /** This event's `VERSION`. */
25
+ version: number;
26
+ /** Position in the app's event sequence. */
27
+ seq: number | bigint;
28
+ /** The app account. */
29
+ app: Address | HasAddress;
30
+ /** App authority before the transfer. */
31
+ oldAuthority: Address | HasAddress;
32
+ /** App authority after the transfer. */
33
+ newAuthority: Address | HasAddress;
34
+ };
35
+ /** Gets the encoder for {@link AppAuthorityAcceptedEventArgs} event data. */
36
+ export declare function getAppAuthorityAcceptedEventEncoder(): FixedSizeEncoder<AppAuthorityAcceptedEventArgs>;
37
+ /** Gets the decoder for {@link AppAuthorityAcceptedEvent} event data. */
38
+ export declare function getAppAuthorityAcceptedEventDecoder(): FixedSizeDecoder<AppAuthorityAcceptedEvent>;
39
+ /** Gets the codec for {@link AppAuthorityAcceptedEvent} event data. */
40
+ export declare function getAppAuthorityAcceptedEventCodec(): FixedSizeCodec<AppAuthorityAcceptedEventArgs, AppAuthorityAcceptedEvent>;
41
+ /** Parses the provided bytes into {@link AppAuthorityAcceptedEvent} event data. */
42
+ export declare function parseAppAuthorityAcceptedEvent(data: ReadonlyUint8Array | Uint8Array): AppAuthorityAcceptedEvent;
@@ -0,0 +1,42 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const APP_AUTHORITY_PROPOSED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getAppAuthorityProposedEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type AppAuthorityProposedEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the app's event sequence. */
15
+ seq: bigint;
16
+ /** The app account. */
17
+ app: Address;
18
+ /** App authority that made the proposal. */
19
+ authority: Address;
20
+ /** Key that can accept, or zero if the proposal was cancelled. */
21
+ proposed: Address;
22
+ };
23
+ export type AppAuthorityProposedEventArgs = {
24
+ /** This event's `VERSION`. */
25
+ version: number;
26
+ /** Position in the app's event sequence. */
27
+ seq: number | bigint;
28
+ /** The app account. */
29
+ app: Address | HasAddress;
30
+ /** App authority that made the proposal. */
31
+ authority: Address | HasAddress;
32
+ /** Key that can accept, or zero if the proposal was cancelled. */
33
+ proposed: Address | HasAddress;
34
+ };
35
+ /** Gets the encoder for {@link AppAuthorityProposedEventArgs} event data. */
36
+ export declare function getAppAuthorityProposedEventEncoder(): FixedSizeEncoder<AppAuthorityProposedEventArgs>;
37
+ /** Gets the decoder for {@link AppAuthorityProposedEvent} event data. */
38
+ export declare function getAppAuthorityProposedEventDecoder(): FixedSizeDecoder<AppAuthorityProposedEvent>;
39
+ /** Gets the codec for {@link AppAuthorityProposedEvent} event data. */
40
+ export declare function getAppAuthorityProposedEventCodec(): FixedSizeCodec<AppAuthorityProposedEventArgs, AppAuthorityProposedEvent>;
41
+ /** Parses the provided bytes into {@link AppAuthorityProposedEvent} event data. */
42
+ export declare function parseAppAuthorityProposedEvent(data: ReadonlyUint8Array | Uint8Array): AppAuthorityProposedEvent;
@@ -0,0 +1,42 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const APP_DEVELOPER_UPDATED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getAppDeveloperUpdatedEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type AppDeveloperUpdatedEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the app's event sequence. */
15
+ seq: bigint;
16
+ /** The app account. */
17
+ app: Address;
18
+ /** The developer key. */
19
+ developer: Address;
20
+ /** `true` if the key was added, `false` if removed. */
21
+ allowed: boolean;
22
+ };
23
+ export type AppDeveloperUpdatedEventArgs = {
24
+ /** This event's `VERSION`. */
25
+ version: number;
26
+ /** Position in the app's event sequence. */
27
+ seq: number | bigint;
28
+ /** The app account. */
29
+ app: Address | HasAddress;
30
+ /** The developer key. */
31
+ developer: Address | HasAddress;
32
+ /** `true` if the key was added, `false` if removed. */
33
+ allowed: boolean;
34
+ };
35
+ /** Gets the encoder for {@link AppDeveloperUpdatedEventArgs} event data. */
36
+ export declare function getAppDeveloperUpdatedEventEncoder(): FixedSizeEncoder<AppDeveloperUpdatedEventArgs>;
37
+ /** Gets the decoder for {@link AppDeveloperUpdatedEvent} event data. */
38
+ export declare function getAppDeveloperUpdatedEventDecoder(): FixedSizeDecoder<AppDeveloperUpdatedEvent>;
39
+ /** Gets the codec for {@link AppDeveloperUpdatedEvent} event data. */
40
+ export declare function getAppDeveloperUpdatedEventCodec(): FixedSizeCodec<AppDeveloperUpdatedEventArgs, AppDeveloperUpdatedEvent>;
41
+ /** Parses the provided bytes into {@link AppDeveloperUpdatedEvent} event data. */
42
+ export declare function parseAppDeveloperUpdatedEvent(data: ReadonlyUint8Array | Uint8Array): AppDeveloperUpdatedEvent;
@@ -0,0 +1,42 @@
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 Codec, type Decoder, type Encoder, type HasAddress, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const APP_REGISTERED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getAppRegisteredEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type AppRegisteredEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the app's event sequence. */
15
+ seq: bigint;
16
+ /** The new app account. */
17
+ app: Address;
18
+ /** Key that controls the app. */
19
+ authority: Address;
20
+ /** Display name. */
21
+ name: string;
22
+ };
23
+ export type AppRegisteredEventArgs = {
24
+ /** This event's `VERSION`. */
25
+ version: number;
26
+ /** Position in the app's event sequence. */
27
+ seq: number | bigint;
28
+ /** The new app account. */
29
+ app: Address | HasAddress;
30
+ /** Key that controls the app. */
31
+ authority: Address | HasAddress;
32
+ /** Display name. */
33
+ name: string;
34
+ };
35
+ /** Gets the encoder for {@link AppRegisteredEventArgs} event data. */
36
+ export declare function getAppRegisteredEventEncoder(): Encoder<AppRegisteredEventArgs>;
37
+ /** Gets the decoder for {@link AppRegisteredEvent} event data. */
38
+ export declare function getAppRegisteredEventDecoder(): Decoder<AppRegisteredEvent>;
39
+ /** Gets the codec for {@link AppRegisteredEvent} event data. */
40
+ export declare function getAppRegisteredEventCodec(): Codec<AppRegisteredEventArgs, AppRegisteredEvent>;
41
+ /** Parses the provided bytes into {@link AppRegisteredEvent} event data. */
42
+ export declare function parseAppRegisteredEvent(data: ReadonlyUint8Array | Uint8Array): AppRegisteredEvent;
@@ -0,0 +1,38 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const CONFIG_AUTHORITY_ACCEPTED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getConfigAuthorityAcceptedEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type ConfigAuthorityAcceptedEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the config's event sequence. */
15
+ seq: bigint;
16
+ /** Config authority before the transfer. */
17
+ oldAuthority: Address;
18
+ /** Config authority after the transfer. */
19
+ newAuthority: Address;
20
+ };
21
+ export type ConfigAuthorityAcceptedEventArgs = {
22
+ /** This event's `VERSION`. */
23
+ version: number;
24
+ /** Position in the config's event sequence. */
25
+ seq: number | bigint;
26
+ /** Config authority before the transfer. */
27
+ oldAuthority: Address | HasAddress;
28
+ /** Config authority after the transfer. */
29
+ newAuthority: Address | HasAddress;
30
+ };
31
+ /** Gets the encoder for {@link ConfigAuthorityAcceptedEventArgs} event data. */
32
+ export declare function getConfigAuthorityAcceptedEventEncoder(): FixedSizeEncoder<ConfigAuthorityAcceptedEventArgs>;
33
+ /** Gets the decoder for {@link ConfigAuthorityAcceptedEvent} event data. */
34
+ export declare function getConfigAuthorityAcceptedEventDecoder(): FixedSizeDecoder<ConfigAuthorityAcceptedEvent>;
35
+ /** Gets the codec for {@link ConfigAuthorityAcceptedEvent} event data. */
36
+ export declare function getConfigAuthorityAcceptedEventCodec(): FixedSizeCodec<ConfigAuthorityAcceptedEventArgs, ConfigAuthorityAcceptedEvent>;
37
+ /** Parses the provided bytes into {@link ConfigAuthorityAcceptedEvent} event data. */
38
+ export declare function parseConfigAuthorityAcceptedEvent(data: ReadonlyUint8Array | Uint8Array): ConfigAuthorityAcceptedEvent;
@@ -0,0 +1,38 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const CONFIG_AUTHORITY_PROPOSED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getConfigAuthorityProposedEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type ConfigAuthorityProposedEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the config's event sequence. */
15
+ seq: bigint;
16
+ /** Config authority that made the proposal. */
17
+ authority: Address;
18
+ /** Key that can accept, or zero if the proposal was cancelled. */
19
+ proposed: Address;
20
+ };
21
+ export type ConfigAuthorityProposedEventArgs = {
22
+ /** This event's `VERSION`. */
23
+ version: number;
24
+ /** Position in the config's event sequence. */
25
+ seq: number | bigint;
26
+ /** Config authority that made the proposal. */
27
+ authority: Address | HasAddress;
28
+ /** Key that can accept, or zero if the proposal was cancelled. */
29
+ proposed: Address | HasAddress;
30
+ };
31
+ /** Gets the encoder for {@link ConfigAuthorityProposedEventArgs} event data. */
32
+ export declare function getConfigAuthorityProposedEventEncoder(): FixedSizeEncoder<ConfigAuthorityProposedEventArgs>;
33
+ /** Gets the decoder for {@link ConfigAuthorityProposedEvent} event data. */
34
+ export declare function getConfigAuthorityProposedEventDecoder(): FixedSizeDecoder<ConfigAuthorityProposedEvent>;
35
+ /** Gets the codec for {@link ConfigAuthorityProposedEvent} event data. */
36
+ export declare function getConfigAuthorityProposedEventCodec(): FixedSizeCodec<ConfigAuthorityProposedEventArgs, ConfigAuthorityProposedEvent>;
37
+ /** Parses the provided bytes into {@link ConfigAuthorityProposedEvent} event data. */
38
+ export declare function parseConfigAuthorityProposedEvent(data: ReadonlyUint8Array | Uint8Array): ConfigAuthorityProposedEvent;
@@ -0,0 +1,46 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const CONFIG_INITIALIZED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getConfigInitializedEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type ConfigInitializedEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the config's event sequence. */
15
+ seq: bigint;
16
+ /** The config authority. */
17
+ authority: Address;
18
+ /** Bond mint. */
19
+ bondMint: Address;
20
+ /** Seconds after quorum during which guardians that haven't voted can still cast a late vote. */
21
+ voteWindow: number;
22
+ /** Seconds from finalize to a release's voting deadline. */
23
+ votingPeriod: number;
24
+ };
25
+ export type ConfigInitializedEventArgs = {
26
+ /** This event's `VERSION`. */
27
+ version: number;
28
+ /** Position in the config's event sequence. */
29
+ seq: number | bigint;
30
+ /** The config authority. */
31
+ authority: Address | HasAddress;
32
+ /** Bond mint. */
33
+ bondMint: Address | HasAddress;
34
+ /** Seconds after quorum during which guardians that haven't voted can still cast a late vote. */
35
+ voteWindow: number;
36
+ /** Seconds from finalize to a release's voting deadline. */
37
+ votingPeriod: number;
38
+ };
39
+ /** Gets the encoder for {@link ConfigInitializedEventArgs} event data. */
40
+ export declare function getConfigInitializedEventEncoder(): FixedSizeEncoder<ConfigInitializedEventArgs>;
41
+ /** Gets the decoder for {@link ConfigInitializedEvent} event data. */
42
+ export declare function getConfigInitializedEventDecoder(): FixedSizeDecoder<ConfigInitializedEvent>;
43
+ /** Gets the codec for {@link ConfigInitializedEvent} event data. */
44
+ export declare function getConfigInitializedEventCodec(): FixedSizeCodec<ConfigInitializedEventArgs, ConfigInitializedEvent>;
45
+ /** Parses the provided bytes into {@link ConfigInitializedEvent} event data. */
46
+ export declare function parseConfigInitializedEvent(data: ReadonlyUint8Array | Uint8Array): ConfigInitializedEvent;
@@ -0,0 +1,52 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const CONFIG_UPDATED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
10
+ export declare function getConfigUpdatedEventDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type ConfigUpdatedEvent = {
12
+ /** This event's `VERSION`. */
13
+ version: number;
14
+ /** Position in the config's event sequence. */
15
+ seq: bigint;
16
+ /** Bond per registration, in base units of the bond mint. */
17
+ bondAmount: bigint;
18
+ /**
19
+ * Fingerprint of the policy bundle guardians must run (sha256 of the borsh-encoded bundle), or
20
+ * zero if unset.
21
+ */
22
+ policyBundleHash: ReadonlyUint8Array;
23
+ /** Seconds after quorum during which guardians that haven't voted can still cast a late vote. */
24
+ voteWindow: number;
25
+ /** Seconds from finalize to a release's voting deadline. */
26
+ votingPeriod: number;
27
+ };
28
+ export type ConfigUpdatedEventArgs = {
29
+ /** This event's `VERSION`. */
30
+ version: number;
31
+ /** Position in the config's event sequence. */
32
+ seq: number | bigint;
33
+ /** Bond per registration, in base units of the bond mint. */
34
+ bondAmount: number | bigint;
35
+ /**
36
+ * Fingerprint of the policy bundle guardians must run (sha256 of the borsh-encoded bundle), or
37
+ * zero if unset.
38
+ */
39
+ policyBundleHash: ReadonlyUint8Array;
40
+ /** Seconds after quorum during which guardians that haven't voted can still cast a late vote. */
41
+ voteWindow: number;
42
+ /** Seconds from finalize to a release's voting deadline. */
43
+ votingPeriod: number;
44
+ };
45
+ /** Gets the encoder for {@link ConfigUpdatedEventArgs} event data. */
46
+ export declare function getConfigUpdatedEventEncoder(): FixedSizeEncoder<ConfigUpdatedEventArgs>;
47
+ /** Gets the decoder for {@link ConfigUpdatedEvent} event data. */
48
+ export declare function getConfigUpdatedEventDecoder(): FixedSizeDecoder<ConfigUpdatedEvent>;
49
+ /** Gets the codec for {@link ConfigUpdatedEvent} event data. */
50
+ export declare function getConfigUpdatedEventCodec(): FixedSizeCodec<ConfigUpdatedEventArgs, ConfigUpdatedEvent>;
51
+ /** Parses the provided bytes into {@link ConfigUpdatedEvent} event data. */
52
+ export declare function parseConfigUpdatedEvent(data: ReadonlyUint8Array | Uint8Array): ConfigUpdatedEvent;