@intent-engine/core 0.1.42 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/client/accounts/config.d.ts +4 -0
- package/dist/generated/client/accounts/config.js +5 -1
- package/dist/generated/client/accounts/config.js.map +1 -1
- package/dist/generated/client/accounts/intent.d.ts +6 -2
- package/dist/generated/client/accounts/intent.js +8 -4
- package/dist/generated/client/accounts/intent.js.map +1 -1
- package/dist/generated/client/accounts/mintCap.d.ts +6 -0
- package/dist/generated/client/accounts/mintCap.js +8 -2
- package/dist/generated/client/accounts/mintCap.js.map +1 -1
- package/dist/generated/client/accounts/profile.d.ts +2 -2
- package/dist/generated/client/accounts/profile.js +2 -2
- package/dist/generated/client/accounts/profile.js.map +1 -1
- package/dist/generated/client/accounts/standby.d.ts +2 -0
- package/dist/generated/client/accounts/standby.js +4 -2
- package/dist/generated/client/accounts/standby.js.map +1 -1
- package/dist/generated/client/errors/intentEngine.d.ts +25 -1
- package/dist/generated/client/errors/intentEngine.js +36 -0
- package/dist/generated/client/errors/intentEngine.js.map +1 -1
- package/dist/generated/client/events/accountMigrated.d.ts +38 -0
- package/dist/generated/client/events/accountMigrated.js +50 -0
- package/dist/generated/client/events/accountMigrated.js.map +1 -0
- package/dist/generated/client/events/committeeFloorSet.d.ts +26 -0
- package/dist/generated/client/events/committeeFloorSet.js +38 -0
- package/dist/generated/client/events/committeeFloorSet.js.map +1 -0
- package/dist/generated/client/events/index.d.ts +3 -0
- package/dist/generated/client/events/index.js +3 -0
- package/dist/generated/client/events/index.js.map +1 -1
- package/dist/generated/client/events/legacyClosed.d.ts +30 -0
- package/dist/generated/client/events/legacyClosed.js +42 -0
- package/dist/generated/client/events/legacyClosed.js.map +1 -0
- package/dist/generated/client/events/mintCapSet.d.ts +4 -0
- package/dist/generated/client/events/mintCapSet.js +4 -0
- package/dist/generated/client/events/mintCapSet.js.map +1 -1
- package/dist/generated/client/events/profileSet.d.ts +1 -0
- package/dist/generated/client/events/profileSet.js +2 -0
- package/dist/generated/client/events/profileSet.js.map +1 -1
- package/dist/generated/client/instructions/beginFill.d.ts +13 -9
- package/dist/generated/client/instructions/beginFill.js +15 -2
- package/dist/generated/client/instructions/beginFill.js.map +1 -1
- package/dist/generated/client/instructions/cancelIntent.d.ts +13 -9
- package/dist/generated/client/instructions/cancelIntent.js +15 -2
- package/dist/generated/client/instructions/cancelIntent.js.map +1 -1
- package/dist/generated/client/instructions/claimJob.d.ts +13 -9
- package/dist/generated/client/instructions/claimJob.js +15 -2
- package/dist/generated/client/instructions/claimJob.js.map +1 -1
- package/dist/generated/client/instructions/closeIntent.d.ts +13 -9
- package/dist/generated/client/instructions/closeIntent.js +21 -2
- package/dist/generated/client/instructions/closeIntent.js.map +1 -1
- package/dist/generated/client/instructions/closeLegacy.d.ts +61 -0
- package/dist/generated/client/instructions/closeLegacy.js +113 -0
- package/dist/generated/client/instructions/closeLegacy.js.map +1 -0
- package/dist/generated/client/instructions/createIntent.d.ts +14 -10
- package/dist/generated/client/instructions/createIntent.js +15 -2
- package/dist/generated/client/instructions/createIntent.js.map +1 -1
- package/dist/generated/client/instructions/createIntentSigned.d.ts +14 -10
- package/dist/generated/client/instructions/createIntentSigned.js +15 -2
- package/dist/generated/client/instructions/createIntentSigned.js.map +1 -1
- package/dist/generated/client/instructions/expireIntent.d.ts +13 -9
- package/dist/generated/client/instructions/expireIntent.js +21 -2
- package/dist/generated/client/instructions/expireIntent.js.map +1 -1
- package/dist/generated/client/instructions/fillAttested.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttested.js +15 -2
- package/dist/generated/client/instructions/fillAttested.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedCommittee.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttestedCommittee.js +15 -2
- package/dist/generated/client/instructions/fillAttestedCommittee.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedSplit.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttestedSplit.js +15 -2
- package/dist/generated/client/instructions/fillAttestedSplit.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.js +15 -2
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.js.map +1 -1
- package/dist/generated/client/instructions/fillIntent.d.ts +13 -9
- package/dist/generated/client/instructions/fillIntent.js +15 -2
- package/dist/generated/client/instructions/fillIntent.js.map +1 -1
- package/dist/generated/client/instructions/index.d.ts +3 -0
- package/dist/generated/client/instructions/index.js +3 -0
- package/dist/generated/client/instructions/index.js.map +1 -1
- package/dist/generated/client/instructions/migrate.d.ts +52 -0
- package/dist/generated/client/instructions/migrate.js +109 -0
- package/dist/generated/client/instructions/migrate.js.map +1 -0
- package/dist/generated/client/instructions/setCommitteeFloor.d.ts +53 -0
- package/dist/generated/client/instructions/setCommitteeFloor.js +96 -0
- package/dist/generated/client/instructions/setCommitteeFloor.js.map +1 -0
- package/dist/generated/client/instructions/setMintCap.d.ts +4 -0
- package/dist/generated/client/instructions/setMintCap.js +2 -0
- package/dist/generated/client/instructions/setMintCap.js.map +1 -1
- package/dist/generated/client/instructions/standBy.d.ts +13 -9
- package/dist/generated/client/instructions/standBy.js +15 -2
- package/dist/generated/client/instructions/standBy.js.map +1 -1
- package/dist/generated/client/programs/intentEngine.d.ts +158 -137
- package/dist/generated/client/programs/intentEngine.js +194 -137
- package/dist/generated/client/programs/intentEngine.js.map +1 -1
- package/dist/generated/client/types/profileFields.d.ts +1 -0
- package/dist/generated/client/types/profileFields.js +2 -0
- package/dist/generated/client/types/profileFields.js.map +1 -1
- package/dist/src/claims.d.ts +2 -2
- package/dist/src/committee-floors.d.ts +21 -0
- package/dist/src/committee-floors.js +27 -0
- package/dist/src/committee-floors.js.map +1 -0
- package/dist/src/committee.d.ts +4 -4
- package/dist/src/committee.js +14 -17
- package/dist/src/committee.js.map +1 -1
- package/dist/src/encryption-key.d.ts +28 -0
- package/dist/src/encryption-key.js +94 -0
- package/dist/src/encryption-key.js.map +1 -0
- package/dist/src/events.d.ts +4 -1
- package/dist/src/events.js +5 -1
- package/dist/src/events.js.map +1 -1
- package/dist/src/fill-builders.d.ts +7 -5
- package/dist/src/fill-builders.js +4 -0
- package/dist/src/fill-builders.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent-builders.d.ts +8 -6
- package/dist/src/intent-builders.js +6 -1
- package/dist/src/intent-builders.js.map +1 -1
- package/dist/src/memo.d.ts +7 -1
- package/dist/src/memo.js +18 -4
- package/dist/src/memo.js.map +1 -1
- package/dist/src/migrate.d.ts +25 -0
- package/dist/src/migrate.js +46 -0
- package/dist/src/migrate.js.map +1 -0
- package/dist/src/mint-caps.d.ts +5 -1
- package/dist/src/mint-caps.js +13 -2
- package/dist/src/mint-caps.js.map +1 -1
- package/dist/src/profile.d.ts +2 -0
- package/dist/src/profile.js +13 -4
- package/dist/src/profile.js.map +1 -1
- package/dist/src/sealed-delivery.d.ts +54 -10
- package/dist/src/sealed-delivery.js +183 -55
- package/dist/src/sealed-delivery.js.map +1 -1
- package/dist/src/sealed.d.ts +1 -0
- package/dist/src/sealed.js +2 -2
- package/dist/src/sealed.js.map +1 -1
- package/dist/src/sig.d.ts +17 -4
- package/dist/src/sig.js +80 -10
- package/dist/src/sig.js.map +1 -1
- package/dist/src/state.d.ts +3 -3
- package/dist/src/state.js +3 -3
- package/dist/src/versions.d.ts +56 -0
- package/dist/src/versions.js +126 -0
- package/dist/src/versions.js.map +1 -0
- package/generated/idl.json +567 -6
- package/package.json +2 -1
|
@@ -10,7 +10,7 @@ import { type InstructionAccountInput, type InstructionAccountInputAddress, type
|
|
|
10
10
|
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
11
|
export declare const FILL_INTENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getFillIntentDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type FillIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountOutputMint extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TAccountSolverOutput extends string | AccountMeta<string> = string, TAccountSolverInput extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountOutputTokenProgram extends string | AccountMeta<string> = string, TAccountMandate extends string | AccountMeta<string> = string, TAccountOwnerState extends string | AccountMeta<string> = string, TAccountAgentTo extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
export type FillIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountOutputMint extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TAccountSolverOutput extends string | AccountMeta<string> = string, TAccountSolverInput extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountOutputTokenProgram extends string | AccountMeta<string> = string, TAccountMandate extends string | AccountMeta<string> = string, TAccountOwnerState extends string | AccountMeta<string> = string, TAccountAgentTo extends string | AccountMeta<string> = string, TAccountMintCap extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
14
|
TAccountSolver extends string ? ReadonlySignerAccount<TAccountSolver> & AccountSignerMeta<TAccountSolver> : TAccountSolver,
|
|
15
15
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
16
16
|
TAccountIntent extends string ? WritableAccount<TAccountIntent> : TAccountIntent,
|
|
@@ -27,6 +27,7 @@ export type FillIntentInstruction<TProgram extends string = typeof INTENT_ENGINE
|
|
|
27
27
|
TAccountMandate extends string ? ReadonlyAccount<TAccountMandate> : TAccountMandate,
|
|
28
28
|
TAccountOwnerState extends string ? ReadonlyAccount<TAccountOwnerState> : TAccountOwnerState,
|
|
29
29
|
TAccountAgentTo extends string ? WritableAccount<TAccountAgentTo> : TAccountAgentTo,
|
|
30
|
+
TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
|
|
30
31
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
31
32
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
32
33
|
...TRemainingAccounts
|
|
@@ -47,7 +48,7 @@ export type FillIntentInstructionDataArgs = {
|
|
|
47
48
|
export declare function getFillIntentInstructionDataEncoder(): Encoder<FillIntentInstructionDataArgs>;
|
|
48
49
|
export declare function getFillIntentInstructionDataDecoder(): Decoder<FillIntentInstructionData>;
|
|
49
50
|
export declare function getFillIntentInstructionDataCodec(): Codec<FillIntentInstructionDataArgs, FillIntentInstructionData>;
|
|
50
|
-
export type FillIntentAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
51
|
+
export type FillIntentAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
51
52
|
solver: TAccountSolver;
|
|
52
53
|
config?: TAccountConfig;
|
|
53
54
|
intent: TAccountIntent;
|
|
@@ -64,6 +65,7 @@ export type FillIntentAsyncInput<TAccountSolver extends InstructionSignerInput =
|
|
|
64
65
|
mandate?: TAccountMandate;
|
|
65
66
|
ownerState?: TAccountOwnerState;
|
|
66
67
|
agentTo?: TAccountAgentTo;
|
|
68
|
+
mintCap?: TAccountMintCap;
|
|
67
69
|
eventAuthority: TAccountEventAuthority;
|
|
68
70
|
program: TAccountProgram;
|
|
69
71
|
amountIn: FillIntentInstructionDataArgs["amountIn"];
|
|
@@ -71,10 +73,10 @@ export type FillIntentAsyncInput<TAccountSolver extends InstructionSignerInput =
|
|
|
71
73
|
maxFeeBps: FillIntentInstructionDataArgs["maxFeeBps"];
|
|
72
74
|
ext: FillIntentInstructionDataArgs["ext"];
|
|
73
75
|
};
|
|
74
|
-
export declare function getFillIntentInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillIntentAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountOutputMint, TAccountReceiver, TAccountSolverOutput, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
76
|
+
export declare function getFillIntentInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillIntentAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountOutputMint, TAccountReceiver, TAccountSolverOutput, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
75
77
|
programAddress?: TProgramAddress;
|
|
76
|
-
}): Promise<FillIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountSolverOutput, InstructionAccountInputAddress<TAccountSolverOutput>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
77
|
-
export type FillIntentInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
78
|
+
}): Promise<FillIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountSolverOutput, InstructionAccountInputAddress<TAccountSolverOutput>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
79
|
+
export type FillIntentInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
78
80
|
solver: TAccountSolver;
|
|
79
81
|
config?: TAccountConfig;
|
|
80
82
|
intent: TAccountIntent;
|
|
@@ -91,6 +93,7 @@ export type FillIntentInput<TAccountSolver extends InstructionSignerInput = Inst
|
|
|
91
93
|
mandate?: TAccountMandate;
|
|
92
94
|
ownerState?: TAccountOwnerState;
|
|
93
95
|
agentTo?: TAccountAgentTo;
|
|
96
|
+
mintCap?: TAccountMintCap;
|
|
94
97
|
eventAuthority: TAccountEventAuthority;
|
|
95
98
|
program: TAccountProgram;
|
|
96
99
|
amountIn: FillIntentInstructionDataArgs["amountIn"];
|
|
@@ -98,9 +101,9 @@ export type FillIntentInput<TAccountSolver extends InstructionSignerInput = Inst
|
|
|
98
101
|
maxFeeBps: FillIntentInstructionDataArgs["maxFeeBps"];
|
|
99
102
|
ext: FillIntentInstructionDataArgs["ext"];
|
|
100
103
|
};
|
|
101
|
-
export declare function getFillIntentInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillIntentInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountOutputMint, TAccountReceiver, TAccountSolverOutput, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
104
|
+
export declare function getFillIntentInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountSolverOutput extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillIntentInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountOutputMint, TAccountReceiver, TAccountSolverOutput, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
102
105
|
programAddress?: TProgramAddress;
|
|
103
|
-
}): FillIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountSolverOutput, InstructionAccountInputAddress<TAccountSolverOutput>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
106
|
+
}): FillIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountSolverOutput, InstructionAccountInputAddress<TAccountSolverOutput>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
104
107
|
export type ParsedFillIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
105
108
|
programAddress: Address<TProgram>;
|
|
106
109
|
accounts: {
|
|
@@ -120,8 +123,9 @@ export type ParsedFillIntentInstruction<TProgram extends string = typeof INTENT_
|
|
|
120
123
|
mandate?: TAccountMetas[13] | undefined;
|
|
121
124
|
ownerState?: TAccountMetas[14] | undefined;
|
|
122
125
|
agentTo?: TAccountMetas[15] | undefined;
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
mintCap?: TAccountMetas[16] | undefined;
|
|
127
|
+
eventAuthority: TAccountMetas[17];
|
|
128
|
+
program: TAccountMetas[18];
|
|
125
129
|
};
|
|
126
130
|
data: FillIntentInstructionData;
|
|
127
131
|
};
|
|
@@ -103,6 +103,11 @@ export async function getFillIntentInstructionAsync(input, config) {
|
|
|
103
103
|
isSigner: false,
|
|
104
104
|
isWritable: true,
|
|
105
105
|
},
|
|
106
|
+
mintCap: {
|
|
107
|
+
value: input.mintCap ?? null,
|
|
108
|
+
isSigner: false,
|
|
109
|
+
isWritable: true,
|
|
110
|
+
},
|
|
106
111
|
eventAuthority: {
|
|
107
112
|
value: input.eventAuthority ?? null,
|
|
108
113
|
isSigner: false,
|
|
@@ -145,6 +150,7 @@ export async function getFillIntentInstructionAsync(input, config) {
|
|
|
145
150
|
getAccountMeta("mandate", accounts.mandate),
|
|
146
151
|
getAccountMeta("ownerState", accounts.ownerState),
|
|
147
152
|
getAccountMeta("agentTo", accounts.agentTo),
|
|
153
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
148
154
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
149
155
|
getAccountMeta("program", accounts.program),
|
|
150
156
|
],
|
|
@@ -219,6 +225,11 @@ export function getFillIntentInstruction(input, config) {
|
|
|
219
225
|
isSigner: false,
|
|
220
226
|
isWritable: true,
|
|
221
227
|
},
|
|
228
|
+
mintCap: {
|
|
229
|
+
value: input.mintCap ?? null,
|
|
230
|
+
isSigner: false,
|
|
231
|
+
isWritable: true,
|
|
232
|
+
},
|
|
222
233
|
eventAuthority: {
|
|
223
234
|
value: input.eventAuthority ?? null,
|
|
224
235
|
isSigner: false,
|
|
@@ -256,6 +267,7 @@ export function getFillIntentInstruction(input, config) {
|
|
|
256
267
|
getAccountMeta("mandate", accounts.mandate),
|
|
257
268
|
getAccountMeta("ownerState", accounts.ownerState),
|
|
258
269
|
getAccountMeta("agentTo", accounts.agentTo),
|
|
270
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
259
271
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
260
272
|
getAccountMeta("program", accounts.program),
|
|
261
273
|
],
|
|
@@ -264,10 +276,10 @@ export function getFillIntentInstruction(input, config) {
|
|
|
264
276
|
});
|
|
265
277
|
}
|
|
266
278
|
export function parseFillIntentInstruction(instruction) {
|
|
267
|
-
if (instruction.accounts.length <
|
|
279
|
+
if (instruction.accounts.length < 19) {
|
|
268
280
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
269
281
|
actualAccountMetas: instruction.accounts.length,
|
|
270
|
-
expectedAccountMetas:
|
|
282
|
+
expectedAccountMetas: 19,
|
|
271
283
|
});
|
|
272
284
|
}
|
|
273
285
|
let accountIndex = 0;
|
|
@@ -301,6 +313,7 @@ export function parseFillIntentInstruction(instruction) {
|
|
|
301
313
|
mandate: getNextOptionalAccount(),
|
|
302
314
|
ownerState: getNextOptionalAccount(),
|
|
303
315
|
agentTo: getNextOptionalAccount(),
|
|
316
|
+
mintCap: getNextOptionalAccount(),
|
|
304
317
|
eventAuthority: getNextAccount(),
|
|
305
318
|
program: getNextAccount(),
|
|
306
319
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/fillIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,yBAAyB,GAAuB,IAAI,UAAU,CAAC;IAC1E,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B;IAC7C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAChF,CAAC;
|
|
1
|
+
{"version":3,"file":"fillIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/fillIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,yBAAyB,GAAuB,IAAI,UAAU,CAAC;IAC1E,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B;IAC7C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAChF,CAAC;AA0GD,MAAM,UAAU,mCAAmC;IACjD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,UAAU,EA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;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,MAAM,EAAE,cAAc,EAAE;YACxB,MAAM,EAAE,cAAc,EAAE;YACxB,MAAM,EAAE,cAAc,EAAE;YACxB,KAAK,EAAE,cAAc,EAAE;YACvB,SAAS,EAAE,cAAc,EAAE;YAC3B,UAAU,EAAE,cAAc,EAAE;YAC5B,QAAQ,EAAE,cAAc,EAAE;YAC1B,YAAY,EAAE,cAAc,EAAE;YAC9B,WAAW,EAAE,cAAc,EAAE;YAC7B,KAAK,EAAE,sBAAsB,EAAE;YAC/B,SAAS,EAAE,sBAAsB,EAAE;YACnC,iBAAiB,EAAE,cAAc,EAAE;YACnC,kBAAkB,EAAE,cAAc,EAAE;YACpC,OAAO,EAAE,sBAAsB,EAAE;YACjC,UAAU,EAAE,sBAAsB,EAAE;YACpC,OAAO,EAAE,sBAAsB,EAAE;YACjC,OAAO,EAAE,sBAAsB,EAAE;YACjC,cAAc,EAAE,cAAc,EAAE;YAChC,OAAO,EAAE,cAAc,EAAE;SAC1B;QACD,IAAI,EAAE,mCAAmC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACrE,CAAC;AACJ,CAAC"}
|
|
@@ -13,6 +13,7 @@ export * from "./beginFill.js";
|
|
|
13
13
|
export * from "./cancelIntent.js";
|
|
14
14
|
export * from "./claimJob.js";
|
|
15
15
|
export * from "./closeIntent.js";
|
|
16
|
+
export * from "./closeLegacy.js";
|
|
16
17
|
export * from "./closeProfile.js";
|
|
17
18
|
export * from "./createCommittee.js";
|
|
18
19
|
export * from "./createIntent.js";
|
|
@@ -32,11 +33,13 @@ export * from "./initConfig.js";
|
|
|
32
33
|
export * from "./initUser.js";
|
|
33
34
|
export * from "./leave.js";
|
|
34
35
|
export * from "./lowerPause.js";
|
|
36
|
+
export * from "./migrate.js";
|
|
35
37
|
export * from "./openClaims.js";
|
|
36
38
|
export * from "./proposeAdmin.js";
|
|
37
39
|
export * from "./raisePause.js";
|
|
38
40
|
export * from "./revokeMandate.js";
|
|
39
41
|
export * from "./setCapsRequired.js";
|
|
42
|
+
export * from "./setCommitteeFloor.js";
|
|
40
43
|
export * from "./setMintCap.js";
|
|
41
44
|
export * from "./settleClaims.js";
|
|
42
45
|
export * from "./standBy.js";
|
|
@@ -13,6 +13,7 @@ export * from "./beginFill.js";
|
|
|
13
13
|
export * from "./cancelIntent.js";
|
|
14
14
|
export * from "./claimJob.js";
|
|
15
15
|
export * from "./closeIntent.js";
|
|
16
|
+
export * from "./closeLegacy.js";
|
|
16
17
|
export * from "./closeProfile.js";
|
|
17
18
|
export * from "./createCommittee.js";
|
|
18
19
|
export * from "./createIntent.js";
|
|
@@ -32,11 +33,13 @@ export * from "./initConfig.js";
|
|
|
32
33
|
export * from "./initUser.js";
|
|
33
34
|
export * from "./leave.js";
|
|
34
35
|
export * from "./lowerPause.js";
|
|
36
|
+
export * from "./migrate.js";
|
|
35
37
|
export * from "./openClaims.js";
|
|
36
38
|
export * from "./proposeAdmin.js";
|
|
37
39
|
export * from "./raisePause.js";
|
|
38
40
|
export * from "./revokeMandate.js";
|
|
39
41
|
export * from "./setCapsRequired.js";
|
|
42
|
+
export * from "./setCommitteeFloor.js";
|
|
40
43
|
export * from "./setMintCap.js";
|
|
41
44
|
export * from "./settleClaims.js";
|
|
42
45
|
export * from "./standBy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
|
@@ -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 AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from "@solana/kit/program-client-core";
|
|
10
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export declare const MIGRATE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
|
+
export declare function getMigrateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type MigrateInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAccount extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
15
|
+
TAccountAccount extends string ? WritableAccount<TAccountAccount> : TAccountAccount,
|
|
16
|
+
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
17
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
19
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
20
|
+
...TRemainingAccounts
|
|
21
|
+
]>;
|
|
22
|
+
export type MigrateInstructionData = {
|
|
23
|
+
discriminator: ReadonlyUint8Array;
|
|
24
|
+
};
|
|
25
|
+
export type MigrateInstructionDataArgs = {};
|
|
26
|
+
export declare function getMigrateInstructionDataEncoder(): FixedSizeEncoder<MigrateInstructionDataArgs>;
|
|
27
|
+
export declare function getMigrateInstructionDataDecoder(): FixedSizeDecoder<MigrateInstructionData>;
|
|
28
|
+
export declare function getMigrateInstructionDataCodec(): FixedSizeCodec<MigrateInstructionDataArgs, MigrateInstructionData>;
|
|
29
|
+
export type MigrateInput<TAccountPayer extends InstructionSignerInput = InstructionSignerInput, TAccountAccount extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
30
|
+
payer: TAccountPayer;
|
|
31
|
+
account: TAccountAccount;
|
|
32
|
+
config?: TAccountConfig;
|
|
33
|
+
systemProgram?: TAccountSystemProgram;
|
|
34
|
+
eventAuthority: TAccountEventAuthority;
|
|
35
|
+
program: TAccountProgram;
|
|
36
|
+
};
|
|
37
|
+
export declare function getMigrateInstruction<TAccountPayer extends InstructionSignerInput, TAccountAccount extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: MigrateInput<TAccountPayer, TAccountAccount, TAccountConfig, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
38
|
+
programAddress?: TProgramAddress;
|
|
39
|
+
}): MigrateInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>, ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
40
|
+
export type ParsedMigrateInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
41
|
+
programAddress: Address<TProgram>;
|
|
42
|
+
accounts: {
|
|
43
|
+
payer: TAccountMetas[0];
|
|
44
|
+
account: TAccountMetas[1];
|
|
45
|
+
config?: TAccountMetas[2] | undefined;
|
|
46
|
+
systemProgram: TAccountMetas[3];
|
|
47
|
+
eventAuthority: TAccountMetas[4];
|
|
48
|
+
program: TAccountMetas[5];
|
|
49
|
+
};
|
|
50
|
+
data: MigrateInstructionData;
|
|
51
|
+
};
|
|
52
|
+
export declare function parseMigrateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMigrateInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getAccountMetaFactory, } from "@solana/kit/program-client-core";
|
|
10
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export const MIGRATE_DISCRIMINATOR = new Uint8Array([
|
|
12
|
+
155, 234, 231, 146, 236, 158, 162, 30,
|
|
13
|
+
]);
|
|
14
|
+
export function getMigrateDiscriminatorBytes() {
|
|
15
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(MIGRATE_DISCRIMINATOR);
|
|
16
|
+
}
|
|
17
|
+
export function getMigrateInstructionDataEncoder() {
|
|
18
|
+
return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({ ...value, discriminator: MIGRATE_DISCRIMINATOR }));
|
|
19
|
+
}
|
|
20
|
+
export function getMigrateInstructionDataDecoder() {
|
|
21
|
+
return getStructDecoder([
|
|
22
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
23
|
+
]);
|
|
24
|
+
}
|
|
25
|
+
export function getMigrateInstructionDataCodec() {
|
|
26
|
+
return combineCodec(getMigrateInstructionDataEncoder(), getMigrateInstructionDataDecoder());
|
|
27
|
+
}
|
|
28
|
+
export function getMigrateInstruction(input, config) {
|
|
29
|
+
// Program address.
|
|
30
|
+
const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
|
|
31
|
+
// Account meta helper.
|
|
32
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
33
|
+
// Original accounts.
|
|
34
|
+
const originalAccounts = {
|
|
35
|
+
payer: { value: input.payer ?? null, isSigner: true, isWritable: true },
|
|
36
|
+
account: {
|
|
37
|
+
value: input.account ?? null,
|
|
38
|
+
isSigner: false,
|
|
39
|
+
isWritable: true,
|
|
40
|
+
},
|
|
41
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: false },
|
|
42
|
+
systemProgram: {
|
|
43
|
+
value: input.systemProgram ?? null,
|
|
44
|
+
isSigner: false,
|
|
45
|
+
isWritable: false,
|
|
46
|
+
},
|
|
47
|
+
eventAuthority: {
|
|
48
|
+
value: input.eventAuthority ?? null,
|
|
49
|
+
isSigner: false,
|
|
50
|
+
isWritable: false,
|
|
51
|
+
},
|
|
52
|
+
program: {
|
|
53
|
+
value: input.program ?? null,
|
|
54
|
+
isSigner: false,
|
|
55
|
+
isWritable: false,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
const accounts = originalAccounts;
|
|
59
|
+
// Resolve default values.
|
|
60
|
+
if (!accounts.systemProgram.value) {
|
|
61
|
+
accounts.systemProgram.value =
|
|
62
|
+
"11111111111111111111111111111111";
|
|
63
|
+
}
|
|
64
|
+
return Object.freeze({
|
|
65
|
+
accounts: [
|
|
66
|
+
getAccountMeta("payer", accounts.payer),
|
|
67
|
+
getAccountMeta("account", accounts.account),
|
|
68
|
+
getAccountMeta("config", accounts.config),
|
|
69
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
70
|
+
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
71
|
+
getAccountMeta("program", accounts.program),
|
|
72
|
+
],
|
|
73
|
+
data: getMigrateInstructionDataEncoder().encode({}),
|
|
74
|
+
programAddress,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export function parseMigrateInstruction(instruction) {
|
|
78
|
+
if (instruction.accounts.length < 6) {
|
|
79
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
80
|
+
actualAccountMetas: instruction.accounts.length,
|
|
81
|
+
expectedAccountMetas: 6,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
let accountIndex = 0;
|
|
85
|
+
const getNextAccount = () => {
|
|
86
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
87
|
+
accountIndex += 1;
|
|
88
|
+
return accountMeta;
|
|
89
|
+
};
|
|
90
|
+
const getNextOptionalAccount = () => {
|
|
91
|
+
const accountMeta = getNextAccount();
|
|
92
|
+
return accountMeta.address === INTENT_ENGINE_PROGRAM_ADDRESS
|
|
93
|
+
? undefined
|
|
94
|
+
: accountMeta;
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
programAddress: instruction.programAddress,
|
|
98
|
+
accounts: {
|
|
99
|
+
payer: getNextAccount(),
|
|
100
|
+
account: getNextAccount(),
|
|
101
|
+
config: getNextOptionalAccount(),
|
|
102
|
+
systemProgram: getNextAccount(),
|
|
103
|
+
eventAuthority: getNextAccount(),
|
|
104
|
+
program: getNextAccount(),
|
|
105
|
+
},
|
|
106
|
+
data: getMigrateInstructionDataDecoder().decode(instruction.data),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=migrate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../../../generated/client/instructions/migrate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,GAMtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,qBAAqB,GAAuB,IAAI,UAAU,CAAC;IACtE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B;IAC1C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC5E,CAAC;AA2CD,MAAM,UAAU,gCAAgC;IAC9C,OAAO,gBAAgB,CACrB,gBAAgB,CAAC,CAAC,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3E,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC;IAC9C,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC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AAC,WAAW,CAAC;IAClB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc,EAAE;YACvB,OAAO,EAAE,cAAc,EAAE;YACzB,MAAM,EAAE,sBAAsB,EAAE;YAChC,aAAa,EAAE,cAAc,EAAE;YAC/B,cAAc,EAAE,cAAc,EAAE;YAChC,OAAO,EAAE,cAAc,EAAE;SAC1B;QACD,IAAI,EAAE,gCAAgC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KAClE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } from "@solana/kit";
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from "@solana/kit/program-client-core";
|
|
10
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export declare const SET_COMMITTEE_FLOOR_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
|
+
export declare function getSetCommitteeFloorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type SetCommitteeFloorInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountAdmin extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountMint extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
|
|
15
|
+
TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
|
|
16
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
17
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
18
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
19
|
+
...TRemainingAccounts
|
|
20
|
+
]>;
|
|
21
|
+
export type SetCommitteeFloorInstructionData = {
|
|
22
|
+
discriminator: ReadonlyUint8Array;
|
|
23
|
+
floor: bigint;
|
|
24
|
+
};
|
|
25
|
+
export type SetCommitteeFloorInstructionDataArgs = {
|
|
26
|
+
floor: number | bigint;
|
|
27
|
+
};
|
|
28
|
+
export declare function getSetCommitteeFloorInstructionDataEncoder(): FixedSizeEncoder<SetCommitteeFloorInstructionDataArgs>;
|
|
29
|
+
export declare function getSetCommitteeFloorInstructionDataDecoder(): FixedSizeDecoder<SetCommitteeFloorInstructionData>;
|
|
30
|
+
export declare function getSetCommitteeFloorInstructionDataCodec(): FixedSizeCodec<SetCommitteeFloorInstructionDataArgs, SetCommitteeFloorInstructionData>;
|
|
31
|
+
export type SetCommitteeFloorInput<TAccountAdmin extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountMint extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
32
|
+
admin: TAccountAdmin;
|
|
33
|
+
config?: TAccountConfig;
|
|
34
|
+
mint: TAccountMint;
|
|
35
|
+
eventAuthority: TAccountEventAuthority;
|
|
36
|
+
program: TAccountProgram;
|
|
37
|
+
floor: SetCommitteeFloorInstructionDataArgs["floor"];
|
|
38
|
+
};
|
|
39
|
+
export declare function getSetCommitteeFloorInstruction<TAccountAdmin extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountMint extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: SetCommitteeFloorInput<TAccountAdmin, TAccountConfig, TAccountMint, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
40
|
+
programAddress?: TProgramAddress;
|
|
41
|
+
}): SetCommitteeFloorInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAdmin, InstructionAccountInputAddress<TAccountAdmin>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountMint, InstructionAccountInputAddress<TAccountMint>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
42
|
+
export type ParsedSetCommitteeFloorInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
43
|
+
programAddress: Address<TProgram>;
|
|
44
|
+
accounts: {
|
|
45
|
+
admin: TAccountMetas[0];
|
|
46
|
+
config: TAccountMetas[1];
|
|
47
|
+
mint: TAccountMetas[2];
|
|
48
|
+
eventAuthority: TAccountMetas[3];
|
|
49
|
+
program: TAccountMetas[4];
|
|
50
|
+
};
|
|
51
|
+
data: SetCommitteeFloorInstructionData;
|
|
52
|
+
};
|
|
53
|
+
export declare function parseSetCommitteeFloorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetCommitteeFloorInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getAccountMetaFactory, } from "@solana/kit/program-client-core";
|
|
10
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export const SET_COMMITTEE_FLOOR_DISCRIMINATOR = new Uint8Array([124, 248, 31, 82, 112, 216, 14, 173]);
|
|
12
|
+
export function getSetCommitteeFloorDiscriminatorBytes() {
|
|
13
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(SET_COMMITTEE_FLOOR_DISCRIMINATOR);
|
|
14
|
+
}
|
|
15
|
+
export function getSetCommitteeFloorInstructionDataEncoder() {
|
|
16
|
+
return transformEncoder(getStructEncoder([
|
|
17
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
18
|
+
["floor", getU64Encoder()],
|
|
19
|
+
]), (value) => ({ ...value, discriminator: SET_COMMITTEE_FLOOR_DISCRIMINATOR }));
|
|
20
|
+
}
|
|
21
|
+
export function getSetCommitteeFloorInstructionDataDecoder() {
|
|
22
|
+
return getStructDecoder([
|
|
23
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
24
|
+
["floor", getU64Decoder()],
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
export function getSetCommitteeFloorInstructionDataCodec() {
|
|
28
|
+
return combineCodec(getSetCommitteeFloorInstructionDataEncoder(), getSetCommitteeFloorInstructionDataDecoder());
|
|
29
|
+
}
|
|
30
|
+
export function getSetCommitteeFloorInstruction(input, config) {
|
|
31
|
+
// Program address.
|
|
32
|
+
const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
|
|
33
|
+
// Account meta helper.
|
|
34
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
35
|
+
// Original accounts.
|
|
36
|
+
const originalAccounts = {
|
|
37
|
+
admin: { value: input.admin ?? null, isSigner: true, isWritable: false },
|
|
38
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: true },
|
|
39
|
+
mint: { value: input.mint ?? null, isSigner: false, isWritable: false },
|
|
40
|
+
eventAuthority: {
|
|
41
|
+
value: input.eventAuthority ?? null,
|
|
42
|
+
isSigner: false,
|
|
43
|
+
isWritable: false,
|
|
44
|
+
},
|
|
45
|
+
program: {
|
|
46
|
+
value: input.program ?? null,
|
|
47
|
+
isSigner: false,
|
|
48
|
+
isWritable: false,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
const accounts = originalAccounts;
|
|
52
|
+
// Original args.
|
|
53
|
+
const args = { ...input };
|
|
54
|
+
// Resolve default values.
|
|
55
|
+
if (!accounts.config.value) {
|
|
56
|
+
accounts.config.value =
|
|
57
|
+
"6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz";
|
|
58
|
+
}
|
|
59
|
+
return Object.freeze({
|
|
60
|
+
accounts: [
|
|
61
|
+
getAccountMeta("admin", accounts.admin),
|
|
62
|
+
getAccountMeta("config", accounts.config),
|
|
63
|
+
getAccountMeta("mint", accounts.mint),
|
|
64
|
+
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
65
|
+
getAccountMeta("program", accounts.program),
|
|
66
|
+
],
|
|
67
|
+
data: getSetCommitteeFloorInstructionDataEncoder().encode(args),
|
|
68
|
+
programAddress,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export function parseSetCommitteeFloorInstruction(instruction) {
|
|
72
|
+
if (instruction.accounts.length < 5) {
|
|
73
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
74
|
+
actualAccountMetas: instruction.accounts.length,
|
|
75
|
+
expectedAccountMetas: 5,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
let accountIndex = 0;
|
|
79
|
+
const getNextAccount = () => {
|
|
80
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
81
|
+
accountIndex += 1;
|
|
82
|
+
return accountMeta;
|
|
83
|
+
};
|
|
84
|
+
return {
|
|
85
|
+
programAddress: instruction.programAddress,
|
|
86
|
+
accounts: {
|
|
87
|
+
admin: getNextAccount(),
|
|
88
|
+
config: getNextAccount(),
|
|
89
|
+
mint: getNextAccount(),
|
|
90
|
+
eventAuthority: getNextAccount(),
|
|
91
|
+
program: getNextAccount(),
|
|
92
|
+
},
|
|
93
|
+
data: getSetCommitteeFloorInstructionDataDecoder().decode(instruction.data),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=setCommitteeFloor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setCommitteeFloor.js","sourceRoot":"","sources":["../../../../generated/client/instructions/setCommitteeFloor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AAC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