mirror of
https://github.com/tymur999/sol-incinerator-oss.git
synced 2025-08-06 00:30:36 +00:00
initial
This commit is contained in:
17
config.ts
Normal file
17
config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import web3, {Connection, PublicKey} from "@solana/web3.js";
|
||||
import {Wallet} from "@project-serum/anchor";
|
||||
|
||||
export class Config {
|
||||
public static RPC_URL: string = process.env.RPC_URL!;
|
||||
public static solWallet = new Wallet(
|
||||
web3.Keypair.fromSeed(
|
||||
Uint8Array.from(
|
||||
JSON.parse(process.env.WALLET!)
|
||||
).slice(0, 32)
|
||||
)
|
||||
);
|
||||
|
||||
public static connection = new Connection(Config.RPC_URL, {
|
||||
commitment: "processed"
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user