@hawksightco/hawk-sdk 1.2.125 → 1.2.127
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/src/anchor.d.ts +3 -112
- package/dist/src/anchor.d.ts.map +1 -1
- package/dist/src/anchor.js +21 -3
- package/dist/src/idl/iyf-extension-idl.d.ts +1 -276
- package/dist/src/idl/iyf-extension-idl.d.ts.map +1 -1
- package/dist/src/idl/iyf-extension-idl.js +6 -281
- package/dist/src/idl/iyf-extension-wrapper.d.ts +112 -0
- package/dist/src/idl/iyf-extension-wrapper.d.ts.map +1 -0
- package/dist/src/idl/iyf-extension-wrapper.js +2 -0
- package/dist/src/idl/iyf-main-idl.d.ts +7406 -5875
- package/dist/src/idl/iyf-main-idl.d.ts.map +1 -1
- package/dist/src/idl/iyf-main-idl.js +7617 -6092
- package/dist/src/idl/iyf-main-wrapper.d.ts +112 -0
- package/dist/src/idl/iyf-main-wrapper.d.ts.map +1 -0
- package/dist/src/idl/iyf-main-wrapper.js +2 -0
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts +0 -7
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts.map +1 -1
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.js +0 -31
- package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts +7 -0
- package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts.map +1 -1
- package/dist/src/ixGenerator/IyfMainIxGenerator.js +23 -0
- package/package.json +1 -1
package/dist/src/anchor.d.ts
CHANGED
|
@@ -1,120 +1,12 @@
|
|
|
1
1
|
/// <reference types="@meteora-ag/dlmm/node_modules/@solana/web3.js" />
|
|
2
2
|
import * as web3 from "@solana/web3.js";
|
|
3
3
|
import * as anchor from "@coral-xyz/anchor";
|
|
4
|
-
import { IndexYieldFarming } from "./idl/iyf-main-idl";
|
|
5
|
-
import { IyfExtension as IyfExtensionNew } from "./idl/iyf-extension-idl";
|
|
6
4
|
import { Whirlpool } from "./idl/orca-idl";
|
|
7
5
|
import { LbClmm } from "./idl/meteora-idl";
|
|
8
6
|
import { Raydium } from "./idl/raydium-idl";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
accounts: IdlAccountItem[];
|
|
13
|
-
args: IdlField[];
|
|
14
|
-
returns?: IdlType;
|
|
15
|
-
};
|
|
16
|
-
type IdlAccountItem = IdlAccount | IdlAccounts;
|
|
17
|
-
type IdlAccount = {
|
|
18
|
-
name: string;
|
|
19
|
-
isMut: boolean;
|
|
20
|
-
isSigner: boolean;
|
|
21
|
-
isOptional?: boolean;
|
|
22
|
-
docs?: string[];
|
|
23
|
-
relations?: string[];
|
|
24
|
-
pda?: IdlPda;
|
|
25
|
-
};
|
|
26
|
-
type IdlPda = {
|
|
27
|
-
seeds: IdlSeed[];
|
|
28
|
-
programId?: IdlSeed;
|
|
29
|
-
};
|
|
30
|
-
type IdlSeed = any;
|
|
31
|
-
type IdlAccounts = {
|
|
32
|
-
name: string;
|
|
33
|
-
docs?: string[];
|
|
34
|
-
accounts: IdlAccountItem[];
|
|
35
|
-
};
|
|
36
|
-
type IdlField = {
|
|
37
|
-
name: string;
|
|
38
|
-
docs?: string[];
|
|
39
|
-
type: IdlType;
|
|
40
|
-
};
|
|
41
|
-
type IdlType = "bool" | "u8" | "i8" | "u16" | "i16" | "u32" | "i32" | "f32" | "u64" | "i64" | "f64" | "u128" | "i128" | "u256" | "i256" | "bytes" | "string" | "publicKey" | IdlTypeDefined | IdlTypeOption | IdlTypeCOption | IdlTypeVec | IdlTypeArray;
|
|
42
|
-
type IdlTypeDefined = {
|
|
43
|
-
defined: string;
|
|
44
|
-
};
|
|
45
|
-
type IdlTypeOption = {
|
|
46
|
-
option: IdlType;
|
|
47
|
-
};
|
|
48
|
-
type IdlTypeCOption = {
|
|
49
|
-
coption: IdlType;
|
|
50
|
-
};
|
|
51
|
-
type IdlTypeVec = {
|
|
52
|
-
vec: IdlType;
|
|
53
|
-
};
|
|
54
|
-
type IdlTypeArray = {
|
|
55
|
-
array: [idlType: IdlType, size: number];
|
|
56
|
-
};
|
|
57
|
-
type IdlAccountDef = {
|
|
58
|
-
name: string;
|
|
59
|
-
docs?: string[];
|
|
60
|
-
type: IdlTypeDefTyStruct;
|
|
61
|
-
};
|
|
62
|
-
type IdlTypeDefTyStruct = {
|
|
63
|
-
kind: "struct";
|
|
64
|
-
fields: IdlTypeDefStruct;
|
|
65
|
-
};
|
|
66
|
-
type IdlTypeDefStruct = Array<IdlField>;
|
|
67
|
-
type IdlTypeDef = {
|
|
68
|
-
name: string;
|
|
69
|
-
docs?: string[];
|
|
70
|
-
type: IdlTypeDefTy;
|
|
71
|
-
};
|
|
72
|
-
type IdlTypeDefTy = IdlTypeDefTyEnum | IdlTypeDefTyStruct | IdlTypeDefTyAlias;
|
|
73
|
-
type IdlTypeDefTyEnum = {
|
|
74
|
-
kind: "enum";
|
|
75
|
-
variants: IdlEnumVariant[];
|
|
76
|
-
};
|
|
77
|
-
type IdlEnumVariant = {
|
|
78
|
-
name: string;
|
|
79
|
-
fields?: IdlEnumFields;
|
|
80
|
-
};
|
|
81
|
-
type IdlTypeDefTyAlias = {
|
|
82
|
-
kind: "alias";
|
|
83
|
-
value: IdlType;
|
|
84
|
-
};
|
|
85
|
-
type IdlEnumFields = IdlEnumFieldsNamed | IdlEnumFieldsTuple;
|
|
86
|
-
type IdlEnumFieldsNamed = IdlField[];
|
|
87
|
-
type IdlEnumFieldsTuple = IdlType[];
|
|
88
|
-
type Instruction<I extends number> = {
|
|
89
|
-
name: IyfExtensionNew["instructions"][I]["name"];
|
|
90
|
-
accounts: IyfExtensionNew["instructions"][I]["accounts"];
|
|
91
|
-
args: IyfExtensionNew["instructions"][I]["args"];
|
|
92
|
-
} & IdlInstruction;
|
|
93
|
-
type GenerateInstructions<T extends any[], I extends number[] = []> = I["length"] extends T["length"] ? [] : [
|
|
94
|
-
Instruction<I["length"]>,
|
|
95
|
-
...GenerateInstructions<T, [...I, I["length"]]>
|
|
96
|
-
];
|
|
97
|
-
type FilteredInstructions = GenerateInstructions<IyfExtensionNew["instructions"]>;
|
|
98
|
-
type FindMatchingType<Name, Types extends any[]> = Types extends Array<infer T> ? T extends {
|
|
99
|
-
name: Name;
|
|
100
|
-
type: infer Type;
|
|
101
|
-
} ? Type : never : never;
|
|
102
|
-
type Account<I extends number> = {
|
|
103
|
-
name: unknown extends IyfExtensionNew["accounts"][I]["name"] ? never : IyfExtensionNew["accounts"][I]["name"];
|
|
104
|
-
type: unknown extends IyfExtensionNew["accounts"][I]["name"] ? never : FindMatchingType<IyfExtensionNew["accounts"][I]["name"], IyfExtensionNew["types"]>;
|
|
105
|
-
} & IdlAccountDef;
|
|
106
|
-
type GenerateAccounts<T extends any[], I extends number[] = []> = I["length"] extends T["length"] ? [] : [
|
|
107
|
-
Account<I["length"]>,
|
|
108
|
-
...GenerateAccounts<T, [...I, I["length"]]>
|
|
109
|
-
];
|
|
110
|
-
type FilteredAccounts = GenerateAccounts<IyfExtensionNew["accounts"]>;
|
|
111
|
-
export type IyfExtension = {
|
|
112
|
-
"version": string;
|
|
113
|
-
"name": string;
|
|
114
|
-
"instructions": FilteredInstructions;
|
|
115
|
-
"accounts": FilteredAccounts;
|
|
116
|
-
"types": IyfExtensionNew["types"] & Array<IdlTypeDef>;
|
|
117
|
-
};
|
|
7
|
+
import { IyfExtension } from "./idl/iyf-extension-wrapper";
|
|
8
|
+
import { IndexYieldFarming } from "./idl/iyf-main-wrapper";
|
|
9
|
+
export { IyfExtension };
|
|
118
10
|
export declare class Anchor {
|
|
119
11
|
connection: web3.Connection;
|
|
120
12
|
private static _instance;
|
|
@@ -128,5 +20,4 @@ export declare class Anchor {
|
|
|
128
20
|
static initialize(connection: web3.Connection): void;
|
|
129
21
|
static instance(): Anchor;
|
|
130
22
|
}
|
|
131
|
-
export {};
|
|
132
23
|
//# sourceMappingURL=anchor.d.ts.map
|
package/dist/src/anchor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchor.d.ts","sourceRoot":"","sources":["../../src/anchor.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"anchor.d.ts","sourceRoot":"","sources":["../../src/anchor.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAqB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAkB,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAmB,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS7D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAK3D,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,qBAAa,MAAM;IAeR,UAAU,EAAE,IAAI,CAAC,UAAU;IAbpC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAS;IACjC,QAAQ,EAAE,MAAM,CAAC,cAAc,CAAC;IAGhC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAG3C,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3C,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAExC,OAAO;IA6DP,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU;IAI7C,MAAM,CAAC,QAAQ,IAAI,MAAM;CAO1B"}
|
package/dist/src/anchor.js
CHANGED
|
@@ -29,19 +29,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Anchor = void 0;
|
|
30
30
|
const web3 = __importStar(require("@solana/web3.js"));
|
|
31
31
|
const anchor = __importStar(require("@coral-xyz/anchor"));
|
|
32
|
-
const iyf_main_idl_1 = require("./idl/iyf-main-idl");
|
|
33
|
-
const iyf_extension_idl_1 = require("./idl/iyf-extension-idl");
|
|
34
32
|
const orca_idl_1 = require("./idl/orca-idl");
|
|
35
33
|
const meteora_idl_1 = require("./idl/meteora-idl");
|
|
36
34
|
const raydium_idl_1 = require("./idl/raydium-idl");
|
|
37
35
|
const nodewallet_1 = __importDefault(require("@coral-xyz/anchor/dist/cjs/nodewallet"));
|
|
38
36
|
const addresses_1 = require("./addresses");
|
|
37
|
+
const iyf_extension_idl_1 = require("./idl/iyf-extension-idl");
|
|
38
|
+
const iyf_main_idl_1 = require("./idl/iyf-main-idl");
|
|
39
39
|
class Anchor {
|
|
40
40
|
constructor(connection) {
|
|
41
41
|
this.connection = connection;
|
|
42
42
|
// Initialize the Anchor provider
|
|
43
43
|
this.provider = new anchor.AnchorProvider(connection, new nodewallet_1.default(web3.Keypair.generate()), {});
|
|
44
|
-
|
|
44
|
+
const IyfMain = {
|
|
45
|
+
version: iyf_main_idl_1.IDL.metadata.version,
|
|
46
|
+
name: iyf_main_idl_1.IDL.metadata.name,
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
instructions: iyf_main_idl_1.IDL.instructions.map((instruction, index) => {
|
|
49
|
+
return {
|
|
50
|
+
name: instruction.name,
|
|
51
|
+
accounts: instruction.accounts.map(account => {
|
|
52
|
+
return {
|
|
53
|
+
name: account.name,
|
|
54
|
+
isMut: "writable" in account ? account.writable : false,
|
|
55
|
+
isSigner: "signer" in account ? account.signer : false,
|
|
56
|
+
};
|
|
57
|
+
}),
|
|
58
|
+
args: instruction.args,
|
|
59
|
+
};
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
this.iyfMain = new anchor.Program(IyfMain, addresses_1.IYF_MAIN, this.provider);
|
|
45
63
|
const p = iyf_extension_idl_1.IDL.instructions.map(instruction => {
|
|
46
64
|
return {
|
|
47
65
|
name: instruction.name,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/iyf_extension.json`.
|
|
6
6
|
*/
|
|
7
7
|
export type IyfExtension = {
|
|
8
|
-
"address": "
|
|
8
|
+
"address": "EZiUb6ydWpR3ciizBTJ1J36KCqLyPKVjh4yZEJbs5Uno";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "iyfExtension";
|
|
11
11
|
"version": "0.1.0";
|
|
@@ -9404,96 +9404,6 @@ export type IyfExtension = {
|
|
|
9404
9404
|
}
|
|
9405
9405
|
];
|
|
9406
9406
|
},
|
|
9407
|
-
{
|
|
9408
|
-
"name": "pumpFunCloseUserVolumeAccumulator";
|
|
9409
|
-
"docs": [
|
|
9410
|
-
"Pump Fun close user volume accumulator"
|
|
9411
|
-
];
|
|
9412
|
-
"discriminator": [
|
|
9413
|
-
202,
|
|
9414
|
-
56,
|
|
9415
|
-
183,
|
|
9416
|
-
60,
|
|
9417
|
-
109,
|
|
9418
|
-
218,
|
|
9419
|
-
147,
|
|
9420
|
-
10
|
|
9421
|
-
];
|
|
9422
|
-
"accounts": [
|
|
9423
|
-
{
|
|
9424
|
-
"name": "userPda";
|
|
9425
|
-
"docs": [
|
|
9426
|
-
"Hawksight user pda account authorized by user wallet"
|
|
9427
|
-
];
|
|
9428
|
-
},
|
|
9429
|
-
{
|
|
9430
|
-
"name": "authority";
|
|
9431
|
-
"docs": [
|
|
9432
|
-
"Rebalance authority account (PDA)"
|
|
9433
|
-
];
|
|
9434
|
-
"writable": true;
|
|
9435
|
-
"signer": true;
|
|
9436
|
-
},
|
|
9437
|
-
{
|
|
9438
|
-
"name": "userVolumeAccumulator";
|
|
9439
|
-
"writable": true;
|
|
9440
|
-
"pda": {
|
|
9441
|
-
"seeds": [
|
|
9442
|
-
{
|
|
9443
|
-
"kind": "const";
|
|
9444
|
-
"value": [
|
|
9445
|
-
117,
|
|
9446
|
-
115,
|
|
9447
|
-
101,
|
|
9448
|
-
114,
|
|
9449
|
-
95,
|
|
9450
|
-
118,
|
|
9451
|
-
111,
|
|
9452
|
-
108,
|
|
9453
|
-
117,
|
|
9454
|
-
109,
|
|
9455
|
-
101,
|
|
9456
|
-
95,
|
|
9457
|
-
97,
|
|
9458
|
-
99,
|
|
9459
|
-
99,
|
|
9460
|
-
117,
|
|
9461
|
-
109,
|
|
9462
|
-
117,
|
|
9463
|
-
108,
|
|
9464
|
-
97,
|
|
9465
|
-
116,
|
|
9466
|
-
111,
|
|
9467
|
-
114
|
|
9468
|
-
];
|
|
9469
|
-
},
|
|
9470
|
-
{
|
|
9471
|
-
"kind": "account";
|
|
9472
|
-
"path": "userPda";
|
|
9473
|
-
}
|
|
9474
|
-
];
|
|
9475
|
-
"program": {
|
|
9476
|
-
"kind": "account";
|
|
9477
|
-
"path": "pumpFunProgram";
|
|
9478
|
-
};
|
|
9479
|
-
};
|
|
9480
|
-
},
|
|
9481
|
-
{
|
|
9482
|
-
"name": "eventAuthority";
|
|
9483
|
-
"docs": [
|
|
9484
|
-
"Event authority PDA account from Pump AMM"
|
|
9485
|
-
];
|
|
9486
|
-
},
|
|
9487
|
-
{
|
|
9488
|
-
"name": "pumpFunProgram";
|
|
9489
|
-
"docs": [
|
|
9490
|
-
"Pump Fun AMM program"
|
|
9491
|
-
];
|
|
9492
|
-
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA";
|
|
9493
|
-
}
|
|
9494
|
-
];
|
|
9495
|
-
"args": [];
|
|
9496
|
-
},
|
|
9497
9407
|
{
|
|
9498
9408
|
"name": "raydiumClosePositionAutomation";
|
|
9499
9409
|
"docs": [
|
|
@@ -9676,7 +9586,6 @@ export type IyfExtension = {
|
|
|
9676
9586
|
"docs": [
|
|
9677
9587
|
"Raydium protocol position"
|
|
9678
9588
|
];
|
|
9679
|
-
"writable": true;
|
|
9680
9589
|
},
|
|
9681
9590
|
{
|
|
9682
9591
|
"name": "tokenVault0";
|
|
@@ -9870,7 +9779,6 @@ export type IyfExtension = {
|
|
|
9870
9779
|
"docs": [
|
|
9871
9780
|
"Raydium protocol position"
|
|
9872
9781
|
];
|
|
9873
|
-
"writable": true;
|
|
9874
9782
|
},
|
|
9875
9783
|
{
|
|
9876
9784
|
"name": "tokenVault0";
|
|
@@ -10045,7 +9953,6 @@ export type IyfExtension = {
|
|
|
10045
9953
|
"docs": [
|
|
10046
9954
|
"Raydium protocol position"
|
|
10047
9955
|
];
|
|
10048
|
-
"writable": true;
|
|
10049
9956
|
},
|
|
10050
9957
|
{
|
|
10051
9958
|
"name": "personalPosition";
|
|
@@ -10244,40 +10151,6 @@ export type IyfExtension = {
|
|
|
10244
10151
|
"docs": [
|
|
10245
10152
|
"Protocol position which may be already initialized, or to be initialized by user."
|
|
10246
10153
|
];
|
|
10247
|
-
"writable": true;
|
|
10248
|
-
"pda": {
|
|
10249
|
-
"seeds": [
|
|
10250
|
-
{
|
|
10251
|
-
"kind": "const";
|
|
10252
|
-
"value": [
|
|
10253
|
-
112,
|
|
10254
|
-
111,
|
|
10255
|
-
115,
|
|
10256
|
-
105,
|
|
10257
|
-
116,
|
|
10258
|
-
105,
|
|
10259
|
-
111,
|
|
10260
|
-
110
|
|
10261
|
-
];
|
|
10262
|
-
},
|
|
10263
|
-
{
|
|
10264
|
-
"kind": "account";
|
|
10265
|
-
"path": "poolState";
|
|
10266
|
-
},
|
|
10267
|
-
{
|
|
10268
|
-
"kind": "arg";
|
|
10269
|
-
"path": "tickLowerIndex";
|
|
10270
|
-
},
|
|
10271
|
-
{
|
|
10272
|
-
"kind": "arg";
|
|
10273
|
-
"path": "tickUpperIndex";
|
|
10274
|
-
}
|
|
10275
|
-
];
|
|
10276
|
-
"program": {
|
|
10277
|
-
"kind": "account";
|
|
10278
|
-
"path": "raydiumProgram";
|
|
10279
|
-
};
|
|
10280
|
-
};
|
|
10281
10154
|
},
|
|
10282
10155
|
{
|
|
10283
10156
|
"name": "tickArrayLower";
|
|
@@ -10548,42 +10421,6 @@ export type IyfExtension = {
|
|
|
10548
10421
|
},
|
|
10549
10422
|
{
|
|
10550
10423
|
"name": "protocolPosition";
|
|
10551
|
-
"writable": true;
|
|
10552
|
-
"pda": {
|
|
10553
|
-
"seeds": [
|
|
10554
|
-
{
|
|
10555
|
-
"kind": "const";
|
|
10556
|
-
"value": [
|
|
10557
|
-
112,
|
|
10558
|
-
111,
|
|
10559
|
-
115,
|
|
10560
|
-
105,
|
|
10561
|
-
116,
|
|
10562
|
-
105,
|
|
10563
|
-
111,
|
|
10564
|
-
110
|
|
10565
|
-
];
|
|
10566
|
-
},
|
|
10567
|
-
{
|
|
10568
|
-
"kind": "account";
|
|
10569
|
-
"path": "poolState";
|
|
10570
|
-
},
|
|
10571
|
-
{
|
|
10572
|
-
"kind": "account";
|
|
10573
|
-
"path": "personal_position.tick_lower_index";
|
|
10574
|
-
"account": "personalPositionState";
|
|
10575
|
-
},
|
|
10576
|
-
{
|
|
10577
|
-
"kind": "account";
|
|
10578
|
-
"path": "personal_position.tick_upper_index";
|
|
10579
|
-
"account": "personalPositionState";
|
|
10580
|
-
}
|
|
10581
|
-
];
|
|
10582
|
-
"program": {
|
|
10583
|
-
"kind": "account";
|
|
10584
|
-
"path": "raydiumProgram";
|
|
10585
|
-
};
|
|
10586
|
-
};
|
|
10587
10424
|
},
|
|
10588
10425
|
{
|
|
10589
10426
|
"name": "poolState";
|
|
@@ -11740,19 +11577,6 @@ export type IyfExtension = {
|
|
|
11740
11577
|
208
|
|
11741
11578
|
];
|
|
11742
11579
|
},
|
|
11743
|
-
{
|
|
11744
|
-
"name": "protocolPositionState";
|
|
11745
|
-
"discriminator": [
|
|
11746
|
-
100,
|
|
11747
|
-
226,
|
|
11748
|
-
145,
|
|
11749
|
-
99,
|
|
11750
|
-
146,
|
|
11751
|
-
218,
|
|
11752
|
-
160,
|
|
11753
|
-
106
|
|
11754
|
-
];
|
|
11755
|
-
},
|
|
11756
11580
|
{
|
|
11757
11581
|
"name": "tickArrayBitmapExtension";
|
|
11758
11582
|
"discriminator": [
|
|
@@ -12768,105 +12592,6 @@ export type IyfExtension = {
|
|
|
12768
12592
|
];
|
|
12769
12593
|
};
|
|
12770
12594
|
},
|
|
12771
|
-
{
|
|
12772
|
-
"name": "protocolPositionState";
|
|
12773
|
-
"docs": [
|
|
12774
|
-
"Info stored for each user's position"
|
|
12775
|
-
];
|
|
12776
|
-
"type": {
|
|
12777
|
-
"kind": "struct";
|
|
12778
|
-
"fields": [
|
|
12779
|
-
{
|
|
12780
|
-
"name": "bump";
|
|
12781
|
-
"docs": [
|
|
12782
|
-
"Bump to identify PDA"
|
|
12783
|
-
];
|
|
12784
|
-
"type": "u8";
|
|
12785
|
-
},
|
|
12786
|
-
{
|
|
12787
|
-
"name": "poolId";
|
|
12788
|
-
"docs": [
|
|
12789
|
-
"The ID of the pool with which this token is connected"
|
|
12790
|
-
];
|
|
12791
|
-
"type": "pubkey";
|
|
12792
|
-
},
|
|
12793
|
-
{
|
|
12794
|
-
"name": "tickLowerIndex";
|
|
12795
|
-
"docs": [
|
|
12796
|
-
"The lower bound tick of the position"
|
|
12797
|
-
];
|
|
12798
|
-
"type": "i32";
|
|
12799
|
-
},
|
|
12800
|
-
{
|
|
12801
|
-
"name": "tickUpperIndex";
|
|
12802
|
-
"docs": [
|
|
12803
|
-
"The upper bound tick of the position"
|
|
12804
|
-
];
|
|
12805
|
-
"type": "i32";
|
|
12806
|
-
},
|
|
12807
|
-
{
|
|
12808
|
-
"name": "liquidity";
|
|
12809
|
-
"docs": [
|
|
12810
|
-
"The amount of liquidity owned by this position"
|
|
12811
|
-
];
|
|
12812
|
-
"type": "u128";
|
|
12813
|
-
},
|
|
12814
|
-
{
|
|
12815
|
-
"name": "feeGrowthInside0LastX64";
|
|
12816
|
-
"docs": [
|
|
12817
|
-
"The token_0 fee growth per unit of liquidity as of the last update to liquidity or fees owed"
|
|
12818
|
-
];
|
|
12819
|
-
"type": "u128";
|
|
12820
|
-
},
|
|
12821
|
-
{
|
|
12822
|
-
"name": "feeGrowthInside1LastX64";
|
|
12823
|
-
"docs": [
|
|
12824
|
-
"The token_1 fee growth per unit of liquidity as of the last update to liquidity or fees owed"
|
|
12825
|
-
];
|
|
12826
|
-
"type": "u128";
|
|
12827
|
-
},
|
|
12828
|
-
{
|
|
12829
|
-
"name": "tokenFeesOwed0";
|
|
12830
|
-
"docs": [
|
|
12831
|
-
"The fees owed to the position owner in token_0"
|
|
12832
|
-
];
|
|
12833
|
-
"type": "u64";
|
|
12834
|
-
},
|
|
12835
|
-
{
|
|
12836
|
-
"name": "tokenFeesOwed1";
|
|
12837
|
-
"docs": [
|
|
12838
|
-
"The fees owed to the position owner in token_1"
|
|
12839
|
-
];
|
|
12840
|
-
"type": "u64";
|
|
12841
|
-
},
|
|
12842
|
-
{
|
|
12843
|
-
"name": "rewardGrowthInside";
|
|
12844
|
-
"docs": [
|
|
12845
|
-
"The reward growth per unit of liquidity as of the last update to liquidity"
|
|
12846
|
-
];
|
|
12847
|
-
"type": {
|
|
12848
|
-
"array": [
|
|
12849
|
-
"u128",
|
|
12850
|
-
3
|
|
12851
|
-
];
|
|
12852
|
-
};
|
|
12853
|
-
},
|
|
12854
|
-
{
|
|
12855
|
-
"name": "recentEpoch";
|
|
12856
|
-
"type": "u64";
|
|
12857
|
-
},
|
|
12858
|
-
{
|
|
12859
|
-
"name": "padding";
|
|
12860
|
-
"type": {
|
|
12861
|
-
"array": [
|
|
12862
|
-
"u64",
|
|
12863
|
-
7
|
|
12864
|
-
];
|
|
12865
|
-
};
|
|
12866
|
-
}
|
|
12867
|
-
];
|
|
12868
|
-
};
|
|
12869
|
-
},
|
|
12870
12595
|
{
|
|
12871
12596
|
"name": "rewardInfo";
|
|
12872
12597
|
"serialization": "bytemuckunsafe";
|