@intent-engine/core 0.1.49 → 0.1.51
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 +2 -0
- package/dist/generated/client/accounts/claimBoard.js +4 -2
- package/dist/generated/client/accounts/claimBoard.js.map +1 -1
- package/dist/generated/client/accounts/claimList.d.ts +44 -0
- package/dist/generated/client/accounts/claimList.js +71 -0
- package/dist/generated/client/accounts/claimList.js.map +1 -0
- 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/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/claimantsListed.d.ts +26 -0
- package/dist/generated/client/events/claimantsListed.js +44 -0
- package/dist/generated/client/events/claimantsListed.js.map +1 -0
- package/dist/generated/client/events/index.d.ts +1 -0
- package/dist/generated/client/events/index.js +1 -0
- package/dist/generated/client/events/index.js.map +1 -1
- package/dist/generated/client/instructions/claimJob.d.ts +13 -9
- package/dist/generated/client/instructions/claimJob.js +21 -2
- package/dist/generated/client/instructions/claimJob.js.map +1 -1
- package/dist/generated/client/instructions/extendClaimants.d.ts +64 -0
- package/dist/generated/client/instructions/extendClaimants.js +142 -0
- package/dist/generated/client/instructions/extendClaimants.js.map +1 -0
- 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/listClaimants.d.ts +76 -0
- package/dist/generated/client/instructions/listClaimants.js +178 -0
- package/dist/generated/client/instructions/listClaimants.js.map +1 -0
- package/dist/generated/client/instructions/openClaimsListed.d.ts +84 -0
- package/dist/generated/client/instructions/openClaimsListed.js +180 -0
- package/dist/generated/client/instructions/openClaimsListed.js.map +1 -0
- package/dist/generated/client/instructions/settleClaims.d.ts +13 -9
- package/dist/generated/client/instructions/settleClaims.js +15 -2
- package/dist/generated/client/instructions/settleClaims.js.map +1 -1
- package/dist/generated/client/instructions/standBy.d.ts +13 -9
- package/dist/generated/client/instructions/standBy.js +21 -2
- package/dist/generated/client/instructions/standBy.js.map +1 -1
- package/dist/generated/client/pdas/claimList.d.ts +14 -0
- package/dist/generated/client/pdas/claimList.js +19 -0
- package/dist/generated/client/pdas/claimList.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 +154 -133
- package/dist/generated/client/programs/intentEngine.js +184 -133
- package/dist/generated/client/programs/intentEngine.js.map +1 -1
- package/dist/src/claim-list.d.ts +37 -0
- package/dist/src/claim-list.js +59 -0
- package/dist/src/claim-list.js.map +1 -0
- package/dist/src/claims.d.ts +6 -3
- package/dist/src/claims.js +5 -2
- package/dist/src/claims.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 +2 -1
- package/dist/src/events.js +2 -1
- package/dist/src/events.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/sealed-delivery.d.ts +1 -4
- package/dist/src/sealed-delivery.js.map +1 -1
- package/dist/src/sealed.d.ts +13 -5
- package/dist/src/sealed.js +150 -58
- package/dist/src/sealed.js.map +1 -1
- package/dist/src/versions.d.ts +1 -0
- package/dist/src/versions.js +3 -1
- package/dist/src/versions.js.map +1 -1
- package/generated/idl.json +489 -1
- package/package.json +1 -1
|
@@ -7,35 +7,40 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { assertIsInstructionWithAccounts, containsBytes, extendClient, fixEncoderSize, getBytesEncoder, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION, SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE, SolanaError, } from "@solana/kit";
|
|
9
9
|
import { addSelfFetchFunctions, addSelfPlanAndSendFunctions, } from "@solana/kit/program-client-core";
|
|
10
|
-
import { getClaimBoardCodec, getCommitteeCodec, getConfigCodec, getIntentCodec, getMandateCodec, getMintCapCodec, getProfileCodec, getStandbyCodec, getUserStateCodec, } from "../accounts/index.js";
|
|
11
|
-
import { getAcceptAdminInstruction, getAdvanceEpochInstructionAsync, getAdvanceInstructionAsync, getAdvanceNonceInstructionAsync, getBeginFillInstructionAsync, getCancelIntentInstructionAsync, getClaimJobInstructionAsync, getCloseIntentInstructionAsync, getCloseLegacyInstruction, getCloseProfileInstructionAsync, getCreateCommitteeInstructionAsync, getCreateIntentByAgentInstructionAsync, getCreateIntentInstructionAsync, getCreateIntentSignedInstructionAsync, getCreateMandateInstructionAsync, getCreateProfileInstructionAsync, getDropClaimInstructionAsync, getEndFillInstruction, getExpireIntentInstructionAsync, getFillAttestedCommitteeInstructionAsync, getFillAttestedInstructionAsync, getFillAttestedSplitCommitteeInstructionAsync, getFillAttestedSplitInstructionAsync, getFillIntentInstructionAsync, getInitConfigInstructionAsync, getInitUserInstructionAsync, getLeaveInstructionAsync, getLowerPauseInstruction, getMigrateInstruction, getOpenClaimsInstructionAsync, getProposeAdminInstruction, getRaisePauseInstruction, getRevokeMandateInstruction, getSetCapsRequiredInstruction, getSetCommitteeFloorInstruction, getSetMintCapInstructionAsync, getSettleClaimsInstructionAsync, getStandByInstructionAsync, getUpdateConfigInstruction, getUpdateEconomicsInstruction, getUpdateProfileInstructionAsync, parseAcceptAdminInstruction, parseAdvanceEpochInstruction, parseAdvanceInstruction, parseAdvanceNonceInstruction, parseBeginFillInstruction, parseCancelIntentInstruction, parseClaimJobInstruction, parseCloseIntentInstruction, parseCloseLegacyInstruction, parseCloseProfileInstruction, parseCreateCommitteeInstruction, parseCreateIntentByAgentInstruction, parseCreateIntentInstruction, parseCreateIntentSignedInstruction, parseCreateMandateInstruction, parseCreateProfileInstruction, parseDropClaimInstruction, parseEndFillInstruction, parseExpireIntentInstruction, parseFillAttestedCommitteeInstruction, parseFillAttestedInstruction, parseFillAttestedSplitCommitteeInstruction, parseFillAttestedSplitInstruction, parseFillIntentInstruction, parseInitConfigInstruction, parseInitUserInstruction, parseLeaveInstruction, parseLowerPauseInstruction, parseMigrateInstruction, parseOpenClaimsInstruction, parseProposeAdminInstruction, parseRaisePauseInstruction, parseRevokeMandateInstruction, parseSetCapsRequiredInstruction, parseSetCommitteeFloorInstruction, parseSetMintCapInstruction, parseSettleClaimsInstruction, parseStandByInstruction, parseUpdateConfigInstruction, parseUpdateEconomicsInstruction, parseUpdateProfileInstruction, } from "../instructions/index.js";
|
|
12
|
-
import { findBoardPda, findCommitteePda, findConfigPda, findDelegatePda, findEntryPda, findMintCapPda, findProfilePda, findUserStatePda, findVaultPda, } from "../pdas/index.js";
|
|
10
|
+
import { getClaimBoardCodec, getClaimListCodec, getCommitteeCodec, getConfigCodec, getIntentCodec, getMandateCodec, getMintCapCodec, getProfileCodec, getStandbyCodec, getUserStateCodec, } from "../accounts/index.js";
|
|
11
|
+
import { getAcceptAdminInstruction, getAdvanceEpochInstructionAsync, getAdvanceInstructionAsync, getAdvanceNonceInstructionAsync, getBeginFillInstructionAsync, getCancelIntentInstructionAsync, getClaimJobInstructionAsync, getCloseIntentInstructionAsync, getCloseLegacyInstruction, getCloseProfileInstructionAsync, getCreateCommitteeInstructionAsync, getCreateIntentByAgentInstructionAsync, getCreateIntentInstructionAsync, getCreateIntentSignedInstructionAsync, getCreateMandateInstructionAsync, getCreateProfileInstructionAsync, getDropClaimInstructionAsync, getEndFillInstruction, getExpireIntentInstructionAsync, getExtendClaimantsInstructionAsync, getFillAttestedCommitteeInstructionAsync, getFillAttestedInstructionAsync, getFillAttestedSplitCommitteeInstructionAsync, getFillAttestedSplitInstructionAsync, getFillIntentInstructionAsync, getInitConfigInstructionAsync, getInitUserInstructionAsync, getLeaveInstructionAsync, getListClaimantsInstructionAsync, getLowerPauseInstruction, getMigrateInstruction, getOpenClaimsInstructionAsync, getOpenClaimsListedInstructionAsync, getProposeAdminInstruction, getRaisePauseInstruction, getRevokeMandateInstruction, getSetCapsRequiredInstruction, getSetCommitteeFloorInstruction, getSetMintCapInstructionAsync, getSettleClaimsInstructionAsync, getStandByInstructionAsync, getUpdateConfigInstruction, getUpdateEconomicsInstruction, getUpdateProfileInstructionAsync, parseAcceptAdminInstruction, parseAdvanceEpochInstruction, parseAdvanceInstruction, parseAdvanceNonceInstruction, parseBeginFillInstruction, parseCancelIntentInstruction, parseClaimJobInstruction, parseCloseIntentInstruction, parseCloseLegacyInstruction, parseCloseProfileInstruction, parseCreateCommitteeInstruction, parseCreateIntentByAgentInstruction, parseCreateIntentInstruction, parseCreateIntentSignedInstruction, parseCreateMandateInstruction, parseCreateProfileInstruction, parseDropClaimInstruction, parseEndFillInstruction, parseExpireIntentInstruction, parseExtendClaimantsInstruction, parseFillAttestedCommitteeInstruction, parseFillAttestedInstruction, parseFillAttestedSplitCommitteeInstruction, parseFillAttestedSplitInstruction, parseFillIntentInstruction, parseInitConfigInstruction, parseInitUserInstruction, parseLeaveInstruction, parseListClaimantsInstruction, parseLowerPauseInstruction, parseMigrateInstruction, parseOpenClaimsInstruction, parseOpenClaimsListedInstruction, parseProposeAdminInstruction, parseRaisePauseInstruction, parseRevokeMandateInstruction, parseSetCapsRequiredInstruction, parseSetCommitteeFloorInstruction, parseSetMintCapInstruction, parseSettleClaimsInstruction, parseStandByInstruction, parseUpdateConfigInstruction, parseUpdateEconomicsInstruction, parseUpdateProfileInstruction, } from "../instructions/index.js";
|
|
12
|
+
import { findBoardPda, findClaimListPda, findCommitteePda, findConfigPda, findDelegatePda, findEntryPda, findMintCapPda, findProfilePda, findUserStatePda, findVaultPda, } from "../pdas/index.js";
|
|
13
13
|
export const INTENT_ENGINE_PROGRAM_ADDRESS = "GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU";
|
|
14
14
|
export const IntentEngineAccount = {
|
|
15
15
|
0: "ClaimBoard",
|
|
16
|
-
1: "
|
|
17
|
-
2: "
|
|
18
|
-
3: "
|
|
19
|
-
4: "
|
|
20
|
-
5: "
|
|
21
|
-
6: "
|
|
22
|
-
7: "
|
|
23
|
-
8: "
|
|
16
|
+
1: "ClaimList",
|
|
17
|
+
2: "Committee",
|
|
18
|
+
3: "Config",
|
|
19
|
+
4: "Intent",
|
|
20
|
+
5: "Mandate",
|
|
21
|
+
6: "MintCap",
|
|
22
|
+
7: "Profile",
|
|
23
|
+
8: "Standby",
|
|
24
|
+
9: "UserState",
|
|
24
25
|
ClaimBoard: 0,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
ClaimList: 1,
|
|
27
|
+
Committee: 2,
|
|
28
|
+
Config: 3,
|
|
29
|
+
Intent: 4,
|
|
30
|
+
Mandate: 5,
|
|
31
|
+
MintCap: 6,
|
|
32
|
+
Profile: 7,
|
|
33
|
+
Standby: 8,
|
|
34
|
+
UserState: 9,
|
|
33
35
|
};
|
|
34
36
|
export function identifyIntentEngineAccount(account) {
|
|
35
37
|
const data = "data" in account ? account.data : account;
|
|
36
38
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([23, 21, 23, 22, 82, 109, 232, 161])), 0)) {
|
|
37
39
|
return IntentEngineAccount.ClaimBoard;
|
|
38
40
|
}
|
|
41
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([205, 68, 225, 42, 40, 17, 234, 224])), 0)) {
|
|
42
|
+
return IntentEngineAccount.ClaimList;
|
|
43
|
+
}
|
|
39
44
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([96, 136, 210, 244, 137, 110, 178, 104])), 0)) {
|
|
40
45
|
return IntentEngineAccount.Committee;
|
|
41
46
|
}
|
|
@@ -69,82 +74,84 @@ export const IntentEngineEvent = {
|
|
|
69
74
|
3: "AgentPaid",
|
|
70
75
|
4: "CapsRequiredSet",
|
|
71
76
|
5: "ClaimDropped",
|
|
72
|
-
6: "
|
|
73
|
-
7: "
|
|
74
|
-
8: "
|
|
75
|
-
9: "
|
|
76
|
-
10: "
|
|
77
|
-
11: "
|
|
78
|
-
12: "
|
|
79
|
-
13: "
|
|
80
|
-
14: "
|
|
81
|
-
15: "
|
|
82
|
-
16: "
|
|
83
|
-
17: "
|
|
84
|
-
18: "
|
|
85
|
-
19: "
|
|
86
|
-
20: "
|
|
87
|
-
21: "
|
|
88
|
-
22: "
|
|
89
|
-
23: "
|
|
90
|
-
24: "
|
|
91
|
-
25: "
|
|
92
|
-
26: "
|
|
93
|
-
27: "
|
|
94
|
-
28: "
|
|
95
|
-
29: "
|
|
96
|
-
30: "
|
|
97
|
-
31: "
|
|
98
|
-
32: "
|
|
99
|
-
33: "
|
|
100
|
-
34: "
|
|
101
|
-
35: "
|
|
102
|
-
36: "
|
|
103
|
-
37: "
|
|
104
|
-
38: "
|
|
105
|
-
39: "
|
|
106
|
-
40: "
|
|
77
|
+
6: "ClaimantsListed",
|
|
78
|
+
7: "ClaimsClosed",
|
|
79
|
+
8: "ClaimsOpened",
|
|
80
|
+
9: "CommitteeAttested",
|
|
81
|
+
10: "CommitteeCreated",
|
|
82
|
+
11: "CommitteeFloorSet",
|
|
83
|
+
12: "ConfigInitialized",
|
|
84
|
+
13: "ConfigUpdated",
|
|
85
|
+
14: "EconomicsUpdated",
|
|
86
|
+
15: "EpochAdvanced",
|
|
87
|
+
16: "FeeWithheld",
|
|
88
|
+
17: "FillBegun",
|
|
89
|
+
18: "FillEnded",
|
|
90
|
+
19: "IntentAttested",
|
|
91
|
+
20: "IntentCancelled",
|
|
92
|
+
21: "IntentClosed",
|
|
93
|
+
22: "IntentCreated",
|
|
94
|
+
23: "IntentExpired",
|
|
95
|
+
24: "IntentFilled",
|
|
96
|
+
25: "IntentSplit",
|
|
97
|
+
26: "JobClaimed",
|
|
98
|
+
27: "LegacyClosed",
|
|
99
|
+
28: "LineLeft",
|
|
100
|
+
29: "MandateClosed",
|
|
101
|
+
30: "MandateCreated",
|
|
102
|
+
31: "MandateUsed",
|
|
103
|
+
32: "MintCapSet",
|
|
104
|
+
33: "NonceAdvanced",
|
|
105
|
+
34: "PauseLowered",
|
|
106
|
+
35: "PauseRaised",
|
|
107
|
+
36: "ProfileClosed",
|
|
108
|
+
37: "ProfileSet",
|
|
109
|
+
38: "RelayerPaid",
|
|
110
|
+
39: "StakeMoved",
|
|
111
|
+
40: "StoodBy",
|
|
112
|
+
41: "UserInitialized",
|
|
107
113
|
AccountMigrated: 0,
|
|
108
114
|
AdminAccepted: 1,
|
|
109
115
|
AdminProposed: 2,
|
|
110
116
|
AgentPaid: 3,
|
|
111
117
|
CapsRequiredSet: 4,
|
|
112
118
|
ClaimDropped: 5,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
119
|
+
ClaimantsListed: 6,
|
|
120
|
+
ClaimsClosed: 7,
|
|
121
|
+
ClaimsOpened: 8,
|
|
122
|
+
CommitteeAttested: 9,
|
|
123
|
+
CommitteeCreated: 10,
|
|
124
|
+
CommitteeFloorSet: 11,
|
|
125
|
+
ConfigInitialized: 12,
|
|
126
|
+
ConfigUpdated: 13,
|
|
127
|
+
EconomicsUpdated: 14,
|
|
128
|
+
EpochAdvanced: 15,
|
|
129
|
+
FeeWithheld: 16,
|
|
130
|
+
FillBegun: 17,
|
|
131
|
+
FillEnded: 18,
|
|
132
|
+
IntentAttested: 19,
|
|
133
|
+
IntentCancelled: 20,
|
|
134
|
+
IntentClosed: 21,
|
|
135
|
+
IntentCreated: 22,
|
|
136
|
+
IntentExpired: 23,
|
|
137
|
+
IntentFilled: 24,
|
|
138
|
+
IntentSplit: 25,
|
|
139
|
+
JobClaimed: 26,
|
|
140
|
+
LegacyClosed: 27,
|
|
141
|
+
LineLeft: 28,
|
|
142
|
+
MandateClosed: 29,
|
|
143
|
+
MandateCreated: 30,
|
|
144
|
+
MandateUsed: 31,
|
|
145
|
+
MintCapSet: 32,
|
|
146
|
+
NonceAdvanced: 33,
|
|
147
|
+
PauseLowered: 34,
|
|
148
|
+
PauseRaised: 35,
|
|
149
|
+
ProfileClosed: 36,
|
|
150
|
+
ProfileSet: 37,
|
|
151
|
+
RelayerPaid: 38,
|
|
152
|
+
StakeMoved: 39,
|
|
153
|
+
StoodBy: 40,
|
|
154
|
+
UserInitialized: 41,
|
|
148
155
|
};
|
|
149
156
|
export function identifyIntentEngineEvent(event) {
|
|
150
157
|
const data = "data" in event ? event.data : event;
|
|
@@ -166,6 +173,9 @@ export function identifyIntentEngineEvent(event) {
|
|
|
166
173
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([171, 220, 49, 208, 172, 242, 71, 154])), 0)) {
|
|
167
174
|
return IntentEngineEvent.ClaimDropped;
|
|
168
175
|
}
|
|
176
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([146, 58, 61, 192, 43, 174, 203, 123])), 0)) {
|
|
177
|
+
return IntentEngineEvent.ClaimantsListed;
|
|
178
|
+
}
|
|
169
179
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([218, 185, 246, 42, 164, 178, 89, 108])), 0)) {
|
|
170
180
|
return IntentEngineEvent.ClaimsClosed;
|
|
171
181
|
}
|
|
@@ -293,28 +303,31 @@ export const IntentEngineInstruction = {
|
|
|
293
303
|
16: "DropClaim",
|
|
294
304
|
17: "EndFill",
|
|
295
305
|
18: "ExpireIntent",
|
|
296
|
-
19: "
|
|
297
|
-
20: "
|
|
298
|
-
21: "
|
|
299
|
-
22: "
|
|
300
|
-
23: "
|
|
301
|
-
24: "
|
|
302
|
-
25: "
|
|
303
|
-
26: "
|
|
304
|
-
27: "
|
|
305
|
-
28: "
|
|
306
|
-
29: "
|
|
307
|
-
30: "
|
|
308
|
-
31: "
|
|
309
|
-
32: "
|
|
310
|
-
33: "
|
|
311
|
-
34: "
|
|
312
|
-
35: "
|
|
313
|
-
36: "
|
|
314
|
-
37: "
|
|
315
|
-
38: "
|
|
316
|
-
39: "
|
|
317
|
-
40: "
|
|
306
|
+
19: "ExtendClaimants",
|
|
307
|
+
20: "FillAttested",
|
|
308
|
+
21: "FillAttestedCommittee",
|
|
309
|
+
22: "FillAttestedSplit",
|
|
310
|
+
23: "FillAttestedSplitCommittee",
|
|
311
|
+
24: "FillIntent",
|
|
312
|
+
25: "InitConfig",
|
|
313
|
+
26: "InitUser",
|
|
314
|
+
27: "Leave",
|
|
315
|
+
28: "ListClaimants",
|
|
316
|
+
29: "LowerPause",
|
|
317
|
+
30: "Migrate",
|
|
318
|
+
31: "OpenClaims",
|
|
319
|
+
32: "OpenClaimsListed",
|
|
320
|
+
33: "ProposeAdmin",
|
|
321
|
+
34: "RaisePause",
|
|
322
|
+
35: "RevokeMandate",
|
|
323
|
+
36: "SetCapsRequired",
|
|
324
|
+
37: "SetCommitteeFloor",
|
|
325
|
+
38: "SetMintCap",
|
|
326
|
+
39: "SettleClaims",
|
|
327
|
+
40: "StandBy",
|
|
328
|
+
41: "UpdateConfig",
|
|
329
|
+
42: "UpdateEconomics",
|
|
330
|
+
43: "UpdateProfile",
|
|
318
331
|
AcceptAdmin: 0,
|
|
319
332
|
Advance: 1,
|
|
320
333
|
AdvanceEpoch: 2,
|
|
@@ -334,28 +347,31 @@ export const IntentEngineInstruction = {
|
|
|
334
347
|
DropClaim: 16,
|
|
335
348
|
EndFill: 17,
|
|
336
349
|
ExpireIntent: 18,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
350
|
+
ExtendClaimants: 19,
|
|
351
|
+
FillAttested: 20,
|
|
352
|
+
FillAttestedCommittee: 21,
|
|
353
|
+
FillAttestedSplit: 22,
|
|
354
|
+
FillAttestedSplitCommittee: 23,
|
|
355
|
+
FillIntent: 24,
|
|
356
|
+
InitConfig: 25,
|
|
357
|
+
InitUser: 26,
|
|
358
|
+
Leave: 27,
|
|
359
|
+
ListClaimants: 28,
|
|
360
|
+
LowerPause: 29,
|
|
361
|
+
Migrate: 30,
|
|
362
|
+
OpenClaims: 31,
|
|
363
|
+
OpenClaimsListed: 32,
|
|
364
|
+
ProposeAdmin: 33,
|
|
365
|
+
RaisePause: 34,
|
|
366
|
+
RevokeMandate: 35,
|
|
367
|
+
SetCapsRequired: 36,
|
|
368
|
+
SetCommitteeFloor: 37,
|
|
369
|
+
SetMintCap: 38,
|
|
370
|
+
SettleClaims: 39,
|
|
371
|
+
StandBy: 40,
|
|
372
|
+
UpdateConfig: 41,
|
|
373
|
+
UpdateEconomics: 42,
|
|
374
|
+
UpdateProfile: 43,
|
|
359
375
|
};
|
|
360
376
|
export function identifyIntentEngineInstruction(instruction) {
|
|
361
377
|
const data = "data" in instruction ? instruction.data : instruction;
|
|
@@ -416,6 +432,9 @@ export function identifyIntentEngineInstruction(instruction) {
|
|
|
416
432
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([45, 84, 232, 199, 147, 164, 53, 97])), 0)) {
|
|
417
433
|
return IntentEngineInstruction.ExpireIntent;
|
|
418
434
|
}
|
|
435
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([167, 198, 71, 145, 207, 75, 8, 218])), 0)) {
|
|
436
|
+
return IntentEngineInstruction.ExtendClaimants;
|
|
437
|
+
}
|
|
419
438
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([241, 100, 218, 154, 206, 21, 102, 122])), 0)) {
|
|
420
439
|
return IntentEngineInstruction.FillAttested;
|
|
421
440
|
}
|
|
@@ -440,6 +459,9 @@ export function identifyIntentEngineInstruction(instruction) {
|
|
|
440
459
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([59, 234, 148, 108, 107, 149, 173, 112])), 0)) {
|
|
441
460
|
return IntentEngineInstruction.Leave;
|
|
442
461
|
}
|
|
462
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([141, 9, 120, 20, 17, 243, 224, 62])), 0)) {
|
|
463
|
+
return IntentEngineInstruction.ListClaimants;
|
|
464
|
+
}
|
|
443
465
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([162, 105, 90, 233, 47, 43, 98, 41])), 0)) {
|
|
444
466
|
return IntentEngineInstruction.LowerPause;
|
|
445
467
|
}
|
|
@@ -449,6 +471,9 @@ export function identifyIntentEngineInstruction(instruction) {
|
|
|
449
471
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([111, 108, 90, 115, 178, 90, 24, 228])), 0)) {
|
|
450
472
|
return IntentEngineInstruction.OpenClaims;
|
|
451
473
|
}
|
|
474
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([240, 197, 105, 76, 62, 110, 154, 3])), 0)) {
|
|
475
|
+
return IntentEngineInstruction.OpenClaimsListed;
|
|
476
|
+
}
|
|
452
477
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([121, 214, 199, 212, 87, 39, 117, 234])), 0)) {
|
|
453
478
|
return IntentEngineInstruction.ProposeAdmin;
|
|
454
479
|
}
|
|
@@ -620,6 +645,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
620
645
|
...parseExpireIntentInstruction(instruction),
|
|
621
646
|
};
|
|
622
647
|
}
|
|
648
|
+
case IntentEngineInstruction.ExtendClaimants: {
|
|
649
|
+
assertIsInstructionWithAccounts(instruction);
|
|
650
|
+
return {
|
|
651
|
+
instructionType: IntentEngineInstruction.ExtendClaimants,
|
|
652
|
+
...parseExtendClaimantsInstruction(instruction),
|
|
653
|
+
};
|
|
654
|
+
}
|
|
623
655
|
case IntentEngineInstruction.FillAttested: {
|
|
624
656
|
assertIsInstructionWithAccounts(instruction);
|
|
625
657
|
return {
|
|
@@ -676,6 +708,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
676
708
|
...parseLeaveInstruction(instruction),
|
|
677
709
|
};
|
|
678
710
|
}
|
|
711
|
+
case IntentEngineInstruction.ListClaimants: {
|
|
712
|
+
assertIsInstructionWithAccounts(instruction);
|
|
713
|
+
return {
|
|
714
|
+
instructionType: IntentEngineInstruction.ListClaimants,
|
|
715
|
+
...parseListClaimantsInstruction(instruction),
|
|
716
|
+
};
|
|
717
|
+
}
|
|
679
718
|
case IntentEngineInstruction.LowerPause: {
|
|
680
719
|
assertIsInstructionWithAccounts(instruction);
|
|
681
720
|
return {
|
|
@@ -697,6 +736,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
697
736
|
...parseOpenClaimsInstruction(instruction),
|
|
698
737
|
};
|
|
699
738
|
}
|
|
739
|
+
case IntentEngineInstruction.OpenClaimsListed: {
|
|
740
|
+
assertIsInstructionWithAccounts(instruction);
|
|
741
|
+
return {
|
|
742
|
+
instructionType: IntentEngineInstruction.OpenClaimsListed,
|
|
743
|
+
...parseOpenClaimsListedInstruction(instruction),
|
|
744
|
+
};
|
|
745
|
+
}
|
|
700
746
|
case IntentEngineInstruction.ProposeAdmin: {
|
|
701
747
|
assertIsInstructionWithAccounts(instruction);
|
|
702
748
|
return {
|
|
@@ -787,6 +833,7 @@ export function intentEngineProgram() {
|
|
|
787
833
|
intentEngine: {
|
|
788
834
|
accounts: {
|
|
789
835
|
claimBoard: addSelfFetchFunctions(client, getClaimBoardCodec()),
|
|
836
|
+
claimList: addSelfFetchFunctions(client, getClaimListCodec()),
|
|
790
837
|
committee: addSelfFetchFunctions(client, getCommitteeCodec()),
|
|
791
838
|
config: addSelfFetchFunctions(client, getConfigCodec()),
|
|
792
839
|
intent: addSelfFetchFunctions(client, getIntentCodec()),
|
|
@@ -822,6 +869,7 @@ export function intentEngineProgram() {
|
|
|
822
869
|
dropClaim: (input) => addSelfPlanAndSendFunctions(client, getDropClaimInstructionAsync(input)),
|
|
823
870
|
endFill: (input) => addSelfPlanAndSendFunctions(client, getEndFillInstruction(input)),
|
|
824
871
|
expireIntent: (input) => addSelfPlanAndSendFunctions(client, getExpireIntentInstructionAsync(input)),
|
|
872
|
+
extendClaimants: (input) => addSelfPlanAndSendFunctions(client, getExtendClaimantsInstructionAsync(input)),
|
|
825
873
|
fillAttested: (input) => addSelfPlanAndSendFunctions(client, getFillAttestedInstructionAsync(input)),
|
|
826
874
|
fillAttestedCommittee: (input) => addSelfPlanAndSendFunctions(client, getFillAttestedCommitteeInstructionAsync(input)),
|
|
827
875
|
fillAttestedSplit: (input) => addSelfPlanAndSendFunctions(client, getFillAttestedSplitInstructionAsync(input)),
|
|
@@ -830,12 +878,14 @@ export function intentEngineProgram() {
|
|
|
830
878
|
initConfig: (input) => addSelfPlanAndSendFunctions(client, getInitConfigInstructionAsync(input)),
|
|
831
879
|
initUser: (input) => addSelfPlanAndSendFunctions(client, getInitUserInstructionAsync(input)),
|
|
832
880
|
leave: (input) => addSelfPlanAndSendFunctions(client, getLeaveInstructionAsync(input)),
|
|
881
|
+
listClaimants: (input) => addSelfPlanAndSendFunctions(client, getListClaimantsInstructionAsync(input)),
|
|
833
882
|
lowerPause: (input) => addSelfPlanAndSendFunctions(client, getLowerPauseInstruction(input)),
|
|
834
883
|
migrate: (input) => addSelfPlanAndSendFunctions(client, getMigrateInstruction({
|
|
835
884
|
...input,
|
|
836
885
|
payer: input.payer ?? client.payer,
|
|
837
886
|
})),
|
|
838
887
|
openClaims: (input) => addSelfPlanAndSendFunctions(client, getOpenClaimsInstructionAsync(input)),
|
|
888
|
+
openClaimsListed: (input) => addSelfPlanAndSendFunctions(client, getOpenClaimsListedInstructionAsync(input)),
|
|
839
889
|
proposeAdmin: (input) => addSelfPlanAndSendFunctions(client, getProposeAdminInstruction(input)),
|
|
840
890
|
raisePause: (input) => addSelfPlanAndSendFunctions(client, getRaisePauseInstruction(input)),
|
|
841
891
|
revokeMandate: (input) => addSelfPlanAndSendFunctions(client, getRevokeMandateInstruction(input)),
|
|
@@ -858,6 +908,7 @@ export function intentEngineProgram() {
|
|
|
858
908
|
profile: findProfilePda,
|
|
859
909
|
committee: findCommitteePda,
|
|
860
910
|
delegate: findDelegatePda,
|
|
911
|
+
claimList: findClaimListPda,
|
|
861
912
|
config: findConfigPda,
|
|
862
913
|
entry: findEntryPda,
|
|
863
914
|
mintCap: findMintCapPda,
|