@intent-engine/core 0.1.41 → 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/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/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/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/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 +42 -0
- package/dist/generated/client/accounts/standby.js +69 -0
- package/dist/generated/client/accounts/standby.js.map +1 -0
- package/dist/generated/client/errors/intentEngine.d.ts +33 -1
- package/dist/generated/client/errors/intentEngine.js +48 -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 +5 -0
- package/dist/generated/client/events/index.js +5 -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/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/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/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/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/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/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 +6 -0
- package/dist/generated/client/instructions/index.js +6 -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/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 +76 -0
- package/dist/generated/client/instructions/standBy.js +176 -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 +190 -146
- package/dist/generated/client/programs/intentEngine.js +259 -146
- 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 +33 -3
- package/dist/src/claims.js +54 -2
- package/dist/src/claims.js.map +1 -1
- 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/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 +6 -1
- package/dist/src/events.js +7 -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 +996 -45
- package/package.json +2 -1
|
@@ -7,9 +7,9 @@
|
|
|
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, getUserStateCodec, } 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, parseAcceptAdminInstruction, parseAdvanceEpochInstruction, parseAdvanceNonceInstruction, parseBeginFillInstruction, parseCancelIntentInstruction, parseClaimJobInstruction, parseCloseIntentInstruction, parseCloseProfileInstruction, parseCreateCommitteeInstruction, parseCreateIntentByAgentInstruction, parseCreateIntentInstruction, parseCreateIntentSignedInstruction, parseCreateMandateInstruction, parseCreateProfileInstruction, parseDropClaimInstruction, parseEndFillInstruction, parseExpireIntentInstruction, parseFillAttestedCommitteeInstruction, parseFillAttestedInstruction, parseFillAttestedSplitCommitteeInstruction, parseFillAttestedSplitInstruction, parseFillIntentInstruction, parseInitConfigInstruction, parseInitUserInstruction, parseLowerPauseInstruction, parseOpenClaimsInstruction, parseProposeAdminInstruction, parseRaisePauseInstruction, parseRevokeMandateInstruction, parseSetCapsRequiredInstruction, parseSetMintCapInstruction, parseSettleClaimsInstruction, parseUpdateConfigInstruction, parseUpdateEconomicsInstruction, parseUpdateProfileInstruction, } 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, } 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";
|
|
13
13
|
export const INTENT_ENGINE_PROGRAM_ADDRESS = "GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU";
|
|
14
14
|
export const IntentEngineAccount = {
|
|
15
15
|
0: "ClaimBoard",
|
|
@@ -19,7 +19,8 @@ export const IntentEngineAccount = {
|
|
|
19
19
|
4: "Mandate",
|
|
20
20
|
5: "MintCap",
|
|
21
21
|
6: "Profile",
|
|
22
|
-
7: "
|
|
22
|
+
7: "Standby",
|
|
23
|
+
8: "UserState",
|
|
23
24
|
ClaimBoard: 0,
|
|
24
25
|
Committee: 1,
|
|
25
26
|
Config: 2,
|
|
@@ -27,7 +28,8 @@ export const IntentEngineAccount = {
|
|
|
27
28
|
Mandate: 4,
|
|
28
29
|
MintCap: 5,
|
|
29
30
|
Profile: 6,
|
|
30
|
-
|
|
31
|
+
Standby: 7,
|
|
32
|
+
UserState: 8,
|
|
31
33
|
};
|
|
32
34
|
export function identifyIntentEngineAccount(account) {
|
|
33
35
|
const data = "data" in account ? account.data : account;
|
|
@@ -52,87 +54,103 @@ export function identifyIntentEngineAccount(account) {
|
|
|
52
54
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([184, 101, 165, 188, 95, 63, 127, 188])), 0)) {
|
|
53
55
|
return IntentEngineAccount.Profile;
|
|
54
56
|
}
|
|
57
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([218, 108, 92, 176, 89, 224, 201, 40])), 0)) {
|
|
58
|
+
return IntentEngineAccount.Standby;
|
|
59
|
+
}
|
|
55
60
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([72, 177, 85, 249, 76, 167, 186, 126])), 0)) {
|
|
56
61
|
return IntentEngineAccount.UserState;
|
|
57
62
|
}
|
|
58
63
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT, { accountData: data, programName: "intentEngine" });
|
|
59
64
|
}
|
|
60
65
|
export const IntentEngineEvent = {
|
|
61
|
-
0: "
|
|
62
|
-
1: "
|
|
63
|
-
2: "
|
|
64
|
-
3: "
|
|
65
|
-
4: "
|
|
66
|
-
5: "
|
|
67
|
-
6: "
|
|
68
|
-
7: "
|
|
69
|
-
8: "
|
|
70
|
-
9: "
|
|
71
|
-
10: "
|
|
72
|
-
11: "
|
|
73
|
-
12: "
|
|
74
|
-
13: "
|
|
75
|
-
14: "
|
|
76
|
-
15: "
|
|
77
|
-
16: "
|
|
78
|
-
17: "
|
|
79
|
-
18: "
|
|
80
|
-
19: "
|
|
81
|
-
20: "
|
|
82
|
-
21: "
|
|
83
|
-
22: "
|
|
84
|
-
23: "
|
|
85
|
-
24: "
|
|
86
|
-
25: "
|
|
87
|
-
26: "
|
|
88
|
-
27: "
|
|
89
|
-
28: "
|
|
90
|
-
29: "
|
|
91
|
-
30: "
|
|
92
|
-
31: "
|
|
93
|
-
32: "
|
|
94
|
-
33: "
|
|
95
|
-
34: "
|
|
96
|
-
35: "
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
66
|
+
0: "AccountMigrated",
|
|
67
|
+
1: "AdminAccepted",
|
|
68
|
+
2: "AdminProposed",
|
|
69
|
+
3: "AgentPaid",
|
|
70
|
+
4: "CapsRequiredSet",
|
|
71
|
+
5: "ClaimDropped",
|
|
72
|
+
6: "ClaimsClosed",
|
|
73
|
+
7: "ClaimsOpened",
|
|
74
|
+
8: "CommitteeAttested",
|
|
75
|
+
9: "CommitteeCreated",
|
|
76
|
+
10: "CommitteeFloorSet",
|
|
77
|
+
11: "ConfigInitialized",
|
|
78
|
+
12: "ConfigUpdated",
|
|
79
|
+
13: "EconomicsUpdated",
|
|
80
|
+
14: "EpochAdvanced",
|
|
81
|
+
15: "FeeWithheld",
|
|
82
|
+
16: "FillBegun",
|
|
83
|
+
17: "FillEnded",
|
|
84
|
+
18: "IntentAttested",
|
|
85
|
+
19: "IntentCancelled",
|
|
86
|
+
20: "IntentClosed",
|
|
87
|
+
21: "IntentCreated",
|
|
88
|
+
22: "IntentExpired",
|
|
89
|
+
23: "IntentFilled",
|
|
90
|
+
24: "IntentSplit",
|
|
91
|
+
25: "JobClaimed",
|
|
92
|
+
26: "LegacyClosed",
|
|
93
|
+
27: "LineLeft",
|
|
94
|
+
28: "MandateClosed",
|
|
95
|
+
29: "MandateCreated",
|
|
96
|
+
30: "MandateUsed",
|
|
97
|
+
31: "MintCapSet",
|
|
98
|
+
32: "NonceAdvanced",
|
|
99
|
+
33: "PauseLowered",
|
|
100
|
+
34: "PauseRaised",
|
|
101
|
+
35: "ProfileClosed",
|
|
102
|
+
36: "ProfileSet",
|
|
103
|
+
37: "RelayerPaid",
|
|
104
|
+
38: "StakeMoved",
|
|
105
|
+
39: "StoodBy",
|
|
106
|
+
40: "UserInitialized",
|
|
107
|
+
AccountMigrated: 0,
|
|
108
|
+
AdminAccepted: 1,
|
|
109
|
+
AdminProposed: 2,
|
|
110
|
+
AgentPaid: 3,
|
|
111
|
+
CapsRequiredSet: 4,
|
|
112
|
+
ClaimDropped: 5,
|
|
113
|
+
ClaimsClosed: 6,
|
|
114
|
+
ClaimsOpened: 7,
|
|
115
|
+
CommitteeAttested: 8,
|
|
116
|
+
CommitteeCreated: 9,
|
|
117
|
+
CommitteeFloorSet: 10,
|
|
118
|
+
ConfigInitialized: 11,
|
|
119
|
+
ConfigUpdated: 12,
|
|
120
|
+
EconomicsUpdated: 13,
|
|
121
|
+
EpochAdvanced: 14,
|
|
122
|
+
FeeWithheld: 15,
|
|
123
|
+
FillBegun: 16,
|
|
124
|
+
FillEnded: 17,
|
|
125
|
+
IntentAttested: 18,
|
|
126
|
+
IntentCancelled: 19,
|
|
127
|
+
IntentClosed: 20,
|
|
128
|
+
IntentCreated: 21,
|
|
129
|
+
IntentExpired: 22,
|
|
130
|
+
IntentFilled: 23,
|
|
131
|
+
IntentSplit: 24,
|
|
132
|
+
JobClaimed: 25,
|
|
133
|
+
LegacyClosed: 26,
|
|
134
|
+
LineLeft: 27,
|
|
135
|
+
MandateClosed: 28,
|
|
136
|
+
MandateCreated: 29,
|
|
137
|
+
MandateUsed: 30,
|
|
138
|
+
MintCapSet: 31,
|
|
139
|
+
NonceAdvanced: 32,
|
|
140
|
+
PauseLowered: 33,
|
|
141
|
+
PauseRaised: 34,
|
|
142
|
+
ProfileClosed: 35,
|
|
143
|
+
ProfileSet: 36,
|
|
144
|
+
RelayerPaid: 37,
|
|
145
|
+
StakeMoved: 38,
|
|
146
|
+
StoodBy: 39,
|
|
147
|
+
UserInitialized: 40,
|
|
133
148
|
};
|
|
134
149
|
export function identifyIntentEngineEvent(event) {
|
|
135
150
|
const data = "data" in event ? event.data : event;
|
|
151
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([153, 121, 252, 128, 30, 241, 166, 101])), 0)) {
|
|
152
|
+
return IntentEngineEvent.AccountMigrated;
|
|
153
|
+
}
|
|
136
154
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([174, 12, 76, 139, 158, 99, 110, 254])), 0)) {
|
|
137
155
|
return IntentEngineEvent.AdminAccepted;
|
|
138
156
|
}
|
|
@@ -160,6 +178,9 @@ export function identifyIntentEngineEvent(event) {
|
|
|
160
178
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([150, 119, 144, 25, 171, 170, 67, 43])), 0)) {
|
|
161
179
|
return IntentEngineEvent.CommitteeCreated;
|
|
162
180
|
}
|
|
181
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([1, 246, 179, 215, 89, 88, 97, 182])), 0)) {
|
|
182
|
+
return IntentEngineEvent.CommitteeFloorSet;
|
|
183
|
+
}
|
|
163
184
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([181, 49, 200, 156, 19, 167, 178, 91])), 0)) {
|
|
164
185
|
return IntentEngineEvent.ConfigInitialized;
|
|
165
186
|
}
|
|
@@ -205,6 +226,12 @@ export function identifyIntentEngineEvent(event) {
|
|
|
205
226
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([176, 110, 104, 38, 27, 220, 61, 191])), 0)) {
|
|
206
227
|
return IntentEngineEvent.JobClaimed;
|
|
207
228
|
}
|
|
229
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([206, 178, 254, 228, 149, 196, 78, 17])), 0)) {
|
|
230
|
+
return IntentEngineEvent.LegacyClosed;
|
|
231
|
+
}
|
|
232
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([133, 186, 108, 68, 200, 155, 242, 108])), 0)) {
|
|
233
|
+
return IntentEngineEvent.LineLeft;
|
|
234
|
+
}
|
|
208
235
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([217, 212, 155, 243, 4, 34, 255, 65])), 0)) {
|
|
209
236
|
return IntentEngineEvent.MandateClosed;
|
|
210
237
|
}
|
|
@@ -238,6 +265,9 @@ export function identifyIntentEngineEvent(event) {
|
|
|
238
265
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([229, 213, 90, 235, 88, 242, 57, 27])), 0)) {
|
|
239
266
|
return IntentEngineEvent.StakeMoved;
|
|
240
267
|
}
|
|
268
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([229, 131, 51, 137, 30, 117, 93, 169])), 0)) {
|
|
269
|
+
return IntentEngineEvent.StoodBy;
|
|
270
|
+
}
|
|
241
271
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([66, 195, 5, 223, 42, 84, 135, 60])), 0)) {
|
|
242
272
|
return IntentEngineEvent.UserInitialized;
|
|
243
273
|
}
|
|
@@ -245,81 +275,96 @@ export function identifyIntentEngineEvent(event) {
|
|
|
245
275
|
}
|
|
246
276
|
export const IntentEngineInstruction = {
|
|
247
277
|
0: "AcceptAdmin",
|
|
248
|
-
1: "
|
|
249
|
-
2: "
|
|
250
|
-
3: "
|
|
251
|
-
4: "
|
|
252
|
-
5: "
|
|
253
|
-
6: "
|
|
254
|
-
7: "
|
|
255
|
-
8: "
|
|
256
|
-
9: "
|
|
257
|
-
10: "
|
|
258
|
-
11: "
|
|
259
|
-
12: "
|
|
260
|
-
13: "
|
|
261
|
-
14: "
|
|
262
|
-
15: "
|
|
263
|
-
16: "
|
|
264
|
-
17: "
|
|
265
|
-
18: "
|
|
266
|
-
19: "
|
|
267
|
-
20: "
|
|
268
|
-
21: "
|
|
269
|
-
22: "
|
|
270
|
-
23: "
|
|
271
|
-
24: "
|
|
272
|
-
25: "
|
|
273
|
-
26: "
|
|
274
|
-
27: "
|
|
275
|
-
28: "
|
|
276
|
-
29: "
|
|
277
|
-
30: "
|
|
278
|
-
31: "
|
|
279
|
-
32: "
|
|
280
|
-
33: "
|
|
281
|
-
34: "
|
|
278
|
+
1: "Advance",
|
|
279
|
+
2: "AdvanceEpoch",
|
|
280
|
+
3: "AdvanceNonce",
|
|
281
|
+
4: "BeginFill",
|
|
282
|
+
5: "CancelIntent",
|
|
283
|
+
6: "ClaimJob",
|
|
284
|
+
7: "CloseIntent",
|
|
285
|
+
8: "CloseLegacy",
|
|
286
|
+
9: "CloseProfile",
|
|
287
|
+
10: "CreateCommittee",
|
|
288
|
+
11: "CreateIntent",
|
|
289
|
+
12: "CreateIntentByAgent",
|
|
290
|
+
13: "CreateIntentSigned",
|
|
291
|
+
14: "CreateMandate",
|
|
292
|
+
15: "CreateProfile",
|
|
293
|
+
16: "DropClaim",
|
|
294
|
+
17: "EndFill",
|
|
295
|
+
18: "ExpireIntent",
|
|
296
|
+
19: "FillAttested",
|
|
297
|
+
20: "FillAttestedCommittee",
|
|
298
|
+
21: "FillAttestedSplit",
|
|
299
|
+
22: "FillAttestedSplitCommittee",
|
|
300
|
+
23: "FillIntent",
|
|
301
|
+
24: "InitConfig",
|
|
302
|
+
25: "InitUser",
|
|
303
|
+
26: "Leave",
|
|
304
|
+
27: "LowerPause",
|
|
305
|
+
28: "Migrate",
|
|
306
|
+
29: "OpenClaims",
|
|
307
|
+
30: "ProposeAdmin",
|
|
308
|
+
31: "RaisePause",
|
|
309
|
+
32: "RevokeMandate",
|
|
310
|
+
33: "SetCapsRequired",
|
|
311
|
+
34: "SetCommitteeFloor",
|
|
312
|
+
35: "SetMintCap",
|
|
313
|
+
36: "SettleClaims",
|
|
314
|
+
37: "StandBy",
|
|
315
|
+
38: "UpdateConfig",
|
|
316
|
+
39: "UpdateEconomics",
|
|
317
|
+
40: "UpdateProfile",
|
|
282
318
|
AcceptAdmin: 0,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
319
|
+
Advance: 1,
|
|
320
|
+
AdvanceEpoch: 2,
|
|
321
|
+
AdvanceNonce: 3,
|
|
322
|
+
BeginFill: 4,
|
|
323
|
+
CancelIntent: 5,
|
|
324
|
+
ClaimJob: 6,
|
|
325
|
+
CloseIntent: 7,
|
|
326
|
+
CloseLegacy: 8,
|
|
327
|
+
CloseProfile: 9,
|
|
328
|
+
CreateCommittee: 10,
|
|
329
|
+
CreateIntent: 11,
|
|
330
|
+
CreateIntentByAgent: 12,
|
|
331
|
+
CreateIntentSigned: 13,
|
|
332
|
+
CreateMandate: 14,
|
|
333
|
+
CreateProfile: 15,
|
|
334
|
+
DropClaim: 16,
|
|
335
|
+
EndFill: 17,
|
|
336
|
+
ExpireIntent: 18,
|
|
337
|
+
FillAttested: 19,
|
|
338
|
+
FillAttestedCommittee: 20,
|
|
339
|
+
FillAttestedSplit: 21,
|
|
340
|
+
FillAttestedSplitCommittee: 22,
|
|
341
|
+
FillIntent: 23,
|
|
342
|
+
InitConfig: 24,
|
|
343
|
+
InitUser: 25,
|
|
344
|
+
Leave: 26,
|
|
345
|
+
LowerPause: 27,
|
|
346
|
+
Migrate: 28,
|
|
347
|
+
OpenClaims: 29,
|
|
348
|
+
ProposeAdmin: 30,
|
|
349
|
+
RaisePause: 31,
|
|
350
|
+
RevokeMandate: 32,
|
|
351
|
+
SetCapsRequired: 33,
|
|
352
|
+
SetCommitteeFloor: 34,
|
|
353
|
+
SetMintCap: 35,
|
|
354
|
+
SettleClaims: 36,
|
|
355
|
+
StandBy: 37,
|
|
356
|
+
UpdateConfig: 38,
|
|
357
|
+
UpdateEconomics: 39,
|
|
358
|
+
UpdateProfile: 40,
|
|
317
359
|
};
|
|
318
360
|
export function identifyIntentEngineInstruction(instruction) {
|
|
319
361
|
const data = "data" in instruction ? instruction.data : instruction;
|
|
320
362
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([112, 42, 45, 90, 116, 181, 13, 170])), 0)) {
|
|
321
363
|
return IntentEngineInstruction.AcceptAdmin;
|
|
322
364
|
}
|
|
365
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([7, 56, 108, 201, 36, 20, 57, 89])), 0)) {
|
|
366
|
+
return IntentEngineInstruction.Advance;
|
|
367
|
+
}
|
|
323
368
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([93, 138, 234, 218, 241, 230, 132, 38])), 0)) {
|
|
324
369
|
return IntentEngineInstruction.AdvanceEpoch;
|
|
325
370
|
}
|
|
@@ -338,6 +383,9 @@ export function identifyIntentEngineInstruction(instruction) {
|
|
|
338
383
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([112, 245, 154, 249, 57, 126, 54, 122])), 0)) {
|
|
339
384
|
return IntentEngineInstruction.CloseIntent;
|
|
340
385
|
}
|
|
386
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([119, 17, 150, 2, 226, 13, 36, 75])), 0)) {
|
|
387
|
+
return IntentEngineInstruction.CloseLegacy;
|
|
388
|
+
}
|
|
341
389
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([167, 36, 181, 8, 136, 158, 46, 207])), 0)) {
|
|
342
390
|
return IntentEngineInstruction.CloseProfile;
|
|
343
391
|
}
|
|
@@ -389,9 +437,15 @@ export function identifyIntentEngineInstruction(instruction) {
|
|
|
389
437
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([14, 51, 68, 159, 237, 78, 158, 102])), 0)) {
|
|
390
438
|
return IntentEngineInstruction.InitUser;
|
|
391
439
|
}
|
|
440
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([59, 234, 148, 108, 107, 149, 173, 112])), 0)) {
|
|
441
|
+
return IntentEngineInstruction.Leave;
|
|
442
|
+
}
|
|
392
443
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([162, 105, 90, 233, 47, 43, 98, 41])), 0)) {
|
|
393
444
|
return IntentEngineInstruction.LowerPause;
|
|
394
445
|
}
|
|
446
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([155, 234, 231, 146, 236, 158, 162, 30])), 0)) {
|
|
447
|
+
return IntentEngineInstruction.Migrate;
|
|
448
|
+
}
|
|
395
449
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([111, 108, 90, 115, 178, 90, 24, 228])), 0)) {
|
|
396
450
|
return IntentEngineInstruction.OpenClaims;
|
|
397
451
|
}
|
|
@@ -407,12 +461,18 @@ export function identifyIntentEngineInstruction(instruction) {
|
|
|
407
461
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([28, 67, 121, 59, 229, 49, 30, 239])), 0)) {
|
|
408
462
|
return IntentEngineInstruction.SetCapsRequired;
|
|
409
463
|
}
|
|
464
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([124, 248, 31, 82, 112, 216, 14, 173])), 0)) {
|
|
465
|
+
return IntentEngineInstruction.SetCommitteeFloor;
|
|
466
|
+
}
|
|
410
467
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([192, 119, 105, 42, 212, 12, 202, 79])), 0)) {
|
|
411
468
|
return IntentEngineInstruction.SetMintCap;
|
|
412
469
|
}
|
|
413
470
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([58, 91, 9, 15, 201, 59, 179, 94])), 0)) {
|
|
414
471
|
return IntentEngineInstruction.SettleClaims;
|
|
415
472
|
}
|
|
473
|
+
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([168, 157, 28, 241, 80, 118, 18, 116])), 0)) {
|
|
474
|
+
return IntentEngineInstruction.StandBy;
|
|
475
|
+
}
|
|
416
476
|
if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([29, 158, 252, 191, 10, 83, 219, 99])), 0)) {
|
|
417
477
|
return IntentEngineInstruction.UpdateConfig;
|
|
418
478
|
}
|
|
@@ -434,6 +494,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
434
494
|
...parseAcceptAdminInstruction(instruction),
|
|
435
495
|
};
|
|
436
496
|
}
|
|
497
|
+
case IntentEngineInstruction.Advance: {
|
|
498
|
+
assertIsInstructionWithAccounts(instruction);
|
|
499
|
+
return {
|
|
500
|
+
instructionType: IntentEngineInstruction.Advance,
|
|
501
|
+
...parseAdvanceInstruction(instruction),
|
|
502
|
+
};
|
|
503
|
+
}
|
|
437
504
|
case IntentEngineInstruction.AdvanceEpoch: {
|
|
438
505
|
assertIsInstructionWithAccounts(instruction);
|
|
439
506
|
return {
|
|
@@ -476,6 +543,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
476
543
|
...parseCloseIntentInstruction(instruction),
|
|
477
544
|
};
|
|
478
545
|
}
|
|
546
|
+
case IntentEngineInstruction.CloseLegacy: {
|
|
547
|
+
assertIsInstructionWithAccounts(instruction);
|
|
548
|
+
return {
|
|
549
|
+
instructionType: IntentEngineInstruction.CloseLegacy,
|
|
550
|
+
...parseCloseLegacyInstruction(instruction),
|
|
551
|
+
};
|
|
552
|
+
}
|
|
479
553
|
case IntentEngineInstruction.CloseProfile: {
|
|
480
554
|
assertIsInstructionWithAccounts(instruction);
|
|
481
555
|
return {
|
|
@@ -595,6 +669,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
595
669
|
...parseInitUserInstruction(instruction),
|
|
596
670
|
};
|
|
597
671
|
}
|
|
672
|
+
case IntentEngineInstruction.Leave: {
|
|
673
|
+
assertIsInstructionWithAccounts(instruction);
|
|
674
|
+
return {
|
|
675
|
+
instructionType: IntentEngineInstruction.Leave,
|
|
676
|
+
...parseLeaveInstruction(instruction),
|
|
677
|
+
};
|
|
678
|
+
}
|
|
598
679
|
case IntentEngineInstruction.LowerPause: {
|
|
599
680
|
assertIsInstructionWithAccounts(instruction);
|
|
600
681
|
return {
|
|
@@ -602,6 +683,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
602
683
|
...parseLowerPauseInstruction(instruction),
|
|
603
684
|
};
|
|
604
685
|
}
|
|
686
|
+
case IntentEngineInstruction.Migrate: {
|
|
687
|
+
assertIsInstructionWithAccounts(instruction);
|
|
688
|
+
return {
|
|
689
|
+
instructionType: IntentEngineInstruction.Migrate,
|
|
690
|
+
...parseMigrateInstruction(instruction),
|
|
691
|
+
};
|
|
692
|
+
}
|
|
605
693
|
case IntentEngineInstruction.OpenClaims: {
|
|
606
694
|
assertIsInstructionWithAccounts(instruction);
|
|
607
695
|
return {
|
|
@@ -637,6 +725,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
637
725
|
...parseSetCapsRequiredInstruction(instruction),
|
|
638
726
|
};
|
|
639
727
|
}
|
|
728
|
+
case IntentEngineInstruction.SetCommitteeFloor: {
|
|
729
|
+
assertIsInstructionWithAccounts(instruction);
|
|
730
|
+
return {
|
|
731
|
+
instructionType: IntentEngineInstruction.SetCommitteeFloor,
|
|
732
|
+
...parseSetCommitteeFloorInstruction(instruction),
|
|
733
|
+
};
|
|
734
|
+
}
|
|
640
735
|
case IntentEngineInstruction.SetMintCap: {
|
|
641
736
|
assertIsInstructionWithAccounts(instruction);
|
|
642
737
|
return {
|
|
@@ -651,6 +746,13 @@ export function parseIntentEngineInstruction(instruction) {
|
|
|
651
746
|
...parseSettleClaimsInstruction(instruction),
|
|
652
747
|
};
|
|
653
748
|
}
|
|
749
|
+
case IntentEngineInstruction.StandBy: {
|
|
750
|
+
assertIsInstructionWithAccounts(instruction);
|
|
751
|
+
return {
|
|
752
|
+
instructionType: IntentEngineInstruction.StandBy,
|
|
753
|
+
...parseStandByInstruction(instruction),
|
|
754
|
+
};
|
|
755
|
+
}
|
|
654
756
|
case IntentEngineInstruction.UpdateConfig: {
|
|
655
757
|
assertIsInstructionWithAccounts(instruction);
|
|
656
758
|
return {
|
|
@@ -691,16 +793,19 @@ export function intentEngineProgram() {
|
|
|
691
793
|
mandate: addSelfFetchFunctions(client, getMandateCodec()),
|
|
692
794
|
mintCap: addSelfFetchFunctions(client, getMintCapCodec()),
|
|
693
795
|
profile: addSelfFetchFunctions(client, getProfileCodec()),
|
|
796
|
+
standby: addSelfFetchFunctions(client, getStandbyCodec()),
|
|
694
797
|
userState: addSelfFetchFunctions(client, getUserStateCodec()),
|
|
695
798
|
},
|
|
696
799
|
instructions: {
|
|
697
800
|
acceptAdmin: (input) => addSelfPlanAndSendFunctions(client, getAcceptAdminInstruction(input)),
|
|
801
|
+
advance: (input) => addSelfPlanAndSendFunctions(client, getAdvanceInstructionAsync(input)),
|
|
698
802
|
advanceEpoch: (input) => addSelfPlanAndSendFunctions(client, getAdvanceEpochInstructionAsync(input)),
|
|
699
803
|
advanceNonce: (input) => addSelfPlanAndSendFunctions(client, getAdvanceNonceInstructionAsync(input)),
|
|
700
804
|
beginFill: (input) => addSelfPlanAndSendFunctions(client, getBeginFillInstructionAsync(input)),
|
|
701
805
|
cancelIntent: (input) => addSelfPlanAndSendFunctions(client, getCancelIntentInstructionAsync(input)),
|
|
702
806
|
claimJob: (input) => addSelfPlanAndSendFunctions(client, getClaimJobInstructionAsync(input)),
|
|
703
807
|
closeIntent: (input) => addSelfPlanAndSendFunctions(client, getCloseIntentInstructionAsync(input)),
|
|
808
|
+
closeLegacy: (input) => addSelfPlanAndSendFunctions(client, getCloseLegacyInstruction(input)),
|
|
704
809
|
closeProfile: (input) => addSelfPlanAndSendFunctions(client, getCloseProfileInstructionAsync(input)),
|
|
705
810
|
createCommittee: (input) => addSelfPlanAndSendFunctions(client, getCreateCommitteeInstructionAsync({
|
|
706
811
|
...input,
|
|
@@ -724,29 +829,37 @@ export function intentEngineProgram() {
|
|
|
724
829
|
fillIntent: (input) => addSelfPlanAndSendFunctions(client, getFillIntentInstructionAsync(input)),
|
|
725
830
|
initConfig: (input) => addSelfPlanAndSendFunctions(client, getInitConfigInstructionAsync(input)),
|
|
726
831
|
initUser: (input) => addSelfPlanAndSendFunctions(client, getInitUserInstructionAsync(input)),
|
|
832
|
+
leave: (input) => addSelfPlanAndSendFunctions(client, getLeaveInstructionAsync(input)),
|
|
727
833
|
lowerPause: (input) => addSelfPlanAndSendFunctions(client, getLowerPauseInstruction(input)),
|
|
834
|
+
migrate: (input) => addSelfPlanAndSendFunctions(client, getMigrateInstruction({
|
|
835
|
+
...input,
|
|
836
|
+
payer: input.payer ?? client.payer,
|
|
837
|
+
})),
|
|
728
838
|
openClaims: (input) => addSelfPlanAndSendFunctions(client, getOpenClaimsInstructionAsync(input)),
|
|
729
839
|
proposeAdmin: (input) => addSelfPlanAndSendFunctions(client, getProposeAdminInstruction(input)),
|
|
730
840
|
raisePause: (input) => addSelfPlanAndSendFunctions(client, getRaisePauseInstruction(input)),
|
|
731
841
|
revokeMandate: (input) => addSelfPlanAndSendFunctions(client, getRevokeMandateInstruction(input)),
|
|
732
842
|
setCapsRequired: (input) => addSelfPlanAndSendFunctions(client, getSetCapsRequiredInstruction(input)),
|
|
843
|
+
setCommitteeFloor: (input) => addSelfPlanAndSendFunctions(client, getSetCommitteeFloorInstruction(input)),
|
|
733
844
|
setMintCap: (input) => addSelfPlanAndSendFunctions(client, getSetMintCapInstructionAsync({
|
|
734
845
|
...input,
|
|
735
846
|
payer: input.payer ?? client.payer,
|
|
736
847
|
})),
|
|
737
848
|
settleClaims: (input) => addSelfPlanAndSendFunctions(client, getSettleClaimsInstructionAsync(input)),
|
|
849
|
+
standBy: (input) => addSelfPlanAndSendFunctions(client, getStandByInstructionAsync(input)),
|
|
738
850
|
updateConfig: (input) => addSelfPlanAndSendFunctions(client, getUpdateConfigInstruction(input)),
|
|
739
851
|
updateEconomics: (input) => addSelfPlanAndSendFunctions(client, getUpdateEconomicsInstruction(input)),
|
|
740
852
|
updateProfile: (input) => addSelfPlanAndSendFunctions(client, getUpdateProfileInstructionAsync(input)),
|
|
741
853
|
},
|
|
742
854
|
pdas: {
|
|
855
|
+
board: findBoardPda,
|
|
743
856
|
userState: findUserStatePda,
|
|
744
857
|
vault: findVaultPda,
|
|
745
|
-
board: findBoardPda,
|
|
746
858
|
profile: findProfilePda,
|
|
747
859
|
committee: findCommitteePda,
|
|
748
860
|
delegate: findDelegatePda,
|
|
749
861
|
config: findConfigPda,
|
|
862
|
+
entry: findEntryPda,
|
|
750
863
|
mintCap: findMintCapPda,
|
|
751
864
|
},
|
|
752
865
|
identifyAccount: identifyIntentEngineAccount,
|