@liquid-af/sdk 0.11.12 → 1.0.1
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 +5 -9
- package/dist/client.js.map +1 -1
- package/dist/events/types.d.ts +4 -7
- package/dist/events/types.d.ts.map +1 -1
- package/dist/helpers/preview.d.ts +7 -19
- package/dist/helpers/preview.d.ts.map +1 -1
- package/dist/helpers/preview.js +13 -18
- 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/math/index.d.ts +1 -0
- package/dist/math/index.d.ts.map +1 -1
- package/dist/math/index.js +1 -0
- package/dist/math/index.js.map +1 -1
- package/dist/math/market-cap.d.ts +42 -0
- package/dist/math/market-cap.d.ts.map +1 -0
- package/dist/math/market-cap.js +55 -0
- package/dist/math/market-cap.js.map +1 -0
- package/dist/oracle.d.ts +0 -40
- package/dist/oracle.d.ts.map +1 -1
- package/dist/oracle.js +0 -55
- 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 +13 -23
- package/src/events/types.ts +4 -7
- package/src/helpers/preview.ts +20 -37
- 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/math/index.ts +6 -0
- package/src/math/market-cap.ts +70 -0
- package/src/oracle.ts +0 -70
- package/src/types.ts +9 -8
package/dist/idl/liquid.json
CHANGED
|
@@ -63,134 +63,6 @@
|
|
|
63
63
|
],
|
|
64
64
|
"args": []
|
|
65
65
|
},
|
|
66
|
-
{
|
|
67
|
-
"name": "bump_native",
|
|
68
|
-
"docs": [
|
|
69
|
-
"Re-evaluates a native bonding curve's market cap against the current oracle price.",
|
|
70
|
-
"Marks the curve as complete if the market cap exceeds the migration threshold."
|
|
71
|
-
],
|
|
72
|
-
"discriminator": [
|
|
73
|
-
28,
|
|
74
|
-
90,
|
|
75
|
-
176,
|
|
76
|
-
54,
|
|
77
|
-
158,
|
|
78
|
-
42,
|
|
79
|
-
79,
|
|
80
|
-
79
|
|
81
|
-
],
|
|
82
|
-
"accounts": [
|
|
83
|
-
{
|
|
84
|
-
"name": "bonding_curve",
|
|
85
|
-
"docs": [
|
|
86
|
-
"Bonding curve state."
|
|
87
|
-
],
|
|
88
|
-
"writable": true,
|
|
89
|
-
"pda": {
|
|
90
|
-
"seeds": [
|
|
91
|
-
{
|
|
92
|
-
"kind": "const",
|
|
93
|
-
"value": [
|
|
94
|
-
98,
|
|
95
|
-
111,
|
|
96
|
-
110,
|
|
97
|
-
100,
|
|
98
|
-
105,
|
|
99
|
-
110,
|
|
100
|
-
103,
|
|
101
|
-
95,
|
|
102
|
-
99,
|
|
103
|
-
117,
|
|
104
|
-
114,
|
|
105
|
-
118,
|
|
106
|
-
101
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"kind": "account",
|
|
111
|
-
"path": "mint"
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "global_config",
|
|
118
|
-
"docs": [
|
|
119
|
-
"Global configuration for the protocol."
|
|
120
|
-
],
|
|
121
|
-
"pda": {
|
|
122
|
-
"seeds": [
|
|
123
|
-
{
|
|
124
|
-
"kind": "const",
|
|
125
|
-
"value": [
|
|
126
|
-
103,
|
|
127
|
-
108,
|
|
128
|
-
111,
|
|
129
|
-
98,
|
|
130
|
-
97,
|
|
131
|
-
108,
|
|
132
|
-
95,
|
|
133
|
-
99,
|
|
134
|
-
111,
|
|
135
|
-
110,
|
|
136
|
-
102,
|
|
137
|
-
105,
|
|
138
|
-
103
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"name": "mint",
|
|
146
|
-
"docs": [
|
|
147
|
-
"The mint of the token."
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "pyth_price_feed",
|
|
152
|
-
"docs": [
|
|
153
|
-
"Pyth SOL/USD price feed."
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"name": "cpi_authority",
|
|
158
|
-
"docs": [
|
|
159
|
-
"CPI authority PDA — proves this program's identity in cross-program calls."
|
|
160
|
-
],
|
|
161
|
-
"pda": {
|
|
162
|
-
"seeds": [
|
|
163
|
-
{
|
|
164
|
-
"kind": "const",
|
|
165
|
-
"value": [
|
|
166
|
-
99,
|
|
167
|
-
112,
|
|
168
|
-
105,
|
|
169
|
-
95,
|
|
170
|
-
97,
|
|
171
|
-
117,
|
|
172
|
-
116,
|
|
173
|
-
104,
|
|
174
|
-
111,
|
|
175
|
-
114,
|
|
176
|
-
105,
|
|
177
|
-
116,
|
|
178
|
-
121
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"name": "liquid_events_program",
|
|
186
|
-
"docs": [
|
|
187
|
-
"Liquid events program for centralized event emission."
|
|
188
|
-
],
|
|
189
|
-
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
"args": []
|
|
193
|
-
},
|
|
194
66
|
{
|
|
195
67
|
"name": "buy_exact_in_native",
|
|
196
68
|
"docs": [
|
|
@@ -625,7 +497,7 @@
|
|
|
625
497
|
{
|
|
626
498
|
"kind": "account",
|
|
627
499
|
"path": "bonding_curve.creator",
|
|
628
|
-
"account": "
|
|
500
|
+
"account": "BondingCurve"
|
|
629
501
|
}
|
|
630
502
|
],
|
|
631
503
|
"program": {
|
|
@@ -1097,13 +969,6 @@
|
|
|
1097
969
|
"Liquid events program for centralized event emission."
|
|
1098
970
|
],
|
|
1099
971
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
"name": "instructions",
|
|
1103
|
-
"docs": [
|
|
1104
|
-
"Instructions sysvar for CPI caller detection."
|
|
1105
|
-
],
|
|
1106
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
1107
972
|
}
|
|
1108
973
|
],
|
|
1109
974
|
"args": [
|
|
@@ -1642,7 +1507,7 @@
|
|
|
1642
1507
|
{
|
|
1643
1508
|
"kind": "account",
|
|
1644
1509
|
"path": "bonding_curve.creator",
|
|
1645
|
-
"account": "
|
|
1510
|
+
"account": "BondingCurve"
|
|
1646
1511
|
}
|
|
1647
1512
|
],
|
|
1648
1513
|
"program": {
|
|
@@ -2569,7 +2434,7 @@
|
|
|
2569
2434
|
{
|
|
2570
2435
|
"kind": "account",
|
|
2571
2436
|
"path": "bonding_curve.creator",
|
|
2572
|
-
"account": "
|
|
2437
|
+
"account": "BondingCurve"
|
|
2573
2438
|
}
|
|
2574
2439
|
],
|
|
2575
2440
|
"program": {
|
|
@@ -3041,13 +2906,6 @@
|
|
|
3041
2906
|
"Liquid events program for centralized event emission."
|
|
3042
2907
|
],
|
|
3043
2908
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
3044
|
-
},
|
|
3045
|
-
{
|
|
3046
|
-
"name": "instructions",
|
|
3047
|
-
"docs": [
|
|
3048
|
-
"Instructions sysvar for CPI caller detection."
|
|
3049
|
-
],
|
|
3050
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
3051
2909
|
}
|
|
3052
2910
|
],
|
|
3053
2911
|
"args": [
|
|
@@ -3586,7 +3444,7 @@
|
|
|
3586
3444
|
{
|
|
3587
3445
|
"kind": "account",
|
|
3588
3446
|
"path": "bonding_curve.creator",
|
|
3589
|
-
"account": "
|
|
3447
|
+
"account": "BondingCurve"
|
|
3590
3448
|
}
|
|
3591
3449
|
],
|
|
3592
3450
|
"program": {
|
|
@@ -4652,12 +4510,6 @@
|
|
|
4652
4510
|
]
|
|
4653
4511
|
}
|
|
4654
4512
|
},
|
|
4655
|
-
{
|
|
4656
|
-
"name": "pyth_price_feed",
|
|
4657
|
-
"docs": [
|
|
4658
|
-
"Pyth SOL/USD price feed."
|
|
4659
|
-
]
|
|
4660
|
-
},
|
|
4661
4513
|
{
|
|
4662
4514
|
"name": "wsol_mint",
|
|
4663
4515
|
"docs": [
|
|
@@ -6196,8 +6048,8 @@
|
|
|
6196
6048
|
"",
|
|
6197
6049
|
"# Arguments",
|
|
6198
6050
|
"* `initial_virtual_token_reserves` - Initial virtual token reserves for new curves.",
|
|
6199
|
-
"* `
|
|
6200
|
-
"* `
|
|
6051
|
+
"* `initial_virtual_usd_reserves` - Initial virtual reserve value in USD (6 decimals) for new curves.",
|
|
6052
|
+
"* `initial_virtual_sol_reserves` - Initial virtual SOL reserves in lamports for native curves.",
|
|
6201
6053
|
"* `initial_real_token_reserves` - Initial real token reserves for new curves.",
|
|
6202
6054
|
"* `token_total_supply` - Total supply for new tokens.",
|
|
6203
6055
|
"* `creator_fee_basis_points` - Fee basis points for token creators.",
|
|
@@ -6269,11 +6121,11 @@
|
|
|
6269
6121
|
"type": "u64"
|
|
6270
6122
|
},
|
|
6271
6123
|
{
|
|
6272
|
-
"name": "
|
|
6124
|
+
"name": "initial_virtual_usd_reserves",
|
|
6273
6125
|
"type": "u64"
|
|
6274
6126
|
},
|
|
6275
6127
|
{
|
|
6276
|
-
"name": "
|
|
6128
|
+
"name": "initial_virtual_sol_reserves",
|
|
6277
6129
|
"type": "u64"
|
|
6278
6130
|
},
|
|
6279
6131
|
{
|
|
@@ -8800,7 +8652,7 @@
|
|
|
8800
8652
|
{
|
|
8801
8653
|
"kind": "account",
|
|
8802
8654
|
"path": "bonding_curve.creator",
|
|
8803
|
-
"account": "
|
|
8655
|
+
"account": "BondingCurve"
|
|
8804
8656
|
}
|
|
8805
8657
|
],
|
|
8806
8658
|
"program": {
|
|
@@ -9272,13 +9124,6 @@
|
|
|
9272
9124
|
"Liquid events program for centralized event emission."
|
|
9273
9125
|
],
|
|
9274
9126
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
9275
|
-
},
|
|
9276
|
-
{
|
|
9277
|
-
"name": "instructions",
|
|
9278
|
-
"docs": [
|
|
9279
|
-
"Instructions sysvar for CPI caller detection."
|
|
9280
|
-
],
|
|
9281
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
9282
9127
|
}
|
|
9283
9128
|
],
|
|
9284
9129
|
"args": [
|
|
@@ -9817,7 +9662,7 @@
|
|
|
9817
9662
|
{
|
|
9818
9663
|
"kind": "account",
|
|
9819
9664
|
"path": "bonding_curve.creator",
|
|
9820
|
-
"account": "
|
|
9665
|
+
"account": "BondingCurve"
|
|
9821
9666
|
}
|
|
9822
9667
|
],
|
|
9823
9668
|
"program": {
|
|
@@ -10744,7 +10589,7 @@
|
|
|
10744
10589
|
{
|
|
10745
10590
|
"kind": "account",
|
|
10746
10591
|
"path": "bonding_curve.creator",
|
|
10747
|
-
"account": "
|
|
10592
|
+
"account": "BondingCurve"
|
|
10748
10593
|
}
|
|
10749
10594
|
],
|
|
10750
10595
|
"program": {
|
|
@@ -11216,13 +11061,6 @@
|
|
|
11216
11061
|
"Liquid events program for centralized event emission."
|
|
11217
11062
|
],
|
|
11218
11063
|
"address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
|
|
11219
|
-
},
|
|
11220
|
-
{
|
|
11221
|
-
"name": "instructions",
|
|
11222
|
-
"docs": [
|
|
11223
|
-
"Instructions sysvar for CPI caller detection."
|
|
11224
|
-
],
|
|
11225
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
11226
11064
|
}
|
|
11227
11065
|
],
|
|
11228
11066
|
"args": [
|
|
@@ -11761,7 +11599,7 @@
|
|
|
11761
11599
|
{
|
|
11762
11600
|
"kind": "account",
|
|
11763
11601
|
"path": "bonding_curve.creator",
|
|
11764
|
-
"account": "
|
|
11602
|
+
"account": "BondingCurve"
|
|
11765
11603
|
}
|
|
11766
11604
|
],
|
|
11767
11605
|
"program": {
|
|
@@ -12512,8 +12350,8 @@
|
|
|
12512
12350
|
"",
|
|
12513
12351
|
"# Arguments",
|
|
12514
12352
|
"* `initial_virtual_token_reserves` - Optional new value for initial virtual token reserves",
|
|
12515
|
-
"* `
|
|
12516
|
-
"* `
|
|
12353
|
+
"* `initial_virtual_usd_reserves` - Optional new value for initial virtual reserve in USD (6 decimals)",
|
|
12354
|
+
"* `initial_virtual_sol_reserves` - Optional new value for initial virtual SOL reserves in lamports",
|
|
12517
12355
|
"* `initial_real_token_reserves` - Optional new value for initial real token reserves",
|
|
12518
12356
|
"* `token_total_supply` - Optional new value for token total supply",
|
|
12519
12357
|
"* `creator_fee_basis_points` - Optional new value for creator fee basis points",
|
|
@@ -12521,7 +12359,7 @@
|
|
|
12521
12359
|
"* `trader_referral_reward_basis_points` - Optional new value for trader referral reward",
|
|
12522
12360
|
"* `protocol_fee_basis_points` - Optional new value for protocol fee basis points",
|
|
12523
12361
|
"* `quote_mints` - Optional new list of valid quote mints",
|
|
12524
|
-
"* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account
|
|
12362
|
+
"* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account"
|
|
12525
12363
|
],
|
|
12526
12364
|
"discriminator": [
|
|
12527
12365
|
219,
|
|
@@ -12580,13 +12418,13 @@
|
|
|
12580
12418
|
}
|
|
12581
12419
|
},
|
|
12582
12420
|
{
|
|
12583
|
-
"name": "
|
|
12421
|
+
"name": "initial_virtual_usd_reserves",
|
|
12584
12422
|
"type": {
|
|
12585
12423
|
"option": "u64"
|
|
12586
12424
|
}
|
|
12587
12425
|
},
|
|
12588
12426
|
{
|
|
12589
|
-
"name": "
|
|
12427
|
+
"name": "initial_virtual_sol_reserves",
|
|
12590
12428
|
"type": {
|
|
12591
12429
|
"option": "u64"
|
|
12592
12430
|
}
|
|
@@ -12856,6 +12694,19 @@
|
|
|
12856
12694
|
}
|
|
12857
12695
|
],
|
|
12858
12696
|
"accounts": [
|
|
12697
|
+
{
|
|
12698
|
+
"name": "BondingCurve",
|
|
12699
|
+
"discriminator": [
|
|
12700
|
+
23,
|
|
12701
|
+
183,
|
|
12702
|
+
248,
|
|
12703
|
+
55,
|
|
12704
|
+
96,
|
|
12705
|
+
216,
|
|
12706
|
+
172,
|
|
12707
|
+
96
|
|
12708
|
+
]
|
|
12709
|
+
},
|
|
12859
12710
|
{
|
|
12860
12711
|
"name": "CashbackConfiguration",
|
|
12861
12712
|
"discriminator": [
|
|
@@ -12895,32 +12746,6 @@
|
|
|
12895
12746
|
112
|
|
12896
12747
|
]
|
|
12897
12748
|
},
|
|
12898
|
-
{
|
|
12899
|
-
"name": "NativeBondingCurve",
|
|
12900
|
-
"discriminator": [
|
|
12901
|
-
215,
|
|
12902
|
-
194,
|
|
12903
|
-
169,
|
|
12904
|
-
198,
|
|
12905
|
-
39,
|
|
12906
|
-
66,
|
|
12907
|
-
40,
|
|
12908
|
-
196
|
|
12909
|
-
]
|
|
12910
|
-
},
|
|
12911
|
-
{
|
|
12912
|
-
"name": "StableBondingCurve",
|
|
12913
|
-
"discriminator": [
|
|
12914
|
-
169,
|
|
12915
|
-
254,
|
|
12916
|
-
131,
|
|
12917
|
-
199,
|
|
12918
|
-
187,
|
|
12919
|
-
113,
|
|
12920
|
-
16,
|
|
12921
|
-
81
|
|
12922
|
-
]
|
|
12923
|
-
},
|
|
12924
12749
|
{
|
|
12925
12750
|
"name": "TokenVolumeAccumulator",
|
|
12926
12751
|
"discriminator": [
|
|
@@ -13199,6 +13024,98 @@
|
|
|
13199
13024
|
}
|
|
13200
13025
|
],
|
|
13201
13026
|
"types": [
|
|
13027
|
+
{
|
|
13028
|
+
"name": "BondingCurve",
|
|
13029
|
+
"docs": [
|
|
13030
|
+
"Unified bonding curve state for both native SOL and stable (SPL token) curves.",
|
|
13031
|
+
"",
|
|
13032
|
+
"Virtual quote reserves are computed dynamically as `initial_virtual_quote_reserves + real_quote_reserves`,",
|
|
13033
|
+
"avoiding redundant storage. For native curves `quote_mint` is `None` (SOL is the quote asset);",
|
|
13034
|
+
"for stable curves it holds the SPL quote mint (e.g., USDC)."
|
|
13035
|
+
],
|
|
13036
|
+
"type": {
|
|
13037
|
+
"kind": "struct",
|
|
13038
|
+
"fields": [
|
|
13039
|
+
{
|
|
13040
|
+
"name": "creator",
|
|
13041
|
+
"docs": [
|
|
13042
|
+
"The creator of the bonding curve."
|
|
13043
|
+
],
|
|
13044
|
+
"type": "pubkey"
|
|
13045
|
+
},
|
|
13046
|
+
{
|
|
13047
|
+
"name": "token_mint",
|
|
13048
|
+
"docs": [
|
|
13049
|
+
"Base token mint address (the launched token)."
|
|
13050
|
+
],
|
|
13051
|
+
"type": "pubkey"
|
|
13052
|
+
},
|
|
13053
|
+
{
|
|
13054
|
+
"name": "quote_mint",
|
|
13055
|
+
"docs": [
|
|
13056
|
+
"Quote token mint address. `None` for native SOL curves."
|
|
13057
|
+
],
|
|
13058
|
+
"type": {
|
|
13059
|
+
"option": "pubkey"
|
|
13060
|
+
}
|
|
13061
|
+
},
|
|
13062
|
+
{
|
|
13063
|
+
"name": "real_token_reserves",
|
|
13064
|
+
"docs": [
|
|
13065
|
+
"Real token reserves (actual tokens held in the curve)."
|
|
13066
|
+
],
|
|
13067
|
+
"type": "u64"
|
|
13068
|
+
},
|
|
13069
|
+
{
|
|
13070
|
+
"name": "virtual_token_reserves",
|
|
13071
|
+
"docs": [
|
|
13072
|
+
"Virtual token reserves (for the constant-product curve formula)."
|
|
13073
|
+
],
|
|
13074
|
+
"type": "u64"
|
|
13075
|
+
},
|
|
13076
|
+
{
|
|
13077
|
+
"name": "real_quote_reserves",
|
|
13078
|
+
"docs": [
|
|
13079
|
+
"Real quote reserves (SOL lamports for native, quote token amount for stable)."
|
|
13080
|
+
],
|
|
13081
|
+
"type": "u64"
|
|
13082
|
+
},
|
|
13083
|
+
{
|
|
13084
|
+
"name": "initial_virtual_quote_reserves",
|
|
13085
|
+
"docs": [
|
|
13086
|
+
"Initial virtual quote reserves, set once at creation.",
|
|
13087
|
+
"Virtual quote = `initial_virtual_quote_reserves + real_quote_reserves`."
|
|
13088
|
+
],
|
|
13089
|
+
"type": "u64"
|
|
13090
|
+
},
|
|
13091
|
+
{
|
|
13092
|
+
"name": "token_total_supply",
|
|
13093
|
+
"docs": [
|
|
13094
|
+
"Total minted token supply."
|
|
13095
|
+
],
|
|
13096
|
+
"type": "u64"
|
|
13097
|
+
},
|
|
13098
|
+
{
|
|
13099
|
+
"name": "status",
|
|
13100
|
+
"docs": [
|
|
13101
|
+
"Lifecycle state of the bonding curve (Active → Complete → Migrated)."
|
|
13102
|
+
],
|
|
13103
|
+
"type": {
|
|
13104
|
+
"defined": {
|
|
13105
|
+
"name": "CurveStatus"
|
|
13106
|
+
}
|
|
13107
|
+
}
|
|
13108
|
+
},
|
|
13109
|
+
{
|
|
13110
|
+
"name": "bump",
|
|
13111
|
+
"docs": [
|
|
13112
|
+
"Bump to identify PDA."
|
|
13113
|
+
],
|
|
13114
|
+
"type": "u8"
|
|
13115
|
+
}
|
|
13116
|
+
]
|
|
13117
|
+
}
|
|
13118
|
+
},
|
|
13202
13119
|
{
|
|
13203
13120
|
"name": "CashbackConfiguration",
|
|
13204
13121
|
"docs": [
|
|
@@ -13363,13 +13280,7 @@
|
|
|
13363
13280
|
"name": "Active"
|
|
13364
13281
|
},
|
|
13365
13282
|
{
|
|
13366
|
-
"name": "Complete"
|
|
13367
|
-
"fields": [
|
|
13368
|
-
{
|
|
13369
|
-
"name": "sol_price_snapshot",
|
|
13370
|
-
"type": "u64"
|
|
13371
|
-
}
|
|
13372
|
-
]
|
|
13283
|
+
"name": "Complete"
|
|
13373
13284
|
},
|
|
13374
13285
|
{
|
|
13375
13286
|
"name": "Migrated"
|
|
@@ -13457,20 +13368,16 @@
|
|
|
13457
13368
|
"type": "pubkey"
|
|
13458
13369
|
},
|
|
13459
13370
|
{
|
|
13460
|
-
"name": "
|
|
13371
|
+
"name": "initial_virtual_usd_reserves",
|
|
13461
13372
|
"docs": [
|
|
13462
|
-
"Initial virtual reserve value in USD (6 decimals
|
|
13463
|
-
"For native curves, this is converted to SOL via oracle to get the initial virtual SOL reserves.",
|
|
13464
|
-
"For stable curves, this is used directly as the initial virtual quote reserves.",
|
|
13465
|
-
"Note: The actual initial market cap is `initial_virtual_reserve_usd * total_supply / virtual_tokens`."
|
|
13373
|
+
"Initial virtual reserve value in USD (6 decimals)."
|
|
13466
13374
|
],
|
|
13467
13375
|
"type": "u64"
|
|
13468
13376
|
},
|
|
13469
13377
|
{
|
|
13470
|
-
"name": "
|
|
13378
|
+
"name": "initial_virtual_sol_reserves",
|
|
13471
13379
|
"docs": [
|
|
13472
|
-
"
|
|
13473
|
-
"When the curve's market cap reaches this value, it becomes complete and ready for migration."
|
|
13380
|
+
"Initial virtual SOL reserves for native bonding curves (in lamports)."
|
|
13474
13381
|
],
|
|
13475
13382
|
"type": "u64"
|
|
13476
13383
|
},
|
|
@@ -13535,6 +13442,13 @@
|
|
|
13535
13442
|
]
|
|
13536
13443
|
}
|
|
13537
13444
|
},
|
|
13445
|
+
{
|
|
13446
|
+
"name": "sol_usd_price_feed",
|
|
13447
|
+
"docs": [
|
|
13448
|
+
"Pyth SOL/USD price feed account."
|
|
13449
|
+
],
|
|
13450
|
+
"type": "pubkey"
|
|
13451
|
+
},
|
|
13538
13452
|
{
|
|
13539
13453
|
"name": "quote_mints",
|
|
13540
13454
|
"docs": [
|
|
@@ -13544,13 +13458,6 @@
|
|
|
13544
13458
|
"vec": "pubkey"
|
|
13545
13459
|
}
|
|
13546
13460
|
},
|
|
13547
|
-
{
|
|
13548
|
-
"name": "sol_usd_price_feed",
|
|
13549
|
-
"docs": [
|
|
13550
|
-
"Pyth SOL/USD price feed account."
|
|
13551
|
-
],
|
|
13552
|
-
"type": "pubkey"
|
|
13553
|
-
},
|
|
13554
13461
|
{
|
|
13555
13462
|
"name": "pending_admin",
|
|
13556
13463
|
"docs": [
|
|
@@ -13561,18 +13468,18 @@
|
|
|
13561
13468
|
}
|
|
13562
13469
|
},
|
|
13563
13470
|
{
|
|
13564
|
-
"name": "
|
|
13471
|
+
"name": "paused",
|
|
13565
13472
|
"docs": [
|
|
13566
|
-
"
|
|
13473
|
+
"Whether the protocol is paused (emergency stop)."
|
|
13567
13474
|
],
|
|
13568
|
-
"type": "
|
|
13475
|
+
"type": "bool"
|
|
13569
13476
|
},
|
|
13570
13477
|
{
|
|
13571
|
-
"name": "
|
|
13478
|
+
"name": "bump",
|
|
13572
13479
|
"docs": [
|
|
13573
|
-
"
|
|
13480
|
+
"Bump to identify PDA."
|
|
13574
13481
|
],
|
|
13575
|
-
"type": "
|
|
13482
|
+
"type": "u8"
|
|
13576
13483
|
}
|
|
13577
13484
|
]
|
|
13578
13485
|
}
|
|
@@ -13604,81 +13511,6 @@
|
|
|
13604
13511
|
]
|
|
13605
13512
|
}
|
|
13606
13513
|
},
|
|
13607
|
-
{
|
|
13608
|
-
"name": "NativeBondingCurve",
|
|
13609
|
-
"type": {
|
|
13610
|
-
"kind": "struct",
|
|
13611
|
-
"fields": [
|
|
13612
|
-
{
|
|
13613
|
-
"name": "creator",
|
|
13614
|
-
"docs": [
|
|
13615
|
-
"The creator of the bonding curve."
|
|
13616
|
-
],
|
|
13617
|
-
"type": "pubkey"
|
|
13618
|
-
},
|
|
13619
|
-
{
|
|
13620
|
-
"name": "token_mint",
|
|
13621
|
-
"docs": [
|
|
13622
|
-
"Token mint address."
|
|
13623
|
-
],
|
|
13624
|
-
"type": "pubkey"
|
|
13625
|
-
},
|
|
13626
|
-
{
|
|
13627
|
-
"name": "real_token_reserves",
|
|
13628
|
-
"docs": [
|
|
13629
|
-
"Real token supply."
|
|
13630
|
-
],
|
|
13631
|
-
"type": "u64"
|
|
13632
|
-
},
|
|
13633
|
-
{
|
|
13634
|
-
"name": "virtual_token_reserves",
|
|
13635
|
-
"docs": [
|
|
13636
|
-
"Virtual token supply (fixed at creation)."
|
|
13637
|
-
],
|
|
13638
|
-
"type": "u64"
|
|
13639
|
-
},
|
|
13640
|
-
{
|
|
13641
|
-
"name": "real_sol_reserves",
|
|
13642
|
-
"docs": [
|
|
13643
|
-
"Real SOL supply."
|
|
13644
|
-
],
|
|
13645
|
-
"type": "u64"
|
|
13646
|
-
},
|
|
13647
|
-
{
|
|
13648
|
-
"name": "token_total_supply",
|
|
13649
|
-
"docs": [
|
|
13650
|
-
"Total minted token supply."
|
|
13651
|
-
],
|
|
13652
|
-
"type": "u64"
|
|
13653
|
-
},
|
|
13654
|
-
{
|
|
13655
|
-
"name": "initial_virtual_reserve_usd",
|
|
13656
|
-
"docs": [
|
|
13657
|
-
"Initial virtual reserve value in USD (6 decimals), snapshotted at creation."
|
|
13658
|
-
],
|
|
13659
|
-
"type": "u64"
|
|
13660
|
-
},
|
|
13661
|
-
{
|
|
13662
|
-
"name": "status",
|
|
13663
|
-
"docs": [
|
|
13664
|
-
"Lifecycle state of the bonding curve (Active → Complete → Migrated)."
|
|
13665
|
-
],
|
|
13666
|
-
"type": {
|
|
13667
|
-
"defined": {
|
|
13668
|
-
"name": "CurveStatus"
|
|
13669
|
-
}
|
|
13670
|
-
}
|
|
13671
|
-
},
|
|
13672
|
-
{
|
|
13673
|
-
"name": "bump",
|
|
13674
|
-
"docs": [
|
|
13675
|
-
"Bump to identify PDA."
|
|
13676
|
-
],
|
|
13677
|
-
"type": "u8"
|
|
13678
|
-
}
|
|
13679
|
-
]
|
|
13680
|
-
}
|
|
13681
|
-
},
|
|
13682
13514
|
{
|
|
13683
13515
|
"name": "ReferrerInfo",
|
|
13684
13516
|
"docs": [
|
|
@@ -13713,95 +13545,6 @@
|
|
|
13713
13545
|
]
|
|
13714
13546
|
}
|
|
13715
13547
|
},
|
|
13716
|
-
{
|
|
13717
|
-
"name": "StableBondingCurve",
|
|
13718
|
-
"docs": [
|
|
13719
|
-
"Token-based bonding curve state for trading against a quote token (e.g., USDC).",
|
|
13720
|
-
"",
|
|
13721
|
-
"Unlike NativeBondingCurve where virtual reserves are calculated dynamically from",
|
|
13722
|
-
"an oracle, StableBondingCurve has fixed virtual reserves since the quote token",
|
|
13723
|
-
"is already USD-denominated (for stablecoins) or has a known fixed value."
|
|
13724
|
-
],
|
|
13725
|
-
"type": {
|
|
13726
|
-
"kind": "struct",
|
|
13727
|
-
"fields": [
|
|
13728
|
-
{
|
|
13729
|
-
"name": "creator",
|
|
13730
|
-
"docs": [
|
|
13731
|
-
"The creator of the bonding curve."
|
|
13732
|
-
],
|
|
13733
|
-
"type": "pubkey"
|
|
13734
|
-
},
|
|
13735
|
-
{
|
|
13736
|
-
"name": "token_mint",
|
|
13737
|
-
"docs": [
|
|
13738
|
-
"Base token mint address (the launched token)."
|
|
13739
|
-
],
|
|
13740
|
-
"type": "pubkey"
|
|
13741
|
-
},
|
|
13742
|
-
{
|
|
13743
|
-
"name": "quote_mint",
|
|
13744
|
-
"docs": [
|
|
13745
|
-
"Quote token mint address (e.g., USDC)."
|
|
13746
|
-
],
|
|
13747
|
-
"type": "pubkey"
|
|
13748
|
-
},
|
|
13749
|
-
{
|
|
13750
|
-
"name": "real_token_reserves",
|
|
13751
|
-
"docs": [
|
|
13752
|
-
"Real token reserves (actual tokens in the curve)."
|
|
13753
|
-
],
|
|
13754
|
-
"type": "u64"
|
|
13755
|
-
},
|
|
13756
|
-
{
|
|
13757
|
-
"name": "virtual_token_reserves",
|
|
13758
|
-
"docs": [
|
|
13759
|
-
"Virtual token reserves (for curve formula)."
|
|
13760
|
-
],
|
|
13761
|
-
"type": "u64"
|
|
13762
|
-
},
|
|
13763
|
-
{
|
|
13764
|
-
"name": "real_quote_reserves",
|
|
13765
|
-
"docs": [
|
|
13766
|
-
"Real quote reserves (actual quote tokens in the curve)."
|
|
13767
|
-
],
|
|
13768
|
-
"type": "u64"
|
|
13769
|
-
},
|
|
13770
|
-
{
|
|
13771
|
-
"name": "virtual_quote_reserves",
|
|
13772
|
-
"docs": [
|
|
13773
|
-
"Virtual quote reserves (for curve formula, fixed for stablecoins)."
|
|
13774
|
-
],
|
|
13775
|
-
"type": "u64"
|
|
13776
|
-
},
|
|
13777
|
-
{
|
|
13778
|
-
"name": "token_total_supply",
|
|
13779
|
-
"docs": [
|
|
13780
|
-
"Total minted token supply."
|
|
13781
|
-
],
|
|
13782
|
-
"type": "u64"
|
|
13783
|
-
},
|
|
13784
|
-
{
|
|
13785
|
-
"name": "status",
|
|
13786
|
-
"docs": [
|
|
13787
|
-
"Lifecycle state of the bonding curve (Active → Complete → Migrated)."
|
|
13788
|
-
],
|
|
13789
|
-
"type": {
|
|
13790
|
-
"defined": {
|
|
13791
|
-
"name": "CurveStatus"
|
|
13792
|
-
}
|
|
13793
|
-
}
|
|
13794
|
-
},
|
|
13795
|
-
{
|
|
13796
|
-
"name": "bump",
|
|
13797
|
-
"docs": [
|
|
13798
|
-
"Bump to identify PDA."
|
|
13799
|
-
],
|
|
13800
|
-
"type": "u8"
|
|
13801
|
-
}
|
|
13802
|
-
]
|
|
13803
|
-
}
|
|
13804
|
-
},
|
|
13805
13548
|
{
|
|
13806
13549
|
"name": "TokenVolumeAccumulator",
|
|
13807
13550
|
"docs": [
|