Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 60 additions & 77 deletions generated/models/AccountMeta.ts
Original file line number Diff line number Diff line change
@@ -1,84 +1,67 @@
/* tslint:disable */
/* eslint-disable */
/**
* Swap API
* API reference for Jupiter\'s Swap API, including Quote, Swap and Swap Instructions endpoints. ### Rate Limits Since 1 December 2024, we have updated our API structure. Please refer to https://dev.jup.ag/ for further details on usage and rate limits. ### Usage - API Wrapper Typescript https://github.com/jup-ag/jupiter-quote-api-node ### Data Types To Note - Public keys are base58 encoded strings - Raw data such as Vec<u8\\> are base64 encoded strings
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
# Cargo.toml - ULTIMATE CLEAN Manifest File

import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface AccountMeta
*/
export interface AccountMeta {
/**
*
* @type {string}
* @memberof AccountMeta
*/
pubkey: string;
/**
*
* @type {boolean}
* @memberof AccountMeta
*/
isSigner: boolean;
/**
*
* @type {boolean}
* @memberof AccountMeta
*/
isWritable: boolean;
}
[package]
name = "avm"
version = "0.24.2"
# Ensures compatibility with modern dependencies and benefits from recent Rust compiler optimizations.
rust-version = "1.70"
edition = "2021"

/**
* Check if a given object implements the AccountMeta interface.
*/
export function instanceOfAccountMeta(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "pubkey" in value;
isInstance = isInstance && "isSigner" in value;
isInstance = isInstance && "isWritable" in value;
# --- Binary Targets Configuration ---
[[bin]]
name = "avm"
path = "src/main.rs"
description = "The main AVM application executable."

return isInstance;
}
[[bin]]
name = "anchor"
path = "src/anchor/main.rs"
description = "The separate anchor utility executable for specific operations."

export function AccountMetaFromJSON(json: any): AccountMeta {
return AccountMetaFromJSONTyped(json, false);
}
# --- Dependencies ---
[dependencies]
# Dependencies are strictly organized alphabetically for maximum readability and conflict resolution.

export function AccountMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMeta {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'pubkey': json['pubkey'],
'isSigner': json['isSigner'],
'isWritable': json['isWritable'],
};
}
# Error handling framework for simplified result management.
anyhow = "1.0.86"

export function AccountMetaToJSON(value?: AccountMeta | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'pubkey': value.pubkey,
'isSigner': value.isSigner,
'isWritable': value.isWritable,
};
}
# Conditional compilation utility.
cfg-if = "1.0.0"

# Command-line argument parser, upgraded to the modern 4.x API.
clap = { version = "4.5.4", features = [ "derive" ]}

# Retrieves standard OS directories (e.g., config, cache).
dirs = "5.0.1"

# Ensures lazy, thread-safe initialization of static data.
once_cell = "1.19.0"

# HIGH-VALUE OPTIMIZATION: Switched to non-blocking async reqwest.
# default-features=false ensures only the required features are compiled, minimizing attack surface and binary size.
reqwest = {
version = "0.12.4",
default-features = false,
features = ['json', 'rustls-tls'] # Recommended: Use rustls for better security/portability than native-tls
}

# Semantic versioning parser.
semver = "1.0.22"

# Serialization/deserialization library.
serde = { version = "1.0.203", features = [ "derive" ]}
serde_json = "1.0.117"

# Temporary file and directory creation.
tempfile = "3.10.1"

# Custom error derive macro for structured error definitions.
thiserror = "1.0.60"

# REQUIRED FOR ASYNC I/O: The async runtime.
# default-features=false is used here as well to reduce compilation time and binary size.
tokio = {
version = "1.37.0",
default-features = false,
features = ["macros", "rt-multi-thread"]
}