Initial commit from template

This commit is contained in:
StackClass
2025-12-31 03:17:34 +00:00
commit 3b89a66429
17 changed files with 4499 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
[package]
name = "lending-program"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "lending_program"
[features]
default = []
cpi = ["no-entrypoint"]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]
[dependencies]
anchor-lang = { version="0.30.1", features=["init-if-needed"] }
anchor-spl = "0.30.1"
pyth-sdk-solana = "0.10.1"
pyth-solana-receiver-sdk = "0.3.1"
solana-program = "1.18.17"

View File

@@ -0,0 +1,19 @@
use anchor_lang::prelude::*;
declare_id!("LendZ1111111111111111111111111111111111111");
#[program]
pub mod lending_program {
use super::*;
pub fn initialize(ctx: Context<Initialize>) -> Result<()> {
Ok(())
}
}
#[derive(Accounts)]
pub struct Initialize<'info> {
#[account(mut)]
pub user: Signer<'info>,
pub system_program: Program<'info, System>,
}