Initial commit from template

This commit is contained in:
StackClass
2025-12-31 03:17:44 +00:00
commit 261dd39540
16 changed files with 3094 additions and 0 deletions

15
tests/swap.ts Normal file
View File

@@ -0,0 +1,15 @@
import * as anchor from "@coral-xyz/anchor";
import { Program } from "@coral-xyz/anchor";
import { Swap } from "../target/types/swap";
describe("swap", async () => {
const provider = anchor.AnchorProvider.env();
anchor.setProvider(provider);
const program = anchor.workspace.Swap as Program<Swap>;
it("Is initialized!", async () => {
const tx = await program.methods.initialize().rpc();
console.log("Transaction signature:", tx);
});
});