@sun-protocol/sun-sdk-protocols 0.1.0-beta.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.
Files changed (60) hide show
  1. package/README.md +30 -0
  2. package/dist/chunk-5XDX5563.js +99 -0
  3. package/dist/chunk-5XDX5563.js.map +1 -0
  4. package/dist/chunk-C2YCVBPI.js +212 -0
  5. package/dist/chunk-C2YCVBPI.js.map +1 -0
  6. package/dist/chunk-ECCGOXNA.js +1317 -0
  7. package/dist/chunk-ECCGOXNA.js.map +1 -0
  8. package/dist/chunk-HD2S3Q7L.js +746 -0
  9. package/dist/chunk-HD2S3Q7L.js.map +1 -0
  10. package/dist/chunk-L5TZCDPH.js +561 -0
  11. package/dist/chunk-L5TZCDPH.js.map +1 -0
  12. package/dist/chunk-OM4OW4KB.js +224 -0
  13. package/dist/chunk-OM4OW4KB.js.map +1 -0
  14. package/dist/chunk-PEGREDLT.js +935 -0
  15. package/dist/chunk-PEGREDLT.js.map +1 -0
  16. package/dist/chunk-TSHXXRH2.js +103 -0
  17. package/dist/chunk-TSHXXRH2.js.map +1 -0
  18. package/dist/chunk-VFVKMC4H.js +521 -0
  19. package/dist/chunk-VFVKMC4H.js.map +1 -0
  20. package/dist/chunk-YMGZDXI4.js +1209 -0
  21. package/dist/chunk-YMGZDXI4.js.map +1 -0
  22. package/dist/common-8VQQ0FSU.d.cts +146 -0
  23. package/dist/common-8VQQ0FSU.d.ts +146 -0
  24. package/dist/execute-BNKh6dT6.d.cts +187 -0
  25. package/dist/execute-CVhcKZxF.d.ts +187 -0
  26. package/dist/index.cjs +5619 -0
  27. package/dist/index.cjs.map +1 -0
  28. package/dist/index.d.cts +139 -0
  29. package/dist/index.d.ts +139 -0
  30. package/dist/index.js +200 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/intents-BSXq1HvW.d.cts +200 -0
  33. package/dist/intents-CwOttD75.d.ts +200 -0
  34. package/dist/liquidity/index.cjs +2441 -0
  35. package/dist/liquidity/index.cjs.map +1 -0
  36. package/dist/liquidity/index.d.cts +83 -0
  37. package/dist/liquidity/index.d.ts +83 -0
  38. package/dist/liquidity/index.js +32 -0
  39. package/dist/liquidity/index.js.map +1 -0
  40. package/dist/positions/index.cjs +1544 -0
  41. package/dist/positions/index.cjs.map +1 -0
  42. package/dist/positions/index.d.cts +159 -0
  43. package/dist/positions/index.d.ts +159 -0
  44. package/dist/positions/index.js +25 -0
  45. package/dist/positions/index.js.map +1 -0
  46. package/dist/pump/index.cjs +1178 -0
  47. package/dist/pump/index.cjs.map +1 -0
  48. package/dist/pump/index.d.cts +16 -0
  49. package/dist/pump/index.d.ts +16 -0
  50. package/dist/pump/index.js +29 -0
  51. package/dist/pump/index.js.map +1 -0
  52. package/dist/swap/index.cjs +2259 -0
  53. package/dist/swap/index.cjs.map +1 -0
  54. package/dist/swap/index.d.cts +33 -0
  55. package/dist/swap/index.d.ts +33 -0
  56. package/dist/swap/index.js +61 -0
  57. package/dist/swap/index.js.map +1 -0
  58. package/dist/types-BTPdCC7k.d.cts +160 -0
  59. package/dist/types-BfrouFmO.d.ts +160 -0
  60. package/package.json +94 -0
@@ -0,0 +1,187 @@
1
+ import * as _sun_protocol_sun_sdk_launchpad from '@sun-protocol/sun-sdk-launchpad';
2
+ import { LaunchpadTokenState, LaunchpadTokenInfo } from '@sun-protocol/sun-sdk-launchpad';
3
+ import { SunPumpQuery } from '@sun-protocol/sun-sdk-api';
4
+ import { R as RecipientOptions, S as SlippageInput, T as TransactionPlan, E as ExecutedActionResult, a as TransactionPlanExecutionResult, P as ProtocolsContext, b as TransactionPlanExecutor } from './common-8VQQ0FSU.cjs';
5
+ import { TronAddress, TransactionAction } from '@sun-protocol/sun-sdk-core';
6
+
7
+ interface PumpTokenInput {
8
+ readonly token: string;
9
+ }
10
+ interface PumpQuoteBuyInput extends PumpTokenInput {
11
+ readonly trxAmount: string;
12
+ }
13
+ interface PumpQuoteBuyExactTokenInput extends PumpTokenInput {
14
+ readonly tokenAmount: string;
15
+ }
16
+ interface PumpQuoteSellInput extends PumpTokenInput {
17
+ readonly tokenAmount: string;
18
+ }
19
+ interface PumpBuyCommonInput extends PumpTokenInput, RecipientOptions {
20
+ /**
21
+ * Token recipient for LAUNCHED (V2) buys. Defaults to the current wallet address.
22
+ * TRADING (LaunchPad) buys do not support a separate recipient and ignore this option.
23
+ * Omit it for TRADING tokens.
24
+ */
25
+ readonly recipient?: TronAddress | string;
26
+ readonly slippage?: SlippageInput;
27
+ readonly transactionValidForSeconds?: number;
28
+ }
29
+ type PumpBuyInput = PumpBuyCommonInput & ({
30
+ readonly trxAmount: string;
31
+ readonly tokenAmount?: never;
32
+ } | {
33
+ readonly trxAmount?: never;
34
+ readonly tokenAmount: string;
35
+ });
36
+ type PumpSellApprovalMode = 'auto' | 'approve' | 'none';
37
+ interface PumpSellInput extends PumpQuoteSellInput, RecipientOptions {
38
+ /**
39
+ * TRX recipient for LAUNCHED (V2) sells. Defaults to the current wallet address.
40
+ * TRADING (LaunchPad) sells do not support a separate recipient and ignore this option.
41
+ * Omit it for TRADING tokens.
42
+ */
43
+ readonly recipient?: TronAddress | string;
44
+ readonly slippage?: SlippageInput;
45
+ readonly transactionValidForSeconds?: number;
46
+ readonly owner?: TronAddress | string;
47
+ readonly approval?: PumpSellApprovalMode;
48
+ }
49
+ interface PumpBuyQuote {
50
+ readonly tokenAmount: string;
51
+ readonly fee: string;
52
+ }
53
+ interface PumpBuyExactTokenQuote {
54
+ readonly trxAmount: string;
55
+ readonly fee: string;
56
+ }
57
+ interface PumpSellQuote {
58
+ readonly trxAmount: string;
59
+ readonly fee: string;
60
+ }
61
+ interface AgentTokenLaunchParams {
62
+ name: string;
63
+ symbol: string;
64
+ description: string;
65
+ imageBase64?: string;
66
+ twitterUrl?: string;
67
+ telegramUrl?: string;
68
+ websiteUrl?: string;
69
+ tweetUsername?: string;
70
+ }
71
+ interface PumpBuyClientShape {
72
+ quote(input: PumpQuoteBuyInput): Promise<PumpBuyQuote>;
73
+ quote(input: PumpQuoteBuyExactTokenInput): Promise<PumpBuyExactTokenQuote>;
74
+ plan(input: PumpBuyInput): Promise<TransactionPlan>;
75
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
76
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
77
+ execute(input: PumpBuyInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
78
+ }
79
+ interface PumpSellClientShape {
80
+ quote(input: PumpQuoteSellInput): Promise<PumpSellQuote>;
81
+ plan(input: PumpSellInput): Promise<TransactionPlan>;
82
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
83
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
84
+ execute(input: PumpSellInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
85
+ }
86
+ interface PumpLaunchClientShape {
87
+ plan(input: AgentTokenLaunchParams): Promise<TransactionPlan>;
88
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
89
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
90
+ execute(input: AgentTokenLaunchParams | TransactionPlan): Promise<TransactionPlanExecutionResult>;
91
+ }
92
+ interface PumpTokenHttpClient {
93
+ list(query?: SunPumpQuery): Promise<unknown>;
94
+ get(token: string): Promise<unknown>;
95
+ search(query?: SunPumpQuery): Promise<unknown>;
96
+ searchV2(query?: SunPumpQuery): Promise<unknown>;
97
+ byOwner(query: SunPumpQuery): Promise<unknown>;
98
+ holders(query: SunPumpQuery): Promise<unknown>;
99
+ holdersV2(query: SunPumpQuery): Promise<unknown>;
100
+ favors(query: SunPumpQuery): Promise<unknown>;
101
+ ranking(query: SunPumpQuery): Promise<unknown>;
102
+ kingOfHill(): Promise<unknown>;
103
+ pumpList(): Promise<unknown>;
104
+ transactions(token: string, query?: SunPumpQuery): Promise<unknown>;
105
+ ownerTransactions(owner: string, query?: SunPumpQuery): Promise<unknown>;
106
+ }
107
+ interface PumpClientShape {
108
+ readonly buy: PumpBuyClientShape;
109
+ readonly sell: PumpSellClientShape;
110
+ readonly launch: PumpLaunchClientShape;
111
+ readonly tokens: PumpTokenHttpClient;
112
+ state(input: PumpTokenInput): Promise<LaunchpadTokenState>;
113
+ info(input: PumpTokenInput): Promise<LaunchpadTokenInfo>;
114
+ }
115
+
116
+ declare class PumpBuyClient implements PumpBuyClientShape {
117
+ private readonly context;
118
+ constructor(context: ProtocolsContext);
119
+ quote(input: PumpQuoteBuyInput): Promise<PumpBuyQuote>;
120
+ quote(input: PumpQuoteBuyExactTokenInput): Promise<PumpBuyExactTokenQuote>;
121
+ plan(input: PumpBuyInput): Promise<TransactionPlan>;
122
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
123
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
124
+ execute(input: PumpBuyInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
125
+ }
126
+
127
+ declare class PumpLaunchClient implements PumpLaunchClientShape {
128
+ private readonly context;
129
+ constructor(context: ProtocolsContext);
130
+ plan(input: AgentTokenLaunchParams): Promise<TransactionPlan>;
131
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
132
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
133
+ execute(input: AgentTokenLaunchParams | TransactionPlan): Promise<TransactionPlanExecutionResult>;
134
+ }
135
+
136
+ declare class PumpSellClient implements PumpSellClientShape {
137
+ private readonly context;
138
+ constructor(context: ProtocolsContext);
139
+ quote(input: PumpQuoteSellInput): Promise<PumpSellQuote>;
140
+ plan(input: PumpSellInput): Promise<TransactionPlan>;
141
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
142
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
143
+ execute(input: PumpSellInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
144
+ }
145
+
146
+ declare class PumpClient implements PumpClientShape {
147
+ private readonly context;
148
+ readonly buy: PumpBuyClient;
149
+ readonly sell: PumpSellClient;
150
+ readonly launch: PumpLaunchClient;
151
+ readonly tokens: {
152
+ list: (query?: SunPumpQuery) => Promise<unknown>;
153
+ get: (token: string) => Promise<unknown>;
154
+ search: (query?: SunPumpQuery) => Promise<unknown>;
155
+ searchV2: (query?: SunPumpQuery) => Promise<unknown>;
156
+ byOwner: (query: SunPumpQuery) => Promise<unknown>;
157
+ holders: (query: SunPumpQuery) => Promise<unknown>;
158
+ holdersV2: (query: SunPumpQuery) => Promise<unknown>;
159
+ favors: (query: SunPumpQuery) => Promise<unknown>;
160
+ ranking: (query: SunPumpQuery) => Promise<unknown>;
161
+ kingOfHill: () => Promise<unknown>;
162
+ pumpList: () => Promise<unknown>;
163
+ transactions: (token: string, query?: SunPumpQuery) => Promise<unknown>;
164
+ ownerTransactions: (owner: string, query?: SunPumpQuery) => Promise<unknown>;
165
+ };
166
+ constructor(context: ProtocolsContext);
167
+ state(input: PumpTokenInput): Promise<_sun_protocol_sun_sdk_launchpad.LaunchpadTokenState>;
168
+ info(input: PumpTokenInput): Promise<_sun_protocol_sun_sdk_launchpad.LaunchpadTokenInfo>;
169
+ balance(input: PumpTokenInput & {
170
+ readonly owner: string;
171
+ }): Promise<string>;
172
+ allowance(input: PumpTokenInput & {
173
+ readonly owner: string;
174
+ readonly spender?: string;
175
+ }): Promise<string>;
176
+ portfolio(owner: string, query?: SunPumpQuery): Promise<unknown>;
177
+ private requireApi;
178
+ }
179
+ declare function createPumpClient(context: ProtocolsContext): PumpClient;
180
+
181
+ declare const SUNPUMP_LAUNCHPAD_PROTOCOL_ID = "sunpump-launchpad";
182
+ declare const SUNPUMP_V2_PROTOCOL_ID = "sunpump-v2";
183
+
184
+ /** Creates an executor for Pump plans, including launched-token V2 actions. */
185
+ declare function createPumpExecutor(context: ProtocolsContext): TransactionPlanExecutor;
186
+
187
+ export { type AgentTokenLaunchParams as A, type PumpBuyInput as P, SUNPUMP_LAUNCHPAD_PROTOCOL_ID as S, type PumpSellInput as a, PumpBuyClient as b, type PumpBuyClientShape as c, type PumpBuyExactTokenQuote as d, type PumpBuyQuote as e, PumpClient as f, type PumpClientShape as g, PumpLaunchClient as h, type PumpLaunchClientShape as i, type PumpQuoteBuyExactTokenInput as j, type PumpQuoteBuyInput as k, type PumpQuoteSellInput as l, type PumpSellApprovalMode as m, PumpSellClient as n, type PumpSellClientShape as o, type PumpSellQuote as p, type PumpTokenHttpClient as q, type PumpTokenInput as r, SUNPUMP_V2_PROTOCOL_ID as s, createPumpClient as t, createPumpExecutor as u };
@@ -0,0 +1,187 @@
1
+ import * as _sun_protocol_sun_sdk_launchpad from '@sun-protocol/sun-sdk-launchpad';
2
+ import { LaunchpadTokenState, LaunchpadTokenInfo } from '@sun-protocol/sun-sdk-launchpad';
3
+ import { SunPumpQuery } from '@sun-protocol/sun-sdk-api';
4
+ import { R as RecipientOptions, S as SlippageInput, T as TransactionPlan, E as ExecutedActionResult, a as TransactionPlanExecutionResult, P as ProtocolsContext, b as TransactionPlanExecutor } from './common-8VQQ0FSU.js';
5
+ import { TronAddress, TransactionAction } from '@sun-protocol/sun-sdk-core';
6
+
7
+ interface PumpTokenInput {
8
+ readonly token: string;
9
+ }
10
+ interface PumpQuoteBuyInput extends PumpTokenInput {
11
+ readonly trxAmount: string;
12
+ }
13
+ interface PumpQuoteBuyExactTokenInput extends PumpTokenInput {
14
+ readonly tokenAmount: string;
15
+ }
16
+ interface PumpQuoteSellInput extends PumpTokenInput {
17
+ readonly tokenAmount: string;
18
+ }
19
+ interface PumpBuyCommonInput extends PumpTokenInput, RecipientOptions {
20
+ /**
21
+ * Token recipient for LAUNCHED (V2) buys. Defaults to the current wallet address.
22
+ * TRADING (LaunchPad) buys do not support a separate recipient and ignore this option.
23
+ * Omit it for TRADING tokens.
24
+ */
25
+ readonly recipient?: TronAddress | string;
26
+ readonly slippage?: SlippageInput;
27
+ readonly transactionValidForSeconds?: number;
28
+ }
29
+ type PumpBuyInput = PumpBuyCommonInput & ({
30
+ readonly trxAmount: string;
31
+ readonly tokenAmount?: never;
32
+ } | {
33
+ readonly trxAmount?: never;
34
+ readonly tokenAmount: string;
35
+ });
36
+ type PumpSellApprovalMode = 'auto' | 'approve' | 'none';
37
+ interface PumpSellInput extends PumpQuoteSellInput, RecipientOptions {
38
+ /**
39
+ * TRX recipient for LAUNCHED (V2) sells. Defaults to the current wallet address.
40
+ * TRADING (LaunchPad) sells do not support a separate recipient and ignore this option.
41
+ * Omit it for TRADING tokens.
42
+ */
43
+ readonly recipient?: TronAddress | string;
44
+ readonly slippage?: SlippageInput;
45
+ readonly transactionValidForSeconds?: number;
46
+ readonly owner?: TronAddress | string;
47
+ readonly approval?: PumpSellApprovalMode;
48
+ }
49
+ interface PumpBuyQuote {
50
+ readonly tokenAmount: string;
51
+ readonly fee: string;
52
+ }
53
+ interface PumpBuyExactTokenQuote {
54
+ readonly trxAmount: string;
55
+ readonly fee: string;
56
+ }
57
+ interface PumpSellQuote {
58
+ readonly trxAmount: string;
59
+ readonly fee: string;
60
+ }
61
+ interface AgentTokenLaunchParams {
62
+ name: string;
63
+ symbol: string;
64
+ description: string;
65
+ imageBase64?: string;
66
+ twitterUrl?: string;
67
+ telegramUrl?: string;
68
+ websiteUrl?: string;
69
+ tweetUsername?: string;
70
+ }
71
+ interface PumpBuyClientShape {
72
+ quote(input: PumpQuoteBuyInput): Promise<PumpBuyQuote>;
73
+ quote(input: PumpQuoteBuyExactTokenInput): Promise<PumpBuyExactTokenQuote>;
74
+ plan(input: PumpBuyInput): Promise<TransactionPlan>;
75
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
76
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
77
+ execute(input: PumpBuyInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
78
+ }
79
+ interface PumpSellClientShape {
80
+ quote(input: PumpQuoteSellInput): Promise<PumpSellQuote>;
81
+ plan(input: PumpSellInput): Promise<TransactionPlan>;
82
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
83
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
84
+ execute(input: PumpSellInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
85
+ }
86
+ interface PumpLaunchClientShape {
87
+ plan(input: AgentTokenLaunchParams): Promise<TransactionPlan>;
88
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
89
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
90
+ execute(input: AgentTokenLaunchParams | TransactionPlan): Promise<TransactionPlanExecutionResult>;
91
+ }
92
+ interface PumpTokenHttpClient {
93
+ list(query?: SunPumpQuery): Promise<unknown>;
94
+ get(token: string): Promise<unknown>;
95
+ search(query?: SunPumpQuery): Promise<unknown>;
96
+ searchV2(query?: SunPumpQuery): Promise<unknown>;
97
+ byOwner(query: SunPumpQuery): Promise<unknown>;
98
+ holders(query: SunPumpQuery): Promise<unknown>;
99
+ holdersV2(query: SunPumpQuery): Promise<unknown>;
100
+ favors(query: SunPumpQuery): Promise<unknown>;
101
+ ranking(query: SunPumpQuery): Promise<unknown>;
102
+ kingOfHill(): Promise<unknown>;
103
+ pumpList(): Promise<unknown>;
104
+ transactions(token: string, query?: SunPumpQuery): Promise<unknown>;
105
+ ownerTransactions(owner: string, query?: SunPumpQuery): Promise<unknown>;
106
+ }
107
+ interface PumpClientShape {
108
+ readonly buy: PumpBuyClientShape;
109
+ readonly sell: PumpSellClientShape;
110
+ readonly launch: PumpLaunchClientShape;
111
+ readonly tokens: PumpTokenHttpClient;
112
+ state(input: PumpTokenInput): Promise<LaunchpadTokenState>;
113
+ info(input: PumpTokenInput): Promise<LaunchpadTokenInfo>;
114
+ }
115
+
116
+ declare class PumpBuyClient implements PumpBuyClientShape {
117
+ private readonly context;
118
+ constructor(context: ProtocolsContext);
119
+ quote(input: PumpQuoteBuyInput): Promise<PumpBuyQuote>;
120
+ quote(input: PumpQuoteBuyExactTokenInput): Promise<PumpBuyExactTokenQuote>;
121
+ plan(input: PumpBuyInput): Promise<TransactionPlan>;
122
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
123
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
124
+ execute(input: PumpBuyInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
125
+ }
126
+
127
+ declare class PumpLaunchClient implements PumpLaunchClientShape {
128
+ private readonly context;
129
+ constructor(context: ProtocolsContext);
130
+ plan(input: AgentTokenLaunchParams): Promise<TransactionPlan>;
131
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
132
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
133
+ execute(input: AgentTokenLaunchParams | TransactionPlan): Promise<TransactionPlanExecutionResult>;
134
+ }
135
+
136
+ declare class PumpSellClient implements PumpSellClientShape {
137
+ private readonly context;
138
+ constructor(context: ProtocolsContext);
139
+ quote(input: PumpQuoteSellInput): Promise<PumpSellQuote>;
140
+ plan(input: PumpSellInput): Promise<TransactionPlan>;
141
+ executeAction(action: TransactionAction): Promise<ExecutedActionResult>;
142
+ submit(plan: TransactionPlan): Promise<TransactionPlanExecutionResult>;
143
+ execute(input: PumpSellInput | TransactionPlan): Promise<TransactionPlanExecutionResult>;
144
+ }
145
+
146
+ declare class PumpClient implements PumpClientShape {
147
+ private readonly context;
148
+ readonly buy: PumpBuyClient;
149
+ readonly sell: PumpSellClient;
150
+ readonly launch: PumpLaunchClient;
151
+ readonly tokens: {
152
+ list: (query?: SunPumpQuery) => Promise<unknown>;
153
+ get: (token: string) => Promise<unknown>;
154
+ search: (query?: SunPumpQuery) => Promise<unknown>;
155
+ searchV2: (query?: SunPumpQuery) => Promise<unknown>;
156
+ byOwner: (query: SunPumpQuery) => Promise<unknown>;
157
+ holders: (query: SunPumpQuery) => Promise<unknown>;
158
+ holdersV2: (query: SunPumpQuery) => Promise<unknown>;
159
+ favors: (query: SunPumpQuery) => Promise<unknown>;
160
+ ranking: (query: SunPumpQuery) => Promise<unknown>;
161
+ kingOfHill: () => Promise<unknown>;
162
+ pumpList: () => Promise<unknown>;
163
+ transactions: (token: string, query?: SunPumpQuery) => Promise<unknown>;
164
+ ownerTransactions: (owner: string, query?: SunPumpQuery) => Promise<unknown>;
165
+ };
166
+ constructor(context: ProtocolsContext);
167
+ state(input: PumpTokenInput): Promise<_sun_protocol_sun_sdk_launchpad.LaunchpadTokenState>;
168
+ info(input: PumpTokenInput): Promise<_sun_protocol_sun_sdk_launchpad.LaunchpadTokenInfo>;
169
+ balance(input: PumpTokenInput & {
170
+ readonly owner: string;
171
+ }): Promise<string>;
172
+ allowance(input: PumpTokenInput & {
173
+ readonly owner: string;
174
+ readonly spender?: string;
175
+ }): Promise<string>;
176
+ portfolio(owner: string, query?: SunPumpQuery): Promise<unknown>;
177
+ private requireApi;
178
+ }
179
+ declare function createPumpClient(context: ProtocolsContext): PumpClient;
180
+
181
+ declare const SUNPUMP_LAUNCHPAD_PROTOCOL_ID = "sunpump-launchpad";
182
+ declare const SUNPUMP_V2_PROTOCOL_ID = "sunpump-v2";
183
+
184
+ /** Creates an executor for Pump plans, including launched-token V2 actions. */
185
+ declare function createPumpExecutor(context: ProtocolsContext): TransactionPlanExecutor;
186
+
187
+ export { type AgentTokenLaunchParams as A, type PumpBuyInput as P, SUNPUMP_LAUNCHPAD_PROTOCOL_ID as S, type PumpSellInput as a, PumpBuyClient as b, type PumpBuyClientShape as c, type PumpBuyExactTokenQuote as d, type PumpBuyQuote as e, PumpClient as f, type PumpClientShape as g, PumpLaunchClient as h, type PumpLaunchClientShape as i, type PumpQuoteBuyExactTokenInput as j, type PumpQuoteBuyInput as k, type PumpQuoteSellInput as l, type PumpSellApprovalMode as m, PumpSellClient as n, type PumpSellClientShape as o, type PumpSellQuote as p, type PumpTokenHttpClient as q, type PumpTokenInput as r, SUNPUMP_V2_PROTOCOL_ID as s, createPumpClient as t, createPumpExecutor as u };