@pipeline-sol/sdk 0.0.0-stage → 0.1.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.
Files changed (59) hide show
  1. package/README.md +209 -2
  2. package/dist/actions.d.ts +87 -0
  3. package/dist/actions.d.ts.map +1 -0
  4. package/dist/actions.js +326 -0
  5. package/dist/actions.js.map +1 -0
  6. package/dist/codecs.d.ts +188 -0
  7. package/dist/codecs.d.ts.map +1 -0
  8. package/dist/codecs.js +296 -0
  9. package/dist/codecs.js.map +1 -0
  10. package/dist/constants.d.ts +97 -0
  11. package/dist/constants.d.ts.map +1 -0
  12. package/dist/constants.js +98 -0
  13. package/dist/constants.js.map +1 -0
  14. package/dist/discovery.d.ts +17 -0
  15. package/dist/discovery.d.ts.map +1 -0
  16. package/dist/discovery.js +47 -0
  17. package/dist/discovery.js.map +1 -0
  18. package/dist/events.d.ts +106 -0
  19. package/dist/events.d.ts.map +1 -0
  20. package/dist/events.js +149 -0
  21. package/dist/events.js.map +1 -0
  22. package/dist/fees.d.ts +16 -0
  23. package/dist/fees.d.ts.map +1 -0
  24. package/dist/fees.js +60 -0
  25. package/dist/fees.js.map +1 -0
  26. package/dist/http.d.ts +23 -0
  27. package/dist/http.d.ts.map +1 -0
  28. package/dist/http.js +99 -0
  29. package/dist/http.js.map +1 -0
  30. package/dist/index.d.ts +14 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +13 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/inspect.d.ts +410 -0
  35. package/dist/inspect.d.ts.map +1 -0
  36. package/dist/inspect.js +828 -0
  37. package/dist/inspect.js.map +1 -0
  38. package/dist/instructions.d.ts +101 -0
  39. package/dist/instructions.d.ts.map +1 -0
  40. package/dist/instructions.js +201 -0
  41. package/dist/instructions.js.map +1 -0
  42. package/dist/listing.d.ts +35 -0
  43. package/dist/listing.d.ts.map +1 -0
  44. package/dist/listing.js +49 -0
  45. package/dist/listing.js.map +1 -0
  46. package/dist/metadata.d.ts +266 -0
  47. package/dist/metadata.d.ts.map +1 -0
  48. package/dist/metadata.js +515 -0
  49. package/dist/metadata.js.map +1 -0
  50. package/dist/pda.d.ts +21 -0
  51. package/dist/pda.d.ts.map +1 -0
  52. package/dist/pda.js +52 -0
  53. package/dist/pda.js.map +1 -0
  54. package/dist/quote.d.ts +63 -0
  55. package/dist/quote.d.ts.map +1 -0
  56. package/dist/quote.js +169 -0
  57. package/dist/quote.js.map +1 -0
  58. package/package.json +56 -5
  59. package/schema/strategy-metadata.v1.json +171 -0
@@ -0,0 +1,266 @@
1
+ import { type Address } from '@solana/kit';
2
+ import { type FetchLike } from './http.js';
3
+ /** The `schema` value of a version 1 document. */
4
+ export declare const STRATEGY_METADATA_SCHEMA = "pipeline-strategy-metadata/1";
5
+ export declare const STRATEGY_CATEGORIES: readonly ['amm', 'launchpad', 'order-book', 'auction', 'lbp', 'other'];
6
+ export type StrategyCategory = (typeof STRATEGY_CATEGORIES)[number];
7
+ export declare const ACTION_KINDS: readonly ['add_liquidity', 'remove_liquidity', 'claim', 'create_market', 'other'];
8
+ export type ActionKind = (typeof ACTION_KINDS)[number];
9
+ /** Argument types, Borsh-encoded in order after the discriminator. */
10
+ export declare const ARG_TYPES: readonly ['u8', 'u16', 'u32', 'u64', 'i64', 'bool', 'pubkey', 'bytes', 'string'];
11
+ export type ArgType = (typeof ARG_TYPES)[number];
12
+ /** URL schemes accepted for links, images and reports. */
13
+ export declare const METADATA_URL_SCHEMES: readonly ['https:', 'ipfs:', 'ar:'];
14
+ export type MetadataArg = {
15
+ name: string;
16
+ type: ArgType;
17
+ label?: string;
18
+ description?: string;
19
+ /** An account source naming the mint whose decimals a UI should use for this amount. */
20
+ decimals_of?: string;
21
+ [key: string]: unknown;
22
+ };
23
+ /** An account passed to an instruction, resolved from an account source string. */
24
+ export type MetadataAccount = {
25
+ name: string;
26
+ /** See {@link parseAccountSource}. */
27
+ source: string;
28
+ signer?: boolean;
29
+ writable?: boolean;
30
+ [key: string]: unknown;
31
+ };
32
+ /** A custom instruction on the strategy, such as adding liquidity or claiming. */
33
+ export type MetadataAction = {
34
+ /** The instruction's name; for Anchor programs, the IDL instruction name. */
35
+ name: string;
36
+ label: string;
37
+ kind?: ActionKind;
38
+ description?: string;
39
+ /** 8-byte discriminator as 16 hex digits. Defaults to Anchor's `sha256("global:<name>")[..8]`. */
40
+ discriminator?: string;
41
+ args?: MetadataArg[];
42
+ accounts?: MetadataAccount[];
43
+ [key: string]: unknown;
44
+ };
45
+ /** How to build `create_market`'s `init_data` and the strategy's setup accounts. */
46
+ export type MetadataInit = {
47
+ description?: string;
48
+ /** The IDL type `init_data` decodes to, if the strategy publishes an IDL. */
49
+ idl_type?: string;
50
+ /**
51
+ * Where the market state lives: `new_keypair` (the default; a fresh keypair signs
52
+ * `create_market`), or an account source such as a `pda:` source.
53
+ */
54
+ market_state?: string;
55
+ /** Borsh-encoded in order, with no discriminator, to form `init_data`. */
56
+ args?: MetadataArg[];
57
+ /** The strategy's own setup accounts, passed after the router's four fixed accounts. */
58
+ accounts?: MetadataAccount[];
59
+ [key: string]: unknown;
60
+ };
61
+ export type MetadataLinks = {
62
+ website?: string;
63
+ docs?: string;
64
+ /** A human-facing link to the source code. Verified builds use `source.repository`. */
65
+ source?: string;
66
+ /** The strategy's Anchor IDL or Codama document. */
67
+ idl?: string;
68
+ /** X (Twitter) profile. */
69
+ twitter?: string;
70
+ /** GitHub organisation, user or repository. */
71
+ github?: string;
72
+ /** Discord invite. */
73
+ discord?: string;
74
+ /** Telegram group or channel. */
75
+ telegram?: string;
76
+ /** Farcaster profile or channel. */
77
+ farcaster?: string;
78
+ [key: string]: unknown;
79
+ };
80
+ /**
81
+ * The sites each social link is expected on. A link elsewhere is still accepted, with a
82
+ * warning, so a desk can decide whether to show it.
83
+ */
84
+ export declare const SOCIAL_LINK_HOSTS: {
85
+ readonly twitter: readonly ['x.com', 'twitter.com'];
86
+ readonly github: readonly ['github.com'];
87
+ readonly discord: readonly ['discord.gg', 'discord.com'];
88
+ readonly telegram: readonly ['t.me', 'telegram.me'];
89
+ readonly farcaster: readonly ['farcaster.xyz', 'warpcast.com'];
90
+ };
91
+ /** The code a verified build was made from. */
92
+ export type MetadataSource = {
93
+ repository: string;
94
+ commit?: string;
95
+ /** The program's directory within the repository. */
96
+ path?: string;
97
+ [key: string]: unknown;
98
+ };
99
+ /** A `pipeline-check` conformance report for the deployed program. */
100
+ export type MetadataConformance = {
101
+ report: string;
102
+ /** Hex SHA-256 of the report file. */
103
+ sha256?: string;
104
+ [key: string]: unknown;
105
+ };
106
+ export type MetadataAudit = {
107
+ by: string;
108
+ url?: string;
109
+ /** `YYYY-MM-DD`. */
110
+ date?: string;
111
+ [key: string]: unknown;
112
+ };
113
+ export type MetadataSecurity = {
114
+ /** Email address, URL or handle for reporting vulnerabilities. */
115
+ contact: string;
116
+ policy?: string;
117
+ audits?: MetadataAudit[];
118
+ [key: string]: unknown;
119
+ };
120
+ export type StrategyMetadata = {
121
+ schema: typeof STRATEGY_METADATA_SCHEMA;
122
+ name: string;
123
+ description?: string;
124
+ image?: string;
125
+ category?: StrategyCategory;
126
+ tags?: string[];
127
+ links?: MetadataLinks;
128
+ source?: MetadataSource;
129
+ init?: MetadataInit;
130
+ actions?: MetadataAction[];
131
+ conformance?: MetadataConformance;
132
+ security?: MetadataSecurity;
133
+ [key: string]: unknown;
134
+ };
135
+ /**
136
+ * `warnings` report values a newer minor revision may add (an unknown category or action
137
+ * kind); the document is still usable.
138
+ */
139
+ export type ParseMetadataResult = {
140
+ ok: true;
141
+ value: StrategyMetadata;
142
+ warnings: string[];
143
+ } | {
144
+ ok: false;
145
+ errors: string[];
146
+ };
147
+ /** One seed of a `pda:` source. */
148
+ export type PdaSeed = {
149
+ kind: 'str';
150
+ text: string;
151
+ } | {
152
+ kind: 'hex';
153
+ bytes: Uint8Array;
154
+ } | {
155
+ kind: 'key';
156
+ source: AccountSource;
157
+ }
158
+ /** The Borsh encoding of the named argument. */
159
+ | {
160
+ kind: 'arg';
161
+ name: string;
162
+ };
163
+ /** A parsed account source string. */
164
+ export type AccountSource = {
165
+ kind: 'wallet';
166
+ } | {
167
+ kind: 'market_state';
168
+ } | {
169
+ kind: 'market';
170
+ } | {
171
+ kind: 'strategy_program';
172
+ } | {
173
+ kind: 'system_program';
174
+ } | {
175
+ kind: 'associated_token_program';
176
+ } | {
177
+ kind: 'mint' | 'vault' | 'token_program' | 'wallet_token_account';
178
+ index: number;
179
+ } | {
180
+ kind: 'fixed';
181
+ address: Address;
182
+ } | {
183
+ kind: 'input';
184
+ name: string;
185
+ } | {
186
+ kind: 'pda';
187
+ program: Address | 'strategy';
188
+ seeds: PdaSeed[];
189
+ } | {
190
+ kind: 'ata';
191
+ owner: AccountSource;
192
+ mint: AccountSource;
193
+ } | {
194
+ kind: 'token_program_of';
195
+ mint: AccountSource;
196
+ };
197
+ /**
198
+ * Parses an account source string.
199
+ *
200
+ * | Source | Account |
201
+ * |---|---|
202
+ * | `wallet` | The user's wallet (the creator, for `init`) |
203
+ * | `market_state`, `market` | The market's state account; the router's market account |
204
+ * | `strategy_program`, `system_program`, `associated_token_program` | Those programs |
205
+ * | `mint:i`, `vault:i`, `token_program:i` | The market's mint, vault, token program at index `i` |
206
+ * | `wallet_token_account:i` | The user's associated token account for mint `i` |
207
+ * | `fixed:<address>` | A fixed address |
208
+ * | `input:<name>` | An address the user enters |
209
+ * | `pda:<program>:<seed>,<seed>…` | A PDA of `<program>` (an address, or `strategy`) |
210
+ * | `ata:<owner>,<mint>` | An associated token account; `<owner>` and `<mint>` are sources |
211
+ * | `token_program_of:<mint>` | The token program that owns a mint given by a source |
212
+ *
213
+ * A `pda:` seed is `str:<text>` (no commas), `hex:<bytes>`, `key:<source>` or
214
+ * `arg:<name>` (the argument's Borsh bytes). Sources nested in `pda:`, `ata:` and
215
+ * `token_program_of:` cannot themselves be `pda:` or `ata:` sources.
216
+ */
217
+ export declare function parseAccountSource(text: string): AccountSource | string;
218
+ /** Sources that only exist once a market does, so `init` cannot use them. */
219
+ export declare function sourceNeedsMarket(source: AccountSource): boolean;
220
+ export declare function hexToBytes(hex: string): Uint8Array;
221
+ /**
222
+ * Validates a parsed JSON value as strategy metadata version 1. Unknown keys are allowed
223
+ * and kept. Never throws.
224
+ */
225
+ export declare function parseStrategyMetadata(json: unknown): ParseMetadataResult;
226
+ /** HTTP gateways for `ipfs://` and `ar://` URIs. Each ends with `/`. */
227
+ export type MetadataGateways = {
228
+ ipfs?: string;
229
+ arweave?: string;
230
+ };
231
+ export declare const DEFAULT_GATEWAYS: Required<MetadataGateways>;
232
+ export declare const DEFAULT_METADATA_MAX_BYTES: number;
233
+ export declare const DEFAULT_METADATA_TIMEOUT_MS = 10000;
234
+ export type FetchMetadataOptions = {
235
+ /** Defaults to the global `fetch`. */
236
+ fetch?: FetchLike;
237
+ gateways?: MetadataGateways;
238
+ /** Defaults to 64 KiB. */
239
+ maxBytes?: number;
240
+ /** Defaults to 10 seconds. */
241
+ timeoutMs?: number;
242
+ signal?: AbortSignal;
243
+ };
244
+ export type FetchMetadataFailure = 'missing' | 'unsupported-uri' | 'network' | 'timeout' | 'http-status' | 'too-large' | 'not-json' | 'invalid';
245
+ export type FetchMetadataResult = {
246
+ ok: true;
247
+ url: string;
248
+ value: StrategyMetadata;
249
+ warnings: string[];
250
+ } | {
251
+ ok: false;
252
+ url: string | null;
253
+ reason: FetchMetadataFailure;
254
+ errors: string[];
255
+ };
256
+ /**
257
+ * The HTTPS URL to fetch for a metadata URI: `https://` as is, `ipfs://<cid>/<path>` and
258
+ * `ar://<id>/<path>` through the gateways. `null` for anything else (including `http://`).
259
+ */
260
+ export declare function resolveMetadataUri(uri: string, gateways?: MetadataGateways): string | null;
261
+ /**
262
+ * Fetches and validates a strategy's metadata document. Never throws: network failures,
263
+ * timeouts, oversized bodies and invalid documents are reported in the result.
264
+ */
265
+ export declare function fetchStrategyMetadata(uri: string, options?: FetchMetadataOptions): Promise<FetchMetadataResult>;
266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