@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileSet.js","sourceRoot":"","sources":["../../../../generated/client/events/profileSet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,GAMf,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,+BAA+B,GAC1C,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;AAExD,MAAM,UAAU,oCAAoC;IAClD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,+BAA+B,CAChC,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"profileSet.js","sourceRoot":"","sources":["../../../../generated/client/events/profileSet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,GAMf,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,+BAA+B,GAC1C,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;AAExD,MAAM,UAAU,oCAAoC;IAClD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,+BAA+B,CAChC,CAAC;AACJ,CAAC;AAaD,mEAAmE;AACnE,MAAM,UAAU,yBAAyB;IACvC,OAAO,sBAAsB,CAC3B,gBAAgB,CAAC;QACf,CAAC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;QAC/B;YACE,QAAQ;YACR,eAAe,CACb,oBAAoB,CAAC,cAAc,EAAE,EAAE,aAAa,EAAE,CAA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B,EAAE,CAAC,CAAC,EAAE,CAAC;QAC5D,OAAO,yBAAyB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,IAAI,KAAK,CACb,8EAA8E,CAC/E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export declare const STOOD_BY_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
10
|
+
export declare function getStoodByEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type StoodByEvent = {
|
|
12
|
+
intent: Address;
|
|
13
|
+
worker: Address;
|
|
14
|
+
seq: number;
|
|
15
|
+
secs: number;
|
|
16
|
+
stake: bigint;
|
|
17
|
+
};
|
|
18
|
+
export type StoodByEventArgs = {
|
|
19
|
+
intent: Address;
|
|
20
|
+
worker: Address;
|
|
21
|
+
seq: number;
|
|
22
|
+
secs: number;
|
|
23
|
+
stake: number | bigint;
|
|
24
|
+
};
|
|
25
|
+
/** Gets the encoder for {@link StoodByEventArgs} event data. */
|
|
26
|
+
export declare function getStoodByEventEncoder(): FixedSizeEncoder<StoodByEventArgs>;
|
|
27
|
+
/** Gets the decoder for {@link StoodByEvent} event data. */
|
|
28
|
+
export declare function getStoodByEventDecoder(): FixedSizeDecoder<StoodByEvent>;
|
|
29
|
+
/** Gets the codec for {@link StoodByEvent} event data. */
|
|
30
|
+
export declare function getStoodByEventCodec(): FixedSizeCodec<StoodByEventArgs, StoodByEvent>;
|
|
31
|
+
/** Parses the provided bytes into {@link StoodByEvent} event data. */
|
|
32
|
+
export declare function parseStoodByEvent(data: ReadonlyUint8Array | Uint8Array): StoodByEvent;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { combineCodec, containsBytes, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBytesEncoder, getConstantDecoder, getConstantEncoder, getHiddenPrefixDecoder, getHiddenPrefixEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, getU64Decoder, getU64Encoder, } from "@solana/kit";
|
|
9
|
+
export const STOOD_BY_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
10
|
+
229, 131, 51, 137, 30, 117, 93, 169,
|
|
11
|
+
]);
|
|
12
|
+
export function getStoodByEventDiscriminatorBytes() {
|
|
13
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(STOOD_BY_EVENT_DISCRIMINATOR);
|
|
14
|
+
}
|
|
15
|
+
/** Gets the encoder for {@link StoodByEventArgs} event data. */
|
|
16
|
+
export function getStoodByEventEncoder() {
|
|
17
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
18
|
+
["intent", getAddressEncoder()],
|
|
19
|
+
["worker", getAddressEncoder()],
|
|
20
|
+
["seq", getU32Encoder()],
|
|
21
|
+
["secs", getU32Encoder()],
|
|
22
|
+
["stake", getU64Encoder()],
|
|
23
|
+
]), [getConstantEncoder(STOOD_BY_EVENT_DISCRIMINATOR)]);
|
|
24
|
+
}
|
|
25
|
+
/** Gets the decoder for {@link StoodByEvent} event data. */
|
|
26
|
+
export function getStoodByEventDecoder() {
|
|
27
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
28
|
+
["intent", getAddressDecoder()],
|
|
29
|
+
["worker", getAddressDecoder()],
|
|
30
|
+
["seq", getU32Decoder()],
|
|
31
|
+
["secs", getU32Decoder()],
|
|
32
|
+
["stake", getU64Decoder()],
|
|
33
|
+
]), [getConstantDecoder(STOOD_BY_EVENT_DISCRIMINATOR)]);
|
|
34
|
+
}
|
|
35
|
+
/** Gets the codec for {@link StoodByEvent} event data. */
|
|
36
|
+
export function getStoodByEventCodec() {
|
|
37
|
+
return combineCodec(getStoodByEventEncoder(), getStoodByEventDecoder());
|
|
38
|
+
}
|
|
39
|
+
/** Parses the provided bytes into {@link StoodByEvent} event data. */
|
|
40
|
+
export function parseStoodByEvent(data) {
|
|
41
|
+
if (containsBytes(data, STOOD_BY_EVENT_DISCRIMINATOR, 0)) {
|
|
42
|
+
return getStoodByEventDecoder().decode(data);
|
|
43
|
+
}
|
|
44
|
+
throw new Error('The provided data does not match the "StoodByEvent" event discriminators.');
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=stoodBy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stoodBy.js","sourceRoot":"","sources":["../../../../generated/client/events/stoodBy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,GAMd,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,4BAA4B,GAAuB,IAAI,UAAU,CAAC;IAC7E,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC;IAC/C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC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 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from "@solana/kit";
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type ResolvedInstructionAccountMeta } from "@solana/kit/program-client-core";
|
|
10
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export declare const ADVANCE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
|
+
export declare function getAdvanceDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type AdvanceInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountIntent extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountNextWorker extends string | AccountMeta<string> = string, TAccountEntry0 extends string | AccountMeta<string> = string, TAccountEntry1 extends string | AccountMeta<string> = string, TAccountEntry2 extends string | AccountMeta<string> = string, TAccountEntry3 extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountIntent extends string ? ReadonlyAccount<TAccountIntent> : TAccountIntent,
|
|
15
|
+
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
16
|
+
TAccountOwner extends string ? WritableAccount<TAccountOwner> : TAccountOwner,
|
|
17
|
+
TAccountNextWorker extends string ? WritableAccount<TAccountNextWorker> : TAccountNextWorker,
|
|
18
|
+
TAccountEntry0 extends string ? WritableAccount<TAccountEntry0> : TAccountEntry0,
|
|
19
|
+
TAccountEntry1 extends string ? WritableAccount<TAccountEntry1> : TAccountEntry1,
|
|
20
|
+
TAccountEntry2 extends string ? WritableAccount<TAccountEntry2> : TAccountEntry2,
|
|
21
|
+
TAccountEntry3 extends string ? WritableAccount<TAccountEntry3> : TAccountEntry3,
|
|
22
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
23
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
24
|
+
...TRemainingAccounts
|
|
25
|
+
]>;
|
|
26
|
+
export type AdvanceInstructionData = {
|
|
27
|
+
discriminator: ReadonlyUint8Array;
|
|
28
|
+
};
|
|
29
|
+
export type AdvanceInstructionDataArgs = {};
|
|
30
|
+
export declare function getAdvanceInstructionDataEncoder(): FixedSizeEncoder<AdvanceInstructionDataArgs>;
|
|
31
|
+
export declare function getAdvanceInstructionDataDecoder(): FixedSizeDecoder<AdvanceInstructionData>;
|
|
32
|
+
export declare function getAdvanceInstructionDataCodec(): FixedSizeCodec<AdvanceInstructionDataArgs, AdvanceInstructionData>;
|
|
33
|
+
export type AdvanceAsyncInput<TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountNextWorker extends InstructionAccountInput = InstructionAccountInput, TAccountEntry0 extends InstructionAccountInput = InstructionAccountInput, TAccountEntry1 extends InstructionAccountInput = InstructionAccountInput, TAccountEntry2 extends InstructionAccountInput = InstructionAccountInput, TAccountEntry3 extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
34
|
+
intent: TAccountIntent;
|
|
35
|
+
board?: TAccountBoard;
|
|
36
|
+
owner: TAccountOwner;
|
|
37
|
+
nextWorker?: TAccountNextWorker;
|
|
38
|
+
entry0?: TAccountEntry0;
|
|
39
|
+
entry1?: TAccountEntry1;
|
|
40
|
+
entry2?: TAccountEntry2;
|
|
41
|
+
entry3?: TAccountEntry3;
|
|
42
|
+
eventAuthority: TAccountEventAuthority;
|
|
43
|
+
program: TAccountProgram;
|
|
44
|
+
};
|
|
45
|
+
export declare function getAdvanceInstructionAsync<TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountNextWorker extends InstructionAccountInput, TAccountEntry0 extends InstructionAccountInput, TAccountEntry1 extends InstructionAccountInput, TAccountEntry2 extends InstructionAccountInput, TAccountEntry3 extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: AdvanceAsyncInput<TAccountIntent, TAccountBoard, TAccountOwner, TAccountNextWorker, TAccountEntry0, TAccountEntry1, TAccountEntry2, TAccountEntry3, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
46
|
+
programAddress?: TProgramAddress;
|
|
47
|
+
}): Promise<AdvanceInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountNextWorker, InstructionAccountInputAddress<TAccountNextWorker>>, ResolvedInstructionAccountMeta<TAccountEntry0, InstructionAccountInputAddress<TAccountEntry0>>, ResolvedInstructionAccountMeta<TAccountEntry1, InstructionAccountInputAddress<TAccountEntry1>>, ResolvedInstructionAccountMeta<TAccountEntry2, InstructionAccountInputAddress<TAccountEntry2>>, ResolvedInstructionAccountMeta<TAccountEntry3, InstructionAccountInputAddress<TAccountEntry3>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
48
|
+
export type AdvanceInput<TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountNextWorker extends InstructionAccountInput = InstructionAccountInput, TAccountEntry0 extends InstructionAccountInput = InstructionAccountInput, TAccountEntry1 extends InstructionAccountInput = InstructionAccountInput, TAccountEntry2 extends InstructionAccountInput = InstructionAccountInput, TAccountEntry3 extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
49
|
+
intent: TAccountIntent;
|
|
50
|
+
board: TAccountBoard;
|
|
51
|
+
owner: TAccountOwner;
|
|
52
|
+
nextWorker?: TAccountNextWorker;
|
|
53
|
+
entry0?: TAccountEntry0;
|
|
54
|
+
entry1?: TAccountEntry1;
|
|
55
|
+
entry2?: TAccountEntry2;
|
|
56
|
+
entry3?: TAccountEntry3;
|
|
57
|
+
eventAuthority: TAccountEventAuthority;
|
|
58
|
+
program: TAccountProgram;
|
|
59
|
+
};
|
|
60
|
+
export declare function getAdvanceInstruction<TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountNextWorker extends InstructionAccountInput, TAccountEntry0 extends InstructionAccountInput, TAccountEntry1 extends InstructionAccountInput, TAccountEntry2 extends InstructionAccountInput, TAccountEntry3 extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: AdvanceInput<TAccountIntent, TAccountBoard, TAccountOwner, TAccountNextWorker, TAccountEntry0, TAccountEntry1, TAccountEntry2, TAccountEntry3, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
61
|
+
programAddress?: TProgramAddress;
|
|
62
|
+
}): AdvanceInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountNextWorker, InstructionAccountInputAddress<TAccountNextWorker>>, ResolvedInstructionAccountMeta<TAccountEntry0, InstructionAccountInputAddress<TAccountEntry0>>, ResolvedInstructionAccountMeta<TAccountEntry1, InstructionAccountInputAddress<TAccountEntry1>>, ResolvedInstructionAccountMeta<TAccountEntry2, InstructionAccountInputAddress<TAccountEntry2>>, ResolvedInstructionAccountMeta<TAccountEntry3, InstructionAccountInputAddress<TAccountEntry3>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
63
|
+
export type ParsedAdvanceInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
64
|
+
programAddress: Address<TProgram>;
|
|
65
|
+
accounts: {
|
|
66
|
+
intent: TAccountMetas[0];
|
|
67
|
+
board: TAccountMetas[1];
|
|
68
|
+
owner: TAccountMetas[2];
|
|
69
|
+
nextWorker?: TAccountMetas[3] | undefined;
|
|
70
|
+
entry0?: TAccountMetas[4] | undefined;
|
|
71
|
+
entry1?: TAccountMetas[5] | undefined;
|
|
72
|
+
entry2?: TAccountMetas[6] | undefined;
|
|
73
|
+
entry3?: TAccountMetas[7] | undefined;
|
|
74
|
+
eventAuthority: TAccountMetas[8];
|
|
75
|
+
program: TAccountMetas[9];
|
|
76
|
+
};
|
|
77
|
+
data: AdvanceInstructionData;
|
|
78
|
+
};
|
|
79
|
+
export declare function parseAdvanceInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdvanceInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getAccountMetaFactory, getAddressFromResolvedInstructionAccount, } from "@solana/kit/program-client-core";
|
|
10
|
+
import { findBoardPda } from "../pdas/index.js";
|
|
11
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
12
|
+
export const ADVANCE_DISCRIMINATOR = new Uint8Array([
|
|
13
|
+
7, 56, 108, 201, 36, 20, 57, 89,
|
|
14
|
+
]);
|
|
15
|
+
export function getAdvanceDiscriminatorBytes() {
|
|
16
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(ADVANCE_DISCRIMINATOR);
|
|
17
|
+
}
|
|
18
|
+
export function getAdvanceInstructionDataEncoder() {
|
|
19
|
+
return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({ ...value, discriminator: ADVANCE_DISCRIMINATOR }));
|
|
20
|
+
}
|
|
21
|
+
export function getAdvanceInstructionDataDecoder() {
|
|
22
|
+
return getStructDecoder([
|
|
23
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
export function getAdvanceInstructionDataCodec() {
|
|
27
|
+
return combineCodec(getAdvanceInstructionDataEncoder(), getAdvanceInstructionDataDecoder());
|
|
28
|
+
}
|
|
29
|
+
export async function getAdvanceInstructionAsync(input, config) {
|
|
30
|
+
// Program address.
|
|
31
|
+
const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
|
|
32
|
+
// Account meta helper.
|
|
33
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
34
|
+
// Original accounts.
|
|
35
|
+
const originalAccounts = {
|
|
36
|
+
intent: { value: input.intent ?? null, isSigner: false, isWritable: false },
|
|
37
|
+
board: { value: input.board ?? null, isSigner: false, isWritable: true },
|
|
38
|
+
owner: { value: input.owner ?? null, isSigner: false, isWritable: true },
|
|
39
|
+
nextWorker: {
|
|
40
|
+
value: input.nextWorker ?? null,
|
|
41
|
+
isSigner: false,
|
|
42
|
+
isWritable: true,
|
|
43
|
+
},
|
|
44
|
+
entry0: { value: input.entry0 ?? null, isSigner: false, isWritable: true },
|
|
45
|
+
entry1: { value: input.entry1 ?? null, isSigner: false, isWritable: true },
|
|
46
|
+
entry2: { value: input.entry2 ?? null, isSigner: false, isWritable: true },
|
|
47
|
+
entry3: { value: input.entry3 ?? null, isSigner: false, isWritable: true },
|
|
48
|
+
eventAuthority: {
|
|
49
|
+
value: input.eventAuthority ?? null,
|
|
50
|
+
isSigner: false,
|
|
51
|
+
isWritable: false,
|
|
52
|
+
},
|
|
53
|
+
program: {
|
|
54
|
+
value: input.program ?? null,
|
|
55
|
+
isSigner: false,
|
|
56
|
+
isWritable: false,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
const accounts = originalAccounts;
|
|
60
|
+
// Resolve default values.
|
|
61
|
+
if (!accounts.board.value) {
|
|
62
|
+
accounts.board.value = await findBoardPda({
|
|
63
|
+
intent: getAddressFromResolvedInstructionAccount("intent", accounts.intent.value),
|
|
64
|
+
}, { programAddress });
|
|
65
|
+
}
|
|
66
|
+
return Object.freeze({
|
|
67
|
+
accounts: [
|
|
68
|
+
getAccountMeta("intent", accounts.intent),
|
|
69
|
+
getAccountMeta("board", accounts.board),
|
|
70
|
+
getAccountMeta("owner", accounts.owner),
|
|
71
|
+
getAccountMeta("nextWorker", accounts.nextWorker),
|
|
72
|
+
getAccountMeta("entry0", accounts.entry0),
|
|
73
|
+
getAccountMeta("entry1", accounts.entry1),
|
|
74
|
+
getAccountMeta("entry2", accounts.entry2),
|
|
75
|
+
getAccountMeta("entry3", accounts.entry3),
|
|
76
|
+
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
77
|
+
getAccountMeta("program", accounts.program),
|
|
78
|
+
],
|
|
79
|
+
data: getAdvanceInstructionDataEncoder().encode({}),
|
|
80
|
+
programAddress,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
export function getAdvanceInstruction(input, config) {
|
|
84
|
+
// Program address.
|
|
85
|
+
const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
|
|
86
|
+
// Account meta helper.
|
|
87
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
88
|
+
// Original accounts.
|
|
89
|
+
const originalAccounts = {
|
|
90
|
+
intent: { value: input.intent ?? null, isSigner: false, isWritable: false },
|
|
91
|
+
board: { value: input.board ?? null, isSigner: false, isWritable: true },
|
|
92
|
+
owner: { value: input.owner ?? null, isSigner: false, isWritable: true },
|
|
93
|
+
nextWorker: {
|
|
94
|
+
value: input.nextWorker ?? null,
|
|
95
|
+
isSigner: false,
|
|
96
|
+
isWritable: true,
|
|
97
|
+
},
|
|
98
|
+
entry0: { value: input.entry0 ?? null, isSigner: false, isWritable: true },
|
|
99
|
+
entry1: { value: input.entry1 ?? null, isSigner: false, isWritable: true },
|
|
100
|
+
entry2: { value: input.entry2 ?? null, isSigner: false, isWritable: true },
|
|
101
|
+
entry3: { value: input.entry3 ?? null, isSigner: false, isWritable: true },
|
|
102
|
+
eventAuthority: {
|
|
103
|
+
value: input.eventAuthority ?? null,
|
|
104
|
+
isSigner: false,
|
|
105
|
+
isWritable: false,
|
|
106
|
+
},
|
|
107
|
+
program: {
|
|
108
|
+
value: input.program ?? null,
|
|
109
|
+
isSigner: false,
|
|
110
|
+
isWritable: false,
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
const accounts = originalAccounts;
|
|
114
|
+
return Object.freeze({
|
|
115
|
+
accounts: [
|
|
116
|
+
getAccountMeta("intent", accounts.intent),
|
|
117
|
+
getAccountMeta("board", accounts.board),
|
|
118
|
+
getAccountMeta("owner", accounts.owner),
|
|
119
|
+
getAccountMeta("nextWorker", accounts.nextWorker),
|
|
120
|
+
getAccountMeta("entry0", accounts.entry0),
|
|
121
|
+
getAccountMeta("entry1", accounts.entry1),
|
|
122
|
+
getAccountMeta("entry2", accounts.entry2),
|
|
123
|
+
getAccountMeta("entry3", accounts.entry3),
|
|
124
|
+
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
125
|
+
getAccountMeta("program", accounts.program),
|
|
126
|
+
],
|
|
127
|
+
data: getAdvanceInstructionDataEncoder().encode({}),
|
|
128
|
+
programAddress,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export function parseAdvanceInstruction(instruction) {
|
|
132
|
+
if (instruction.accounts.length < 10) {
|
|
133
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
134
|
+
actualAccountMetas: instruction.accounts.length,
|
|
135
|
+
expectedAccountMetas: 10,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
let accountIndex = 0;
|
|
139
|
+
const getNextAccount = () => {
|
|
140
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
141
|
+
accountIndex += 1;
|
|
142
|
+
return accountMeta;
|
|
143
|
+
};
|
|
144
|
+
const getNextOptionalAccount = () => {
|
|
145
|
+
const accountMeta = getNextAccount();
|
|
146
|
+
return accountMeta.address === INTENT_ENGINE_PROGRAM_ADDRESS
|
|
147
|
+
? undefined
|
|
148
|
+
: accountMeta;
|
|
149
|
+
};
|
|
150
|
+
return {
|
|
151
|
+
programAddress: instruction.programAddress,
|
|
152
|
+
accounts: {
|
|
153
|
+
intent: getNextAccount(),
|
|
154
|
+
board: getNextAccount(),
|
|
155
|
+
owner: getNextAccount(),
|
|
156
|
+
nextWorker: getNextOptionalAccount(),
|
|
157
|
+
entry0: getNextOptionalAccount(),
|
|
158
|
+
entry1: getNextOptionalAccount(),
|
|
159
|
+
entry2: getNextOptionalAccount(),
|
|
160
|
+
entry3: getNextOptionalAccount(),
|
|
161
|
+
eventAuthority: getNextAccount(),
|
|
162
|
+
program: getNextAccount(),
|
|
163
|
+
},
|
|
164
|
+
data: getAdvanceInstructionDataDecoder().decode(instruction.data),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=advance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advance.js","sourceRoot":"","sources":["../../../../generated/client/instructions/advance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAKzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,qBAAqB,GAAuB,IAAI,UAAU,CAAC;IACtE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EA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C,WAAW,CAAC;IAClB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,MAAM,EAAE,cAAc,EAAE;YACxB,KAAK,EAAE,cAAc,EAAE;YACvB,KAAK,EAAE,cAAc,EAAE;YACvB,UAAU,EAAE,sBAAsB,EAAE;YACpC,MAAM,EAAE,sBAAsB,EAAE;YAChC,MAAM,EAAE,sBAAsB,EAAE;YAChC,MAAM,EAAE,sBAAsB,EAAE;YAChC,MAAM,EAAE,sBAAsB,EAAE;YAChC,cAAc,EAAE,cAAc,EAAE;YAChC,OAAO,EAAE,cAAc,EAAE;SAC1B;QACD,IAAI,EAAE,gCAAgC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KAClE,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { type InstructionAccountInput, type InstructionAccountInputAddress, type
|
|
|
10
10
|
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
11
|
export declare const BEGIN_FILL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getBeginFillDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type BeginFillInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountSolverInput extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = string, TAccountMandate extends string | AccountMeta<string> = string, TAccountOwnerState extends string | AccountMeta<string> = string, TAccountAgentTo extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
export type BeginFillInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountSolverInput extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = string, TAccountMandate extends string | AccountMeta<string> = string, TAccountOwnerState extends string | AccountMeta<string> = string, TAccountAgentTo extends string | AccountMeta<string> = string, TAccountMintCap extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
14
|
TAccountSolver extends string ? ReadonlySignerAccount<TAccountSolver> & AccountSignerMeta<TAccountSolver> : TAccountSolver,
|
|
15
15
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
16
16
|
TAccountIntent extends string ? WritableAccount<TAccountIntent> : TAccountIntent,
|
|
@@ -24,6 +24,7 @@ export type BeginFillInstruction<TProgram extends string = typeof INTENT_ENGINE_
|
|
|
24
24
|
TAccountMandate extends string ? ReadonlyAccount<TAccountMandate> : TAccountMandate,
|
|
25
25
|
TAccountOwnerState extends string ? ReadonlyAccount<TAccountOwnerState> : TAccountOwnerState,
|
|
26
26
|
TAccountAgentTo extends string ? WritableAccount<TAccountAgentTo> : TAccountAgentTo,
|
|
27
|
+
TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
|
|
27
28
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
28
29
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
29
30
|
...TRemainingAccounts
|
|
@@ -44,7 +45,7 @@ export type BeginFillInstructionDataArgs = {
|
|
|
44
45
|
export declare function getBeginFillInstructionDataEncoder(): Encoder<BeginFillInstructionDataArgs>;
|
|
45
46
|
export declare function getBeginFillInstructionDataDecoder(): Decoder<BeginFillInstructionData>;
|
|
46
47
|
export declare function getBeginFillInstructionDataCodec(): Codec<BeginFillInstructionDataArgs, BeginFillInstructionData>;
|
|
47
|
-
export type BeginFillAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
48
|
+
export type BeginFillAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
48
49
|
solver: TAccountSolver;
|
|
49
50
|
config?: TAccountConfig;
|
|
50
51
|
intent: TAccountIntent;
|
|
@@ -58,6 +59,7 @@ export type BeginFillAsyncInput<TAccountSolver extends InstructionSignerInput =
|
|
|
58
59
|
mandate?: TAccountMandate;
|
|
59
60
|
ownerState?: TAccountOwnerState;
|
|
60
61
|
agentTo?: TAccountAgentTo;
|
|
62
|
+
mintCap?: TAccountMintCap;
|
|
61
63
|
eventAuthority: TAccountEventAuthority;
|
|
62
64
|
program: TAccountProgram;
|
|
63
65
|
amountIn: BeginFillInstructionDataArgs["amountIn"];
|
|
@@ -65,10 +67,10 @@ export type BeginFillAsyncInput<TAccountSolver extends InstructionSignerInput =
|
|
|
65
67
|
maxFeeBps: BeginFillInstructionDataArgs["maxFeeBps"];
|
|
66
68
|
ext: BeginFillInstructionDataArgs["ext"];
|
|
67
69
|
};
|
|
68
|
-
export declare function getBeginFillInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: BeginFillAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountInstructions, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
70
|
+
export declare function getBeginFillInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: BeginFillAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountInstructions, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
69
71
|
programAddress?: TProgramAddress;
|
|
70
|
-
}): Promise<BeginFillInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
71
|
-
export type BeginFillInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
72
|
+
}): Promise<BeginFillInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
73
|
+
export type BeginFillInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput = InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
72
74
|
solver: TAccountSolver;
|
|
73
75
|
config?: TAccountConfig;
|
|
74
76
|
intent: TAccountIntent;
|
|
@@ -82,6 +84,7 @@ export type BeginFillInput<TAccountSolver extends InstructionSignerInput = Instr
|
|
|
82
84
|
mandate?: TAccountMandate;
|
|
83
85
|
ownerState?: TAccountOwnerState;
|
|
84
86
|
agentTo?: TAccountAgentTo;
|
|
87
|
+
mintCap?: TAccountMintCap;
|
|
85
88
|
eventAuthority: TAccountEventAuthority;
|
|
86
89
|
program: TAccountProgram;
|
|
87
90
|
amountIn: BeginFillInstructionDataArgs["amountIn"];
|
|
@@ -89,9 +92,9 @@ export type BeginFillInput<TAccountSolver extends InstructionSignerInput = Instr
|
|
|
89
92
|
maxFeeBps: BeginFillInstructionDataArgs["maxFeeBps"];
|
|
90
93
|
ext: BeginFillInstructionDataArgs["ext"];
|
|
91
94
|
};
|
|
92
|
-
export declare function getBeginFillInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: BeginFillInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountInstructions, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
95
|
+
export declare function getBeginFillInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountSolverInput extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountOwnerState extends InstructionAccountInput, TAccountAgentTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: BeginFillInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountSolverInput, TAccountFeeTo, TAccountPartnerTo, TAccountInputTokenProgram, TAccountInstructions, TAccountMandate, TAccountOwnerState, TAccountAgentTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
93
96
|
programAddress?: TProgramAddress;
|
|
94
|
-
}): BeginFillInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
97
|
+
}): BeginFillInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountSolverInput, InstructionAccountInputAddress<TAccountSolverInput>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountOwnerState, InstructionAccountInputAddress<TAccountOwnerState>>, ResolvedInstructionAccountMeta<TAccountAgentTo, InstructionAccountInputAddress<TAccountAgentTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
95
98
|
export type ParsedBeginFillInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
96
99
|
programAddress: Address<TProgram>;
|
|
97
100
|
accounts: {
|
|
@@ -108,8 +111,9 @@ export type ParsedBeginFillInstruction<TProgram extends string = typeof INTENT_E
|
|
|
108
111
|
mandate?: TAccountMetas[10] | undefined;
|
|
109
112
|
ownerState?: TAccountMetas[11] | undefined;
|
|
110
113
|
agentTo?: TAccountMetas[12] | undefined;
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
mintCap?: TAccountMetas[13] | undefined;
|
|
115
|
+
eventAuthority: TAccountMetas[14];
|
|
116
|
+
program: TAccountMetas[15];
|
|
113
117
|
};
|
|
114
118
|
data: BeginFillInstructionData;
|
|
115
119
|
};
|
|
@@ -88,6 +88,11 @@ export async function getBeginFillInstructionAsync(input, config) {
|
|
|
88
88
|
isSigner: false,
|
|
89
89
|
isWritable: true,
|
|
90
90
|
},
|
|
91
|
+
mintCap: {
|
|
92
|
+
value: input.mintCap ?? null,
|
|
93
|
+
isSigner: false,
|
|
94
|
+
isWritable: true,
|
|
95
|
+
},
|
|
91
96
|
eventAuthority: {
|
|
92
97
|
value: input.eventAuthority ?? null,
|
|
93
98
|
isSigner: false,
|
|
@@ -127,6 +132,7 @@ export async function getBeginFillInstructionAsync(input, config) {
|
|
|
127
132
|
getAccountMeta("mandate", accounts.mandate),
|
|
128
133
|
getAccountMeta("ownerState", accounts.ownerState),
|
|
129
134
|
getAccountMeta("agentTo", accounts.agentTo),
|
|
135
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
130
136
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
131
137
|
getAccountMeta("program", accounts.program),
|
|
132
138
|
],
|
|
@@ -186,6 +192,11 @@ export function getBeginFillInstruction(input, config) {
|
|
|
186
192
|
isSigner: false,
|
|
187
193
|
isWritable: true,
|
|
188
194
|
},
|
|
195
|
+
mintCap: {
|
|
196
|
+
value: input.mintCap ?? null,
|
|
197
|
+
isSigner: false,
|
|
198
|
+
isWritable: true,
|
|
199
|
+
},
|
|
189
200
|
eventAuthority: {
|
|
190
201
|
value: input.eventAuthority ?? null,
|
|
191
202
|
isSigner: false,
|
|
@@ -220,6 +231,7 @@ export function getBeginFillInstruction(input, config) {
|
|
|
220
231
|
getAccountMeta("mandate", accounts.mandate),
|
|
221
232
|
getAccountMeta("ownerState", accounts.ownerState),
|
|
222
233
|
getAccountMeta("agentTo", accounts.agentTo),
|
|
234
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
223
235
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
224
236
|
getAccountMeta("program", accounts.program),
|
|
225
237
|
],
|
|
@@ -228,10 +240,10 @@ export function getBeginFillInstruction(input, config) {
|
|
|
228
240
|
});
|
|
229
241
|
}
|
|
230
242
|
export function parseBeginFillInstruction(instruction) {
|
|
231
|
-
if (instruction.accounts.length <
|
|
243
|
+
if (instruction.accounts.length < 16) {
|
|
232
244
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
233
245
|
actualAccountMetas: instruction.accounts.length,
|
|
234
|
-
expectedAccountMetas:
|
|
246
|
+
expectedAccountMetas: 16,
|
|
235
247
|
});
|
|
236
248
|
}
|
|
237
249
|
let accountIndex = 0;
|
|
@@ -262,6 +274,7 @@ export function parseBeginFillInstruction(instruction) {
|
|
|
262
274
|
mandate: getNextOptionalAccount(),
|
|
263
275
|
ownerState: getNextOptionalAccount(),
|
|
264
276
|
agentTo: getNextOptionalAccount(),
|
|
277
|
+
mintCap: getNextOptionalAccount(),
|
|
265
278
|
eventAuthority: getNextAccount(),
|
|
266
279
|
program: getNextAccount(),
|
|
267
280
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beginFill.js","sourceRoot":"","sources":["../../../../generated/client/instructions/beginFill.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,wBAAwB,GAAuB,IAAI,UAAU,CAAC;IACzE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B;IAC5C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"beginFill.js","sourceRoot":"","sources":["../../../../generated/client/instructions/beginFill.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,wBAAwB,GAAuB,IAAI,UAAU,CAAC;IACzE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B;IAC5C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAC/E,CAAC;AA8FD,MAAM,UAAU,kCAAkC;IAChD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,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