@paul.lumberwork/bonding-curve-sdk 1.7.2 → 1.8.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/index.d.mts +233 -22
- package/dist/index.d.ts +233 -22
- package/dist/index.js +12 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -82
- package/dist/index.mjs.map +1 -1
- package/idl/kick_fun_program.json +226 -0
- package/package.json +1 -1
|
@@ -1733,8 +1733,137 @@
|
|
|
1733
1733
|
"type": {
|
|
1734
1734
|
"option": "u128"
|
|
1735
1735
|
}
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
"name": "new_fee_withdraw_delay",
|
|
1739
|
+
"type": {
|
|
1740
|
+
"option": "i64"
|
|
1741
|
+
}
|
|
1736
1742
|
}
|
|
1737
1743
|
]
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "withdraw_accumulated_fees",
|
|
1747
|
+
"docs": [
|
|
1748
|
+
"Withdraw accumulated trading fees (0.5% curve fee) from an incomplete bonding curve.",
|
|
1749
|
+
"Time-locked: only callable after launchpad.fee_withdraw_delay seconds since curve creation.",
|
|
1750
|
+
"Default delay: 7 days. Admin can change delay via update_launchpad.",
|
|
1751
|
+
"Use this when a curve never reaches 100% but has accumulated fees."
|
|
1752
|
+
],
|
|
1753
|
+
"discriminator": [
|
|
1754
|
+
208,
|
|
1755
|
+
72,
|
|
1756
|
+
35,
|
|
1757
|
+
251,
|
|
1758
|
+
110,
|
|
1759
|
+
63,
|
|
1760
|
+
250,
|
|
1761
|
+
122
|
|
1762
|
+
],
|
|
1763
|
+
"accounts": [
|
|
1764
|
+
{
|
|
1765
|
+
"name": "admin",
|
|
1766
|
+
"docs": [
|
|
1767
|
+
"Admin signer — must be launchpad.authority"
|
|
1768
|
+
],
|
|
1769
|
+
"writable": true,
|
|
1770
|
+
"signer": true
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"name": "launchpad",
|
|
1774
|
+
"pda": {
|
|
1775
|
+
"seeds": [
|
|
1776
|
+
{
|
|
1777
|
+
"kind": "const",
|
|
1778
|
+
"value": [
|
|
1779
|
+
108,
|
|
1780
|
+
97,
|
|
1781
|
+
117,
|
|
1782
|
+
110,
|
|
1783
|
+
99,
|
|
1784
|
+
104,
|
|
1785
|
+
112,
|
|
1786
|
+
97,
|
|
1787
|
+
100
|
|
1788
|
+
]
|
|
1789
|
+
}
|
|
1790
|
+
]
|
|
1791
|
+
}
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"name": "token_launch"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"name": "bonding_curve",
|
|
1798
|
+
"writable": true,
|
|
1799
|
+
"pda": {
|
|
1800
|
+
"seeds": [
|
|
1801
|
+
{
|
|
1802
|
+
"kind": "const",
|
|
1803
|
+
"value": [
|
|
1804
|
+
98,
|
|
1805
|
+
111,
|
|
1806
|
+
110,
|
|
1807
|
+
100,
|
|
1808
|
+
105,
|
|
1809
|
+
110,
|
|
1810
|
+
103,
|
|
1811
|
+
95,
|
|
1812
|
+
99,
|
|
1813
|
+
117,
|
|
1814
|
+
114,
|
|
1815
|
+
118,
|
|
1816
|
+
101
|
|
1817
|
+
]
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
"kind": "account",
|
|
1821
|
+
"path": "token_launch"
|
|
1822
|
+
}
|
|
1823
|
+
]
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "vault",
|
|
1828
|
+
"docs": [
|
|
1829
|
+
"Vault holding SOL collected during trading"
|
|
1830
|
+
],
|
|
1831
|
+
"writable": true,
|
|
1832
|
+
"pda": {
|
|
1833
|
+
"seeds": [
|
|
1834
|
+
{
|
|
1835
|
+
"kind": "const",
|
|
1836
|
+
"value": [
|
|
1837
|
+
118,
|
|
1838
|
+
97,
|
|
1839
|
+
117,
|
|
1840
|
+
108,
|
|
1841
|
+
116
|
|
1842
|
+
]
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
"kind": "account",
|
|
1846
|
+
"path": "token_launch"
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1849
|
+
}
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
"name": "treasury",
|
|
1853
|
+
"docs": [
|
|
1854
|
+
"Treasury wallet receives the withdrawn fees"
|
|
1855
|
+
],
|
|
1856
|
+
"writable": true
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"name": "mint"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"name": "system_program",
|
|
1863
|
+
"address": "11111111111111111111111111111111"
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1866
|
+
"args": []
|
|
1738
1867
|
}
|
|
1739
1868
|
],
|
|
1740
1869
|
"accounts": [
|
|
@@ -1818,6 +1947,19 @@
|
|
|
1818
1947
|
42
|
|
1819
1948
|
]
|
|
1820
1949
|
},
|
|
1950
|
+
{
|
|
1951
|
+
"name": "FeesWithdrawn",
|
|
1952
|
+
"discriminator": [
|
|
1953
|
+
234,
|
|
1954
|
+
15,
|
|
1955
|
+
0,
|
|
1956
|
+
119,
|
|
1957
|
+
148,
|
|
1958
|
+
241,
|
|
1959
|
+
40,
|
|
1960
|
+
21
|
|
1961
|
+
]
|
|
1962
|
+
},
|
|
1821
1963
|
{
|
|
1822
1964
|
"name": "LaunchCreated",
|
|
1823
1965
|
"discriminator": [
|
|
@@ -1918,6 +2060,21 @@
|
|
|
1918
2060
|
"code": 6011,
|
|
1919
2061
|
"name": "CurveNotComplete",
|
|
1920
2062
|
"msg": "Bonding curve is not complete yet"
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"code": 6012,
|
|
2066
|
+
"name": "SupplyExceedsMax",
|
|
2067
|
+
"msg": "Total supply exceeds maximum safe calculation limit"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"code": 6013,
|
|
2071
|
+
"name": "FeeWithdrawTooEarly",
|
|
2072
|
+
"msg": "Fee withdrawal not allowed yet: time-lock period has not elapsed"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"code": 6014,
|
|
2076
|
+
"name": "NoFeesToWithdraw",
|
|
2077
|
+
"msg": "No accumulated fees to withdraw"
|
|
1921
2078
|
}
|
|
1922
2079
|
],
|
|
1923
2080
|
"types": [
|
|
@@ -2161,6 +2318,59 @@
|
|
|
2161
2318
|
]
|
|
2162
2319
|
}
|
|
2163
2320
|
},
|
|
2321
|
+
{
|
|
2322
|
+
"name": "FeesWithdrawn",
|
|
2323
|
+
"docs": [
|
|
2324
|
+
"Event emitted when admin withdraws accumulated fees from an incomplete/dead curve"
|
|
2325
|
+
],
|
|
2326
|
+
"type": {
|
|
2327
|
+
"kind": "struct",
|
|
2328
|
+
"fields": [
|
|
2329
|
+
{
|
|
2330
|
+
"name": "token_launch",
|
|
2331
|
+
"docs": [
|
|
2332
|
+
"The token launch public key"
|
|
2333
|
+
],
|
|
2334
|
+
"type": "pubkey"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"name": "mint",
|
|
2338
|
+
"docs": [
|
|
2339
|
+
"The mint address"
|
|
2340
|
+
],
|
|
2341
|
+
"type": "pubkey"
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
"name": "admin",
|
|
2345
|
+
"docs": [
|
|
2346
|
+
"Admin who triggered the withdrawal"
|
|
2347
|
+
],
|
|
2348
|
+
"type": "pubkey"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
"name": "treasury",
|
|
2352
|
+
"docs": [
|
|
2353
|
+
"Treasury wallet that received the fees"
|
|
2354
|
+
],
|
|
2355
|
+
"type": "pubkey"
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
"name": "fees_withdrawn",
|
|
2359
|
+
"docs": [
|
|
2360
|
+
"Amount of accumulated fees withdrawn (in lamports)"
|
|
2361
|
+
],
|
|
2362
|
+
"type": "u64"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"name": "timestamp",
|
|
2366
|
+
"docs": [
|
|
2367
|
+
"Timestamp"
|
|
2368
|
+
],
|
|
2369
|
+
"type": "i64"
|
|
2370
|
+
}
|
|
2371
|
+
]
|
|
2372
|
+
}
|
|
2373
|
+
},
|
|
2164
2374
|
{
|
|
2165
2375
|
"name": "LaunchCreated",
|
|
2166
2376
|
"docs": [
|
|
@@ -2320,6 +2530,14 @@
|
|
|
2320
2530
|
"Default k value for bonding curve"
|
|
2321
2531
|
],
|
|
2322
2532
|
"type": "u128"
|
|
2533
|
+
},
|
|
2534
|
+
{
|
|
2535
|
+
"name": "fee_withdraw_delay",
|
|
2536
|
+
"docs": [
|
|
2537
|
+
"Minimum seconds after curve creation before admin can withdraw accumulated fees",
|
|
2538
|
+
"Default: 604800 (7 days). Configurable via update_launchpad."
|
|
2539
|
+
],
|
|
2540
|
+
"type": "i64"
|
|
2323
2541
|
}
|
|
2324
2542
|
]
|
|
2325
2543
|
}
|
|
@@ -2435,6 +2653,14 @@
|
|
|
2435
2653
|
],
|
|
2436
2654
|
"type": "i64"
|
|
2437
2655
|
},
|
|
2656
|
+
{
|
|
2657
|
+
"name": "fee_withdraw_delay",
|
|
2658
|
+
"docs": [
|
|
2659
|
+
"Seconds after creation before admin can withdraw accumulated fees",
|
|
2660
|
+
"Snapshotted from launchpad.fee_withdraw_delay at creation time — immutable after deploy"
|
|
2661
|
+
],
|
|
2662
|
+
"type": "i64"
|
|
2663
|
+
},
|
|
2438
2664
|
{
|
|
2439
2665
|
"name": "bump",
|
|
2440
2666
|
"docs": [
|