-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathquarryMergeMine.ts
More file actions
27 lines (21 loc) · 957 Bytes
/
quarryMergeMine.ts
File metadata and controls
27 lines (21 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import type { IdlAccounts, Program } from "@project-serum/anchor";
import type { AllInstructionsMap } from "@project-serum/anchor/dist/esm/program/namespace/types";
import type { AnchorTypes } from "@saberhq/anchor-contrib";
import type { QuarryMergeMineIDL } from "../idls/quarry_merge_mine";
import type { AccountMaps } from "../wrappers/mine/miner";
export * from "../idls/quarry_merge_mine";
export type QuarryMergeMineTypes = AnchorTypes<
QuarryMergeMineIDL,
{
mergePool: MergePoolData;
mergeMiner: MergeMinerData;
}
>;
type Accounts = IdlAccounts<QuarryMergeMineIDL>;
export type MergePoolData = Accounts["mergePool"];
export type MergeMinerData = Accounts["mergeMiner"];
export type QuarryMergeMineError = QuarryMergeMineTypes["Error"];
export type QuarryMergeMineProgram = Program<QuarryMergeMineIDL>;
export type QuarryStakeAccounts = AccountMaps<
AllInstructionsMap<QuarryMergeMineIDL>["stakePrimaryMiner"]["accounts"][2]
>;