This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dotenv/config'; | |
import DLMM, { autoFillYByStrategy, StrategyType ,PositionData} from '@meteora-ag/dlmm'; | |
import { Connection, PublicKey,sendAndConfirmTransaction,Keypair,LAMPORTS_PER_SOL, Transaction ,VersionedTransaction, | |
TransactionMessage} from '@solana/web3.js'; | |
import BN from 'bn.js'; | |
//importing of jupiter swap | |
import { jupSwap } from "./utils/jupfunctions" | |
import { summarizePositionData } from './utils/positionSummizer'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client" | |
import React from 'react'; | |
import { createNode, receiveVotes, PPollMessage } from "../waku"; | |
import { createDecoder } from '@waku/sdk'; | |
import protobuf from "protobufjs"; | |
import { useState } from 'react'; | |
export interface IPollMessage { | |
authorName: string; | |
timestamp: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client" | |
import {useState,useEffect} from "react"; | |
import WalletExist from "./WalletExist"; | |
import { getAccountBalance } from "./getBalance"; | |
export default function Wallet({children}){ | |
const initialState = { accounts: [] } /* New */ | |
const [textUsed,settextUsed] = useState("Connect Auro") | |
const [wallet, setWallet] = useState(initialState) /* New */ |