@intent-engine/core 0.1.42 → 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/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/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 +2 -0
- package/dist/generated/client/accounts/standby.js +4 -2
- package/dist/generated/client/accounts/standby.js.map +1 -1
- package/dist/generated/client/errors/intentEngine.d.ts +25 -1
- package/dist/generated/client/errors/intentEngine.js +36 -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 +3 -0
- package/dist/generated/client/events/index.js +3 -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/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/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/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 +3 -0
- package/dist/generated/client/instructions/index.js +3 -0
- package/dist/generated/client/instructions/index.js.map +1 -1
- package/dist/generated/client/instructions/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 +13 -9
- package/dist/generated/client/instructions/standBy.js +15 -2
- package/dist/generated/client/instructions/standBy.js.map +1 -1
- package/dist/generated/client/programs/intentEngine.d.ts +158 -137
- package/dist/generated/client/programs/intentEngine.js +194 -137
- 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 +2 -2
- 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/events.d.ts +4 -1
- package/dist/src/events.js +5 -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 +567 -6
- package/package.json +2 -1
|
@@ -0,0 +1,26 @@
|
|
|
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 COMMITTEE_FLOOR_SET_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
10
|
+
export declare function getCommitteeFloorSetEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type CommitteeFloorSetEvent = {
|
|
12
|
+
mint: Address;
|
|
13
|
+
floor: bigint;
|
|
14
|
+
};
|
|
15
|
+
export type CommitteeFloorSetEventArgs = {
|
|
16
|
+
mint: Address;
|
|
17
|
+
floor: number | bigint;
|
|
18
|
+
};
|
|
19
|
+
/** Gets the encoder for {@link CommitteeFloorSetEventArgs} event data. */
|
|
20
|
+
export declare function getCommitteeFloorSetEventEncoder(): FixedSizeEncoder<CommitteeFloorSetEventArgs>;
|
|
21
|
+
/** Gets the decoder for {@link CommitteeFloorSetEvent} event data. */
|
|
22
|
+
export declare function getCommitteeFloorSetEventDecoder(): FixedSizeDecoder<CommitteeFloorSetEvent>;
|
|
23
|
+
/** Gets the codec for {@link CommitteeFloorSetEvent} event data. */
|
|
24
|
+
export declare function getCommitteeFloorSetEventCodec(): FixedSizeCodec<CommitteeFloorSetEventArgs, CommitteeFloorSetEvent>;
|
|
25
|
+
/** Parses the provided bytes into {@link CommitteeFloorSetEvent} event data. */
|
|
26
|
+
export declare function parseCommitteeFloorSetEvent(data: ReadonlyUint8Array | Uint8Array): CommitteeFloorSetEvent;
|
|
@@ -0,0 +1,38 @@
|
|
|
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, getU64Decoder, getU64Encoder, } from "@solana/kit";
|
|
9
|
+
export const COMMITTEE_FLOOR_SET_EVENT_DISCRIMINATOR = new Uint8Array([1, 246, 179, 215, 89, 88, 97, 182]);
|
|
10
|
+
export function getCommitteeFloorSetEventDiscriminatorBytes() {
|
|
11
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(COMMITTEE_FLOOR_SET_EVENT_DISCRIMINATOR);
|
|
12
|
+
}
|
|
13
|
+
/** Gets the encoder for {@link CommitteeFloorSetEventArgs} event data. */
|
|
14
|
+
export function getCommitteeFloorSetEventEncoder() {
|
|
15
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
16
|
+
["mint", getAddressEncoder()],
|
|
17
|
+
["floor", getU64Encoder()],
|
|
18
|
+
]), [getConstantEncoder(COMMITTEE_FLOOR_SET_EVENT_DISCRIMINATOR)]);
|
|
19
|
+
}
|
|
20
|
+
/** Gets the decoder for {@link CommitteeFloorSetEvent} event data. */
|
|
21
|
+
export function getCommitteeFloorSetEventDecoder() {
|
|
22
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
23
|
+
["mint", getAddressDecoder()],
|
|
24
|
+
["floor", getU64Decoder()],
|
|
25
|
+
]), [getConstantDecoder(COMMITTEE_FLOOR_SET_EVENT_DISCRIMINATOR)]);
|
|
26
|
+
}
|
|
27
|
+
/** Gets the codec for {@link CommitteeFloorSetEvent} event data. */
|
|
28
|
+
export function getCommitteeFloorSetEventCodec() {
|
|
29
|
+
return combineCodec(getCommitteeFloorSetEventEncoder(), getCommitteeFloorSetEventDecoder());
|
|
30
|
+
}
|
|
31
|
+
/** Parses the provided bytes into {@link CommitteeFloorSetEvent} event data. */
|
|
32
|
+
export function parseCommitteeFloorSetEvent(data) {
|
|
33
|
+
if (containsBytes(data, COMMITTEE_FLOOR_SET_EVENT_DISCRIMINATOR, 0)) {
|
|
34
|
+
return getCommitteeFloorSetEventDecoder().decode(data);
|
|
35
|
+
}
|
|
36
|
+
throw new Error('The provided data does not match the "CommitteeFloorSetEvent" event discriminators.');
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=committeeFloorSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"committeeFloorSet.js","sourceRoot":"","sources":["../../../../generated/client/events/committeeFloorSet.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,GAMd,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,uCAAuC,GAClD,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;AAEtD,MAAM,UAAU,2CAA2C;IACzD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,uCAAuC,CACxC,CAAC;AACJ,CAAC;AASD,0EAA0E;AAC1E,MAAM,UAAU,gCAAgC;IAC9C,OAAO,sBAAsB,CAC3B,gBAAgB,CAAC;QACf,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC;QAC7B,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;KAC3B,CAAC,EACF,CAAC,kBAAkB,CAAC,uCAAuC,CAAC,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,gCAAgC;IAC9C,OAAO,sBAAsB,CAC3B,gBAAgB,CAAC;QACf,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC;QAC7B,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;KAC3B,CAAC,EACF,CAAC,kBAAkB,CAAC,uCAAuC,CAAC,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,8BAA8B;IAI5C,OAAO,YAAY,CACjB,gCAAgC,EAAE,EAClC,gCAAgC,EAAE,CACnC,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,2BAA2B,CACzC,IAAqC;IAErC,IAAI,aAAa,CAAC,IAAI,EAAE,uCAAuC,EAAE,CAAC,CAAC,EAAE,CAAC;QACpE,OAAO,gCAAgC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IACD,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAC;AACJ,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
+
export * from "./accountMigrated.js";
|
|
8
9
|
export * from "./adminAccepted.js";
|
|
9
10
|
export * from "./adminProposed.js";
|
|
10
11
|
export * from "./agentPaid.js";
|
|
@@ -14,6 +15,7 @@ export * from "./claimsClosed.js";
|
|
|
14
15
|
export * from "./claimsOpened.js";
|
|
15
16
|
export * from "./committeeAttested.js";
|
|
16
17
|
export * from "./committeeCreated.js";
|
|
18
|
+
export * from "./committeeFloorSet.js";
|
|
17
19
|
export * from "./configInitialized.js";
|
|
18
20
|
export * from "./configUpdated.js";
|
|
19
21
|
export * from "./economicsUpdated.js";
|
|
@@ -29,6 +31,7 @@ export * from "./intentExpired.js";
|
|
|
29
31
|
export * from "./intentFilled.js";
|
|
30
32
|
export * from "./intentSplit.js";
|
|
31
33
|
export * from "./jobClaimed.js";
|
|
34
|
+
export * from "./legacyClosed.js";
|
|
32
35
|
export * from "./lineLeft.js";
|
|
33
36
|
export * from "./mandateClosed.js";
|
|
34
37
|
export * from "./mandateCreated.js";
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
+
export * from "./accountMigrated.js";
|
|
8
9
|
export * from "./adminAccepted.js";
|
|
9
10
|
export * from "./adminProposed.js";
|
|
10
11
|
export * from "./agentPaid.js";
|
|
@@ -14,6 +15,7 @@ export * from "./claimsClosed.js";
|
|
|
14
15
|
export * from "./claimsOpened.js";
|
|
15
16
|
export * from "./committeeAttested.js";
|
|
16
17
|
export * from "./committeeCreated.js";
|
|
18
|
+
export * from "./committeeFloorSet.js";
|
|
17
19
|
export * from "./configInitialized.js";
|
|
18
20
|
export * from "./configUpdated.js";
|
|
19
21
|
export * from "./economicsUpdated.js";
|
|
@@ -29,6 +31,7 @@ export * from "./intentExpired.js";
|
|
|
29
31
|
export * from "./intentFilled.js";
|
|
30
32
|
export * from "./intentSplit.js";
|
|
31
33
|
export * from "./jobClaimed.js";
|
|
34
|
+
export * from "./legacyClosed.js";
|
|
32
35
|
export * from "./lineLeft.js";
|
|
33
36
|
export * from "./mandateClosed.js";
|
|
34
37
|
export * from "./mandateCreated.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/events/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/events/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 LEGACY_CLOSED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
10
|
+
export declare function getLegacyClosedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type LegacyClosedEvent = {
|
|
12
|
+
account: Address;
|
|
13
|
+
payee: Address;
|
|
14
|
+
lamports: bigint;
|
|
15
|
+
stake: bigint;
|
|
16
|
+
};
|
|
17
|
+
export type LegacyClosedEventArgs = {
|
|
18
|
+
account: Address;
|
|
19
|
+
payee: Address;
|
|
20
|
+
lamports: number | bigint;
|
|
21
|
+
stake: number | bigint;
|
|
22
|
+
};
|
|
23
|
+
/** Gets the encoder for {@link LegacyClosedEventArgs} event data. */
|
|
24
|
+
export declare function getLegacyClosedEventEncoder(): FixedSizeEncoder<LegacyClosedEventArgs>;
|
|
25
|
+
/** Gets the decoder for {@link LegacyClosedEvent} event data. */
|
|
26
|
+
export declare function getLegacyClosedEventDecoder(): FixedSizeDecoder<LegacyClosedEvent>;
|
|
27
|
+
/** Gets the codec for {@link LegacyClosedEvent} event data. */
|
|
28
|
+
export declare function getLegacyClosedEventCodec(): FixedSizeCodec<LegacyClosedEventArgs, LegacyClosedEvent>;
|
|
29
|
+
/** Parses the provided bytes into {@link LegacyClosedEvent} event data. */
|
|
30
|
+
export declare function parseLegacyClosedEvent(data: ReadonlyUint8Array | Uint8Array): LegacyClosedEvent;
|
|
@@ -0,0 +1,42 @@
|
|
|
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, getU64Decoder, getU64Encoder, } from "@solana/kit";
|
|
9
|
+
export const LEGACY_CLOSED_EVENT_DISCRIMINATOR = new Uint8Array([206, 178, 254, 228, 149, 196, 78, 17]);
|
|
10
|
+
export function getLegacyClosedEventDiscriminatorBytes() {
|
|
11
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(LEGACY_CLOSED_EVENT_DISCRIMINATOR);
|
|
12
|
+
}
|
|
13
|
+
/** Gets the encoder for {@link LegacyClosedEventArgs} event data. */
|
|
14
|
+
export function getLegacyClosedEventEncoder() {
|
|
15
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
16
|
+
["account", getAddressEncoder()],
|
|
17
|
+
["payee", getAddressEncoder()],
|
|
18
|
+
["lamports", getU64Encoder()],
|
|
19
|
+
["stake", getU64Encoder()],
|
|
20
|
+
]), [getConstantEncoder(LEGACY_CLOSED_EVENT_DISCRIMINATOR)]);
|
|
21
|
+
}
|
|
22
|
+
/** Gets the decoder for {@link LegacyClosedEvent} event data. */
|
|
23
|
+
export function getLegacyClosedEventDecoder() {
|
|
24
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
25
|
+
["account", getAddressDecoder()],
|
|
26
|
+
["payee", getAddressDecoder()],
|
|
27
|
+
["lamports", getU64Decoder()],
|
|
28
|
+
["stake", getU64Decoder()],
|
|
29
|
+
]), [getConstantDecoder(LEGACY_CLOSED_EVENT_DISCRIMINATOR)]);
|
|
30
|
+
}
|
|
31
|
+
/** Gets the codec for {@link LegacyClosedEvent} event data. */
|
|
32
|
+
export function getLegacyClosedEventCodec() {
|
|
33
|
+
return combineCodec(getLegacyClosedEventEncoder(), getLegacyClosedEventDecoder());
|
|
34
|
+
}
|
|
35
|
+
/** Parses the provided bytes into {@link LegacyClosedEvent} event data. */
|
|
36
|
+
export function parseLegacyClosedEvent(data) {
|
|
37
|
+
if (containsBytes(data, LEGACY_CLOSED_EVENT_DISCRIMINATOR, 0)) {
|
|
38
|
+
return getLegacyClosedEventDecoder().decode(data);
|
|
39
|
+
}
|
|
40
|
+
throw new Error('The provided data does not match the "LegacyClosedEvent" event discriminators.');
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=legacyClosed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacyClosed.js","sourceRoot":"","sources":["../../../../generated/client/events/legacyClosed.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,E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C,IAAqC;IAErC,IAAI,aAAa,CAAC,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,EAAE,CAAC;QAC9D,OAAO,2BAA2B,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;AACJ,CAAC"}
|
|
@@ -16,6 +16,8 @@ export type MintCapSetEvent = {
|
|
|
16
16
|
windowSecs: number;
|
|
17
17
|
windowStart: bigint;
|
|
18
18
|
windowUsed: bigint;
|
|
19
|
+
totalLimit: bigint;
|
|
20
|
+
outstanding: bigint;
|
|
19
21
|
};
|
|
20
22
|
export type MintCapSetEventArgs = {
|
|
21
23
|
mint: Address;
|
|
@@ -25,6 +27,8 @@ export type MintCapSetEventArgs = {
|
|
|
25
27
|
windowSecs: number;
|
|
26
28
|
windowStart: number | bigint;
|
|
27
29
|
windowUsed: number | bigint;
|
|
30
|
+
totalLimit: number | bigint;
|
|
31
|
+
outstanding: number | bigint;
|
|
28
32
|
};
|
|
29
33
|
/** Gets the encoder for {@link MintCapSetEventArgs} event data. */
|
|
30
34
|
export declare function getMintCapSetEventEncoder(): FixedSizeEncoder<MintCapSetEventArgs>;
|
|
@@ -20,6 +20,8 @@ export function getMintCapSetEventEncoder() {
|
|
|
20
20
|
["windowSecs", getU32Encoder()],
|
|
21
21
|
["windowStart", getI64Encoder()],
|
|
22
22
|
["windowUsed", getU64Encoder()],
|
|
23
|
+
["totalLimit", getU64Encoder()],
|
|
24
|
+
["outstanding", getU64Encoder()],
|
|
23
25
|
]), [getConstantEncoder(MINT_CAP_SET_EVENT_DISCRIMINATOR)]);
|
|
24
26
|
}
|
|
25
27
|
/** Gets the decoder for {@link MintCapSetEvent} event data. */
|
|
@@ -32,6 +34,8 @@ export function getMintCapSetEventDecoder() {
|
|
|
32
34
|
["windowSecs", getU32Decoder()],
|
|
33
35
|
["windowStart", getI64Decoder()],
|
|
34
36
|
["windowUsed", getU64Decoder()],
|
|
37
|
+
["totalLimit", getU64Decoder()],
|
|
38
|
+
["outstanding", getU64Decoder()],
|
|
35
39
|
]), [getConstantDecoder(MINT_CAP_SET_EVENT_DISCRIMINATOR)]);
|
|
36
40
|
}
|
|
37
41
|
/** Gets the codec for {@link MintCapSetEvent} event data. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintCapSet.js","sourceRoot":"","sources":["../../../../generated/client/events/mintCapSet.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,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,GAMd,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,gCAAgC,GAC3C,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;AAEtD,MAAM,UAAU,oCAAoC;IAClD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,gCAAgC,CACjC,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"mintCapSet.js","sourceRoot":"","sources":["../../../../generated/client/events/mintCapSet.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,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,GAM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C,YAAY,EAAE,aAAa,EAAE,CAAC;QAC/B,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC;QAC/B,CAAC,aAAa,EAAE,aAAa,EAAE,CAAC;KACjC,CAAC,EACF,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAAC,CACvD,CAAC;AACJ,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,uBAAuB;IAIrC,OAAO,YAAY,CAAC,yBAAyB,EAAE,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAChF,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,oBAAoB,CAClC,IAAqC;IAErC,IAAI,aAAa,CAAC,IAAI,EAAE,gCAAgC,EAAE,CAAC,CAAC,EAAE,CAAC;QAC7D,OAAO,yBAAyB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,IAAI,KAAK,CACb,8EAA8E,CAC/E,CAAC;AACJ,CAAC"}
|
|
@@ -14,6 +14,7 @@ export type ProfileSetEvent = {
|
|
|
14
14
|
endpoint: string;
|
|
15
15
|
docUrl: string;
|
|
16
16
|
docHash: ReadonlyUint8Array;
|
|
17
|
+
encryptionKey: ReadonlyUint8Array;
|
|
17
18
|
};
|
|
18
19
|
export type ProfileSetEventArgs = ProfileSetEvent;
|
|
19
20
|
/** Gets the encoder for {@link ProfileSetEventArgs} event data. */
|
|
@@ -21,6 +21,7 @@ export function getProfileSetEventEncoder() {
|
|
|
21
21
|
["endpoint", addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())],
|
|
22
22
|
["docUrl", addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())],
|
|
23
23
|
["docHash", fixEncoderSize(getBytesEncoder(), 32)],
|
|
24
|
+
["encryptionKey", fixEncoderSize(getBytesEncoder(), 32)],
|
|
24
25
|
]), [getConstantEncoder(PROFILE_SET_EVENT_DISCRIMINATOR)]);
|
|
25
26
|
}
|
|
26
27
|
/** Gets the decoder for {@link ProfileSetEvent} event data. */
|
|
@@ -34,6 +35,7 @@ export function getProfileSetEventDecoder() {
|
|
|
34
35
|
["endpoint", addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())],
|
|
35
36
|
["docUrl", addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())],
|
|
36
37
|
["docHash", fixDecoderSize(getBytesDecoder(), 32)],
|
|
38
|
+
["encryptionKey", fixDecoderSize(getBytesDecoder(), 32)],
|
|
37
39
|
]), [getConstantDecoder(PROFILE_SET_EVENT_DISCRIMINATOR)]);
|
|
38
40
|
}
|
|
39
41
|
/** Gets the codec for {@link ProfileSetEvent} event data. */
|
|
@@ -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;AA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A+D;AAC/D,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,CAAC,CACxD;SACF;QACD,CAAC,UAAU,EAAE,oBAAoB,CAAC,cAAc,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;QACrE,CAAC,QAAQ,EAAE,oBAAoB,CAAC,cAAc,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;QACnE,CAAC,SAAS,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;QAClD,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;KACzD,CAAC,EACF,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,CAAC,CACtD,CAAC;AACJ,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,uBAAuB;IAIrC,OAAO,YAAY,CAAC,yBAAyB,EAAE,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAChF,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,oBAAoB,CAClC,IAAqC;IAErC,IAAI,aAAa,CAAC,IAAI,EAAE,+BAA+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"}
|
|
@@ -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,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AI,EAAE,kCAAkC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACpE,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 CANCEL_INTENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getCancelIntentDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type CancelIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountRefundTo extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountClaims extends string | AccountMeta<string> = string, TAccountStakeTo 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 CancelIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountRefundTo extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountClaims extends string | AccountMeta<string> = string, TAccountStakeTo 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
|
TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
15
15
|
TAccountIntent extends string ? WritableAccount<TAccountIntent> : TAccountIntent,
|
|
16
16
|
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
@@ -19,6 +19,7 @@ export type CancelIntentInstruction<TProgram extends string = typeof INTENT_ENGI
|
|
|
19
19
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
20
20
|
TAccountClaims extends string ? WritableAccount<TAccountClaims> : TAccountClaims,
|
|
21
21
|
TAccountStakeTo extends string ? WritableAccount<TAccountStakeTo> : TAccountStakeTo,
|
|
22
|
+
TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
|
|
22
23
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
23
24
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
24
25
|
...TRemainingAccounts
|
|
@@ -33,7 +34,7 @@ export type CancelIntentInstructionDataArgs = {
|
|
|
33
34
|
export declare function getCancelIntentInstructionDataEncoder(): Encoder<CancelIntentInstructionDataArgs>;
|
|
34
35
|
export declare function getCancelIntentInstructionDataDecoder(): Decoder<CancelIntentInstructionData>;
|
|
35
36
|
export declare function getCancelIntentInstructionDataCodec(): Codec<CancelIntentInstructionDataArgs, CancelIntentInstructionData>;
|
|
36
|
-
export type CancelIntentAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
37
|
+
export type CancelIntentAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
37
38
|
owner: TAccountOwner;
|
|
38
39
|
intent: TAccountIntent;
|
|
39
40
|
vault?: TAccountVault;
|
|
@@ -42,14 +43,15 @@ export type CancelIntentAsyncInput<TAccountOwner extends InstructionSignerInput
|
|
|
42
43
|
tokenProgram?: TAccountTokenProgram;
|
|
43
44
|
claims?: TAccountClaims;
|
|
44
45
|
stakeTo?: TAccountStakeTo;
|
|
46
|
+
mintCap?: TAccountMintCap;
|
|
45
47
|
eventAuthority: TAccountEventAuthority;
|
|
46
48
|
program: TAccountProgram;
|
|
47
49
|
ext: CancelIntentInstructionDataArgs["ext"];
|
|
48
50
|
};
|
|
49
|
-
export declare function getCancelIntentInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CancelIntentAsyncInput<TAccountOwner, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountTokenProgram, TAccountClaims, TAccountStakeTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
51
|
+
export declare function getCancelIntentInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CancelIntentAsyncInput<TAccountOwner, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountTokenProgram, TAccountClaims, TAccountStakeTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
50
52
|
programAddress?: TProgramAddress;
|
|
51
|
-
}): Promise<CancelIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
52
|
-
export type CancelIntentInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
53
|
+
}): Promise<CancelIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
54
|
+
export type CancelIntentInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
53
55
|
owner: TAccountOwner;
|
|
54
56
|
intent: TAccountIntent;
|
|
55
57
|
vault: TAccountVault;
|
|
@@ -58,13 +60,14 @@ export type CancelIntentInput<TAccountOwner extends InstructionSignerInput = Ins
|
|
|
58
60
|
tokenProgram?: TAccountTokenProgram;
|
|
59
61
|
claims?: TAccountClaims;
|
|
60
62
|
stakeTo?: TAccountStakeTo;
|
|
63
|
+
mintCap?: TAccountMintCap;
|
|
61
64
|
eventAuthority: TAccountEventAuthority;
|
|
62
65
|
program: TAccountProgram;
|
|
63
66
|
ext: CancelIntentInstructionDataArgs["ext"];
|
|
64
67
|
};
|
|
65
|
-
export declare function getCancelIntentInstruction<TAccountOwner extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CancelIntentInput<TAccountOwner, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountTokenProgram, TAccountClaims, TAccountStakeTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
68
|
+
export declare function getCancelIntentInstruction<TAccountOwner extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CancelIntentInput<TAccountOwner, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountTokenProgram, TAccountClaims, TAccountStakeTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
66
69
|
programAddress?: TProgramAddress;
|
|
67
|
-
}): CancelIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
70
|
+
}): CancelIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
68
71
|
export type ParsedCancelIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
69
72
|
programAddress: Address<TProgram>;
|
|
70
73
|
accounts: {
|
|
@@ -76,8 +79,9 @@ export type ParsedCancelIntentInstruction<TProgram extends string = typeof INTEN
|
|
|
76
79
|
tokenProgram: TAccountMetas[5];
|
|
77
80
|
claims?: TAccountMetas[6] | undefined;
|
|
78
81
|
stakeTo?: TAccountMetas[7] | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
mintCap?: TAccountMetas[8] | undefined;
|
|
83
|
+
eventAuthority: TAccountMetas[9];
|
|
84
|
+
program: TAccountMetas[10];
|
|
81
85
|
};
|
|
82
86
|
data: CancelIntentInstructionData;
|
|
83
87
|
};
|