@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
|
@@ -26,11 +26,13 @@ export type SetMintCapInstructionData = {
|
|
|
26
26
|
maxPerOrder: bigint;
|
|
27
27
|
windowCap: bigint;
|
|
28
28
|
windowSecs: number;
|
|
29
|
+
totalLimit: bigint;
|
|
29
30
|
};
|
|
30
31
|
export type SetMintCapInstructionDataArgs = {
|
|
31
32
|
maxPerOrder: number | bigint;
|
|
32
33
|
windowCap: number | bigint;
|
|
33
34
|
windowSecs: number;
|
|
35
|
+
totalLimit: number | bigint;
|
|
34
36
|
};
|
|
35
37
|
export declare function getSetMintCapInstructionDataEncoder(): FixedSizeEncoder<SetMintCapInstructionDataArgs>;
|
|
36
38
|
export declare function getSetMintCapInstructionDataDecoder(): FixedSizeDecoder<SetMintCapInstructionData>;
|
|
@@ -47,6 +49,7 @@ export type SetMintCapAsyncInput<TAccountAdmin extends InstructionSignerInput =
|
|
|
47
49
|
maxPerOrder: SetMintCapInstructionDataArgs["maxPerOrder"];
|
|
48
50
|
windowCap: SetMintCapInstructionDataArgs["windowCap"];
|
|
49
51
|
windowSecs: SetMintCapInstructionDataArgs["windowSecs"];
|
|
52
|
+
totalLimit: SetMintCapInstructionDataArgs["totalLimit"];
|
|
50
53
|
};
|
|
51
54
|
export declare function getSetMintCapInstructionAsync<TAccountAdmin extends InstructionSignerInput, TAccountPayer extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountMint extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: SetMintCapAsyncInput<TAccountAdmin, TAccountPayer, TAccountConfig, TAccountMint, TAccountMintCap, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
52
55
|
programAddress?: TProgramAddress;
|
|
@@ -63,6 +66,7 @@ export type SetMintCapInput<TAccountAdmin extends InstructionSignerInput = Instr
|
|
|
63
66
|
maxPerOrder: SetMintCapInstructionDataArgs["maxPerOrder"];
|
|
64
67
|
windowCap: SetMintCapInstructionDataArgs["windowCap"];
|
|
65
68
|
windowSecs: SetMintCapInstructionDataArgs["windowSecs"];
|
|
69
|
+
totalLimit: SetMintCapInstructionDataArgs["totalLimit"];
|
|
66
70
|
};
|
|
67
71
|
export declare function getSetMintCapInstruction<TAccountAdmin extends InstructionSignerInput, TAccountPayer extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountMint extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: SetMintCapInput<TAccountAdmin, TAccountPayer, TAccountConfig, TAccountMint, TAccountMintCap, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
68
72
|
programAddress?: TProgramAddress;
|
|
@@ -21,6 +21,7 @@ export function getSetMintCapInstructionDataEncoder() {
|
|
|
21
21
|
["maxPerOrder", getU64Encoder()],
|
|
22
22
|
["windowCap", getU64Encoder()],
|
|
23
23
|
["windowSecs", getU32Encoder()],
|
|
24
|
+
["totalLimit", getU64Encoder()],
|
|
24
25
|
]), (value) => ({ ...value, discriminator: SET_MINT_CAP_DISCRIMINATOR }));
|
|
25
26
|
}
|
|
26
27
|
export function getSetMintCapInstructionDataDecoder() {
|
|
@@ -29,6 +30,7 @@ export function getSetMintCapInstructionDataDecoder() {
|
|
|
29
30
|
["maxPerOrder", getU64Decoder()],
|
|
30
31
|
["windowCap", getU64Decoder()],
|
|
31
32
|
["windowSecs", getU32Decoder()],
|
|
33
|
+
["totalLimit", getU64Decoder()],
|
|
32
34
|
]);
|
|
33
35
|
}
|
|
34
36
|
export function getSetMintCapInstructionDataCodec() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setMintCap.js","sourceRoot":"","sources":["../../../../generated/client/instructions/setMintCap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAejB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,0BAA0B,GAAuB,IAAI,UAAU,CAAC;IAC3E,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B;IAC7C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,0BAA0B,CAC3B,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"setMintCap.js","sourceRoot":"","sources":["../../../../generated/client/instructions/setMintCap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAejB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,0BAA0B,GAAuB,IAAI,UAAU,CAAC;IAC3E,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B;IAC7C,OAAO,cAAc,C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,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc,EAAE;YACvB,KAAK,EAAE,cAAc,EAAE;YACvB,MAAM,EAAE,cAAc,EAAE;YACxB,IAAI,EAAE,cAAc,EAAE;YACtB,OAAO,EAAE,cAAc,EAAE;YACzB,aAAa,EAAE,cAAc,EAAE;YAC/B,cAAc,EAAE,cAAc,EAAE;YAChC,OAAO,EAAE,cAAc,EAAE;SAC1B;QACD,IAAI,EAAE,mCAAmC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACrE,CAAC;AACJ,CAAC"}
|
|
@@ -10,12 +10,13 @@ import { type InstructionAccountInput, type InstructionAccountInputAddress, type
|
|
|
10
10
|
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
11
|
export declare const STAND_BY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getStandByDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type StandByInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountWorker extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountEntry extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", 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 StandByInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountWorker extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountEntry extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
14
|
TAccountWorker extends string ? WritableSignerAccount<TAccountWorker> & AccountSignerMeta<TAccountWorker> : TAccountWorker,
|
|
15
15
|
TAccountIntent extends string ? ReadonlyAccount<TAccountIntent> : TAccountIntent,
|
|
16
16
|
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
17
17
|
TAccountEntry extends string ? WritableAccount<TAccountEntry> : TAccountEntry,
|
|
18
18
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
19
|
+
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
19
20
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
20
21
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
21
22
|
...TRemainingAccounts
|
|
@@ -30,32 +31,34 @@ export type StandByInstructionDataArgs = {
|
|
|
30
31
|
export declare function getStandByInstructionDataEncoder(): FixedSizeEncoder<StandByInstructionDataArgs>;
|
|
31
32
|
export declare function getStandByInstructionDataDecoder(): FixedSizeDecoder<StandByInstructionData>;
|
|
32
33
|
export declare function getStandByInstructionDataCodec(): FixedSizeCodec<StandByInstructionDataArgs, StandByInstructionData>;
|
|
33
|
-
export type StandByAsyncInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountEntry extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
34
|
+
export type StandByAsyncInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountEntry extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
34
35
|
worker: TAccountWorker;
|
|
35
36
|
intent: TAccountIntent;
|
|
36
37
|
board?: TAccountBoard;
|
|
37
38
|
entry: TAccountEntry;
|
|
38
39
|
systemProgram?: TAccountSystemProgram;
|
|
40
|
+
config?: TAccountConfig;
|
|
39
41
|
eventAuthority: TAccountEventAuthority;
|
|
40
42
|
program: TAccountProgram;
|
|
41
43
|
secs: StandByInstructionDataArgs["secs"];
|
|
42
44
|
};
|
|
43
|
-
export declare function getStandByInstructionAsync<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountEntry extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: StandByAsyncInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountEntry, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
45
|
+
export declare function getStandByInstructionAsync<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountEntry extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: StandByAsyncInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountEntry, TAccountSystemProgram, TAccountConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
44
46
|
programAddress?: TProgramAddress;
|
|
45
|
-
}): Promise<StandByInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountEntry, InstructionAccountInputAddress<TAccountEntry>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
46
|
-
export type StandByInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountEntry extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
47
|
+
}): Promise<StandByInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountEntry, InstructionAccountInputAddress<TAccountEntry>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
48
|
+
export type StandByInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountEntry extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
47
49
|
worker: TAccountWorker;
|
|
48
50
|
intent: TAccountIntent;
|
|
49
51
|
board: TAccountBoard;
|
|
50
52
|
entry: TAccountEntry;
|
|
51
53
|
systemProgram?: TAccountSystemProgram;
|
|
54
|
+
config?: TAccountConfig;
|
|
52
55
|
eventAuthority: TAccountEventAuthority;
|
|
53
56
|
program: TAccountProgram;
|
|
54
57
|
secs: StandByInstructionDataArgs["secs"];
|
|
55
58
|
};
|
|
56
|
-
export declare function getStandByInstruction<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountEntry extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: StandByInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountEntry, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
59
|
+
export declare function getStandByInstruction<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountEntry extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: StandByInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountEntry, TAccountSystemProgram, TAccountConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
57
60
|
programAddress?: TProgramAddress;
|
|
58
|
-
}): StandByInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountEntry, InstructionAccountInputAddress<TAccountEntry>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
61
|
+
}): StandByInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountEntry, InstructionAccountInputAddress<TAccountEntry>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
59
62
|
export type ParsedStandByInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
60
63
|
programAddress: Address<TProgram>;
|
|
61
64
|
accounts: {
|
|
@@ -64,8 +67,9 @@ export type ParsedStandByInstruction<TProgram extends string = typeof INTENT_ENG
|
|
|
64
67
|
board: TAccountMetas[2];
|
|
65
68
|
entry: TAccountMetas[3];
|
|
66
69
|
systemProgram: TAccountMetas[4];
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
config: TAccountMetas[5];
|
|
71
|
+
eventAuthority: TAccountMetas[6];
|
|
72
|
+
program: TAccountMetas[7];
|
|
69
73
|
};
|
|
70
74
|
data: StandByInstructionData;
|
|
71
75
|
};
|
|
@@ -46,6 +46,7 @@ export async function getStandByInstructionAsync(input, config) {
|
|
|
46
46
|
isSigner: false,
|
|
47
47
|
isWritable: false,
|
|
48
48
|
},
|
|
49
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: false },
|
|
49
50
|
eventAuthority: {
|
|
50
51
|
value: input.eventAuthority ?? null,
|
|
51
52
|
isSigner: false,
|
|
@@ -70,6 +71,10 @@ export async function getStandByInstructionAsync(input, config) {
|
|
|
70
71
|
accounts.systemProgram.value =
|
|
71
72
|
"11111111111111111111111111111111";
|
|
72
73
|
}
|
|
74
|
+
if (!accounts.config.value) {
|
|
75
|
+
accounts.config.value =
|
|
76
|
+
"6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz";
|
|
77
|
+
}
|
|
73
78
|
return Object.freeze({
|
|
74
79
|
accounts: [
|
|
75
80
|
getAccountMeta("worker", accounts.worker),
|
|
@@ -77,6 +82,7 @@ export async function getStandByInstructionAsync(input, config) {
|
|
|
77
82
|
getAccountMeta("board", accounts.board),
|
|
78
83
|
getAccountMeta("entry", accounts.entry),
|
|
79
84
|
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
85
|
+
getAccountMeta("config", accounts.config),
|
|
80
86
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
81
87
|
getAccountMeta("program", accounts.program),
|
|
82
88
|
],
|
|
@@ -100,6 +106,7 @@ export function getStandByInstruction(input, config) {
|
|
|
100
106
|
isSigner: false,
|
|
101
107
|
isWritable: false,
|
|
102
108
|
},
|
|
109
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: false },
|
|
103
110
|
eventAuthority: {
|
|
104
111
|
value: input.eventAuthority ?? null,
|
|
105
112
|
isSigner: false,
|
|
@@ -119,6 +126,10 @@ export function getStandByInstruction(input, config) {
|
|
|
119
126
|
accounts.systemProgram.value =
|
|
120
127
|
"11111111111111111111111111111111";
|
|
121
128
|
}
|
|
129
|
+
if (!accounts.config.value) {
|
|
130
|
+
accounts.config.value =
|
|
131
|
+
"6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz";
|
|
132
|
+
}
|
|
122
133
|
return Object.freeze({
|
|
123
134
|
accounts: [
|
|
124
135
|
getAccountMeta("worker", accounts.worker),
|
|
@@ -126,6 +137,7 @@ export function getStandByInstruction(input, config) {
|
|
|
126
137
|
getAccountMeta("board", accounts.board),
|
|
127
138
|
getAccountMeta("entry", accounts.entry),
|
|
128
139
|
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
140
|
+
getAccountMeta("config", accounts.config),
|
|
129
141
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
130
142
|
getAccountMeta("program", accounts.program),
|
|
131
143
|
],
|
|
@@ -134,10 +146,10 @@ export function getStandByInstruction(input, config) {
|
|
|
134
146
|
});
|
|
135
147
|
}
|
|
136
148
|
export function parseStandByInstruction(instruction) {
|
|
137
|
-
if (instruction.accounts.length <
|
|
149
|
+
if (instruction.accounts.length < 8) {
|
|
138
150
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
139
151
|
actualAccountMetas: instruction.accounts.length,
|
|
140
|
-
expectedAccountMetas:
|
|
152
|
+
expectedAccountMetas: 8,
|
|
141
153
|
});
|
|
142
154
|
}
|
|
143
155
|
let accountIndex = 0;
|
|
@@ -154,6 +166,7 @@ export function parseStandByInstruction(instruction) {
|
|
|
154
166
|
board: getNextAccount(),
|
|
155
167
|
entry: getNextAccount(),
|
|
156
168
|
systemProgram: getNextAccount(),
|
|
169
|
+
config: getNextAccount(),
|
|
157
170
|
eventAuthority: getNextAccount(),
|
|
158
171
|
program: getNextAccount(),
|
|
159
172
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standBy.js","sourceRoot":"","sources":["../../../../generated/client/instructions/standBy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,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,sBAAsB,GAAuB,IAAI,UAAU,CAAC;IACvE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B;IAC1C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAC7E,CAAC;
|
|
1
|
+
{"version":3,"file":"standBy.js","sourceRoot":"","sources":["../../../../generated/client/instructions/standBy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH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