@intent-engine/core 0.1.40 → 0.1.42
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/claimBoard.d.ts +4 -0
- package/dist/generated/client/accounts/claimBoard.js +5 -1
- package/dist/generated/client/accounts/claimBoard.js.map +1 -1
- package/dist/generated/client/accounts/index.d.ts +1 -0
- package/dist/generated/client/accounts/index.js +1 -0
- package/dist/generated/client/accounts/index.js.map +1 -1
- package/dist/generated/client/accounts/standby.d.ts +40 -0
- package/dist/generated/client/accounts/standby.js +67 -0
- package/dist/generated/client/accounts/standby.js.map +1 -0
- package/dist/generated/client/errors/intentEngine.d.ts +11 -1
- package/dist/generated/client/errors/intentEngine.js +15 -0
- package/dist/generated/client/errors/intentEngine.js.map +1 -1
- package/dist/generated/client/events/index.d.ts +2 -0
- package/dist/generated/client/events/index.js +2 -0
- package/dist/generated/client/events/index.js.map +1 -1
- package/dist/generated/client/events/lineLeft.d.ts +30 -0
- package/dist/generated/client/events/lineLeft.js +42 -0
- package/dist/generated/client/events/lineLeft.js.map +1 -0
- package/dist/generated/client/events/stoodBy.d.ts +32 -0
- package/dist/generated/client/events/stoodBy.js +46 -0
- package/dist/generated/client/events/stoodBy.js.map +1 -0
- package/dist/generated/client/instructions/advance.d.ts +79 -0
- package/dist/generated/client/instructions/advance.js +167 -0
- package/dist/generated/client/instructions/advance.js.map +1 -0
- package/dist/generated/client/instructions/dropClaim.d.ts +29 -9
- package/dist/generated/client/instructions/dropClaim.js +41 -2
- package/dist/generated/client/instructions/dropClaim.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/leave.d.ts +68 -0
- package/dist/generated/client/instructions/leave.js +142 -0
- package/dist/generated/client/instructions/leave.js.map +1 -0
- package/dist/generated/client/instructions/standBy.d.ts +72 -0
- package/dist/generated/client/instructions/standBy.js +163 -0
- package/dist/generated/client/instructions/standBy.js.map +1 -0
- package/dist/generated/client/pdas/entry.d.ts +15 -0
- package/dist/generated/client/pdas/entry.js +20 -0
- package/dist/generated/client/pdas/entry.js.map +1 -0
- package/dist/generated/client/pdas/index.d.ts +1 -0
- package/dist/generated/client/pdas/index.js +1 -0
- package/dist/generated/client/pdas/index.js.map +1 -1
- package/dist/generated/client/programs/intentEngine.d.ts +121 -98
- package/dist/generated/client/programs/intentEngine.js +154 -98
- package/dist/generated/client/programs/intentEngine.js.map +1 -1
- package/dist/src/claims.d.ts +32 -2
- package/dist/src/claims.js +54 -2
- package/dist/src/claims.js.map +1 -1
- package/dist/src/describe.js +1 -1
- package/dist/src/describe.js.map +1 -1
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js +3 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/events.d.ts +3 -1
- package/dist/src/events.js +3 -1
- package/dist/src/events.js.map +1 -1
- package/dist/src/fee.d.ts +13 -0
- package/dist/src/fee.js +28 -0
- package/dist/src/fee.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/memo.d.ts +0 -9
- package/dist/src/memo.js +0 -31
- package/dist/src/memo.js.map +1 -1
- package/dist/src/sealed-delivery.d.ts +25 -0
- package/dist/src/sealed-delivery.js +163 -0
- package/dist/src/sealed-delivery.js.map +1 -0
- package/dist/src/sealed.d.ts +2 -0
- package/dist/src/sealed.js +8 -23
- package/dist/src/sealed.js.map +1 -1
- package/generated/idl.json +394 -0
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type Address, type ClientWithPayer, type ClientWithRpc, type ClientWithTransactionPlanning, type ClientWithTransactionSending, type ExtendedClient, type GetAccountInfoApi, type GetMultipleAccountsApi, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
9
|
import { type SelfFetchFunctions, type SelfPlanAndSendFunctions } from "@solana/kit/program-client-core";
|
|
10
|
-
import { getClaimBoardCodec, getCommitteeCodec, getConfigCodec, getIntentCodec, getMandateCodec, getMintCapCodec, getProfileCodec, getUserStateCodec, type ClaimBoard, type ClaimBoardArgs, type Committee, type CommitteeArgs, type Config, type ConfigArgs, type Intent, type IntentArgs, type Mandate, type MandateArgs, type MintCap, type MintCapArgs, type Profile, type ProfileArgs, type UserState, type UserStateArgs } from "../accounts/index.js";
|
|
11
|
-
import { getAcceptAdminInstruction, getAdvanceEpochInstructionAsync, getAdvanceNonceInstructionAsync, getBeginFillInstructionAsync, getCancelIntentInstructionAsync, getClaimJobInstructionAsync, getCloseIntentInstructionAsync, getCloseProfileInstructionAsync, getCreateCommitteeInstructionAsync, getCreateIntentByAgentInstructionAsync, getCreateIntentInstructionAsync, getCreateIntentSignedInstructionAsync, getCreateMandateInstructionAsync, getCreateProfileInstructionAsync, getDropClaimInstructionAsync, getEndFillInstruction, getExpireIntentInstructionAsync, getFillAttestedCommitteeInstructionAsync, getFillAttestedInstructionAsync, getFillAttestedSplitCommitteeInstructionAsync, getFillAttestedSplitInstructionAsync, getFillIntentInstructionAsync, getInitConfigInstructionAsync, getInitUserInstructionAsync, getLowerPauseInstruction, getOpenClaimsInstructionAsync, getProposeAdminInstruction, getRaisePauseInstruction, getRevokeMandateInstruction, getSetCapsRequiredInstruction, getSetMintCapInstructionAsync, getSettleClaimsInstructionAsync, getUpdateConfigInstruction, getUpdateEconomicsInstruction, getUpdateProfileInstructionAsync, type AcceptAdminInput, type AdvanceEpochAsyncInput, type AdvanceNonceAsyncInput, type BeginFillAsyncInput, type CancelIntentAsyncInput, type ClaimJobAsyncInput, type CloseIntentAsyncInput, type CloseProfileAsyncInput, type CreateCommitteeAsyncInput, type CreateIntentAsyncInput, type CreateIntentByAgentAsyncInput, type CreateIntentSignedAsyncInput, type CreateMandateAsyncInput, type CreateProfileAsyncInput, type DropClaimAsyncInput, type EndFillInput, type ExpireIntentAsyncInput, type FillAttestedAsyncInput, type FillAttestedCommitteeAsyncInput, type FillAttestedSplitAsyncInput, type FillAttestedSplitCommitteeAsyncInput, type FillIntentAsyncInput, type InitConfigAsyncInput, type InitUserAsyncInput, type LowerPauseInput, type OpenClaimsAsyncInput, type ParsedAcceptAdminInstruction, type ParsedAdvanceEpochInstruction, type ParsedAdvanceNonceInstruction, type ParsedBeginFillInstruction, type ParsedCancelIntentInstruction, type ParsedClaimJobInstruction, type ParsedCloseIntentInstruction, type ParsedCloseProfileInstruction, type ParsedCreateCommitteeInstruction, type ParsedCreateIntentByAgentInstruction, type ParsedCreateIntentInstruction, type ParsedCreateIntentSignedInstruction, type ParsedCreateMandateInstruction, type ParsedCreateProfileInstruction, type ParsedDropClaimInstruction, type ParsedEndFillInstruction, type ParsedExpireIntentInstruction, type ParsedFillAttestedCommitteeInstruction, type ParsedFillAttestedInstruction, type ParsedFillAttestedSplitCommitteeInstruction, type ParsedFillAttestedSplitInstruction, type ParsedFillIntentInstruction, type ParsedInitConfigInstruction, type ParsedInitUserInstruction, type ParsedLowerPauseInstruction, type ParsedOpenClaimsInstruction, type ParsedProposeAdminInstruction, type ParsedRaisePauseInstruction, type ParsedRevokeMandateInstruction, type ParsedSetCapsRequiredInstruction, type ParsedSetMintCapInstruction, type ParsedSettleClaimsInstruction, type ParsedUpdateConfigInstruction, type ParsedUpdateEconomicsInstruction, type ParsedUpdateProfileInstruction, type ProposeAdminInput, type RaisePauseInput, type RevokeMandateInput, type SetCapsRequiredInput, type SetMintCapAsyncInput, type SettleClaimsAsyncInput, type UpdateConfigInput, type UpdateEconomicsInput, type UpdateProfileAsyncInput } from "../instructions/index.js";
|
|
12
|
-
import { findBoardPda, findCommitteePda, findConfigPda, findDelegatePda, findMintCapPda, findProfilePda, findUserStatePda, findVaultPda } from "../pdas/index.js";
|
|
10
|
+
import { getClaimBoardCodec, getCommitteeCodec, getConfigCodec, getIntentCodec, getMandateCodec, getMintCapCodec, getProfileCodec, getStandbyCodec, getUserStateCodec, type ClaimBoard, type ClaimBoardArgs, type Committee, type CommitteeArgs, type Config, type ConfigArgs, type Intent, type IntentArgs, type Mandate, type MandateArgs, type MintCap, type MintCapArgs, type Profile, type ProfileArgs, type Standby, type StandbyArgs, type UserState, type UserStateArgs } from "../accounts/index.js";
|
|
11
|
+
import { getAcceptAdminInstruction, getAdvanceEpochInstructionAsync, getAdvanceInstructionAsync, getAdvanceNonceInstructionAsync, getBeginFillInstructionAsync, getCancelIntentInstructionAsync, getClaimJobInstructionAsync, getCloseIntentInstructionAsync, getCloseProfileInstructionAsync, getCreateCommitteeInstructionAsync, getCreateIntentByAgentInstructionAsync, getCreateIntentInstructionAsync, getCreateIntentSignedInstructionAsync, getCreateMandateInstructionAsync, getCreateProfileInstructionAsync, getDropClaimInstructionAsync, getEndFillInstruction, getExpireIntentInstructionAsync, getFillAttestedCommitteeInstructionAsync, getFillAttestedInstructionAsync, getFillAttestedSplitCommitteeInstructionAsync, getFillAttestedSplitInstructionAsync, getFillIntentInstructionAsync, getInitConfigInstructionAsync, getInitUserInstructionAsync, getLeaveInstructionAsync, getLowerPauseInstruction, getOpenClaimsInstructionAsync, getProposeAdminInstruction, getRaisePauseInstruction, getRevokeMandateInstruction, getSetCapsRequiredInstruction, getSetMintCapInstructionAsync, getSettleClaimsInstructionAsync, getStandByInstructionAsync, getUpdateConfigInstruction, getUpdateEconomicsInstruction, getUpdateProfileInstructionAsync, type AcceptAdminInput, type AdvanceAsyncInput, type AdvanceEpochAsyncInput, type AdvanceNonceAsyncInput, type BeginFillAsyncInput, type CancelIntentAsyncInput, type ClaimJobAsyncInput, type CloseIntentAsyncInput, type CloseProfileAsyncInput, type CreateCommitteeAsyncInput, type CreateIntentAsyncInput, type CreateIntentByAgentAsyncInput, type CreateIntentSignedAsyncInput, type CreateMandateAsyncInput, type CreateProfileAsyncInput, type DropClaimAsyncInput, type EndFillInput, type ExpireIntentAsyncInput, type FillAttestedAsyncInput, type FillAttestedCommitteeAsyncInput, type FillAttestedSplitAsyncInput, type FillAttestedSplitCommitteeAsyncInput, type FillIntentAsyncInput, type InitConfigAsyncInput, type InitUserAsyncInput, type LeaveAsyncInput, type LowerPauseInput, type OpenClaimsAsyncInput, type ParsedAcceptAdminInstruction, type ParsedAdvanceEpochInstruction, type ParsedAdvanceInstruction, type ParsedAdvanceNonceInstruction, type ParsedBeginFillInstruction, type ParsedCancelIntentInstruction, type ParsedClaimJobInstruction, type ParsedCloseIntentInstruction, type ParsedCloseProfileInstruction, type ParsedCreateCommitteeInstruction, type ParsedCreateIntentByAgentInstruction, type ParsedCreateIntentInstruction, type ParsedCreateIntentSignedInstruction, type ParsedCreateMandateInstruction, type ParsedCreateProfileInstruction, type ParsedDropClaimInstruction, type ParsedEndFillInstruction, type ParsedExpireIntentInstruction, type ParsedFillAttestedCommitteeInstruction, type ParsedFillAttestedInstruction, type ParsedFillAttestedSplitCommitteeInstruction, type ParsedFillAttestedSplitInstruction, type ParsedFillIntentInstruction, type ParsedInitConfigInstruction, type ParsedInitUserInstruction, type ParsedLeaveInstruction, type ParsedLowerPauseInstruction, type ParsedOpenClaimsInstruction, type ParsedProposeAdminInstruction, type ParsedRaisePauseInstruction, type ParsedRevokeMandateInstruction, type ParsedSetCapsRequiredInstruction, type ParsedSetMintCapInstruction, type ParsedSettleClaimsInstruction, type ParsedStandByInstruction, type ParsedUpdateConfigInstruction, type ParsedUpdateEconomicsInstruction, type ParsedUpdateProfileInstruction, type ProposeAdminInput, type RaisePauseInput, type RevokeMandateInput, type SetCapsRequiredInput, type SetMintCapAsyncInput, type SettleClaimsAsyncInput, type StandByAsyncInput, type UpdateConfigInput, type UpdateEconomicsInput, type UpdateProfileAsyncInput } from "../instructions/index.js";
|
|
12
|
+
import { findBoardPda, findCommitteePda, findConfigPda, findDelegatePda, findEntryPda, findMintCapPda, findProfilePda, findUserStatePda, findVaultPda } from "../pdas/index.js";
|
|
13
13
|
export declare const INTENT_ENGINE_PROGRAM_ADDRESS: Address<"GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU">;
|
|
14
14
|
export declare const IntentEngineAccount: {
|
|
15
15
|
readonly 0: "ClaimBoard";
|
|
@@ -19,7 +19,8 @@ export declare const IntentEngineAccount: {
|
|
|
19
19
|
readonly 4: "Mandate";
|
|
20
20
|
readonly 5: "MintCap";
|
|
21
21
|
readonly 6: "Profile";
|
|
22
|
-
readonly 7: "
|
|
22
|
+
readonly 7: "Standby";
|
|
23
|
+
readonly 8: "UserState";
|
|
23
24
|
readonly ClaimBoard: 0;
|
|
24
25
|
readonly Committee: 1;
|
|
25
26
|
readonly Config: 2;
|
|
@@ -27,7 +28,8 @@ export declare const IntentEngineAccount: {
|
|
|
27
28
|
readonly Mandate: 4;
|
|
28
29
|
readonly MintCap: 5;
|
|
29
30
|
readonly Profile: 6;
|
|
30
|
-
readonly
|
|
31
|
+
readonly Standby: 7;
|
|
32
|
+
readonly UserState: 8;
|
|
31
33
|
};
|
|
32
34
|
export type IntentEngineAccount = (typeof IntentEngineAccount)[Exclude<keyof typeof IntentEngineAccount, number>];
|
|
33
35
|
export declare function identifyIntentEngineAccount(account: {
|
|
@@ -58,18 +60,20 @@ export declare const IntentEngineEvent: {
|
|
|
58
60
|
readonly 21: "IntentFilled";
|
|
59
61
|
readonly 22: "IntentSplit";
|
|
60
62
|
readonly 23: "JobClaimed";
|
|
61
|
-
readonly 24: "
|
|
62
|
-
readonly 25: "
|
|
63
|
-
readonly 26: "
|
|
64
|
-
readonly 27: "
|
|
65
|
-
readonly 28: "
|
|
66
|
-
readonly 29: "
|
|
67
|
-
readonly 30: "
|
|
68
|
-
readonly 31: "
|
|
69
|
-
readonly 32: "
|
|
70
|
-
readonly 33: "
|
|
71
|
-
readonly 34: "
|
|
72
|
-
readonly 35: "
|
|
63
|
+
readonly 24: "LineLeft";
|
|
64
|
+
readonly 25: "MandateClosed";
|
|
65
|
+
readonly 26: "MandateCreated";
|
|
66
|
+
readonly 27: "MandateUsed";
|
|
67
|
+
readonly 28: "MintCapSet";
|
|
68
|
+
readonly 29: "NonceAdvanced";
|
|
69
|
+
readonly 30: "PauseLowered";
|
|
70
|
+
readonly 31: "PauseRaised";
|
|
71
|
+
readonly 32: "ProfileClosed";
|
|
72
|
+
readonly 33: "ProfileSet";
|
|
73
|
+
readonly 34: "RelayerPaid";
|
|
74
|
+
readonly 35: "StakeMoved";
|
|
75
|
+
readonly 36: "StoodBy";
|
|
76
|
+
readonly 37: "UserInitialized";
|
|
73
77
|
readonly AdminAccepted: 0;
|
|
74
78
|
readonly AdminProposed: 1;
|
|
75
79
|
readonly AgentPaid: 2;
|
|
@@ -94,18 +98,20 @@ export declare const IntentEngineEvent: {
|
|
|
94
98
|
readonly IntentFilled: 21;
|
|
95
99
|
readonly IntentSplit: 22;
|
|
96
100
|
readonly JobClaimed: 23;
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
101
|
+
readonly LineLeft: 24;
|
|
102
|
+
readonly MandateClosed: 25;
|
|
103
|
+
readonly MandateCreated: 26;
|
|
104
|
+
readonly MandateUsed: 27;
|
|
105
|
+
readonly MintCapSet: 28;
|
|
106
|
+
readonly NonceAdvanced: 29;
|
|
107
|
+
readonly PauseLowered: 30;
|
|
108
|
+
readonly PauseRaised: 31;
|
|
109
|
+
readonly ProfileClosed: 32;
|
|
110
|
+
readonly ProfileSet: 33;
|
|
111
|
+
readonly RelayerPaid: 34;
|
|
112
|
+
readonly StakeMoved: 35;
|
|
113
|
+
readonly StoodBy: 36;
|
|
114
|
+
readonly UserInitialized: 37;
|
|
109
115
|
};
|
|
110
116
|
export type IntentEngineEvent = (typeof IntentEngineEvent)[Exclude<keyof typeof IntentEngineEvent, number>];
|
|
111
117
|
export declare function identifyIntentEngineEvent(event: {
|
|
@@ -113,75 +119,81 @@ export declare function identifyIntentEngineEvent(event: {
|
|
|
113
119
|
} | ReadonlyUint8Array): IntentEngineEvent;
|
|
114
120
|
export declare const IntentEngineInstruction: {
|
|
115
121
|
readonly 0: "AcceptAdmin";
|
|
116
|
-
readonly 1: "
|
|
117
|
-
readonly 2: "
|
|
118
|
-
readonly 3: "
|
|
119
|
-
readonly 4: "
|
|
120
|
-
readonly 5: "
|
|
121
|
-
readonly 6: "
|
|
122
|
-
readonly 7: "
|
|
123
|
-
readonly 8: "
|
|
124
|
-
readonly 9: "
|
|
125
|
-
readonly 10: "
|
|
126
|
-
readonly 11: "
|
|
127
|
-
readonly 12: "
|
|
128
|
-
readonly 13: "
|
|
129
|
-
readonly 14: "
|
|
130
|
-
readonly 15: "
|
|
131
|
-
readonly 16: "
|
|
132
|
-
readonly 17: "
|
|
133
|
-
readonly 18: "
|
|
134
|
-
readonly 19: "
|
|
135
|
-
readonly 20: "
|
|
136
|
-
readonly 21: "
|
|
137
|
-
readonly 22: "
|
|
138
|
-
readonly 23: "
|
|
139
|
-
readonly 24: "
|
|
140
|
-
readonly 25: "
|
|
141
|
-
readonly 26: "
|
|
142
|
-
readonly 27: "
|
|
143
|
-
readonly 28: "
|
|
144
|
-
readonly 29: "
|
|
145
|
-
readonly 30: "
|
|
146
|
-
readonly 31: "
|
|
147
|
-
readonly 32: "
|
|
148
|
-
readonly 33: "
|
|
149
|
-
readonly 34: "
|
|
122
|
+
readonly 1: "Advance";
|
|
123
|
+
readonly 2: "AdvanceEpoch";
|
|
124
|
+
readonly 3: "AdvanceNonce";
|
|
125
|
+
readonly 4: "BeginFill";
|
|
126
|
+
readonly 5: "CancelIntent";
|
|
127
|
+
readonly 6: "ClaimJob";
|
|
128
|
+
readonly 7: "CloseIntent";
|
|
129
|
+
readonly 8: "CloseProfile";
|
|
130
|
+
readonly 9: "CreateCommittee";
|
|
131
|
+
readonly 10: "CreateIntent";
|
|
132
|
+
readonly 11: "CreateIntentByAgent";
|
|
133
|
+
readonly 12: "CreateIntentSigned";
|
|
134
|
+
readonly 13: "CreateMandate";
|
|
135
|
+
readonly 14: "CreateProfile";
|
|
136
|
+
readonly 15: "DropClaim";
|
|
137
|
+
readonly 16: "EndFill";
|
|
138
|
+
readonly 17: "ExpireIntent";
|
|
139
|
+
readonly 18: "FillAttested";
|
|
140
|
+
readonly 19: "FillAttestedCommittee";
|
|
141
|
+
readonly 20: "FillAttestedSplit";
|
|
142
|
+
readonly 21: "FillAttestedSplitCommittee";
|
|
143
|
+
readonly 22: "FillIntent";
|
|
144
|
+
readonly 23: "InitConfig";
|
|
145
|
+
readonly 24: "InitUser";
|
|
146
|
+
readonly 25: "Leave";
|
|
147
|
+
readonly 26: "LowerPause";
|
|
148
|
+
readonly 27: "OpenClaims";
|
|
149
|
+
readonly 28: "ProposeAdmin";
|
|
150
|
+
readonly 29: "RaisePause";
|
|
151
|
+
readonly 30: "RevokeMandate";
|
|
152
|
+
readonly 31: "SetCapsRequired";
|
|
153
|
+
readonly 32: "SetMintCap";
|
|
154
|
+
readonly 33: "SettleClaims";
|
|
155
|
+
readonly 34: "StandBy";
|
|
156
|
+
readonly 35: "UpdateConfig";
|
|
157
|
+
readonly 36: "UpdateEconomics";
|
|
158
|
+
readonly 37: "UpdateProfile";
|
|
150
159
|
readonly AcceptAdmin: 0;
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
177
|
-
readonly
|
|
178
|
-
readonly
|
|
179
|
-
readonly
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
160
|
+
readonly Advance: 1;
|
|
161
|
+
readonly AdvanceEpoch: 2;
|
|
162
|
+
readonly AdvanceNonce: 3;
|
|
163
|
+
readonly BeginFill: 4;
|
|
164
|
+
readonly CancelIntent: 5;
|
|
165
|
+
readonly ClaimJob: 6;
|
|
166
|
+
readonly CloseIntent: 7;
|
|
167
|
+
readonly CloseProfile: 8;
|
|
168
|
+
readonly CreateCommittee: 9;
|
|
169
|
+
readonly CreateIntent: 10;
|
|
170
|
+
readonly CreateIntentByAgent: 11;
|
|
171
|
+
readonly CreateIntentSigned: 12;
|
|
172
|
+
readonly CreateMandate: 13;
|
|
173
|
+
readonly CreateProfile: 14;
|
|
174
|
+
readonly DropClaim: 15;
|
|
175
|
+
readonly EndFill: 16;
|
|
176
|
+
readonly ExpireIntent: 17;
|
|
177
|
+
readonly FillAttested: 18;
|
|
178
|
+
readonly FillAttestedCommittee: 19;
|
|
179
|
+
readonly FillAttestedSplit: 20;
|
|
180
|
+
readonly FillAttestedSplitCommittee: 21;
|
|
181
|
+
readonly FillIntent: 22;
|
|
182
|
+
readonly InitConfig: 23;
|
|
183
|
+
readonly InitUser: 24;
|
|
184
|
+
readonly Leave: 25;
|
|
185
|
+
readonly LowerPause: 26;
|
|
186
|
+
readonly OpenClaims: 27;
|
|
187
|
+
readonly ProposeAdmin: 28;
|
|
188
|
+
readonly RaisePause: 29;
|
|
189
|
+
readonly RevokeMandate: 30;
|
|
190
|
+
readonly SetCapsRequired: 31;
|
|
191
|
+
readonly SetMintCap: 32;
|
|
192
|
+
readonly SettleClaims: 33;
|
|
193
|
+
readonly StandBy: 34;
|
|
194
|
+
readonly UpdateConfig: 35;
|
|
195
|
+
readonly UpdateEconomics: 36;
|
|
196
|
+
readonly UpdateProfile: 37;
|
|
185
197
|
};
|
|
186
198
|
export type IntentEngineInstruction = (typeof IntentEngineInstruction)[Exclude<keyof typeof IntentEngineInstruction, number>];
|
|
187
199
|
export declare function identifyIntentEngineInstruction(instruction: {
|
|
@@ -190,6 +202,8 @@ export declare function identifyIntentEngineInstruction(instruction: {
|
|
|
190
202
|
export type ParsedIntentEngineInstruction<TProgram extends string = "GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU"> = ({
|
|
191
203
|
instructionType: typeof IntentEngineInstruction.AcceptAdmin;
|
|
192
204
|
} & ParsedAcceptAdminInstruction<TProgram>) | ({
|
|
205
|
+
instructionType: typeof IntentEngineInstruction.Advance;
|
|
206
|
+
} & ParsedAdvanceInstruction<TProgram>) | ({
|
|
193
207
|
instructionType: typeof IntentEngineInstruction.AdvanceEpoch;
|
|
194
208
|
} & ParsedAdvanceEpochInstruction<TProgram>) | ({
|
|
195
209
|
instructionType: typeof IntentEngineInstruction.AdvanceNonce;
|
|
@@ -236,6 +250,8 @@ export type ParsedIntentEngineInstruction<TProgram extends string = "GHFB9q4fhhq
|
|
|
236
250
|
} & ParsedInitConfigInstruction<TProgram>) | ({
|
|
237
251
|
instructionType: typeof IntentEngineInstruction.InitUser;
|
|
238
252
|
} & ParsedInitUserInstruction<TProgram>) | ({
|
|
253
|
+
instructionType: typeof IntentEngineInstruction.Leave;
|
|
254
|
+
} & ParsedLeaveInstruction<TProgram>) | ({
|
|
239
255
|
instructionType: typeof IntentEngineInstruction.LowerPause;
|
|
240
256
|
} & ParsedLowerPauseInstruction<TProgram>) | ({
|
|
241
257
|
instructionType: typeof IntentEngineInstruction.OpenClaims;
|
|
@@ -252,6 +268,8 @@ export type ParsedIntentEngineInstruction<TProgram extends string = "GHFB9q4fhhq
|
|
|
252
268
|
} & ParsedSetMintCapInstruction<TProgram>) | ({
|
|
253
269
|
instructionType: typeof IntentEngineInstruction.SettleClaims;
|
|
254
270
|
} & ParsedSettleClaimsInstruction<TProgram>) | ({
|
|
271
|
+
instructionType: typeof IntentEngineInstruction.StandBy;
|
|
272
|
+
} & ParsedStandByInstruction<TProgram>) | ({
|
|
255
273
|
instructionType: typeof IntentEngineInstruction.UpdateConfig;
|
|
256
274
|
} & ParsedUpdateConfigInstruction<TProgram>) | ({
|
|
257
275
|
instructionType: typeof IntentEngineInstruction.UpdateEconomics;
|
|
@@ -275,10 +293,12 @@ export type IntentEnginePluginAccounts = {
|
|
|
275
293
|
mandate: ReturnType<typeof getMandateCodec> & SelfFetchFunctions<MandateArgs, Mandate>;
|
|
276
294
|
mintCap: ReturnType<typeof getMintCapCodec> & SelfFetchFunctions<MintCapArgs, MintCap>;
|
|
277
295
|
profile: ReturnType<typeof getProfileCodec> & SelfFetchFunctions<ProfileArgs, Profile>;
|
|
296
|
+
standby: ReturnType<typeof getStandbyCodec> & SelfFetchFunctions<StandbyArgs, Standby>;
|
|
278
297
|
userState: ReturnType<typeof getUserStateCodec> & SelfFetchFunctions<UserStateArgs, UserState>;
|
|
279
298
|
};
|
|
280
299
|
export type IntentEnginePluginInstructions = {
|
|
281
300
|
acceptAdmin: (input: AcceptAdminInput) => ReturnType<typeof getAcceptAdminInstruction> & SelfPlanAndSendFunctions;
|
|
301
|
+
advance: (input: AdvanceAsyncInput) => ReturnType<typeof getAdvanceInstructionAsync> & SelfPlanAndSendFunctions;
|
|
282
302
|
advanceEpoch: (input: AdvanceEpochAsyncInput) => ReturnType<typeof getAdvanceEpochInstructionAsync> & SelfPlanAndSendFunctions;
|
|
283
303
|
advanceNonce: (input: AdvanceNonceAsyncInput) => ReturnType<typeof getAdvanceNonceInstructionAsync> & SelfPlanAndSendFunctions;
|
|
284
304
|
beginFill: (input: BeginFillAsyncInput) => ReturnType<typeof getBeginFillInstructionAsync> & SelfPlanAndSendFunctions;
|
|
@@ -302,6 +322,7 @@ export type IntentEnginePluginInstructions = {
|
|
|
302
322
|
fillIntent: (input: FillIntentAsyncInput) => ReturnType<typeof getFillIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
303
323
|
initConfig: (input: InitConfigAsyncInput) => ReturnType<typeof getInitConfigInstructionAsync> & SelfPlanAndSendFunctions;
|
|
304
324
|
initUser: (input: InitUserAsyncInput) => ReturnType<typeof getInitUserInstructionAsync> & SelfPlanAndSendFunctions;
|
|
325
|
+
leave: (input: LeaveAsyncInput) => ReturnType<typeof getLeaveInstructionAsync> & SelfPlanAndSendFunctions;
|
|
305
326
|
lowerPause: (input: LowerPauseInput) => ReturnType<typeof getLowerPauseInstruction> & SelfPlanAndSendFunctions;
|
|
306
327
|
openClaims: (input: OpenClaimsAsyncInput) => ReturnType<typeof getOpenClaimsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
307
328
|
proposeAdmin: (input: ProposeAdminInput) => ReturnType<typeof getProposeAdminInstruction> & SelfPlanAndSendFunctions;
|
|
@@ -310,18 +331,20 @@ export type IntentEnginePluginInstructions = {
|
|
|
310
331
|
setCapsRequired: (input: SetCapsRequiredInput) => ReturnType<typeof getSetCapsRequiredInstruction> & SelfPlanAndSendFunctions;
|
|
311
332
|
setMintCap: (input: MakeOptional<SetMintCapAsyncInput, "payer">) => ReturnType<typeof getSetMintCapInstructionAsync> & SelfPlanAndSendFunctions;
|
|
312
333
|
settleClaims: (input: SettleClaimsAsyncInput) => ReturnType<typeof getSettleClaimsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
334
|
+
standBy: (input: StandByAsyncInput) => ReturnType<typeof getStandByInstructionAsync> & SelfPlanAndSendFunctions;
|
|
313
335
|
updateConfig: (input: UpdateConfigInput) => ReturnType<typeof getUpdateConfigInstruction> & SelfPlanAndSendFunctions;
|
|
314
336
|
updateEconomics: (input: UpdateEconomicsInput) => ReturnType<typeof getUpdateEconomicsInstruction> & SelfPlanAndSendFunctions;
|
|
315
337
|
updateProfile: (input: UpdateProfileAsyncInput) => ReturnType<typeof getUpdateProfileInstructionAsync> & SelfPlanAndSendFunctions;
|
|
316
338
|
};
|
|
317
339
|
export type IntentEnginePluginPdas = {
|
|
340
|
+
board: typeof findBoardPda;
|
|
318
341
|
userState: typeof findUserStatePda;
|
|
319
342
|
vault: typeof findVaultPda;
|
|
320
|
-
board: typeof findBoardPda;
|
|
321
343
|
profile: typeof findProfilePda;
|
|
322
344
|
committee: typeof findCommitteePda;
|
|
323
345
|
delegate: typeof findDelegatePda;
|
|
324
346
|
config: typeof findConfigPda;
|
|
347
|
+
entry: typeof findEntryPda;
|
|
325
348
|
mintCap: typeof findMintCapPda;
|
|
326
349
|
};
|
|
327
350
|
export type IntentEnginePluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|