Skip to content

MyWewe-io/WEWE-solana-programs

Repository files navigation

WEWE SOLANA PROGRAM


🛠️ Deployment on Devnet

1. Install Dependencies

npm install

2. Configure Anchor

Installation instructions

Set the provider to Devnet:

anchor config set --cluster devnet
anchor config set --provider.wallet ~/.config/solana/id.json

3. Build and Deploy

anchor build
anchor deploy

After successful deployment, copy the program ID shown in the terminal output.

🧪 Test Locally

You can run tests with:

anchor test

🔌 User Integration Guide

1. Get the IDL

Once the program is built, the IDL is located in:

anchor build
target/idl/wewe_token_launch_pad.json

2. Using the IDL for integration

import { AnchorProvider, Program, Idl } from "@project-serum/anchor";
import { Connection, PublicKey } from "@solana/web3.js";
import idl from "./idl/wewe_token_launch_pad.json";

const connection = new Connection("https://api.devnet.solana.com");
const provider = new AnchorProvider(connection, window.solana, {});
const programId = new PublicKey("<REPLACE_WITH_PROGRAM_ID>");
const program = new Program(idl as Idl, programId, provider);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •