@liquid-af/sdk 0.11.11 → 1.0.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/dist/accounts/liquid.d.ts +18 -24
- package/dist/accounts/liquid.d.ts.map +1 -1
- package/dist/accounts/liquid.js +4 -4
- package/dist/accounts/liquid.js.map +1 -1
- package/dist/client.d.ts +31 -43
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +6 -10
- package/dist/client.js.map +1 -1
- package/dist/events/parser.d.ts.map +1 -1
- package/dist/events/parser.js.map +1 -1
- package/dist/events/types.d.ts +4 -7
- package/dist/events/types.d.ts.map +1 -1
- package/dist/helpers/cashback.d.ts +1 -1
- package/dist/helpers/cashback.d.ts.map +1 -1
- package/dist/helpers/cashback.js +2 -3
- package/dist/helpers/cashback.js.map +1 -1
- package/dist/helpers/preview.d.ts +8 -20
- package/dist/helpers/preview.d.ts.map +1 -1
- package/dist/helpers/preview.js +26 -19
- package/dist/helpers/preview.js.map +1 -1
- package/dist/idl/liquid.d.ts +139 -396
- package/dist/idl/liquid.d.ts.map +1 -1
- package/dist/idl/liquid.json +140 -397
- package/dist/idl/liquid_events.d.ts +3 -28
- package/dist/idl/liquid_events.d.ts.map +1 -1
- package/dist/idl/liquid_events.json +3 -28
- package/dist/instructions/index.d.ts +2 -2
- package/dist/instructions/index.d.ts.map +1 -1
- package/dist/instructions/index.js +1 -1
- package/dist/instructions/index.js.map +1 -1
- package/dist/instructions/liquid.d.ts +7 -22
- package/dist/instructions/liquid.d.ts.map +1 -1
- package/dist/instructions/liquid.js +13 -37
- package/dist/instructions/liquid.js.map +1 -1
- package/dist/lut.d.ts.map +1 -1
- package/dist/lut.js +2 -2
- package/dist/lut.js.map +1 -1
- package/dist/math/cashback.d.ts.map +1 -1
- package/dist/math/cashback.js +3 -1
- package/dist/math/cashback.js.map +1 -1
- package/dist/oracle.d.ts +0 -28
- package/dist/oracle.d.ts.map +1 -1
- package/dist/oracle.js +0 -35
- package/dist/oracle.js.map +1 -1
- package/dist/types.d.ts +9 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/accounts/liquid.ts +4 -4
- package/src/client.ts +14 -29
- package/src/events/parser.ts +12 -20
- package/src/events/types.ts +4 -7
- package/src/helpers/cashback.ts +12 -5
- package/src/helpers/preview.ts +41 -40
- package/src/idl/liquid.json +140 -397
- package/src/idl/liquid.ts +140 -397
- package/src/idl/liquid_events.json +3 -28
- package/src/idl/liquid_events.ts +3 -28
- package/src/instructions/index.ts +0 -2
- package/src/instructions/liquid.ts +22 -53
- package/src/lut.ts +4 -10
- package/src/math/cashback.ts +3 -1
- package/src/oracle.ts +0 -46
- package/src/types.ts +9 -8
package/src/idl/liquid.ts
CHANGED
|
@@ -69,134 +69,6 @@ export type Liquid = {
|
|
|
69
69
|
],
|
|
70
70
|
"args": []
|
|
71
71
|
},
|
|
72
|
-
{
|
|
73
|
-
"name": "bumpNative",
|
|
74
|
-
"docs": [
|
|
75
|
-
"Re-evaluates a native bonding curve's market cap against the current oracle price.",
|
|
76
|
-
"Marks the curve as complete if the market cap exceeds the migration threshold."
|
|
77
|
-
],
|
|
78
|
-
"discriminator": [
|
|
79
|
-
28,
|
|
80
|
-
90,
|
|
81
|
-
176,
|
|
82
|
-
54,
|
|
83
|
-
158,
|
|
84
|
-
42,
|
|
85
|
-
79,
|
|
86
|
-
79
|
|
87
|
-
],
|
|
88
|
-
"accounts": [
|
|
89
|
-
{
|
|
90
|
-
"name": "bondingCurve",
|
|
91
|
-
"docs": [
|
|
92
|
-
"Bonding curve state."
|
|
93
|
-
],
|
|
94
|
-
"writable": true,
|
|
95
|
-
"pda": {
|
|
96
|
-
"seeds": [
|
|
97
|
-
{
|
|
98
|
-
"kind": "const",
|
|
99
|
-
"value": [
|
|
100
|
-
98,
|
|
101
|
-
111,
|
|
102
|
-
110,
|
|
103
|
-
100,
|
|
104
|
-
105,
|
|
105
|
-
110,
|
|
106
|
-
103,
|
|
107
|
-
95,
|
|
108
|
-
99,
|
|
109
|
-
117,
|
|
110
|
-
114,
|
|
111
|
-
118,
|
|
112
|
-
101
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"kind": "account",
|
|
117
|
-
"path": "mint"
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "globalConfig",
|
|
124
|
-
"docs": [
|
|
125
|
-
"Global configuration for the protocol."
|
|
126
|
-
],
|
|
127
|
-
"pda": {
|
|
128
|
-
"seeds": [
|
|
129
|
-
{
|
|
130
|
-
"kind": "const",
|
|
131
|
-
"value": [
|
|
132
|
-
103,
|
|
133
|
-
108,
|
|
134
|
-
111,
|
|
135
|
-
98,
|
|
136
|
-
97,
|
|
137
|
-
108,
|
|
138
|
-
95,
|
|
139
|
-
99,
|
|
140
|
-
111,
|
|
141
|
-
110,
|
|
142
|
-
102,
|
|
143
|
-
105,
|
|
144
|
-
103
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "mint",
|
|
152
|
-
"docs": [
|
|
153
|
-
"The mint of the token."
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"name": "pythPriceFeed",
|
|
158
|
-
"docs": [
|
|
159
|
-
"Pyth SOL/USD price feed."
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"name": "cpiAuthority",
|
|
164
|
-
"docs": [
|
|
165
|
-
"CPI authority PDA — proves this program's identity in cross-program calls."
|
|
166
|
-
],
|
|
167
|
-
"pda": {
|
|
168
|
-
"seeds": [
|
|
169
|
-
{
|
|
170
|
-
"kind": "const",
|
|
171
|
-
"value": [
|
|
172
|
-
99,
|
|
173
|
-
112,
|
|
174
|
-
105,
|
|
175
|
-
95,
|
|
176
|
-
97,
|
|
177
|
-
117,
|
|
178
|
-
116,
|
|
179
|
-
104,
|
|
180
|
-
111,
|
|
181
|
-
114,
|
|
182
|
-
105,
|
|
183
|
-
116,
|
|
184
|
-
121
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"name": "liquidEventsProgram",
|
|
192
|
-
"docs": [
|
|
193
|
-
"Liquid events program for centralized event emission."
|
|
194
|
-
],
|
|
195
|
-
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"args": []
|
|
199
|
-
},
|
|
200
72
|
{
|
|
201
73
|
"name": "buyExactInNative",
|
|
202
74
|
"docs": [
|
|
@@ -631,7 +503,7 @@ export type Liquid = {
|
|
|
631
503
|
{
|
|
632
504
|
"kind": "account",
|
|
633
505
|
"path": "bonding_curve.creator",
|
|
634
|
-
"account": "
|
|
506
|
+
"account": "bondingCurve"
|
|
635
507
|
}
|
|
636
508
|
],
|
|
637
509
|
"program": {
|
|
@@ -1103,13 +975,6 @@ export type Liquid = {
|
|
|
1103
975
|
"Liquid events program for centralized event emission."
|
|
1104
976
|
],
|
|
1105
977
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
"name": "instructions",
|
|
1109
|
-
"docs": [
|
|
1110
|
-
"Instructions sysvar for CPI caller detection."
|
|
1111
|
-
],
|
|
1112
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
1113
978
|
}
|
|
1114
979
|
],
|
|
1115
980
|
"args": [
|
|
@@ -1648,7 +1513,7 @@ export type Liquid = {
|
|
|
1648
1513
|
{
|
|
1649
1514
|
"kind": "account",
|
|
1650
1515
|
"path": "bonding_curve.creator",
|
|
1651
|
-
"account": "
|
|
1516
|
+
"account": "bondingCurve"
|
|
1652
1517
|
}
|
|
1653
1518
|
],
|
|
1654
1519
|
"program": {
|
|
@@ -2575,7 +2440,7 @@ export type Liquid = {
|
|
|
2575
2440
|
{
|
|
2576
2441
|
"kind": "account",
|
|
2577
2442
|
"path": "bonding_curve.creator",
|
|
2578
|
-
"account": "
|
|
2443
|
+
"account": "bondingCurve"
|
|
2579
2444
|
}
|
|
2580
2445
|
],
|
|
2581
2446
|
"program": {
|
|
@@ -3047,13 +2912,6 @@ export type Liquid = {
|
|
|
3047
2912
|
"Liquid events program for centralized event emission."
|
|
3048
2913
|
],
|
|
3049
2914
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
"name": "instructions",
|
|
3053
|
-
"docs": [
|
|
3054
|
-
"Instructions sysvar for CPI caller detection."
|
|
3055
|
-
],
|
|
3056
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
3057
2915
|
}
|
|
3058
2916
|
],
|
|
3059
2917
|
"args": [
|
|
@@ -3592,7 +3450,7 @@ export type Liquid = {
|
|
|
3592
3450
|
{
|
|
3593
3451
|
"kind": "account",
|
|
3594
3452
|
"path": "bonding_curve.creator",
|
|
3595
|
-
"account": "
|
|
3453
|
+
"account": "bondingCurve"
|
|
3596
3454
|
}
|
|
3597
3455
|
],
|
|
3598
3456
|
"program": {
|
|
@@ -4658,12 +4516,6 @@ export type Liquid = {
|
|
|
4658
4516
|
]
|
|
4659
4517
|
}
|
|
4660
4518
|
},
|
|
4661
|
-
{
|
|
4662
|
-
"name": "pythPriceFeed",
|
|
4663
|
-
"docs": [
|
|
4664
|
-
"Pyth SOL/USD price feed."
|
|
4665
|
-
]
|
|
4666
|
-
},
|
|
4667
4519
|
{
|
|
4668
4520
|
"name": "wsolMint",
|
|
4669
4521
|
"docs": [
|
|
@@ -6202,8 +6054,8 @@ export type Liquid = {
|
|
|
6202
6054
|
"",
|
|
6203
6055
|
"# Arguments",
|
|
6204
6056
|
"* `initial_virtual_token_reserves` - Initial virtual token reserves for new curves.",
|
|
6205
|
-
"* `
|
|
6206
|
-
"* `
|
|
6057
|
+
"* `initial_virtual_usd_reserves` - Initial virtual reserve value in USD (6 decimals) for new curves.",
|
|
6058
|
+
"* `initial_virtual_sol_reserves` - Initial virtual SOL reserves in lamports for native curves.",
|
|
6207
6059
|
"* `initial_real_token_reserves` - Initial real token reserves for new curves.",
|
|
6208
6060
|
"* `token_total_supply` - Total supply for new tokens.",
|
|
6209
6061
|
"* `creator_fee_basis_points` - Fee basis points for token creators.",
|
|
@@ -6275,11 +6127,11 @@ export type Liquid = {
|
|
|
6275
6127
|
"type": "u64"
|
|
6276
6128
|
},
|
|
6277
6129
|
{
|
|
6278
|
-
"name": "
|
|
6130
|
+
"name": "initialVirtualUsdReserves",
|
|
6279
6131
|
"type": "u64"
|
|
6280
6132
|
},
|
|
6281
6133
|
{
|
|
6282
|
-
"name": "
|
|
6134
|
+
"name": "initialVirtualSolReserves",
|
|
6283
6135
|
"type": "u64"
|
|
6284
6136
|
},
|
|
6285
6137
|
{
|
|
@@ -8806,7 +8658,7 @@ export type Liquid = {
|
|
|
8806
8658
|
{
|
|
8807
8659
|
"kind": "account",
|
|
8808
8660
|
"path": "bonding_curve.creator",
|
|
8809
|
-
"account": "
|
|
8661
|
+
"account": "bondingCurve"
|
|
8810
8662
|
}
|
|
8811
8663
|
],
|
|
8812
8664
|
"program": {
|
|
@@ -9278,13 +9130,6 @@ export type Liquid = {
|
|
|
9278
9130
|
"Liquid events program for centralized event emission."
|
|
9279
9131
|
],
|
|
9280
9132
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
9281
|
-
},
|
|
9282
|
-
{
|
|
9283
|
-
"name": "instructions",
|
|
9284
|
-
"docs": [
|
|
9285
|
-
"Instructions sysvar for CPI caller detection."
|
|
9286
|
-
],
|
|
9287
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
9288
9133
|
}
|
|
9289
9134
|
],
|
|
9290
9135
|
"args": [
|
|
@@ -9823,7 +9668,7 @@ export type Liquid = {
|
|
|
9823
9668
|
{
|
|
9824
9669
|
"kind": "account",
|
|
9825
9670
|
"path": "bonding_curve.creator",
|
|
9826
|
-
"account": "
|
|
9671
|
+
"account": "bondingCurve"
|
|
9827
9672
|
}
|
|
9828
9673
|
],
|
|
9829
9674
|
"program": {
|
|
@@ -10750,7 +10595,7 @@ export type Liquid = {
|
|
|
10750
10595
|
{
|
|
10751
10596
|
"kind": "account",
|
|
10752
10597
|
"path": "bonding_curve.creator",
|
|
10753
|
-
"account": "
|
|
10598
|
+
"account": "bondingCurve"
|
|
10754
10599
|
}
|
|
10755
10600
|
],
|
|
10756
10601
|
"program": {
|
|
@@ -11222,13 +11067,6 @@ export type Liquid = {
|
|
|
11222
11067
|
"Liquid events program for centralized event emission."
|
|
11223
11068
|
],
|
|
11224
11069
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
11225
|
-
},
|
|
11226
|
-
{
|
|
11227
|
-
"name": "instructions",
|
|
11228
|
-
"docs": [
|
|
11229
|
-
"Instructions sysvar for CPI caller detection."
|
|
11230
|
-
],
|
|
11231
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
11232
11070
|
}
|
|
11233
11071
|
],
|
|
11234
11072
|
"args": [
|
|
@@ -11767,7 +11605,7 @@ export type Liquid = {
|
|
|
11767
11605
|
{
|
|
11768
11606
|
"kind": "account",
|
|
11769
11607
|
"path": "bonding_curve.creator",
|
|
11770
|
-
"account": "
|
|
11608
|
+
"account": "bondingCurve"
|
|
11771
11609
|
}
|
|
11772
11610
|
],
|
|
11773
11611
|
"program": {
|
|
@@ -12518,8 +12356,8 @@ export type Liquid = {
|
|
|
12518
12356
|
"",
|
|
12519
12357
|
"# Arguments",
|
|
12520
12358
|
"* `initial_virtual_token_reserves` - Optional new value for initial virtual token reserves",
|
|
12521
|
-
"* `
|
|
12522
|
-
"* `
|
|
12359
|
+
"* `initial_virtual_usd_reserves` - Optional new value for initial virtual reserve in USD (6 decimals)",
|
|
12360
|
+
"* `initial_virtual_sol_reserves` - Optional new value for initial virtual SOL reserves in lamports",
|
|
12523
12361
|
"* `initial_real_token_reserves` - Optional new value for initial real token reserves",
|
|
12524
12362
|
"* `token_total_supply` - Optional new value for token total supply",
|
|
12525
12363
|
"* `creator_fee_basis_points` - Optional new value for creator fee basis points",
|
|
@@ -12527,7 +12365,7 @@ export type Liquid = {
|
|
|
12527
12365
|
"* `trader_referral_reward_basis_points` - Optional new value for trader referral reward",
|
|
12528
12366
|
"* `protocol_fee_basis_points` - Optional new value for protocol fee basis points",
|
|
12529
12367
|
"* `quote_mints` - Optional new list of valid quote mints",
|
|
12530
|
-
"* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account
|
|
12368
|
+
"* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account"
|
|
12531
12369
|
],
|
|
12532
12370
|
"discriminator": [
|
|
12533
12371
|
219,
|
|
@@ -12586,13 +12424,13 @@ export type Liquid = {
|
|
|
12586
12424
|
}
|
|
12587
12425
|
},
|
|
12588
12426
|
{
|
|
12589
|
-
"name": "
|
|
12427
|
+
"name": "initialVirtualUsdReserves",
|
|
12590
12428
|
"type": {
|
|
12591
12429
|
"option": "u64"
|
|
12592
12430
|
}
|
|
12593
12431
|
},
|
|
12594
12432
|
{
|
|
12595
|
-
"name": "
|
|
12433
|
+
"name": "initialVirtualSolReserves",
|
|
12596
12434
|
"type": {
|
|
12597
12435
|
"option": "u64"
|
|
12598
12436
|
}
|
|
@@ -12862,6 +12700,19 @@ export type Liquid = {
|
|
|
12862
12700
|
}
|
|
12863
12701
|
],
|
|
12864
12702
|
"accounts": [
|
|
12703
|
+
{
|
|
12704
|
+
"name": "bondingCurve",
|
|
12705
|
+
"discriminator": [
|
|
12706
|
+
23,
|
|
12707
|
+
183,
|
|
12708
|
+
248,
|
|
12709
|
+
55,
|
|
12710
|
+
96,
|
|
12711
|
+
216,
|
|
12712
|
+
172,
|
|
12713
|
+
96
|
|
12714
|
+
]
|
|
12715
|
+
},
|
|
12865
12716
|
{
|
|
12866
12717
|
"name": "cashbackConfiguration",
|
|
12867
12718
|
"discriminator": [
|
|
@@ -12901,32 +12752,6 @@ export type Liquid = {
|
|
|
12901
12752
|
112
|
|
12902
12753
|
]
|
|
12903
12754
|
},
|
|
12904
|
-
{
|
|
12905
|
-
"name": "nativeBondingCurve",
|
|
12906
|
-
"discriminator": [
|
|
12907
|
-
215,
|
|
12908
|
-
194,
|
|
12909
|
-
169,
|
|
12910
|
-
198,
|
|
12911
|
-
39,
|
|
12912
|
-
66,
|
|
12913
|
-
40,
|
|
12914
|
-
196
|
|
12915
|
-
]
|
|
12916
|
-
},
|
|
12917
|
-
{
|
|
12918
|
-
"name": "stableBondingCurve",
|
|
12919
|
-
"discriminator": [
|
|
12920
|
-
169,
|
|
12921
|
-
254,
|
|
12922
|
-
131,
|
|
12923
|
-
199,
|
|
12924
|
-
187,
|
|
12925
|
-
113,
|
|
12926
|
-
16,
|
|
12927
|
-
81
|
|
12928
|
-
]
|
|
12929
|
-
},
|
|
12930
12755
|
{
|
|
12931
12756
|
"name": "tokenVolumeAccumulator",
|
|
12932
12757
|
"discriminator": [
|
|
@@ -13205,6 +13030,98 @@ export type Liquid = {
|
|
|
13205
13030
|
}
|
|
13206
13031
|
],
|
|
13207
13032
|
"types": [
|
|
13033
|
+
{
|
|
13034
|
+
"name": "bondingCurve",
|
|
13035
|
+
"docs": [
|
|
13036
|
+
"Unified bonding curve state for both native SOL and stable (SPL token) curves.",
|
|
13037
|
+
"",
|
|
13038
|
+
"Virtual quote reserves are computed dynamically as `initial_virtual_quote_reserves + real_quote_reserves`,",
|
|
13039
|
+
"avoiding redundant storage. For native curves `quote_mint` is `None` (SOL is the quote asset);",
|
|
13040
|
+
"for stable curves it holds the SPL quote mint (e.g., USDC)."
|
|
13041
|
+
],
|
|
13042
|
+
"type": {
|
|
13043
|
+
"kind": "struct",
|
|
13044
|
+
"fields": [
|
|
13045
|
+
{
|
|
13046
|
+
"name": "creator",
|
|
13047
|
+
"docs": [
|
|
13048
|
+
"The creator of the bonding curve."
|
|
13049
|
+
],
|
|
13050
|
+
"type": "pubkey"
|
|
13051
|
+
},
|
|
13052
|
+
{
|
|
13053
|
+
"name": "tokenMint",
|
|
13054
|
+
"docs": [
|
|
13055
|
+
"Base token mint address (the launched token)."
|
|
13056
|
+
],
|
|
13057
|
+
"type": "pubkey"
|
|
13058
|
+
},
|
|
13059
|
+
{
|
|
13060
|
+
"name": "quoteMint",
|
|
13061
|
+
"docs": [
|
|
13062
|
+
"Quote token mint address. `None` for native SOL curves."
|
|
13063
|
+
],
|
|
13064
|
+
"type": {
|
|
13065
|
+
"option": "pubkey"
|
|
13066
|
+
}
|
|
13067
|
+
},
|
|
13068
|
+
{
|
|
13069
|
+
"name": "realTokenReserves",
|
|
13070
|
+
"docs": [
|
|
13071
|
+
"Real token reserves (actual tokens held in the curve)."
|
|
13072
|
+
],
|
|
13073
|
+
"type": "u64"
|
|
13074
|
+
},
|
|
13075
|
+
{
|
|
13076
|
+
"name": "virtualTokenReserves",
|
|
13077
|
+
"docs": [
|
|
13078
|
+
"Virtual token reserves (for the constant-product curve formula)."
|
|
13079
|
+
],
|
|
13080
|
+
"type": "u64"
|
|
13081
|
+
},
|
|
13082
|
+
{
|
|
13083
|
+
"name": "realQuoteReserves",
|
|
13084
|
+
"docs": [
|
|
13085
|
+
"Real quote reserves (SOL lamports for native, quote token amount for stable)."
|
|
13086
|
+
],
|
|
13087
|
+
"type": "u64"
|
|
13088
|
+
},
|
|
13089
|
+
{
|
|
13090
|
+
"name": "initialVirtualQuoteReserves",
|
|
13091
|
+
"docs": [
|
|
13092
|
+
"Initial virtual quote reserves, set once at creation.",
|
|
13093
|
+
"Virtual quote = `initial_virtual_quote_reserves + real_quote_reserves`."
|
|
13094
|
+
],
|
|
13095
|
+
"type": "u64"
|
|
13096
|
+
},
|
|
13097
|
+
{
|
|
13098
|
+
"name": "tokenTotalSupply",
|
|
13099
|
+
"docs": [
|
|
13100
|
+
"Total minted token supply."
|
|
13101
|
+
],
|
|
13102
|
+
"type": "u64"
|
|
13103
|
+
},
|
|
13104
|
+
{
|
|
13105
|
+
"name": "status",
|
|
13106
|
+
"docs": [
|
|
13107
|
+
"Lifecycle state of the bonding curve (Active → Complete → Migrated)."
|
|
13108
|
+
],
|
|
13109
|
+
"type": {
|
|
13110
|
+
"defined": {
|
|
13111
|
+
"name": "curveStatus"
|
|
13112
|
+
}
|
|
13113
|
+
}
|
|
13114
|
+
},
|
|
13115
|
+
{
|
|
13116
|
+
"name": "bump",
|
|
13117
|
+
"docs": [
|
|
13118
|
+
"Bump to identify PDA."
|
|
13119
|
+
],
|
|
13120
|
+
"type": "u8"
|
|
13121
|
+
}
|
|
13122
|
+
]
|
|
13123
|
+
}
|
|
13124
|
+
},
|
|
13208
13125
|
{
|
|
13209
13126
|
"name": "cashbackConfiguration",
|
|
13210
13127
|
"docs": [
|
|
@@ -13369,13 +13286,7 @@ export type Liquid = {
|
|
|
13369
13286
|
"name": "active"
|
|
13370
13287
|
},
|
|
13371
13288
|
{
|
|
13372
|
-
"name": "complete"
|
|
13373
|
-
"fields": [
|
|
13374
|
-
{
|
|
13375
|
-
"name": "solPriceSnapshot",
|
|
13376
|
-
"type": "u64"
|
|
13377
|
-
}
|
|
13378
|
-
]
|
|
13289
|
+
"name": "complete"
|
|
13379
13290
|
},
|
|
13380
13291
|
{
|
|
13381
13292
|
"name": "migrated"
|
|
@@ -13463,20 +13374,16 @@ export type Liquid = {
|
|
|
13463
13374
|
"type": "pubkey"
|
|
13464
13375
|
},
|
|
13465
13376
|
{
|
|
13466
|
-
"name": "
|
|
13377
|
+
"name": "initialVirtualUsdReserves",
|
|
13467
13378
|
"docs": [
|
|
13468
|
-
"Initial virtual reserve value in USD (6 decimals
|
|
13469
|
-
"For native curves, this is converted to SOL via oracle to get the initial virtual SOL reserves.",
|
|
13470
|
-
"For stable curves, this is used directly as the initial virtual quote reserves.",
|
|
13471
|
-
"Note: The actual initial market cap is `initial_virtual_reserve_usd * total_supply / virtual_tokens`."
|
|
13379
|
+
"Initial virtual reserve value in USD (6 decimals)."
|
|
13472
13380
|
],
|
|
13473
13381
|
"type": "u64"
|
|
13474
13382
|
},
|
|
13475
13383
|
{
|
|
13476
|
-
"name": "
|
|
13384
|
+
"name": "initialVirtualSolReserves",
|
|
13477
13385
|
"docs": [
|
|
13478
|
-
"
|
|
13479
|
-
"When the curve's market cap reaches this value, it becomes complete and ready for migration."
|
|
13386
|
+
"Initial virtual SOL reserves for native bonding curves (in lamports)."
|
|
13480
13387
|
],
|
|
13481
13388
|
"type": "u64"
|
|
13482
13389
|
},
|
|
@@ -13541,6 +13448,13 @@ export type Liquid = {
|
|
|
13541
13448
|
]
|
|
13542
13449
|
}
|
|
13543
13450
|
},
|
|
13451
|
+
{
|
|
13452
|
+
"name": "solUsdPriceFeed",
|
|
13453
|
+
"docs": [
|
|
13454
|
+
"Pyth SOL/USD price feed account."
|
|
13455
|
+
],
|
|
13456
|
+
"type": "pubkey"
|
|
13457
|
+
},
|
|
13544
13458
|
{
|
|
13545
13459
|
"name": "quoteMints",
|
|
13546
13460
|
"docs": [
|
|
@@ -13550,13 +13464,6 @@ export type Liquid = {
|
|
|
13550
13464
|
"vec": "pubkey"
|
|
13551
13465
|
}
|
|
13552
13466
|
},
|
|
13553
|
-
{
|
|
13554
|
-
"name": "solUsdPriceFeed",
|
|
13555
|
-
"docs": [
|
|
13556
|
-
"Pyth SOL/USD price feed account."
|
|
13557
|
-
],
|
|
13558
|
-
"type": "pubkey"
|
|
13559
|
-
},
|
|
13560
13467
|
{
|
|
13561
13468
|
"name": "pendingAdmin",
|
|
13562
13469
|
"docs": [
|
|
@@ -13567,18 +13474,18 @@ export type Liquid = {
|
|
|
13567
13474
|
}
|
|
13568
13475
|
},
|
|
13569
13476
|
{
|
|
13570
|
-
"name": "
|
|
13477
|
+
"name": "paused",
|
|
13571
13478
|
"docs": [
|
|
13572
|
-
"
|
|
13479
|
+
"Whether the protocol is paused (emergency stop)."
|
|
13573
13480
|
],
|
|
13574
|
-
"type": "
|
|
13481
|
+
"type": "bool"
|
|
13575
13482
|
},
|
|
13576
13483
|
{
|
|
13577
|
-
"name": "
|
|
13484
|
+
"name": "bump",
|
|
13578
13485
|
"docs": [
|
|
13579
|
-
"
|
|
13486
|
+
"Bump to identify PDA."
|
|
13580
13487
|
],
|
|
13581
|
-
"type": "
|
|
13488
|
+
"type": "u8"
|
|
13582
13489
|
}
|
|
13583
13490
|
]
|
|
13584
13491
|
}
|
|
@@ -13610,81 +13517,6 @@ export type Liquid = {
|
|
|
13610
13517
|
]
|
|
13611
13518
|
}
|
|
13612
13519
|
},
|
|
13613
|
-
{
|
|
13614
|
-
"name": "nativeBondingCurve",
|
|
13615
|
-
"type": {
|
|
13616
|
-
"kind": "struct",
|
|
13617
|
-
"fields": [
|
|
13618
|
-
{
|
|
13619
|
-
"name": "creator",
|
|
13620
|
-
"docs": [
|
|
13621
|
-
"The creator of the bonding curve."
|
|
13622
|
-
],
|
|
13623
|
-
"type": "pubkey"
|
|
13624
|
-
},
|
|
13625
|
-
{
|
|
13626
|
-
"name": "tokenMint",
|
|
13627
|
-
"docs": [
|
|
13628
|
-
"Token mint address."
|
|
13629
|
-
],
|
|
13630
|
-
"type": "pubkey"
|
|
13631
|
-
},
|
|
13632
|
-
{
|
|
13633
|
-
"name": "realTokenReserves",
|
|
13634
|
-
"docs": [
|
|
13635
|
-
"Real token supply."
|
|
13636
|
-
],
|
|
13637
|
-
"type": "u64"
|
|
13638
|
-
},
|
|
13639
|
-
{
|
|
13640
|
-
"name": "virtualTokenReserves",
|
|
13641
|
-
"docs": [
|
|
13642
|
-
"Virtual token supply (fixed at creation)."
|
|
13643
|
-
],
|
|
13644
|
-
"type": "u64"
|
|
13645
|
-
},
|
|
13646
|
-
{
|
|
13647
|
-
"name": "realSolReserves",
|
|
13648
|
-
"docs": [
|
|
13649
|
-
"Real SOL supply."
|
|
13650
|
-
],
|
|
13651
|
-
"type": "u64"
|
|
13652
|
-
},
|
|
13653
|
-
{
|
|
13654
|
-
"name": "tokenTotalSupply",
|
|
13655
|
-
"docs": [
|
|
13656
|
-
"Total minted token supply."
|
|
13657
|
-
],
|
|
13658
|
-
"type": "u64"
|
|
13659
|
-
},
|
|
13660
|
-
{
|
|
13661
|
-
"name": "initialVirtualReserveUsd",
|
|
13662
|
-
"docs": [
|
|
13663
|
-
"Initial virtual reserve value in USD (6 decimals), snapshotted at creation."
|
|
13664
|
-
],
|
|
13665
|
-
"type": "u64"
|
|
13666
|
-
},
|
|
13667
|
-
{
|
|
13668
|
-
"name": "status",
|
|
13669
|
-
"docs": [
|
|
13670
|
-
"Lifecycle state of the bonding curve (Active → Complete → Migrated)."
|
|
13671
|
-
],
|
|
13672
|
-
"type": {
|
|
13673
|
-
"defined": {
|
|
13674
|
-
"name": "curveStatus"
|
|
13675
|
-
}
|
|
13676
|
-
}
|
|
13677
|
-
},
|
|
13678
|
-
{
|
|
13679
|
-
"name": "bump",
|
|
13680
|
-
"docs": [
|
|
13681
|
-
"Bump to identify PDA."
|
|
13682
|
-
],
|
|
13683
|
-
"type": "u8"
|
|
13684
|
-
}
|
|
13685
|
-
]
|
|
13686
|
-
}
|
|
13687
|
-
},
|
|
13688
13520
|
{
|
|
13689
13521
|
"name": "referrerInfo",
|
|
13690
13522
|
"docs": [
|
|
@@ -13719,95 +13551,6 @@ export type Liquid = {
|
|
|
13719
13551
|
]
|
|
13720
13552
|
}
|
|
13721
13553
|
},
|
|
13722
|
-
{
|
|
13723
|
-
"name": "stableBondingCurve",
|
|
13724
|
-
"docs": [
|
|
13725
|
-
"Token-based bonding curve state for trading against a quote token (e.g., USDC).",
|
|
13726
|
-
"",
|
|
13727
|
-
"Unlike NativeBondingCurve where virtual reserves are calculated dynamically from",
|
|
13728
|
-
"an oracle, StableBondingCurve has fixed virtual reserves since the quote token",
|
|
13729
|
-
"is already USD-denominated (for stablecoins) or has a known fixed value."
|
|
13730
|
-
],
|
|
13731
|
-
"type": {
|
|
13732
|
-
"kind": "struct",
|
|
13733
|
-
"fields": [
|
|
13734
|
-
{
|
|
13735
|
-
"name": "creator",
|
|
13736
|
-
"docs": [
|
|
13737
|
-
"The creator of the bonding curve."
|
|
13738
|
-
],
|
|
13739
|
-
"type": "pubkey"
|
|
13740
|
-
},
|
|
13741
|
-
{
|
|
13742
|
-
"name": "tokenMint",
|
|
13743
|
-
"docs": [
|
|
13744
|
-
"Base token mint address (the launched token)."
|
|
13745
|
-
],
|
|
13746
|
-
"type": "pubkey"
|
|
13747
|
-
},
|
|
13748
|
-
{
|
|
13749
|
-
"name": "quoteMint",
|
|
13750
|
-
"docs": [
|
|
13751
|
-
"Quote token mint address (e.g., USDC)."
|
|
13752
|
-
],
|
|
13753
|
-
"type": "pubkey"
|
|
13754
|
-
},
|
|
13755
|
-
{
|
|
13756
|
-
"name": "realTokenReserves",
|
|
13757
|
-
"docs": [
|
|
13758
|
-
"Real token reserves (actual tokens in the curve)."
|
|
13759
|
-
],
|
|
13760
|
-
"type": "u64"
|
|
13761
|
-
},
|
|
13762
|
-
{
|
|
13763
|
-
"name": "virtualTokenReserves",
|
|
13764
|
-
"docs": [
|
|
13765
|
-
"Virtual token reserves (for curve formula)."
|
|
13766
|
-
],
|
|
13767
|
-
"type": "u64"
|
|
13768
|
-
},
|
|
13769
|
-
{
|
|
13770
|
-
"name": "realQuoteReserves",
|
|
13771
|
-
"docs": [
|
|
13772
|
-
"Real quote reserves (actual quote tokens in the curve)."
|
|
13773
|
-
],
|
|
13774
|
-
"type": "u64"
|
|
13775
|
-
},
|
|
13776
|
-
{
|
|
13777
|
-
"name": "virtualQuoteReserves",
|
|
13778
|
-
"docs": [
|
|
13779
|
-
"Virtual quote reserves (for curve formula, fixed for stablecoins)."
|
|
13780
|
-
],
|
|
13781
|
-
"type": "u64"
|
|
13782
|
-
},
|
|
13783
|
-
{
|
|
13784
|
-
"name": "tokenTotalSupply",
|
|
13785
|
-
"docs": [
|
|
13786
|
-
"Total minted token supply."
|
|
13787
|
-
],
|
|
13788
|
-
"type": "u64"
|
|
13789
|
-
},
|
|
13790
|
-
{
|
|
13791
|
-
"name": "status",
|
|
13792
|
-
"docs": [
|
|
13793
|
-
"Lifecycle state of the bonding curve (Active → Complete → Migrated)."
|
|
13794
|
-
],
|
|
13795
|
-
"type": {
|
|
13796
|
-
"defined": {
|
|
13797
|
-
"name": "curveStatus"
|
|
13798
|
-
}
|
|
13799
|
-
}
|
|
13800
|
-
},
|
|
13801
|
-
{
|
|
13802
|
-
"name": "bump",
|
|
13803
|
-
"docs": [
|
|
13804
|
-
"Bump to identify PDA."
|
|
13805
|
-
],
|
|
13806
|
-
"type": "u8"
|
|
13807
|
-
}
|
|
13808
|
-
]
|
|
13809
|
-
}
|
|
13810
|
-
},
|
|
13811
13554
|
{
|
|
13812
13555
|
"name": "tokenVolumeAccumulator",
|
|
13813
13556
|
"docs": [
|