@intent-engine/core 0.1.23 → 0.1.27
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 +50 -0
- package/dist/generated/client/accounts/claimBoard.js +77 -0
- package/dist/generated/client/accounts/claimBoard.js.map +1 -0
- package/dist/generated/client/accounts/committee.d.ts +48 -0
- package/dist/generated/client/accounts/committee.js +75 -0
- package/dist/generated/client/accounts/committee.js.map +1 -0
- package/dist/generated/client/accounts/config.d.ts +2 -0
- package/dist/generated/client/accounts/config.js +4 -2
- package/dist/generated/client/accounts/config.js.map +1 -1
- package/dist/generated/client/accounts/index.d.ts +4 -0
- package/dist/generated/client/accounts/index.js +4 -0
- package/dist/generated/client/accounts/index.js.map +1 -1
- package/dist/generated/client/accounts/intent.d.ts +2 -0
- package/dist/generated/client/accounts/intent.js +4 -2
- package/dist/generated/client/accounts/intent.js.map +1 -1
- package/dist/generated/client/accounts/mintCap.d.ts +48 -0
- package/dist/generated/client/accounts/mintCap.js +75 -0
- package/dist/generated/client/accounts/mintCap.js.map +1 -0
- package/dist/generated/client/accounts/profile.d.ts +48 -0
- package/dist/generated/client/accounts/profile.js +81 -0
- package/dist/generated/client/accounts/profile.js.map +1 -0
- package/dist/generated/client/errors/intentEngine.d.ts +31 -1
- package/dist/generated/client/errors/intentEngine.js +45 -0
- package/dist/generated/client/errors/intentEngine.js.map +1 -1
- package/dist/generated/client/events/capsRequiredSet.d.ts +22 -0
- package/dist/generated/client/events/capsRequiredSet.js +32 -0
- package/dist/generated/client/events/capsRequiredSet.js.map +1 -0
- package/dist/generated/client/events/claimDropped.d.ts +28 -0
- package/dist/generated/client/events/claimDropped.js +40 -0
- package/dist/generated/client/events/claimDropped.js.map +1 -0
- package/dist/generated/client/events/claimsClosed.d.ts +23 -0
- package/dist/generated/client/events/claimsClosed.js +38 -0
- package/dist/generated/client/events/claimsClosed.js.map +1 -0
- package/dist/generated/client/events/claimsOpened.d.ts +30 -0
- package/dist/generated/client/events/claimsOpened.js +42 -0
- package/dist/generated/client/events/claimsOpened.js.map +1 -0
- package/dist/generated/client/events/committeeAttested.d.ts +24 -0
- package/dist/generated/client/events/committeeAttested.js +40 -0
- package/dist/generated/client/events/committeeAttested.js.map +1 -0
- package/dist/generated/client/events/committeeCreated.d.ts +25 -0
- package/dist/generated/client/events/committeeCreated.js +42 -0
- package/dist/generated/client/events/committeeCreated.js.map +1 -0
- package/dist/generated/client/events/index.d.ts +11 -0
- package/dist/generated/client/events/index.js +11 -0
- package/dist/generated/client/events/index.js.map +1 -1
- package/dist/generated/client/events/jobClaimed.d.ts +30 -0
- package/dist/generated/client/events/jobClaimed.js +42 -0
- package/dist/generated/client/events/jobClaimed.js.map +1 -0
- package/dist/generated/client/events/mintCapSet.d.ts +36 -0
- package/dist/generated/client/events/mintCapSet.js +48 -0
- package/dist/generated/client/events/mintCapSet.js.map +1 -0
- package/dist/generated/client/events/profileClosed.d.ts +22 -0
- package/dist/generated/client/events/profileClosed.js +32 -0
- package/dist/generated/client/events/profileClosed.js.map +1 -0
- package/dist/generated/client/events/profileSet.d.ts +26 -0
- package/dist/generated/client/events/profileSet.js +50 -0
- package/dist/generated/client/events/profileSet.js.map +1 -0
- package/dist/generated/client/events/stakeMoved.d.ts +32 -0
- package/dist/generated/client/events/stakeMoved.js +44 -0
- package/dist/generated/client/events/stakeMoved.js.map +1 -0
- package/dist/generated/client/instructions/claimJob.d.ts +72 -0
- package/dist/generated/client/instructions/claimJob.js +163 -0
- package/dist/generated/client/instructions/claimJob.js.map +1 -0
- package/dist/generated/client/instructions/closeProfile.d.ts +55 -0
- package/dist/generated/client/instructions/closeProfile.js +131 -0
- package/dist/generated/client/instructions/closeProfile.js.map +1 -0
- package/dist/generated/client/instructions/createCommittee.d.ts +76 -0
- package/dist/generated/client/instructions/createCommittee.js +163 -0
- package/dist/generated/client/instructions/createCommittee.js.map +1 -0
- package/dist/generated/client/instructions/createIntent.d.ts +13 -9
- package/dist/generated/client/instructions/createIntent.js +21 -2
- package/dist/generated/client/instructions/createIntent.js.map +1 -1
- package/dist/generated/client/instructions/createIntentByAgent.d.ts +13 -9
- package/dist/generated/client/instructions/createIntentByAgent.js +21 -2
- package/dist/generated/client/instructions/createIntentByAgent.js.map +1 -1
- package/dist/generated/client/instructions/createIntentSigned.d.ts +13 -9
- package/dist/generated/client/instructions/createIntentSigned.js +15 -2
- package/dist/generated/client/instructions/createIntentSigned.js.map +1 -1
- package/dist/generated/client/instructions/createProfile.d.ts +65 -0
- package/dist/generated/client/instructions/createProfile.js +162 -0
- package/dist/generated/client/instructions/createProfile.js.map +1 -0
- package/dist/generated/client/instructions/dropClaim.d.ts +59 -0
- package/dist/generated/client/instructions/dropClaim.js +128 -0
- package/dist/generated/client/instructions/dropClaim.js.map +1 -0
- package/dist/generated/client/instructions/fillAttested.d.ts +17 -9
- package/dist/generated/client/instructions/fillAttested.js +20 -2
- package/dist/generated/client/instructions/fillAttested.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedCommittee.d.ts +124 -0
- package/dist/generated/client/instructions/fillAttestedCommittee.js +271 -0
- package/dist/generated/client/instructions/fillAttestedCommittee.js.map +1 -0
- package/dist/generated/client/instructions/fillAttestedSplit.d.ts +22 -17
- package/dist/generated/client/instructions/fillAttestedSplit.js +24 -7
- package/dist/generated/client/instructions/fillAttestedSplit.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.d.ts +157 -0
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.js +373 -0
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.js.map +1 -0
- package/dist/generated/client/instructions/index.d.ts +12 -0
- package/dist/generated/client/instructions/index.js +12 -0
- package/dist/generated/client/instructions/index.js.map +1 -1
- package/dist/generated/client/instructions/openClaims.d.ts +72 -0
- package/dist/generated/client/instructions/openClaims.js +160 -0
- package/dist/generated/client/instructions/openClaims.js.map +1 -0
- package/dist/generated/client/instructions/setCapsRequired.d.ts +50 -0
- package/dist/generated/client/instructions/setCapsRequired.js +93 -0
- package/dist/generated/client/instructions/setCapsRequired.js.map +1 -0
- package/dist/generated/client/instructions/setMintCap.d.ts +84 -0
- package/dist/generated/client/instructions/setMintCap.js +188 -0
- package/dist/generated/client/instructions/setMintCap.js.map +1 -0
- package/dist/generated/client/instructions/settleClaims.d.ts +63 -0
- package/dist/generated/client/instructions/settleClaims.js +139 -0
- package/dist/generated/client/instructions/settleClaims.js.map +1 -0
- package/dist/generated/client/instructions/updateProfile.d.ts +61 -0
- package/dist/generated/client/instructions/updateProfile.js +140 -0
- package/dist/generated/client/instructions/updateProfile.js.map +1 -0
- package/dist/generated/client/pdas/board.d.ts +14 -0
- package/dist/generated/client/pdas/board.js +19 -0
- package/dist/generated/client/pdas/board.js.map +1 -0
- package/dist/generated/client/pdas/committee.d.ts +14 -0
- package/dist/generated/client/pdas/committee.js +19 -0
- package/dist/generated/client/pdas/committee.js.map +1 -0
- package/dist/generated/client/pdas/index.d.ts +4 -0
- package/dist/generated/client/pdas/index.js +4 -0
- package/dist/generated/client/pdas/index.js.map +1 -1
- package/dist/generated/client/pdas/mintCap.d.ts +14 -0
- package/dist/generated/client/pdas/mintCap.js +19 -0
- package/dist/generated/client/pdas/mintCap.js.map +1 -0
- package/dist/generated/client/pdas/profile.d.ts +14 -0
- package/dist/generated/client/pdas/profile.js +19 -0
- package/dist/generated/client/pdas/profile.js.map +1 -0
- package/dist/generated/client/programs/intentEngine.d.ts +190 -92
- package/dist/generated/client/programs/intentEngine.js +336 -91
- package/dist/generated/client/programs/intentEngine.js.map +1 -1
- package/dist/generated/client/types/index.d.ts +2 -0
- package/dist/generated/client/types/index.js +2 -0
- package/dist/generated/client/types/index.js.map +1 -1
- package/dist/generated/client/types/profileFields.d.ts +18 -0
- package/dist/generated/client/types/profileFields.js +34 -0
- package/dist/generated/client/types/profileFields.js.map +1 -0
- package/dist/generated/client/types/splitClaim.d.ts +16 -0
- package/dist/generated/client/types/splitClaim.js +24 -0
- package/dist/generated/client/types/splitClaim.js.map +1 -0
- package/dist/src/admin-builders.d.ts +49 -0
- package/dist/src/admin-builders.js +52 -0
- package/dist/src/admin-builders.js.map +1 -0
- package/dist/src/bounty.d.ts +3 -1
- package/dist/src/bounty.js +6 -2
- package/dist/src/bounty.js.map +1 -1
- package/dist/src/builder-accounts.d.ts +62 -0
- package/dist/src/builder-accounts.js +64 -0
- package/dist/src/builder-accounts.js.map +1 -0
- package/dist/src/builders.d.ts +5 -213
- package/dist/src/builders.js +5 -493
- package/dist/src/builders.js.map +1 -1
- package/dist/src/claims.d.ts +47 -0
- package/dist/src/claims.js +69 -0
- package/dist/src/claims.js.map +1 -0
- package/dist/src/committee.d.ts +40 -0
- package/dist/src/committee.js +145 -0
- package/dist/src/committee.js.map +1 -0
- package/dist/src/describe.d.ts +6 -1
- package/dist/src/describe.js +25 -3
- package/dist/src/describe.js.map +1 -1
- package/dist/src/errors.d.ts +2 -1
- package/dist/src/errors.js +44 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/events.d.ts +12 -1
- package/dist/src/events.js +15 -1
- package/dist/src/events.js.map +1 -1
- package/dist/src/fee.d.ts +1 -0
- package/dist/src/fee.js +13 -5
- package/dist/src/fee.js.map +1 -1
- package/dist/src/fill-builders.d.ts +63 -0
- package/dist/src/fill-builders.js +151 -0
- package/dist/src/fill-builders.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent-builders.d.ts +65 -0
- package/dist/src/intent-builders.js +159 -0
- package/dist/src/intent-builders.js.map +1 -0
- package/dist/src/mandate.js +2 -2
- package/dist/src/mandate.js.map +1 -1
- package/dist/src/math.d.ts +1 -0
- package/dist/src/math.js +9 -0
- package/dist/src/math.js.map +1 -1
- package/dist/src/memo.d.ts +11 -1
- package/dist/src/memo.js +40 -4
- package/dist/src/memo.js.map +1 -1
- package/dist/src/mint-caps.d.ts +31 -0
- package/dist/src/mint-caps.js +73 -0
- package/dist/src/mint-caps.js.map +1 -0
- package/dist/src/owner-builders.d.ts +52 -0
- package/dist/src/owner-builders.js +83 -0
- package/dist/src/owner-builders.js.map +1 -0
- package/dist/src/sig.d.ts +1 -0
- package/dist/src/sig.js +4 -0
- package/dist/src/sig.js.map +1 -1
- package/dist/src/state.d.ts +3 -0
- package/dist/src/state.js +5 -0
- package/dist/src/state.js.map +1 -1
- package/dist/src/validate.d.ts +2 -0
- package/dist/src/validate.js +15 -0
- package/dist/src/validate.js.map +1 -1
- package/generated/idl.json +1990 -63
- package/package.json +19 -6
- package/dist/generated/client/types/configSettings.d.ts +0 -25
- package/dist/generated/client/types/configSettings.js +0 -30
- package/dist/generated/client/types/configSettings.js.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { getAddressEncoder, getBytesEncoder, getProgramDerivedAddress, } from "@solana/kit";
|
|
9
|
+
export async function findBoardPda(seeds, config = {}) {
|
|
10
|
+
const { programAddress = "GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU", } = config;
|
|
11
|
+
return await getProgramDerivedAddress({
|
|
12
|
+
programAddress,
|
|
13
|
+
seeds: [
|
|
14
|
+
getBytesEncoder().encode(new Uint8Array([99, 108, 97, 105, 109, 115])),
|
|
15
|
+
getAddressEncoder().encode(seeds.intent),
|
|
16
|
+
],
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=board.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"board.js","sourceRoot":"","sources":["../../../../generated/client/pdas/board.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,wBAAwB,GAGzB,MAAM,aAAa,CAAC;AAMrB,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,KAAiB,EACjB,MAAM,GAA6C,EAAE;IAErD,MAAM,EACJ,cAAc,GAAG,8CAAyG,GAC3H,GAAG,MAAM,CAAC;IACX,OAAO,MAAM,wBAAwB,CAAC;QACpC,cAAc;QACd,KAAK,EAAE;YACL,eAAe,EAAE,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACtE,iBAAiB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;SACzC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type ProgramDerivedAddress, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export type CommitteeSeeds = {
|
|
10
|
+
id: ReadonlyUint8Array;
|
|
11
|
+
};
|
|
12
|
+
export declare function findCommitteePda(seeds: CommitteeSeeds, config?: {
|
|
13
|
+
programAddress?: Address | undefined;
|
|
14
|
+
}): Promise<ProgramDerivedAddress>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fixEncoderSize, getBytesEncoder, getProgramDerivedAddress, } from "@solana/kit";
|
|
9
|
+
export async function findCommitteePda(seeds, config = {}) {
|
|
10
|
+
const { programAddress = "GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU", } = config;
|
|
11
|
+
return await getProgramDerivedAddress({
|
|
12
|
+
programAddress,
|
|
13
|
+
seeds: [
|
|
14
|
+
getBytesEncoder().encode(new Uint8Array([99, 111, 109, 109, 105, 116, 116, 101, 101])),
|
|
15
|
+
fixEncoderSize(getBytesEncoder(), 32).encode(seeds.id),
|
|
16
|
+
],
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=committee.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"committee.js","sourceRoot":"","sources":["../../../../generated/client/pdas/committee.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,wBAAwB,GAIzB,MAAM,aAAa,CAAC;AAMrB,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAqB,EACrB,MAAM,GAA6C,EAAE;IAErD,MAAM,EACJ,cAAc,GAAG,8CAAyG,GAC3H,GAAG,MAAM,CAAC;IACX,OAAO,MAAM,wBAAwB,CAAC;QACpC,cAAc;QACd,KAAK,EAAE;YACL,eAAe,EAAE,CAAC,MAAM,CACtB,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAC7D;YACD,cAAc,CAAC,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;SACvD;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
+
export * from "./board.js";
|
|
9
|
+
export * from "./committee.js";
|
|
8
10
|
export * from "./config.js";
|
|
9
11
|
export * from "./delegate.js";
|
|
12
|
+
export * from "./mintCap.js";
|
|
13
|
+
export * from "./profile.js";
|
|
10
14
|
export * from "./userState.js";
|
|
11
15
|
export * from "./vault.js";
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
+
export * from "./board.js";
|
|
9
|
+
export * from "./committee.js";
|
|
8
10
|
export * from "./config.js";
|
|
9
11
|
export * from "./delegate.js";
|
|
12
|
+
export * from "./mintCap.js";
|
|
13
|
+
export * from "./profile.js";
|
|
10
14
|
export * from "./userState.js";
|
|
11
15
|
export * from "./vault.js";
|
|
12
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/pdas/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/pdas/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type ProgramDerivedAddress } from "@solana/kit";
|
|
9
|
+
export type MintCapSeeds = {
|
|
10
|
+
mint: Address;
|
|
11
|
+
};
|
|
12
|
+
export declare function findMintCapPda(seeds: MintCapSeeds, config?: {
|
|
13
|
+
programAddress?: Address | undefined;
|
|
14
|
+
}): Promise<ProgramDerivedAddress>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { getAddressEncoder, getBytesEncoder, getProgramDerivedAddress, } from "@solana/kit";
|
|
9
|
+
export async function findMintCapPda(seeds, config = {}) {
|
|
10
|
+
const { programAddress = "GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU", } = config;
|
|
11
|
+
return await getProgramDerivedAddress({
|
|
12
|
+
programAddress,
|
|
13
|
+
seeds: [
|
|
14
|
+
getBytesEncoder().encode(new Uint8Array([109, 105, 110, 116, 95, 99, 97, 112])),
|
|
15
|
+
getAddressEncoder().encode(seeds.mint),
|
|
16
|
+
],
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=mintCap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mintCap.js","sourceRoot":"","sources":["../../../../generated/client/pdas/mintCap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,wBAAwB,GAGzB,MAAM,aAAa,CAAC;AAMrB,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAAmB,EACnB,MAAM,GAA6C,EAAE;IAErD,MAAM,EACJ,cAAc,GAAG,8CAAyG,GAC3H,GAAG,MAAM,CAAC;IACX,OAAO,MAAM,wBAAwB,CAAC;QACpC,cAAc;QACd,KAAK,EAAE;YACL,eAAe,EAAE,CAAC,MAAM,CACtB,IAAI,UAAU,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CACtD;YACD,iBAAiB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;SACvC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type ProgramDerivedAddress } from "@solana/kit";
|
|
9
|
+
export type ProfileSeeds = {
|
|
10
|
+
wallet: Address;
|
|
11
|
+
};
|
|
12
|
+
export declare function findProfilePda(seeds: ProfileSeeds, config?: {
|
|
13
|
+
programAddress?: Address | undefined;
|
|
14
|
+
}): Promise<ProgramDerivedAddress>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { getAddressEncoder, getBytesEncoder, getProgramDerivedAddress, } from "@solana/kit";
|
|
9
|
+
export async function findProfilePda(seeds, config = {}) {
|
|
10
|
+
const { programAddress = "GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU", } = config;
|
|
11
|
+
return await getProgramDerivedAddress({
|
|
12
|
+
programAddress,
|
|
13
|
+
seeds: [
|
|
14
|
+
getBytesEncoder().encode(new Uint8Array([112, 114, 111, 102, 105, 108, 101])),
|
|
15
|
+
getAddressEncoder().encode(seeds.wallet),
|
|
16
|
+
],
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../generated/client/pdas/profile.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,wBAAwB,GAGzB,MAAM,aAAa,CAAC;AAMrB,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAAmB,EACnB,MAAM,GAA6C,EAAE;IAErD,MAAM,EACJ,cAAc,GAAG,8CAAyG,GAC3H,GAAG,MAAM,CAAC;IACX,OAAO,MAAM,wBAAwB,CAAC;QACpC,cAAc;QACd,KAAK,EAAE;YACL,eAAe,EAAE,CAAC,MAAM,CACtB,IAAI,UAAU,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CACpD;YACD,iBAAiB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;SACzC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -7,19 +7,27 @@
|
|
|
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 { getConfigCodec, getIntentCodec, getMandateCodec, getUserStateCodec, type Config, type ConfigArgs, type Intent, type IntentArgs, type Mandate, type MandateArgs, type UserState, type UserStateArgs } from "../accounts/index.js";
|
|
11
|
-
import { getAcceptAdminInstruction, getAdvanceEpochInstructionAsync, getAdvanceNonceInstructionAsync, getBeginFillInstructionAsync, getCancelIntentInstructionAsync, getCloseIntentInstructionAsync, getCreateIntentByAgentInstructionAsync, getCreateIntentInstructionAsync, getCreateIntentSignedInstructionAsync, getCreateMandateInstructionAsync, getEndFillInstruction, getExpireIntentInstructionAsync, getFillAttestedInstructionAsync, getFillAttestedSplitInstructionAsync, getFillIntentInstructionAsync, getInitConfigInstructionAsync, getInitUserInstructionAsync, getLowerPauseInstruction, getProposeAdminInstruction, getRaisePauseInstruction, getRevokeMandateInstruction, getUpdateConfigInstruction, getUpdateEconomicsInstruction, type AcceptAdminInput, type AdvanceEpochAsyncInput, type AdvanceNonceAsyncInput, type BeginFillAsyncInput, type CancelIntentAsyncInput, type CloseIntentAsyncInput, type CreateIntentAsyncInput, type CreateIntentByAgentAsyncInput, type CreateIntentSignedAsyncInput, type CreateMandateAsyncInput, type EndFillInput, type ExpireIntentAsyncInput, type FillAttestedAsyncInput, type FillAttestedSplitAsyncInput, type FillIntentAsyncInput, type InitConfigAsyncInput, type InitUserAsyncInput, type LowerPauseInput, type ParsedAcceptAdminInstruction, type ParsedAdvanceEpochInstruction, type ParsedAdvanceNonceInstruction, type ParsedBeginFillInstruction, type ParsedCancelIntentInstruction, type ParsedCloseIntentInstruction, type ParsedCreateIntentByAgentInstruction, type ParsedCreateIntentInstruction, type ParsedCreateIntentSignedInstruction, type ParsedCreateMandateInstruction, type ParsedEndFillInstruction, type ParsedExpireIntentInstruction, type ParsedFillAttestedInstruction, type ParsedFillAttestedSplitInstruction, type ParsedFillIntentInstruction, type ParsedInitConfigInstruction, type ParsedInitUserInstruction, type ParsedLowerPauseInstruction, type ParsedProposeAdminInstruction, type ParsedRaisePauseInstruction, type ParsedRevokeMandateInstruction, type ParsedUpdateConfigInstruction, type ParsedUpdateEconomicsInstruction, type ProposeAdminInput, type RaisePauseInput, type RevokeMandateInput, type UpdateConfigInput, type UpdateEconomicsInput } from "../instructions/index.js";
|
|
12
|
-
import { findConfigPda, findDelegatePda, findUserStatePda, findVaultPda } from "../pdas/index.js";
|
|
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";
|
|
13
13
|
export declare const INTENT_ENGINE_PROGRAM_ADDRESS: Address<"GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU">;
|
|
14
14
|
export declare const IntentEngineAccount: {
|
|
15
|
-
readonly 0: "
|
|
16
|
-
readonly 1: "
|
|
17
|
-
readonly 2: "
|
|
18
|
-
readonly 3: "
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
15
|
+
readonly 0: "ClaimBoard";
|
|
16
|
+
readonly 1: "Committee";
|
|
17
|
+
readonly 2: "Config";
|
|
18
|
+
readonly 3: "Intent";
|
|
19
|
+
readonly 4: "Mandate";
|
|
20
|
+
readonly 5: "MintCap";
|
|
21
|
+
readonly 6: "Profile";
|
|
22
|
+
readonly 7: "UserState";
|
|
23
|
+
readonly ClaimBoard: 0;
|
|
24
|
+
readonly Committee: 1;
|
|
25
|
+
readonly Config: 2;
|
|
26
|
+
readonly Intent: 3;
|
|
27
|
+
readonly Mandate: 4;
|
|
28
|
+
readonly MintCap: 5;
|
|
29
|
+
readonly Profile: 6;
|
|
30
|
+
readonly UserState: 7;
|
|
23
31
|
};
|
|
24
32
|
export type IntentEngineAccount = (typeof IntentEngineAccount)[Exclude<keyof typeof IntentEngineAccount, number>];
|
|
25
33
|
export declare function identifyIntentEngineAccount(account: {
|
|
@@ -29,53 +37,75 @@ export declare const IntentEngineEvent: {
|
|
|
29
37
|
readonly 0: "AdminAccepted";
|
|
30
38
|
readonly 1: "AdminProposed";
|
|
31
39
|
readonly 2: "AgentPaid";
|
|
32
|
-
readonly 3: "
|
|
33
|
-
readonly 4: "
|
|
34
|
-
readonly 5: "
|
|
35
|
-
readonly 6: "
|
|
36
|
-
readonly 7: "
|
|
37
|
-
readonly 8: "
|
|
38
|
-
readonly 9: "
|
|
39
|
-
readonly 10: "
|
|
40
|
-
readonly 11: "
|
|
41
|
-
readonly 12: "
|
|
42
|
-
readonly 13: "
|
|
43
|
-
readonly 14: "
|
|
44
|
-
readonly 15: "
|
|
45
|
-
readonly 16: "
|
|
46
|
-
readonly 17: "
|
|
47
|
-
readonly 18: "
|
|
48
|
-
readonly 19: "
|
|
49
|
-
readonly 20: "
|
|
50
|
-
readonly 21: "
|
|
51
|
-
readonly 22: "
|
|
52
|
-
readonly 23: "
|
|
53
|
-
readonly 24: "
|
|
40
|
+
readonly 3: "CapsRequiredSet";
|
|
41
|
+
readonly 4: "ClaimDropped";
|
|
42
|
+
readonly 5: "ClaimsClosed";
|
|
43
|
+
readonly 6: "ClaimsOpened";
|
|
44
|
+
readonly 7: "CommitteeAttested";
|
|
45
|
+
readonly 8: "CommitteeCreated";
|
|
46
|
+
readonly 9: "ConfigInitialized";
|
|
47
|
+
readonly 10: "ConfigUpdated";
|
|
48
|
+
readonly 11: "EconomicsUpdated";
|
|
49
|
+
readonly 12: "EpochAdvanced";
|
|
50
|
+
readonly 13: "FeeWithheld";
|
|
51
|
+
readonly 14: "FillBegun";
|
|
52
|
+
readonly 15: "FillEnded";
|
|
53
|
+
readonly 16: "IntentAttested";
|
|
54
|
+
readonly 17: "IntentCancelled";
|
|
55
|
+
readonly 18: "IntentClosed";
|
|
56
|
+
readonly 19: "IntentCreated";
|
|
57
|
+
readonly 20: "IntentExpired";
|
|
58
|
+
readonly 21: "IntentFilled";
|
|
59
|
+
readonly 22: "IntentSplit";
|
|
60
|
+
readonly 23: "JobClaimed";
|
|
61
|
+
readonly 24: "MandateClosed";
|
|
62
|
+
readonly 25: "MandateCreated";
|
|
63
|
+
readonly 26: "MandateUsed";
|
|
64
|
+
readonly 27: "MintCapSet";
|
|
65
|
+
readonly 28: "NonceAdvanced";
|
|
66
|
+
readonly 29: "PauseLowered";
|
|
67
|
+
readonly 30: "PauseRaised";
|
|
68
|
+
readonly 31: "ProfileClosed";
|
|
69
|
+
readonly 32: "ProfileSet";
|
|
70
|
+
readonly 33: "RelayerPaid";
|
|
71
|
+
readonly 34: "StakeMoved";
|
|
72
|
+
readonly 35: "UserInitialized";
|
|
54
73
|
readonly AdminAccepted: 0;
|
|
55
74
|
readonly AdminProposed: 1;
|
|
56
75
|
readonly AgentPaid: 2;
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
76
|
+
readonly CapsRequiredSet: 3;
|
|
77
|
+
readonly ClaimDropped: 4;
|
|
78
|
+
readonly ClaimsClosed: 5;
|
|
79
|
+
readonly ClaimsOpened: 6;
|
|
80
|
+
readonly CommitteeAttested: 7;
|
|
81
|
+
readonly CommitteeCreated: 8;
|
|
82
|
+
readonly ConfigInitialized: 9;
|
|
83
|
+
readonly ConfigUpdated: 10;
|
|
84
|
+
readonly EconomicsUpdated: 11;
|
|
85
|
+
readonly EpochAdvanced: 12;
|
|
86
|
+
readonly FeeWithheld: 13;
|
|
87
|
+
readonly FillBegun: 14;
|
|
88
|
+
readonly FillEnded: 15;
|
|
89
|
+
readonly IntentAttested: 16;
|
|
90
|
+
readonly IntentCancelled: 17;
|
|
91
|
+
readonly IntentClosed: 18;
|
|
92
|
+
readonly IntentCreated: 19;
|
|
93
|
+
readonly IntentExpired: 20;
|
|
94
|
+
readonly IntentFilled: 21;
|
|
95
|
+
readonly IntentSplit: 22;
|
|
96
|
+
readonly JobClaimed: 23;
|
|
97
|
+
readonly MandateClosed: 24;
|
|
98
|
+
readonly MandateCreated: 25;
|
|
99
|
+
readonly MandateUsed: 26;
|
|
100
|
+
readonly MintCapSet: 27;
|
|
101
|
+
readonly NonceAdvanced: 28;
|
|
102
|
+
readonly PauseLowered: 29;
|
|
103
|
+
readonly PauseRaised: 30;
|
|
104
|
+
readonly ProfileClosed: 31;
|
|
105
|
+
readonly ProfileSet: 32;
|
|
106
|
+
readonly RelayerPaid: 33;
|
|
107
|
+
readonly StakeMoved: 34;
|
|
108
|
+
readonly UserInitialized: 35;
|
|
79
109
|
};
|
|
80
110
|
export type IntentEngineEvent = (typeof IntentEngineEvent)[Exclude<keyof typeof IntentEngineEvent, number>];
|
|
81
111
|
export declare function identifyIntentEngineEvent(event: {
|
|
@@ -87,47 +117,71 @@ export declare const IntentEngineInstruction: {
|
|
|
87
117
|
readonly 2: "AdvanceNonce";
|
|
88
118
|
readonly 3: "BeginFill";
|
|
89
119
|
readonly 4: "CancelIntent";
|
|
90
|
-
readonly 5: "
|
|
91
|
-
readonly 6: "
|
|
92
|
-
readonly 7: "
|
|
93
|
-
readonly 8: "
|
|
94
|
-
readonly 9: "
|
|
95
|
-
readonly 10: "
|
|
96
|
-
readonly 11: "
|
|
97
|
-
readonly 12: "
|
|
98
|
-
readonly 13: "
|
|
99
|
-
readonly 14: "
|
|
100
|
-
readonly 15: "
|
|
101
|
-
readonly 16: "
|
|
102
|
-
readonly 17: "
|
|
103
|
-
readonly 18: "
|
|
104
|
-
readonly 19: "
|
|
105
|
-
readonly 20: "
|
|
106
|
-
readonly 21: "
|
|
107
|
-
readonly 22: "
|
|
120
|
+
readonly 5: "ClaimJob";
|
|
121
|
+
readonly 6: "CloseIntent";
|
|
122
|
+
readonly 7: "CloseProfile";
|
|
123
|
+
readonly 8: "CreateCommittee";
|
|
124
|
+
readonly 9: "CreateIntent";
|
|
125
|
+
readonly 10: "CreateIntentByAgent";
|
|
126
|
+
readonly 11: "CreateIntentSigned";
|
|
127
|
+
readonly 12: "CreateMandate";
|
|
128
|
+
readonly 13: "CreateProfile";
|
|
129
|
+
readonly 14: "DropClaim";
|
|
130
|
+
readonly 15: "EndFill";
|
|
131
|
+
readonly 16: "ExpireIntent";
|
|
132
|
+
readonly 17: "FillAttested";
|
|
133
|
+
readonly 18: "FillAttestedCommittee";
|
|
134
|
+
readonly 19: "FillAttestedSplit";
|
|
135
|
+
readonly 20: "FillAttestedSplitCommittee";
|
|
136
|
+
readonly 21: "FillIntent";
|
|
137
|
+
readonly 22: "InitConfig";
|
|
138
|
+
readonly 23: "InitUser";
|
|
139
|
+
readonly 24: "LowerPause";
|
|
140
|
+
readonly 25: "OpenClaims";
|
|
141
|
+
readonly 26: "ProposeAdmin";
|
|
142
|
+
readonly 27: "RaisePause";
|
|
143
|
+
readonly 28: "RevokeMandate";
|
|
144
|
+
readonly 29: "SetCapsRequired";
|
|
145
|
+
readonly 30: "SetMintCap";
|
|
146
|
+
readonly 31: "SettleClaims";
|
|
147
|
+
readonly 32: "UpdateConfig";
|
|
148
|
+
readonly 33: "UpdateEconomics";
|
|
149
|
+
readonly 34: "UpdateProfile";
|
|
108
150
|
readonly AcceptAdmin: 0;
|
|
109
151
|
readonly AdvanceEpoch: 1;
|
|
110
152
|
readonly AdvanceNonce: 2;
|
|
111
153
|
readonly BeginFill: 3;
|
|
112
154
|
readonly CancelIntent: 4;
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
155
|
+
readonly ClaimJob: 5;
|
|
156
|
+
readonly CloseIntent: 6;
|
|
157
|
+
readonly CloseProfile: 7;
|
|
158
|
+
readonly CreateCommittee: 8;
|
|
159
|
+
readonly CreateIntent: 9;
|
|
160
|
+
readonly CreateIntentByAgent: 10;
|
|
161
|
+
readonly CreateIntentSigned: 11;
|
|
162
|
+
readonly CreateMandate: 12;
|
|
163
|
+
readonly CreateProfile: 13;
|
|
164
|
+
readonly DropClaim: 14;
|
|
165
|
+
readonly EndFill: 15;
|
|
166
|
+
readonly ExpireIntent: 16;
|
|
167
|
+
readonly FillAttested: 17;
|
|
168
|
+
readonly FillAttestedCommittee: 18;
|
|
169
|
+
readonly FillAttestedSplit: 19;
|
|
170
|
+
readonly FillAttestedSplitCommittee: 20;
|
|
171
|
+
readonly FillIntent: 21;
|
|
172
|
+
readonly InitConfig: 22;
|
|
173
|
+
readonly InitUser: 23;
|
|
174
|
+
readonly LowerPause: 24;
|
|
175
|
+
readonly OpenClaims: 25;
|
|
176
|
+
readonly ProposeAdmin: 26;
|
|
177
|
+
readonly RaisePause: 27;
|
|
178
|
+
readonly RevokeMandate: 28;
|
|
179
|
+
readonly SetCapsRequired: 29;
|
|
180
|
+
readonly SetMintCap: 30;
|
|
181
|
+
readonly SettleClaims: 31;
|
|
182
|
+
readonly UpdateConfig: 32;
|
|
183
|
+
readonly UpdateEconomics: 33;
|
|
184
|
+
readonly UpdateProfile: 34;
|
|
131
185
|
};
|
|
132
186
|
export type IntentEngineInstruction = (typeof IntentEngineInstruction)[Exclude<keyof typeof IntentEngineInstruction, number>];
|
|
133
187
|
export declare function identifyIntentEngineInstruction(instruction: {
|
|
@@ -144,8 +198,14 @@ export type ParsedIntentEngineInstruction<TProgram extends string = "GHFB9q4fhhq
|
|
|
144
198
|
} & ParsedBeginFillInstruction<TProgram>) | ({
|
|
145
199
|
instructionType: typeof IntentEngineInstruction.CancelIntent;
|
|
146
200
|
} & ParsedCancelIntentInstruction<TProgram>) | ({
|
|
201
|
+
instructionType: typeof IntentEngineInstruction.ClaimJob;
|
|
202
|
+
} & ParsedClaimJobInstruction<TProgram>) | ({
|
|
147
203
|
instructionType: typeof IntentEngineInstruction.CloseIntent;
|
|
148
204
|
} & ParsedCloseIntentInstruction<TProgram>) | ({
|
|
205
|
+
instructionType: typeof IntentEngineInstruction.CloseProfile;
|
|
206
|
+
} & ParsedCloseProfileInstruction<TProgram>) | ({
|
|
207
|
+
instructionType: typeof IntentEngineInstruction.CreateCommittee;
|
|
208
|
+
} & ParsedCreateCommitteeInstruction<TProgram>) | ({
|
|
149
209
|
instructionType: typeof IntentEngineInstruction.CreateIntent;
|
|
150
210
|
} & ParsedCreateIntentInstruction<TProgram>) | ({
|
|
151
211
|
instructionType: typeof IntentEngineInstruction.CreateIntentByAgent;
|
|
@@ -154,14 +214,22 @@ export type ParsedIntentEngineInstruction<TProgram extends string = "GHFB9q4fhhq
|
|
|
154
214
|
} & ParsedCreateIntentSignedInstruction<TProgram>) | ({
|
|
155
215
|
instructionType: typeof IntentEngineInstruction.CreateMandate;
|
|
156
216
|
} & ParsedCreateMandateInstruction<TProgram>) | ({
|
|
217
|
+
instructionType: typeof IntentEngineInstruction.CreateProfile;
|
|
218
|
+
} & ParsedCreateProfileInstruction<TProgram>) | ({
|
|
219
|
+
instructionType: typeof IntentEngineInstruction.DropClaim;
|
|
220
|
+
} & ParsedDropClaimInstruction<TProgram>) | ({
|
|
157
221
|
instructionType: typeof IntentEngineInstruction.EndFill;
|
|
158
222
|
} & ParsedEndFillInstruction<TProgram>) | ({
|
|
159
223
|
instructionType: typeof IntentEngineInstruction.ExpireIntent;
|
|
160
224
|
} & ParsedExpireIntentInstruction<TProgram>) | ({
|
|
161
225
|
instructionType: typeof IntentEngineInstruction.FillAttested;
|
|
162
226
|
} & ParsedFillAttestedInstruction<TProgram>) | ({
|
|
227
|
+
instructionType: typeof IntentEngineInstruction.FillAttestedCommittee;
|
|
228
|
+
} & ParsedFillAttestedCommitteeInstruction<TProgram>) | ({
|
|
163
229
|
instructionType: typeof IntentEngineInstruction.FillAttestedSplit;
|
|
164
230
|
} & ParsedFillAttestedSplitInstruction<TProgram>) | ({
|
|
231
|
+
instructionType: typeof IntentEngineInstruction.FillAttestedSplitCommittee;
|
|
232
|
+
} & ParsedFillAttestedSplitCommitteeInstruction<TProgram>) | ({
|
|
165
233
|
instructionType: typeof IntentEngineInstruction.FillIntent;
|
|
166
234
|
} & ParsedFillIntentInstruction<TProgram>) | ({
|
|
167
235
|
instructionType: typeof IntentEngineInstruction.InitConfig;
|
|
@@ -170,16 +238,26 @@ export type ParsedIntentEngineInstruction<TProgram extends string = "GHFB9q4fhhq
|
|
|
170
238
|
} & ParsedInitUserInstruction<TProgram>) | ({
|
|
171
239
|
instructionType: typeof IntentEngineInstruction.LowerPause;
|
|
172
240
|
} & ParsedLowerPauseInstruction<TProgram>) | ({
|
|
241
|
+
instructionType: typeof IntentEngineInstruction.OpenClaims;
|
|
242
|
+
} & ParsedOpenClaimsInstruction<TProgram>) | ({
|
|
173
243
|
instructionType: typeof IntentEngineInstruction.ProposeAdmin;
|
|
174
244
|
} & ParsedProposeAdminInstruction<TProgram>) | ({
|
|
175
245
|
instructionType: typeof IntentEngineInstruction.RaisePause;
|
|
176
246
|
} & ParsedRaisePauseInstruction<TProgram>) | ({
|
|
177
247
|
instructionType: typeof IntentEngineInstruction.RevokeMandate;
|
|
178
248
|
} & ParsedRevokeMandateInstruction<TProgram>) | ({
|
|
249
|
+
instructionType: typeof IntentEngineInstruction.SetCapsRequired;
|
|
250
|
+
} & ParsedSetCapsRequiredInstruction<TProgram>) | ({
|
|
251
|
+
instructionType: typeof IntentEngineInstruction.SetMintCap;
|
|
252
|
+
} & ParsedSetMintCapInstruction<TProgram>) | ({
|
|
253
|
+
instructionType: typeof IntentEngineInstruction.SettleClaims;
|
|
254
|
+
} & ParsedSettleClaimsInstruction<TProgram>) | ({
|
|
179
255
|
instructionType: typeof IntentEngineInstruction.UpdateConfig;
|
|
180
256
|
} & ParsedUpdateConfigInstruction<TProgram>) | ({
|
|
181
257
|
instructionType: typeof IntentEngineInstruction.UpdateEconomics;
|
|
182
|
-
} & ParsedUpdateEconomicsInstruction<TProgram>)
|
|
258
|
+
} & ParsedUpdateEconomicsInstruction<TProgram>) | ({
|
|
259
|
+
instructionType: typeof IntentEngineInstruction.UpdateProfile;
|
|
260
|
+
} & ParsedUpdateProfileInstruction<TProgram>);
|
|
183
261
|
export declare function parseIntentEngineInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedIntentEngineInstruction<TProgram>;
|
|
184
262
|
export type IntentEnginePlugin = {
|
|
185
263
|
accounts: IntentEnginePluginAccounts;
|
|
@@ -190,9 +268,13 @@ export type IntentEnginePlugin = {
|
|
|
190
268
|
parseInstruction: typeof parseIntentEngineInstruction;
|
|
191
269
|
};
|
|
192
270
|
export type IntentEnginePluginAccounts = {
|
|
271
|
+
claimBoard: ReturnType<typeof getClaimBoardCodec> & SelfFetchFunctions<ClaimBoardArgs, ClaimBoard>;
|
|
272
|
+
committee: ReturnType<typeof getCommitteeCodec> & SelfFetchFunctions<CommitteeArgs, Committee>;
|
|
193
273
|
config: ReturnType<typeof getConfigCodec> & SelfFetchFunctions<ConfigArgs, Config>;
|
|
194
274
|
intent: ReturnType<typeof getIntentCodec> & SelfFetchFunctions<IntentArgs, Intent>;
|
|
195
275
|
mandate: ReturnType<typeof getMandateCodec> & SelfFetchFunctions<MandateArgs, Mandate>;
|
|
276
|
+
mintCap: ReturnType<typeof getMintCapCodec> & SelfFetchFunctions<MintCapArgs, MintCap>;
|
|
277
|
+
profile: ReturnType<typeof getProfileCodec> & SelfFetchFunctions<ProfileArgs, Profile>;
|
|
196
278
|
userState: ReturnType<typeof getUserStateCodec> & SelfFetchFunctions<UserStateArgs, UserState>;
|
|
197
279
|
};
|
|
198
280
|
export type IntentEnginePluginInstructions = {
|
|
@@ -201,30 +283,46 @@ export type IntentEnginePluginInstructions = {
|
|
|
201
283
|
advanceNonce: (input: AdvanceNonceAsyncInput) => ReturnType<typeof getAdvanceNonceInstructionAsync> & SelfPlanAndSendFunctions;
|
|
202
284
|
beginFill: (input: BeginFillAsyncInput) => ReturnType<typeof getBeginFillInstructionAsync> & SelfPlanAndSendFunctions;
|
|
203
285
|
cancelIntent: (input: CancelIntentAsyncInput) => ReturnType<typeof getCancelIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
286
|
+
claimJob: (input: ClaimJobAsyncInput) => ReturnType<typeof getClaimJobInstructionAsync> & SelfPlanAndSendFunctions;
|
|
204
287
|
closeIntent: (input: CloseIntentAsyncInput) => ReturnType<typeof getCloseIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
288
|
+
closeProfile: (input: CloseProfileAsyncInput) => ReturnType<typeof getCloseProfileInstructionAsync> & SelfPlanAndSendFunctions;
|
|
289
|
+
createCommittee: (input: MakeOptional<CreateCommitteeAsyncInput, "payer">) => ReturnType<typeof getCreateCommitteeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
205
290
|
createIntent: (input: CreateIntentAsyncInput) => ReturnType<typeof getCreateIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
206
291
|
createIntentByAgent: (input: CreateIntentByAgentAsyncInput) => ReturnType<typeof getCreateIntentByAgentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
207
292
|
createIntentSigned: (input: MakeOptional<CreateIntentSignedAsyncInput, "payer">) => ReturnType<typeof getCreateIntentSignedInstructionAsync> & SelfPlanAndSendFunctions;
|
|
208
293
|
createMandate: (input: CreateMandateAsyncInput) => ReturnType<typeof getCreateMandateInstructionAsync> & SelfPlanAndSendFunctions;
|
|
294
|
+
createProfile: (input: CreateProfileAsyncInput) => ReturnType<typeof getCreateProfileInstructionAsync> & SelfPlanAndSendFunctions;
|
|
295
|
+
dropClaim: (input: DropClaimAsyncInput) => ReturnType<typeof getDropClaimInstructionAsync> & SelfPlanAndSendFunctions;
|
|
209
296
|
endFill: (input: EndFillInput) => ReturnType<typeof getEndFillInstruction> & SelfPlanAndSendFunctions;
|
|
210
297
|
expireIntent: (input: ExpireIntentAsyncInput) => ReturnType<typeof getExpireIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
211
298
|
fillAttested: (input: FillAttestedAsyncInput) => ReturnType<typeof getFillAttestedInstructionAsync> & SelfPlanAndSendFunctions;
|
|
299
|
+
fillAttestedCommittee: (input: FillAttestedCommitteeAsyncInput) => ReturnType<typeof getFillAttestedCommitteeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
212
300
|
fillAttestedSplit: (input: FillAttestedSplitAsyncInput) => ReturnType<typeof getFillAttestedSplitInstructionAsync> & SelfPlanAndSendFunctions;
|
|
301
|
+
fillAttestedSplitCommittee: (input: FillAttestedSplitCommitteeAsyncInput) => ReturnType<typeof getFillAttestedSplitCommitteeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
213
302
|
fillIntent: (input: FillIntentAsyncInput) => ReturnType<typeof getFillIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
214
303
|
initConfig: (input: InitConfigAsyncInput) => ReturnType<typeof getInitConfigInstructionAsync> & SelfPlanAndSendFunctions;
|
|
215
304
|
initUser: (input: InitUserAsyncInput) => ReturnType<typeof getInitUserInstructionAsync> & SelfPlanAndSendFunctions;
|
|
216
305
|
lowerPause: (input: LowerPauseInput) => ReturnType<typeof getLowerPauseInstruction> & SelfPlanAndSendFunctions;
|
|
306
|
+
openClaims: (input: OpenClaimsAsyncInput) => ReturnType<typeof getOpenClaimsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
217
307
|
proposeAdmin: (input: ProposeAdminInput) => ReturnType<typeof getProposeAdminInstruction> & SelfPlanAndSendFunctions;
|
|
218
308
|
raisePause: (input: RaisePauseInput) => ReturnType<typeof getRaisePauseInstruction> & SelfPlanAndSendFunctions;
|
|
219
309
|
revokeMandate: (input: RevokeMandateInput) => ReturnType<typeof getRevokeMandateInstruction> & SelfPlanAndSendFunctions;
|
|
310
|
+
setCapsRequired: (input: SetCapsRequiredInput) => ReturnType<typeof getSetCapsRequiredInstruction> & SelfPlanAndSendFunctions;
|
|
311
|
+
setMintCap: (input: MakeOptional<SetMintCapAsyncInput, "payer">) => ReturnType<typeof getSetMintCapInstructionAsync> & SelfPlanAndSendFunctions;
|
|
312
|
+
settleClaims: (input: SettleClaimsAsyncInput) => ReturnType<typeof getSettleClaimsInstructionAsync> & SelfPlanAndSendFunctions;
|
|
220
313
|
updateConfig: (input: UpdateConfigInput) => ReturnType<typeof getUpdateConfigInstruction> & SelfPlanAndSendFunctions;
|
|
221
314
|
updateEconomics: (input: UpdateEconomicsInput) => ReturnType<typeof getUpdateEconomicsInstruction> & SelfPlanAndSendFunctions;
|
|
315
|
+
updateProfile: (input: UpdateProfileAsyncInput) => ReturnType<typeof getUpdateProfileInstructionAsync> & SelfPlanAndSendFunctions;
|
|
222
316
|
};
|
|
223
317
|
export type IntentEnginePluginPdas = {
|
|
224
318
|
userState: typeof findUserStatePda;
|
|
225
319
|
vault: typeof findVaultPda;
|
|
320
|
+
board: typeof findBoardPda;
|
|
321
|
+
profile: typeof findProfilePda;
|
|
322
|
+
committee: typeof findCommitteePda;
|
|
226
323
|
delegate: typeof findDelegatePda;
|
|
227
324
|
config: typeof findConfigPda;
|
|
325
|
+
mintCap: typeof findMintCapPda;
|
|
228
326
|
};
|
|
229
327
|
export type IntentEnginePluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
230
328
|
export declare function intentEngineProgram(): <T extends IntentEnginePluginRequirements>(client: T) => ExtendedClient<T, {
|