2026-07-29 15:57:24 +02:00
|
|
|
#ifndef AMM_FFI_H
|
|
|
|
|
#define AMM_FFI_H
|
2026-06-26 09:22:42 +02:00
|
|
|
|
2026-07-27 16:01:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/* Generated by cbindgen. Do not edit. */
|
|
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
2026-06-26 09:22:42 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
2026-07-27 16:01:37 +02:00
|
|
|
#endif // __cplusplus
|
2026-06-26 09:22:42 +02:00
|
|
|
|
|
|
|
|
char *amm_config_id(const char *request_json);
|
2026-07-27 16:01:37 +02:00
|
|
|
|
2026-06-26 09:22:42 +02:00
|
|
|
char *amm_token_ids(const char *request_json);
|
2026-07-27 16:01:37 +02:00
|
|
|
|
2026-06-26 09:22:42 +02:00
|
|
|
char *amm_pair_ids(const char *request_json);
|
2026-07-27 16:01:37 +02:00
|
|
|
|
2026-06-26 09:22:42 +02:00
|
|
|
char *amm_context(const char *request_json);
|
2026-07-27 16:01:37 +02:00
|
|
|
|
2026-06-26 09:22:42 +02:00
|
|
|
char *amm_quote(const char *request_json);
|
2026-07-27 16:01:37 +02:00
|
|
|
|
2026-06-26 09:22:42 +02:00
|
|
|
char *amm_plan(const char *request_json);
|
2026-07-27 16:01:37 +02:00
|
|
|
|
|
|
|
|
char *amm_swap_pair(const char *request_json);
|
|
|
|
|
|
|
|
|
|
char *amm_resolve_pool(const char *request_json);
|
|
|
|
|
|
2026-08-04 17:00:15 +02:00
|
|
|
char *amm_pool_id(const char *request_json);
|
|
|
|
|
|
2026-08-04 17:27:02 +02:00
|
|
|
char *amm_swap_exact_in_quote(const char *request_json);
|
|
|
|
|
|
2026-08-04 19:05:06 +02:00
|
|
|
char *amm_swap_exact_out_quote(const char *request_json);
|
|
|
|
|
|
2026-08-04 19:21:29 +02:00
|
|
|
char *amm_swap_exact_in_plan(const char *request_json);
|
2026-07-27 16:01:37 +02:00
|
|
|
|
2026-08-04 22:05:35 +02:00
|
|
|
char *amm_swap_exact_out_plan(const char *request_json);
|
|
|
|
|
|
2026-07-27 16:01:37 +02:00
|
|
|
char *amm_program_id(const char *request_json);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Releases a string returned by an `amm_*` operation.
|
|
|
|
|
*
|
|
|
|
|
* # Safety
|
|
|
|
|
* `value` must be null or a pointer returned by this library that has not been freed.
|
|
|
|
|
*/
|
2026-06-26 09:22:42 +02:00
|
|
|
void amm_free(char *value);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2026-07-27 16:01:37 +02:00
|
|
|
} // extern "C"
|
|
|
|
|
#endif // __cplusplus
|
2026-06-26 09:22:42 +02:00
|
|
|
|
2026-07-29 15:57:24 +02:00
|
|
|
#endif /* AMM_FFI_H */
|