@whetstone-research/doppler-sdk 1.0.23 → 1.0.25

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.
@@ -3165,6 +3165,41 @@ declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs
3165
3165
  declare const COSIGNER_HOOK_PROGRAM_ID: _solana_addresses.Address<"JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt">;
3166
3166
  declare const SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
3167
3167
  declare const MAX_COSIGNERS = 32;
3168
+ declare const GATE_EXPIRY_DISABLED = 0;
3169
+ declare const GATE_EXPIRY_UNIX_TIMESTAMP = 1;
3170
+ declare const GATE_EXPIRY_SLOT = 2;
3171
+ declare const GATE_EXPIRY_PAYLOAD_VERSION = 1;
3172
+ declare const GATE_EXPIRY_HEADER_LEN = 10;
3173
+ declare const GATE_EXPIRY_PAYLOAD_LEN = 42;
3174
+
3175
+ type CosignerGateClock = {
3176
+ unixTimestamp?: bigint | number;
3177
+ slot?: bigint | number;
3178
+ };
3179
+ type CosignerGateExpiry = {
3180
+ mode: number;
3181
+ value: bigint;
3182
+ cosigner?: Address;
3183
+ };
3184
+ type CosignerGateExpiryArgs = {
3185
+ mode: typeof GATE_EXPIRY_DISABLED;
3186
+ value: bigint | number;
3187
+ cosigner?: never;
3188
+ } | {
3189
+ mode: typeof GATE_EXPIRY_UNIX_TIMESTAMP | typeof GATE_EXPIRY_SLOT;
3190
+ value: bigint | number;
3191
+ cosigner: Address;
3192
+ };
3193
+ type CosignerGateStatus = {
3194
+ gateEnforced: boolean;
3195
+ expiryMode: number;
3196
+ expiryValue: bigint;
3197
+ reason: 'expiry_disabled' | 'timestamp_pending' | 'timestamp_expired' | 'slot_pending' | 'slot_expired' | 'slot_unavailable' | 'invalid_expiry_payload' | 'invalid_expiry_mode';
3198
+ };
3199
+ declare function encodeCosignerGateExpiryPayload(expiry: CosignerGateExpiryArgs): Uint8Array;
3200
+ declare function decodeCosignerGateExpiryPayload(payload: ReadonlyUint8Array | null | undefined): CosignerGateExpiry | null;
3201
+ declare function getCosignerGateStatus(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): CosignerGateStatus;
3202
+ declare function isCosignerGateEnforced(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): boolean;
3168
3203
 
3169
3204
  declare function getCosignerHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
3170
3205
 
@@ -3187,6 +3222,10 @@ type index$4_CosignerArg = CosignerArg;
3187
3222
  type index$4_CosignerArgArgs = CosignerArgArgs;
3188
3223
  type index$4_CosignerConfig = CosignerConfig;
3189
3224
  type index$4_CosignerConfigArgs = CosignerConfigArgs;
3225
+ type index$4_CosignerGateClock = CosignerGateClock;
3226
+ type index$4_CosignerGateExpiry = CosignerGateExpiry;
3227
+ type index$4_CosignerGateExpiryArgs = CosignerGateExpiryArgs;
3228
+ type index$4_CosignerGateStatus = CosignerGateStatus;
3190
3229
  type index$4_CosignerHookAccount = CosignerHookAccount;
3191
3230
  declare const index$4_CosignerHookAccount: typeof CosignerHookAccount;
3192
3231
  type index$4_CosignerHookError = CosignerHookError;
@@ -3196,6 +3235,12 @@ type index$4_CosignerHookPlugin = CosignerHookPlugin;
3196
3235
  type index$4_CosignerHookPluginAccounts = CosignerHookPluginAccounts;
3197
3236
  type index$4_CosignerHookPluginInstructions = CosignerHookPluginInstructions;
3198
3237
  type index$4_CosignerHookPluginRequirements = CosignerHookPluginRequirements;
3238
+ declare const index$4_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
3239
+ declare const index$4_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
3240
+ declare const index$4_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
3241
+ declare const index$4_GATE_EXPIRY_PAYLOAD_VERSION: typeof GATE_EXPIRY_PAYLOAD_VERSION;
3242
+ declare const index$4_GATE_EXPIRY_SLOT: typeof GATE_EXPIRY_SLOT;
3243
+ declare const index$4_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMESTAMP;
3199
3244
  declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
3200
3245
  type index$4_InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3201
3246
  type index$4_InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
@@ -3225,6 +3270,8 @@ type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
3225
3270
  type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
3226
3271
  declare const index$4_cosignerHookProgram: typeof cosignerHookProgram;
3227
3272
  declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
3273
+ declare const index$4_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
3274
+ declare const index$4_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
3228
3275
  declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
3229
3276
  declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
3230
3277
  declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
@@ -3243,6 +3290,7 @@ declare const index$4_getCosignerConfigDecoder: typeof getCosignerConfigDecoder;
3243
3290
  declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes;
3244
3291
  declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
3245
3292
  declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
3293
+ declare const index$4_getCosignerGateStatus: typeof getCosignerGateStatus;
3246
3294
  declare const index$4_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
3247
3295
  declare const index$4_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
3248
3296
  declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
@@ -3268,6 +3316,7 @@ declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthor
3268
3316
  declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
3269
3317
  declare const index$4_identifyCosignerHookAccount: typeof identifyCosignerHookAccount;
3270
3318
  declare const index$4_identifyCosignerHookInstruction: typeof identifyCosignerHookInstruction;
3319
+ declare const index$4_isCosignerGateEnforced: typeof isCosignerGateEnforced;
3271
3320
  declare const index$4_isCosignerHookError: typeof isCosignerHookError;
3272
3321
  declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
3273
3322
  declare const index$4_parseCosignerHookInstruction: typeof parseCosignerHookInstruction;
@@ -3275,7 +3324,7 @@ declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeCo
3275
3324
  declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
3276
3325
  declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
3277
3326
  declare namespace index$4 {
3278
- export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
3327
+ export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, type index$4_CosignerGateClock as CosignerGateClock, type index$4_CosignerGateExpiry as CosignerGateExpiry, type index$4_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$4_CosignerGateStatus as CosignerGateStatus, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, index$4_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$4_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$4_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$4_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$4_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$4_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerGateStatus as getCosignerGateStatus, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
3279
3328
  }
3280
3329
 
3281
3330
  /**
@@ -3986,7 +4035,6 @@ declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAcc
3986
4035
  type AddressOrSigner$1 = Address | TransactionSigner;
3987
4036
  type RemainingAccount$1 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
3988
4037
  interface CurveSwapExactInAccounts {
3989
- config: Address;
3990
4038
  launch: Address;
3991
4039
  launchAuthority: Address;
3992
4040
  baseVault: Address;
@@ -3165,6 +3165,41 @@ declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs
3165
3165
  declare const COSIGNER_HOOK_PROGRAM_ID: _solana_addresses.Address<"JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt">;
3166
3166
  declare const SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
3167
3167
  declare const MAX_COSIGNERS = 32;
3168
+ declare const GATE_EXPIRY_DISABLED = 0;
3169
+ declare const GATE_EXPIRY_UNIX_TIMESTAMP = 1;
3170
+ declare const GATE_EXPIRY_SLOT = 2;
3171
+ declare const GATE_EXPIRY_PAYLOAD_VERSION = 1;
3172
+ declare const GATE_EXPIRY_HEADER_LEN = 10;
3173
+ declare const GATE_EXPIRY_PAYLOAD_LEN = 42;
3174
+
3175
+ type CosignerGateClock = {
3176
+ unixTimestamp?: bigint | number;
3177
+ slot?: bigint | number;
3178
+ };
3179
+ type CosignerGateExpiry = {
3180
+ mode: number;
3181
+ value: bigint;
3182
+ cosigner?: Address;
3183
+ };
3184
+ type CosignerGateExpiryArgs = {
3185
+ mode: typeof GATE_EXPIRY_DISABLED;
3186
+ value: bigint | number;
3187
+ cosigner?: never;
3188
+ } | {
3189
+ mode: typeof GATE_EXPIRY_UNIX_TIMESTAMP | typeof GATE_EXPIRY_SLOT;
3190
+ value: bigint | number;
3191
+ cosigner: Address;
3192
+ };
3193
+ type CosignerGateStatus = {
3194
+ gateEnforced: boolean;
3195
+ expiryMode: number;
3196
+ expiryValue: bigint;
3197
+ reason: 'expiry_disabled' | 'timestamp_pending' | 'timestamp_expired' | 'slot_pending' | 'slot_expired' | 'slot_unavailable' | 'invalid_expiry_payload' | 'invalid_expiry_mode';
3198
+ };
3199
+ declare function encodeCosignerGateExpiryPayload(expiry: CosignerGateExpiryArgs): Uint8Array;
3200
+ declare function decodeCosignerGateExpiryPayload(payload: ReadonlyUint8Array | null | undefined): CosignerGateExpiry | null;
3201
+ declare function getCosignerGateStatus(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): CosignerGateStatus;
3202
+ declare function isCosignerGateEnforced(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): boolean;
3168
3203
 
3169
3204
  declare function getCosignerHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
3170
3205
 
@@ -3187,6 +3222,10 @@ type index$4_CosignerArg = CosignerArg;
3187
3222
  type index$4_CosignerArgArgs = CosignerArgArgs;
3188
3223
  type index$4_CosignerConfig = CosignerConfig;
3189
3224
  type index$4_CosignerConfigArgs = CosignerConfigArgs;
3225
+ type index$4_CosignerGateClock = CosignerGateClock;
3226
+ type index$4_CosignerGateExpiry = CosignerGateExpiry;
3227
+ type index$4_CosignerGateExpiryArgs = CosignerGateExpiryArgs;
3228
+ type index$4_CosignerGateStatus = CosignerGateStatus;
3190
3229
  type index$4_CosignerHookAccount = CosignerHookAccount;
3191
3230
  declare const index$4_CosignerHookAccount: typeof CosignerHookAccount;
3192
3231
  type index$4_CosignerHookError = CosignerHookError;
@@ -3196,6 +3235,12 @@ type index$4_CosignerHookPlugin = CosignerHookPlugin;
3196
3235
  type index$4_CosignerHookPluginAccounts = CosignerHookPluginAccounts;
3197
3236
  type index$4_CosignerHookPluginInstructions = CosignerHookPluginInstructions;
3198
3237
  type index$4_CosignerHookPluginRequirements = CosignerHookPluginRequirements;
3238
+ declare const index$4_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
3239
+ declare const index$4_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
3240
+ declare const index$4_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
3241
+ declare const index$4_GATE_EXPIRY_PAYLOAD_VERSION: typeof GATE_EXPIRY_PAYLOAD_VERSION;
3242
+ declare const index$4_GATE_EXPIRY_SLOT: typeof GATE_EXPIRY_SLOT;
3243
+ declare const index$4_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMESTAMP;
3199
3244
  declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
3200
3245
  type index$4_InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3201
3246
  type index$4_InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
@@ -3225,6 +3270,8 @@ type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
3225
3270
  type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
3226
3271
  declare const index$4_cosignerHookProgram: typeof cosignerHookProgram;
3227
3272
  declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
3273
+ declare const index$4_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
3274
+ declare const index$4_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
3228
3275
  declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
3229
3276
  declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
3230
3277
  declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
@@ -3243,6 +3290,7 @@ declare const index$4_getCosignerConfigDecoder: typeof getCosignerConfigDecoder;
3243
3290
  declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes;
3244
3291
  declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
3245
3292
  declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
3293
+ declare const index$4_getCosignerGateStatus: typeof getCosignerGateStatus;
3246
3294
  declare const index$4_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
3247
3295
  declare const index$4_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
3248
3296
  declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
@@ -3268,6 +3316,7 @@ declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthor
3268
3316
  declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
3269
3317
  declare const index$4_identifyCosignerHookAccount: typeof identifyCosignerHookAccount;
3270
3318
  declare const index$4_identifyCosignerHookInstruction: typeof identifyCosignerHookInstruction;
3319
+ declare const index$4_isCosignerGateEnforced: typeof isCosignerGateEnforced;
3271
3320
  declare const index$4_isCosignerHookError: typeof isCosignerHookError;
3272
3321
  declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
3273
3322
  declare const index$4_parseCosignerHookInstruction: typeof parseCosignerHookInstruction;
@@ -3275,7 +3324,7 @@ declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeCo
3275
3324
  declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
3276
3325
  declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
3277
3326
  declare namespace index$4 {
3278
- export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
3327
+ export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, type index$4_CosignerGateClock as CosignerGateClock, type index$4_CosignerGateExpiry as CosignerGateExpiry, type index$4_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$4_CosignerGateStatus as CosignerGateStatus, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, index$4_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$4_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$4_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$4_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$4_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$4_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerGateStatus as getCosignerGateStatus, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
3279
3328
  }
3280
3329
 
3281
3330
  /**
@@ -3986,7 +4035,6 @@ declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAcc
3986
4035
  type AddressOrSigner$1 = Address | TransactionSigner;
3987
4036
  type RemainingAccount$1 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
3988
4037
  interface CurveSwapExactInAccounts {
3989
- config: Address;
3990
4038
  launch: Address;
3991
4039
  launchAuthority: Address;
3992
4040
  baseVault: Address;
@@ -746,6 +746,12 @@ __export(cosignerHook_exports, {
746
746
  COSIGNER_HOOK_PROGRAM_ID: () => COSIGNER_HOOK_PROGRAM_ID,
747
747
  CosignerHookAccount: () => CosignerHookAccount,
748
748
  CosignerHookInstruction: () => CosignerHookInstruction,
749
+ GATE_EXPIRY_DISABLED: () => GATE_EXPIRY_DISABLED,
750
+ GATE_EXPIRY_HEADER_LEN: () => GATE_EXPIRY_HEADER_LEN,
751
+ GATE_EXPIRY_PAYLOAD_LEN: () => GATE_EXPIRY_PAYLOAD_LEN,
752
+ GATE_EXPIRY_PAYLOAD_VERSION: () => GATE_EXPIRY_PAYLOAD_VERSION,
753
+ GATE_EXPIRY_SLOT: () => GATE_EXPIRY_SLOT,
754
+ GATE_EXPIRY_UNIX_TIMESTAMP: () => GATE_EXPIRY_UNIX_TIMESTAMP,
749
755
  INITIALIZE_CONFIG_DISCRIMINATOR: () => INITIALIZE_CONFIG_DISCRIMINATOR2,
750
756
  MAX_COSIGNERS: () => MAX_COSIGNERS,
751
757
  REMOVE_COSIGNER_DISCRIMINATOR: () => REMOVE_COSIGNER_DISCRIMINATOR,
@@ -753,6 +759,8 @@ __export(cosignerHook_exports, {
753
759
  SET_AUTHORITY_DISCRIMINATOR: () => SET_AUTHORITY_DISCRIMINATOR,
754
760
  cosignerHookProgram: () => cosignerHookProgram,
755
761
  decodeCosignerConfig: () => decodeCosignerConfig,
762
+ decodeCosignerGateExpiryPayload: () => decodeCosignerGateExpiryPayload,
763
+ encodeCosignerGateExpiryPayload: () => encodeCosignerGateExpiryPayload,
756
764
  fetchAllCosignerConfig: () => fetchAllCosignerConfig,
757
765
  fetchAllMaybeCosignerConfig: () => fetchAllMaybeCosignerConfig,
758
766
  fetchCosignerConfig: () => fetchCosignerConfig,
@@ -771,6 +779,7 @@ __export(cosignerHook_exports, {
771
779
  getCosignerConfigDiscriminatorBytes: () => getCosignerConfigDiscriminatorBytes,
772
780
  getCosignerConfigEncoder: () => getCosignerConfigEncoder,
773
781
  getCosignerConfigSize: () => getCosignerConfigSize,
782
+ getCosignerGateStatus: () => getCosignerGateStatus,
774
783
  getCosignerHookConfigAddress: () => getCosignerHookConfigAddress,
775
784
  getCosignerHookErrorMessage: () => getCosignerHookErrorMessage,
776
785
  getInitializeConfigArgsCodec: () => getInitializeConfigArgsCodec,
@@ -799,6 +808,7 @@ __export(cosignerHook_exports, {
799
808
  getSetAuthorityInstructionDataEncoder: () => getSetAuthorityInstructionDataEncoder,
800
809
  identifyCosignerHookAccount: () => identifyCosignerHookAccount,
801
810
  identifyCosignerHookInstruction: () => identifyCosignerHookInstruction,
811
+ isCosignerGateEnforced: () => isCosignerGateEnforced,
802
812
  isCosignerHookError: () => isCosignerHookError,
803
813
  parseAddCosignerInstruction: () => parseAddCosignerInstruction,
804
814
  parseCosignerHookInstruction: () => parseCosignerHookInstruction,
@@ -1647,6 +1657,132 @@ function getSetAuthorityArgsCodec() {
1647
1657
  var COSIGNER_HOOK_PROGRAM_ID = COSIGNER_HOOK_PROGRAM_ADDRESS;
1648
1658
  var SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
1649
1659
  var MAX_COSIGNERS = 32;
1660
+ var GATE_EXPIRY_DISABLED = 0;
1661
+ var GATE_EXPIRY_UNIX_TIMESTAMP = 1;
1662
+ var GATE_EXPIRY_SLOT = 2;
1663
+ var GATE_EXPIRY_PAYLOAD_VERSION = 1;
1664
+ var GATE_EXPIRY_HEADER_LEN = 10;
1665
+ var GATE_EXPIRY_PAYLOAD_LEN = 42;
1666
+ var MAX_U64 = (1n << 64n) - 1n;
1667
+ function toBigInt(value) {
1668
+ return typeof value === "bigint" ? value : BigInt(value);
1669
+ }
1670
+ function isValidExpiryMode(mode) {
1671
+ return mode === GATE_EXPIRY_UNIX_TIMESTAMP || mode === GATE_EXPIRY_SLOT;
1672
+ }
1673
+ function readU64Le(bytes, offset) {
1674
+ let value = 0n;
1675
+ for (let i = 0; i < 8; i++) {
1676
+ value |= BigInt(bytes[offset + i] ?? 0) << BigInt(i * 8);
1677
+ }
1678
+ return value;
1679
+ }
1680
+ function writeU64Le(bytes, offset, value) {
1681
+ for (let i = 0; i < 8; i++) {
1682
+ bytes[offset + i] = Number(value >> BigInt(i * 8) & 0xffn);
1683
+ }
1684
+ }
1685
+ function encodeCosignerGateExpiryPayload(expiry) {
1686
+ if (expiry.mode === GATE_EXPIRY_DISABLED) {
1687
+ if (expiry.cosigner !== void 0) {
1688
+ throw new Error("Cosigner hint cannot be encoded for disabled gates");
1689
+ }
1690
+ return new Uint8Array();
1691
+ }
1692
+ if (!isValidExpiryMode(expiry.mode)) {
1693
+ throw new Error(`Invalid cosigner gate expiry mode: ${expiry.mode}`);
1694
+ }
1695
+ const value = toBigInt(expiry.value);
1696
+ if (value < 0n || value > MAX_U64) {
1697
+ throw new Error(`Invalid cosigner gate expiry value: ${expiry.value}`);
1698
+ }
1699
+ if (expiry.cosigner === void 0) {
1700
+ throw new Error("Cosigner hint is required for expiring gates");
1701
+ }
1702
+ const payload = new Uint8Array(GATE_EXPIRY_PAYLOAD_LEN);
1703
+ payload[0] = GATE_EXPIRY_PAYLOAD_VERSION;
1704
+ payload[1] = expiry.mode;
1705
+ writeU64Le(payload, 2, value);
1706
+ payload.set(
1707
+ getAddressEncoder().encode(expiry.cosigner),
1708
+ GATE_EXPIRY_HEADER_LEN
1709
+ );
1710
+ return payload;
1711
+ }
1712
+ function decodeCosignerGateExpiryPayload(payload) {
1713
+ if (!payload || payload.length === 0) {
1714
+ return { mode: GATE_EXPIRY_DISABLED, value: 0n };
1715
+ }
1716
+ if (payload.length !== GATE_EXPIRY_PAYLOAD_LEN || payload[0] !== GATE_EXPIRY_PAYLOAD_VERSION) {
1717
+ return null;
1718
+ }
1719
+ const mode = payload[1] ?? GATE_EXPIRY_DISABLED;
1720
+ if (!isValidExpiryMode(mode)) {
1721
+ return null;
1722
+ }
1723
+ return {
1724
+ mode,
1725
+ value: readU64Le(payload, 2),
1726
+ cosigner: getAddressDecoder().decode(
1727
+ payload.slice(GATE_EXPIRY_HEADER_LEN, GATE_EXPIRY_PAYLOAD_LEN)
1728
+ )
1729
+ };
1730
+ }
1731
+ function getCosignerGateStatus(hookPayload, clock = {}) {
1732
+ const expiry = decodeCosignerGateExpiryPayload(hookPayload);
1733
+ if (!expiry) {
1734
+ return {
1735
+ gateEnforced: true,
1736
+ expiryMode: GATE_EXPIRY_DISABLED,
1737
+ expiryValue: 0n,
1738
+ reason: "invalid_expiry_payload"
1739
+ };
1740
+ }
1741
+ if (expiry.mode === GATE_EXPIRY_DISABLED) {
1742
+ return {
1743
+ gateEnforced: true,
1744
+ expiryMode: expiry.mode,
1745
+ expiryValue: expiry.value,
1746
+ reason: "expiry_disabled"
1747
+ };
1748
+ }
1749
+ if (expiry.mode === GATE_EXPIRY_UNIX_TIMESTAMP) {
1750
+ const unixTimestamp = clock.unixTimestamp === void 0 ? BigInt(Math.floor(Date.now() / 1e3)) : toBigInt(clock.unixTimestamp);
1751
+ const expired = unixTimestamp >= expiry.value;
1752
+ return {
1753
+ gateEnforced: !expired,
1754
+ expiryMode: expiry.mode,
1755
+ expiryValue: expiry.value,
1756
+ reason: expired ? "timestamp_expired" : "timestamp_pending"
1757
+ };
1758
+ }
1759
+ if (expiry.mode === GATE_EXPIRY_SLOT) {
1760
+ if (clock.slot === void 0) {
1761
+ return {
1762
+ gateEnforced: true,
1763
+ expiryMode: expiry.mode,
1764
+ expiryValue: expiry.value,
1765
+ reason: "slot_unavailable"
1766
+ };
1767
+ }
1768
+ const expired = toBigInt(clock.slot) >= expiry.value;
1769
+ return {
1770
+ gateEnforced: !expired,
1771
+ expiryMode: expiry.mode,
1772
+ expiryValue: expiry.value,
1773
+ reason: expired ? "slot_expired" : "slot_pending"
1774
+ };
1775
+ }
1776
+ return {
1777
+ gateEnforced: true,
1778
+ expiryMode: expiry.mode,
1779
+ expiryValue: expiry.value,
1780
+ reason: "invalid_expiry_mode"
1781
+ };
1782
+ }
1783
+ function isCosignerGateEnforced(hookPayload, clock = {}) {
1784
+ return getCosignerGateStatus(hookPayload, clock).gateEnforced;
1785
+ }
1650
1786
  var textEncoder2 = new TextEncoder();
1651
1787
  async function getCosignerHookConfigAddress(programId = COSIGNER_HOOK_PROGRAM_ID) {
1652
1788
  return getProgramDerivedAddress({
@@ -5282,7 +5418,6 @@ function createRemainingAccountMeta(value) {
5282
5418
  }
5283
5419
  function createCurveSwapExactInInstruction(accounts, args, programId = INITIALIZER_PROGRAM_ID) {
5284
5420
  const {
5285
- config,
5286
5421
  launch,
5287
5422
  launchAuthority,
5288
5423
  baseVault,
@@ -5299,7 +5434,6 @@ function createCurveSwapExactInInstruction(accounts, args, programId = INITIALIZ
5299
5434
  remainingAccounts = []
5300
5435
  } = accounts;
5301
5436
  const keys = [
5302
- { address: config, role: AccountRole.READONLY },
5303
5437
  { address: launch, role: AccountRole.WRITABLE },
5304
5438
  { address: launchAuthority, role: AccountRole.READONLY },
5305
5439
  { address: baseVault, role: AccountRole.WRITABLE },