@exponent-labs/exponent-orderbook-idl 0.1.8 → 0.9.0
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/build/exponent_orderbook.d.ts +60 -7
- package/build/exponent_orderbook.json +60 -7
- package/build/index.d.ts +121 -1
- package/package.json +1 -1
- package/src/exponent_orderbook.json +60 -7
- package/src/exponent_orderbook.ts +60 -7
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/exponent_orderbook.json`.
|
|
6
6
|
*/
|
|
7
7
|
export type ExponentOrderbook = {
|
|
8
|
-
"address": "
|
|
8
|
+
"address": "XPBookgQTN2p8Yw1C2La35XkPMmZTCEYH77AdReVvK1";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "exponentOrderbook";
|
|
11
11
|
"version": "0.1.0";
|
|
@@ -77,6 +77,12 @@ export type ExponentOrderbook = {
|
|
|
77
77
|
"name": "orderbook";
|
|
78
78
|
"writable": true;
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"name": "vault";
|
|
82
|
+
"docs": [
|
|
83
|
+
"Links the mint_yt & sy_program together"
|
|
84
|
+
];
|
|
85
|
+
},
|
|
80
86
|
{
|
|
81
87
|
"name": "tokenEscrowYt";
|
|
82
88
|
"docs": [
|
|
@@ -164,6 +170,12 @@ export type ExponentOrderbook = {
|
|
|
164
170
|
"name": "orderbook";
|
|
165
171
|
"writable": true;
|
|
166
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"name": "vault";
|
|
175
|
+
"docs": [
|
|
176
|
+
"Links the mint_yt & sy_program together"
|
|
177
|
+
];
|
|
178
|
+
},
|
|
167
179
|
{
|
|
168
180
|
"name": "tokenEscrowSy";
|
|
169
181
|
"writable": true;
|
|
@@ -218,9 +230,6 @@ export type ExponentOrderbook = {
|
|
|
218
230
|
},
|
|
219
231
|
{
|
|
220
232
|
"name": "initializeOrderbook";
|
|
221
|
-
"docs": [
|
|
222
|
-
"High-trust function to init orderbook"
|
|
223
|
-
];
|
|
224
233
|
"discriminator": [
|
|
225
234
|
0
|
|
226
235
|
];
|
|
@@ -608,6 +617,12 @@ export type ExponentOrderbook = {
|
|
|
608
617
|
"name": "offerOptions";
|
|
609
618
|
};
|
|
610
619
|
};
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "offerIdx";
|
|
623
|
+
"type": {
|
|
624
|
+
"option": "u32";
|
|
625
|
+
};
|
|
611
626
|
}
|
|
612
627
|
];
|
|
613
628
|
"returns": {
|
|
@@ -618,9 +633,6 @@ export type ExponentOrderbook = {
|
|
|
618
633
|
},
|
|
619
634
|
{
|
|
620
635
|
"name": "reallocOrderbookAccount";
|
|
621
|
-
"docs": [
|
|
622
|
-
"High-trust function to realloc orderbook data orderbook"
|
|
623
|
-
];
|
|
624
636
|
"discriminator": [
|
|
625
637
|
2
|
|
626
638
|
];
|
|
@@ -669,6 +681,12 @@ export type ExponentOrderbook = {
|
|
|
669
681
|
"name": "orderbook";
|
|
670
682
|
"writable": true;
|
|
671
683
|
},
|
|
684
|
+
{
|
|
685
|
+
"name": "vault";
|
|
686
|
+
"docs": [
|
|
687
|
+
"Links the mint_yt & sy_program together"
|
|
688
|
+
];
|
|
689
|
+
},
|
|
672
690
|
{
|
|
673
691
|
"name": "syProgram";
|
|
674
692
|
},
|
|
@@ -706,6 +724,13 @@ export type ExponentOrderbook = {
|
|
|
706
724
|
"name": "orderbook";
|
|
707
725
|
"writable": true;
|
|
708
726
|
},
|
|
727
|
+
{
|
|
728
|
+
"name": "vault";
|
|
729
|
+
"docs": [
|
|
730
|
+
"Links the mint_yt & sy_program together"
|
|
731
|
+
];
|
|
732
|
+
"writable": true;
|
|
733
|
+
},
|
|
709
734
|
{
|
|
710
735
|
"name": "tokenEscrowYt";
|
|
711
736
|
"docs": [
|
|
@@ -827,6 +852,13 @@ export type ExponentOrderbook = {
|
|
|
827
852
|
"name": "orderbook";
|
|
828
853
|
"writable": true;
|
|
829
854
|
},
|
|
855
|
+
{
|
|
856
|
+
"name": "vault";
|
|
857
|
+
"docs": [
|
|
858
|
+
"Links the mint_yt & sy_program together"
|
|
859
|
+
];
|
|
860
|
+
"writable": true;
|
|
861
|
+
},
|
|
830
862
|
{
|
|
831
863
|
"name": "tokenEscrowYt";
|
|
832
864
|
"docs": [
|
|
@@ -1356,6 +1388,12 @@ export type ExponentOrderbook = {
|
|
|
1356
1388
|
};
|
|
1357
1389
|
};
|
|
1358
1390
|
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "offerIdx";
|
|
1393
|
+
"type": {
|
|
1394
|
+
"option": "u32";
|
|
1395
|
+
};
|
|
1396
|
+
},
|
|
1359
1397
|
{
|
|
1360
1398
|
"name": "mintSyOrWithdrawYtAccountsUntil";
|
|
1361
1399
|
"type": "u8";
|
|
@@ -1928,6 +1966,21 @@ export type ExponentOrderbook = {
|
|
|
1928
1966
|
"code": 6013;
|
|
1929
1967
|
"name": "tokenAccountAlreadyInUse";
|
|
1930
1968
|
"msg": "Token account already in use";
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"code": 6014;
|
|
1972
|
+
"name": "priceApyOverflow";
|
|
1973
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals";
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"code": 6015;
|
|
1977
|
+
"name": "invalidFeeRate";
|
|
1978
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%";
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"code": 6016;
|
|
1982
|
+
"name": "offerIdxMismatch";
|
|
1983
|
+
"msg": "Offer index mismatch";
|
|
1931
1984
|
}
|
|
1932
1985
|
];
|
|
1933
1986
|
"types": [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "XPBookgQTN2p8Yw1C2La35XkPMmZTCEYH77AdReVvK1",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "exponent_orderbook",
|
|
5
5
|
"version": "0.1.0",
|
|
@@ -71,6 +71,12 @@
|
|
|
71
71
|
"name": "orderbook",
|
|
72
72
|
"writable": true
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"name": "vault",
|
|
76
|
+
"docs": [
|
|
77
|
+
"Links the mint_yt & sy_program together"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
74
80
|
{
|
|
75
81
|
"name": "token_escrow_yt",
|
|
76
82
|
"docs": [
|
|
@@ -158,6 +164,12 @@
|
|
|
158
164
|
"name": "orderbook",
|
|
159
165
|
"writable": true
|
|
160
166
|
},
|
|
167
|
+
{
|
|
168
|
+
"name": "vault",
|
|
169
|
+
"docs": [
|
|
170
|
+
"Links the mint_yt & sy_program together"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
161
173
|
{
|
|
162
174
|
"name": "token_escrow_sy",
|
|
163
175
|
"writable": true
|
|
@@ -212,9 +224,6 @@
|
|
|
212
224
|
},
|
|
213
225
|
{
|
|
214
226
|
"name": "initialize_orderbook",
|
|
215
|
-
"docs": [
|
|
216
|
-
"High-trust function to init orderbook"
|
|
217
|
-
],
|
|
218
227
|
"discriminator": [
|
|
219
228
|
0
|
|
220
229
|
],
|
|
@@ -602,6 +611,12 @@
|
|
|
602
611
|
"name": "OfferOptions"
|
|
603
612
|
}
|
|
604
613
|
}
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "offer_idx",
|
|
617
|
+
"type": {
|
|
618
|
+
"option": "u32"
|
|
619
|
+
}
|
|
605
620
|
}
|
|
606
621
|
],
|
|
607
622
|
"returns": {
|
|
@@ -612,9 +627,6 @@
|
|
|
612
627
|
},
|
|
613
628
|
{
|
|
614
629
|
"name": "realloc_orderbook_account",
|
|
615
|
-
"docs": [
|
|
616
|
-
"High-trust function to realloc orderbook data orderbook"
|
|
617
|
-
],
|
|
618
630
|
"discriminator": [
|
|
619
631
|
2
|
|
620
632
|
],
|
|
@@ -663,6 +675,12 @@
|
|
|
663
675
|
"name": "orderbook",
|
|
664
676
|
"writable": true
|
|
665
677
|
},
|
|
678
|
+
{
|
|
679
|
+
"name": "vault",
|
|
680
|
+
"docs": [
|
|
681
|
+
"Links the mint_yt & sy_program together"
|
|
682
|
+
]
|
|
683
|
+
},
|
|
666
684
|
{
|
|
667
685
|
"name": "sy_program"
|
|
668
686
|
},
|
|
@@ -700,6 +718,13 @@
|
|
|
700
718
|
"name": "orderbook",
|
|
701
719
|
"writable": true
|
|
702
720
|
},
|
|
721
|
+
{
|
|
722
|
+
"name": "vault",
|
|
723
|
+
"docs": [
|
|
724
|
+
"Links the mint_yt & sy_program together"
|
|
725
|
+
],
|
|
726
|
+
"writable": true
|
|
727
|
+
},
|
|
703
728
|
{
|
|
704
729
|
"name": "token_escrow_yt",
|
|
705
730
|
"docs": [
|
|
@@ -821,6 +846,13 @@
|
|
|
821
846
|
"name": "orderbook",
|
|
822
847
|
"writable": true
|
|
823
848
|
},
|
|
849
|
+
{
|
|
850
|
+
"name": "vault",
|
|
851
|
+
"docs": [
|
|
852
|
+
"Links the mint_yt & sy_program together"
|
|
853
|
+
],
|
|
854
|
+
"writable": true
|
|
855
|
+
},
|
|
824
856
|
{
|
|
825
857
|
"name": "token_escrow_yt",
|
|
826
858
|
"docs": [
|
|
@@ -1350,6 +1382,12 @@
|
|
|
1350
1382
|
}
|
|
1351
1383
|
}
|
|
1352
1384
|
},
|
|
1385
|
+
{
|
|
1386
|
+
"name": "offer_idx",
|
|
1387
|
+
"type": {
|
|
1388
|
+
"option": "u32"
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1353
1391
|
{
|
|
1354
1392
|
"name": "mint_sy_or_withdraw_yt_accounts_until",
|
|
1355
1393
|
"type": "u8"
|
|
@@ -1922,6 +1960,21 @@
|
|
|
1922
1960
|
"code": 6013,
|
|
1923
1961
|
"name": "TokenAccountAlreadyInUse",
|
|
1924
1962
|
"msg": "Token account already in use"
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"code": 6014,
|
|
1966
|
+
"name": "PriceApyOverflow",
|
|
1967
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals"
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"code": 6015,
|
|
1971
|
+
"name": "InvalidFeeRate",
|
|
1972
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"code": 6016,
|
|
1976
|
+
"name": "OfferIdxMismatch",
|
|
1977
|
+
"msg": "Offer index mismatch"
|
|
1925
1978
|
}
|
|
1926
1979
|
],
|
|
1927
1980
|
"types": [
|
package/build/index.d.ts
CHANGED
|
@@ -11,6 +11,74 @@ export declare const IDL: {
|
|
|
11
11
|
name: string;
|
|
12
12
|
docs: string[];
|
|
13
13
|
discriminator: number[];
|
|
14
|
+
accounts: ({
|
|
15
|
+
name: string;
|
|
16
|
+
signer: boolean;
|
|
17
|
+
writable?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
writable: boolean;
|
|
21
|
+
signer?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
name: string;
|
|
24
|
+
signer?: undefined;
|
|
25
|
+
writable?: undefined;
|
|
26
|
+
})[];
|
|
27
|
+
args: ({
|
|
28
|
+
name: string;
|
|
29
|
+
type: {
|
|
30
|
+
defined: {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
name: string;
|
|
36
|
+
type: string;
|
|
37
|
+
})[];
|
|
38
|
+
returns: {
|
|
39
|
+
defined: {
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
name: string;
|
|
45
|
+
docs: string[];
|
|
46
|
+
discriminator: number[];
|
|
47
|
+
accounts: ({
|
|
48
|
+
name: string;
|
|
49
|
+
signer: boolean;
|
|
50
|
+
writable?: undefined;
|
|
51
|
+
docs?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
name: string;
|
|
54
|
+
writable: boolean;
|
|
55
|
+
signer?: undefined;
|
|
56
|
+
docs?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
name: string;
|
|
59
|
+
docs: string[];
|
|
60
|
+
signer?: undefined;
|
|
61
|
+
writable?: undefined;
|
|
62
|
+
} | {
|
|
63
|
+
name: string;
|
|
64
|
+
docs: string[];
|
|
65
|
+
writable: boolean;
|
|
66
|
+
signer?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
name: string;
|
|
69
|
+
signer?: undefined;
|
|
70
|
+
writable?: undefined;
|
|
71
|
+
docs?: undefined;
|
|
72
|
+
})[];
|
|
73
|
+
args: any[];
|
|
74
|
+
returns: {
|
|
75
|
+
defined: {
|
|
76
|
+
name: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
} | {
|
|
80
|
+
name: string;
|
|
81
|
+
discriminator: number[];
|
|
14
82
|
accounts: ({
|
|
15
83
|
name: string;
|
|
16
84
|
writable: boolean;
|
|
@@ -58,6 +126,7 @@ export declare const IDL: {
|
|
|
58
126
|
name: string;
|
|
59
127
|
};
|
|
60
128
|
};
|
|
129
|
+
docs?: undefined;
|
|
61
130
|
} | {
|
|
62
131
|
name: string;
|
|
63
132
|
discriminator: number[];
|
|
@@ -96,6 +165,13 @@ export declare const IDL: {
|
|
|
96
165
|
defined: {
|
|
97
166
|
name: string;
|
|
98
167
|
};
|
|
168
|
+
option?: undefined;
|
|
169
|
+
};
|
|
170
|
+
} | {
|
|
171
|
+
name: string;
|
|
172
|
+
type: {
|
|
173
|
+
option: string;
|
|
174
|
+
defined?: undefined;
|
|
99
175
|
};
|
|
100
176
|
})[];
|
|
101
177
|
returns: {
|
|
@@ -106,7 +182,6 @@ export declare const IDL: {
|
|
|
106
182
|
docs?: undefined;
|
|
107
183
|
} | {
|
|
108
184
|
name: string;
|
|
109
|
-
docs: string[];
|
|
110
185
|
discriminator: number[];
|
|
111
186
|
accounts: ({
|
|
112
187
|
name: string;
|
|
@@ -125,6 +200,7 @@ export declare const IDL: {
|
|
|
125
200
|
name: string;
|
|
126
201
|
type: string;
|
|
127
202
|
}[];
|
|
203
|
+
docs?: undefined;
|
|
128
204
|
returns?: undefined;
|
|
129
205
|
} | {
|
|
130
206
|
name: string;
|
|
@@ -140,6 +216,11 @@ export declare const IDL: {
|
|
|
140
216
|
writable: boolean;
|
|
141
217
|
signer?: undefined;
|
|
142
218
|
docs?: undefined;
|
|
219
|
+
} | {
|
|
220
|
+
name: string;
|
|
221
|
+
docs: string[];
|
|
222
|
+
writable?: undefined;
|
|
223
|
+
signer?: undefined;
|
|
143
224
|
} | {
|
|
144
225
|
name: string;
|
|
145
226
|
writable?: undefined;
|
|
@@ -175,6 +256,45 @@ export declare const IDL: {
|
|
|
175
256
|
};
|
|
176
257
|
}[];
|
|
177
258
|
returns?: undefined;
|
|
259
|
+
} | {
|
|
260
|
+
name: string;
|
|
261
|
+
docs: string[];
|
|
262
|
+
discriminator: number[];
|
|
263
|
+
accounts: ({
|
|
264
|
+
name: string;
|
|
265
|
+
writable: boolean;
|
|
266
|
+
signer: boolean;
|
|
267
|
+
docs?: undefined;
|
|
268
|
+
} | {
|
|
269
|
+
name: string;
|
|
270
|
+
writable: boolean;
|
|
271
|
+
signer?: undefined;
|
|
272
|
+
docs?: undefined;
|
|
273
|
+
} | {
|
|
274
|
+
name: string;
|
|
275
|
+
docs: string[];
|
|
276
|
+
writable: boolean;
|
|
277
|
+
signer?: undefined;
|
|
278
|
+
} | {
|
|
279
|
+
name: string;
|
|
280
|
+
docs: string[];
|
|
281
|
+
writable?: undefined;
|
|
282
|
+
signer?: undefined;
|
|
283
|
+
} | {
|
|
284
|
+
name: string;
|
|
285
|
+
writable?: undefined;
|
|
286
|
+
signer?: undefined;
|
|
287
|
+
docs?: undefined;
|
|
288
|
+
})[];
|
|
289
|
+
args: {
|
|
290
|
+
name: string;
|
|
291
|
+
type: string;
|
|
292
|
+
}[];
|
|
293
|
+
returns: {
|
|
294
|
+
defined: {
|
|
295
|
+
name: string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
178
298
|
})[];
|
|
179
299
|
accounts: {
|
|
180
300
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "XPBookgQTN2p8Yw1C2La35XkPMmZTCEYH77AdReVvK1",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "exponent_orderbook",
|
|
5
5
|
"version": "0.1.0",
|
|
@@ -71,6 +71,12 @@
|
|
|
71
71
|
"name": "orderbook",
|
|
72
72
|
"writable": true
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"name": "vault",
|
|
76
|
+
"docs": [
|
|
77
|
+
"Links the mint_yt & sy_program together"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
74
80
|
{
|
|
75
81
|
"name": "token_escrow_yt",
|
|
76
82
|
"docs": [
|
|
@@ -158,6 +164,12 @@
|
|
|
158
164
|
"name": "orderbook",
|
|
159
165
|
"writable": true
|
|
160
166
|
},
|
|
167
|
+
{
|
|
168
|
+
"name": "vault",
|
|
169
|
+
"docs": [
|
|
170
|
+
"Links the mint_yt & sy_program together"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
161
173
|
{
|
|
162
174
|
"name": "token_escrow_sy",
|
|
163
175
|
"writable": true
|
|
@@ -212,9 +224,6 @@
|
|
|
212
224
|
},
|
|
213
225
|
{
|
|
214
226
|
"name": "initialize_orderbook",
|
|
215
|
-
"docs": [
|
|
216
|
-
"High-trust function to init orderbook"
|
|
217
|
-
],
|
|
218
227
|
"discriminator": [
|
|
219
228
|
0
|
|
220
229
|
],
|
|
@@ -602,6 +611,12 @@
|
|
|
602
611
|
"name": "OfferOptions"
|
|
603
612
|
}
|
|
604
613
|
}
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "offer_idx",
|
|
617
|
+
"type": {
|
|
618
|
+
"option": "u32"
|
|
619
|
+
}
|
|
605
620
|
}
|
|
606
621
|
],
|
|
607
622
|
"returns": {
|
|
@@ -612,9 +627,6 @@
|
|
|
612
627
|
},
|
|
613
628
|
{
|
|
614
629
|
"name": "realloc_orderbook_account",
|
|
615
|
-
"docs": [
|
|
616
|
-
"High-trust function to realloc orderbook data orderbook"
|
|
617
|
-
],
|
|
618
630
|
"discriminator": [
|
|
619
631
|
2
|
|
620
632
|
],
|
|
@@ -663,6 +675,12 @@
|
|
|
663
675
|
"name": "orderbook",
|
|
664
676
|
"writable": true
|
|
665
677
|
},
|
|
678
|
+
{
|
|
679
|
+
"name": "vault",
|
|
680
|
+
"docs": [
|
|
681
|
+
"Links the mint_yt & sy_program together"
|
|
682
|
+
]
|
|
683
|
+
},
|
|
666
684
|
{
|
|
667
685
|
"name": "sy_program"
|
|
668
686
|
},
|
|
@@ -700,6 +718,13 @@
|
|
|
700
718
|
"name": "orderbook",
|
|
701
719
|
"writable": true
|
|
702
720
|
},
|
|
721
|
+
{
|
|
722
|
+
"name": "vault",
|
|
723
|
+
"docs": [
|
|
724
|
+
"Links the mint_yt & sy_program together"
|
|
725
|
+
],
|
|
726
|
+
"writable": true
|
|
727
|
+
},
|
|
703
728
|
{
|
|
704
729
|
"name": "token_escrow_yt",
|
|
705
730
|
"docs": [
|
|
@@ -821,6 +846,13 @@
|
|
|
821
846
|
"name": "orderbook",
|
|
822
847
|
"writable": true
|
|
823
848
|
},
|
|
849
|
+
{
|
|
850
|
+
"name": "vault",
|
|
851
|
+
"docs": [
|
|
852
|
+
"Links the mint_yt & sy_program together"
|
|
853
|
+
],
|
|
854
|
+
"writable": true
|
|
855
|
+
},
|
|
824
856
|
{
|
|
825
857
|
"name": "token_escrow_yt",
|
|
826
858
|
"docs": [
|
|
@@ -1350,6 +1382,12 @@
|
|
|
1350
1382
|
}
|
|
1351
1383
|
}
|
|
1352
1384
|
},
|
|
1385
|
+
{
|
|
1386
|
+
"name": "offer_idx",
|
|
1387
|
+
"type": {
|
|
1388
|
+
"option": "u32"
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1353
1391
|
{
|
|
1354
1392
|
"name": "mint_sy_or_withdraw_yt_accounts_until",
|
|
1355
1393
|
"type": "u8"
|
|
@@ -1922,6 +1960,21 @@
|
|
|
1922
1960
|
"code": 6013,
|
|
1923
1961
|
"name": "TokenAccountAlreadyInUse",
|
|
1924
1962
|
"msg": "Token account already in use"
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"code": 6014,
|
|
1966
|
+
"name": "PriceApyOverflow",
|
|
1967
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals"
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"code": 6015,
|
|
1971
|
+
"name": "InvalidFeeRate",
|
|
1972
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"code": 6016,
|
|
1976
|
+
"name": "OfferIdxMismatch",
|
|
1977
|
+
"msg": "Offer index mismatch"
|
|
1925
1978
|
}
|
|
1926
1979
|
],
|
|
1927
1980
|
"types": [
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/exponent_orderbook.json`.
|
|
6
6
|
*/
|
|
7
7
|
export type ExponentOrderbook = {
|
|
8
|
-
"address": "
|
|
8
|
+
"address": "XPBookgQTN2p8Yw1C2La35XkPMmZTCEYH77AdReVvK1",
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "exponentOrderbook",
|
|
11
11
|
"version": "0.1.0",
|
|
@@ -77,6 +77,12 @@ export type ExponentOrderbook = {
|
|
|
77
77
|
"name": "orderbook",
|
|
78
78
|
"writable": true
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"name": "vault",
|
|
82
|
+
"docs": [
|
|
83
|
+
"Links the mint_yt & sy_program together"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
80
86
|
{
|
|
81
87
|
"name": "tokenEscrowYt",
|
|
82
88
|
"docs": [
|
|
@@ -164,6 +170,12 @@ export type ExponentOrderbook = {
|
|
|
164
170
|
"name": "orderbook",
|
|
165
171
|
"writable": true
|
|
166
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"name": "vault",
|
|
175
|
+
"docs": [
|
|
176
|
+
"Links the mint_yt & sy_program together"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
167
179
|
{
|
|
168
180
|
"name": "tokenEscrowSy",
|
|
169
181
|
"writable": true
|
|
@@ -218,9 +230,6 @@ export type ExponentOrderbook = {
|
|
|
218
230
|
},
|
|
219
231
|
{
|
|
220
232
|
"name": "initializeOrderbook",
|
|
221
|
-
"docs": [
|
|
222
|
-
"High-trust function to init orderbook"
|
|
223
|
-
],
|
|
224
233
|
"discriminator": [
|
|
225
234
|
0
|
|
226
235
|
],
|
|
@@ -608,6 +617,12 @@ export type ExponentOrderbook = {
|
|
|
608
617
|
"name": "offerOptions"
|
|
609
618
|
}
|
|
610
619
|
}
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "offerIdx",
|
|
623
|
+
"type": {
|
|
624
|
+
"option": "u32"
|
|
625
|
+
}
|
|
611
626
|
}
|
|
612
627
|
],
|
|
613
628
|
"returns": {
|
|
@@ -618,9 +633,6 @@ export type ExponentOrderbook = {
|
|
|
618
633
|
},
|
|
619
634
|
{
|
|
620
635
|
"name": "reallocOrderbookAccount",
|
|
621
|
-
"docs": [
|
|
622
|
-
"High-trust function to realloc orderbook data orderbook"
|
|
623
|
-
],
|
|
624
636
|
"discriminator": [
|
|
625
637
|
2
|
|
626
638
|
],
|
|
@@ -669,6 +681,12 @@ export type ExponentOrderbook = {
|
|
|
669
681
|
"name": "orderbook",
|
|
670
682
|
"writable": true
|
|
671
683
|
},
|
|
684
|
+
{
|
|
685
|
+
"name": "vault",
|
|
686
|
+
"docs": [
|
|
687
|
+
"Links the mint_yt & sy_program together"
|
|
688
|
+
]
|
|
689
|
+
},
|
|
672
690
|
{
|
|
673
691
|
"name": "syProgram"
|
|
674
692
|
},
|
|
@@ -706,6 +724,13 @@ export type ExponentOrderbook = {
|
|
|
706
724
|
"name": "orderbook",
|
|
707
725
|
"writable": true
|
|
708
726
|
},
|
|
727
|
+
{
|
|
728
|
+
"name": "vault",
|
|
729
|
+
"docs": [
|
|
730
|
+
"Links the mint_yt & sy_program together"
|
|
731
|
+
],
|
|
732
|
+
"writable": true
|
|
733
|
+
},
|
|
709
734
|
{
|
|
710
735
|
"name": "tokenEscrowYt",
|
|
711
736
|
"docs": [
|
|
@@ -827,6 +852,13 @@ export type ExponentOrderbook = {
|
|
|
827
852
|
"name": "orderbook",
|
|
828
853
|
"writable": true
|
|
829
854
|
},
|
|
855
|
+
{
|
|
856
|
+
"name": "vault",
|
|
857
|
+
"docs": [
|
|
858
|
+
"Links the mint_yt & sy_program together"
|
|
859
|
+
],
|
|
860
|
+
"writable": true
|
|
861
|
+
},
|
|
830
862
|
{
|
|
831
863
|
"name": "tokenEscrowYt",
|
|
832
864
|
"docs": [
|
|
@@ -1356,6 +1388,12 @@ export type ExponentOrderbook = {
|
|
|
1356
1388
|
}
|
|
1357
1389
|
}
|
|
1358
1390
|
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "offerIdx",
|
|
1393
|
+
"type": {
|
|
1394
|
+
"option": "u32"
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1359
1397
|
{
|
|
1360
1398
|
"name": "mintSyOrWithdrawYtAccountsUntil",
|
|
1361
1399
|
"type": "u8"
|
|
@@ -1928,6 +1966,21 @@ export type ExponentOrderbook = {
|
|
|
1928
1966
|
"code": 6013,
|
|
1929
1967
|
"name": "tokenAccountAlreadyInUse",
|
|
1930
1968
|
"msg": "Token account already in use"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"code": 6014,
|
|
1972
|
+
"name": "priceApyOverflow",
|
|
1973
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals"
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"code": 6015,
|
|
1977
|
+
"name": "invalidFeeRate",
|
|
1978
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%"
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"code": 6016,
|
|
1982
|
+
"name": "offerIdxMismatch",
|
|
1983
|
+
"msg": "Offer index mismatch"
|
|
1931
1984
|
}
|
|
1932
1985
|
],
|
|
1933
1986
|
"types": [
|