Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
SwenSchaeferjohann committed Jan 4, 2025
1 parent 26f71e7 commit 6e83cee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
13 changes: 0 additions & 13 deletions js/stateless.js/src/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ import { defaultTestStateTreeAccounts } from './constants';
import BN from 'bn.js';
import { toCamelCase, toHex } from './utils/conversion';

type ClientSubscriptionId = number;

// // Define an interface that includes the methods you need from Connection
// interface ConnectionInterface {
// sendTransaction(transaction: any, options?: any): Promise<any>;
// getLatestBlockhash(): Promise<BlockhashWithExpiryBlockHeight>;
// confirmTransaction(signature: string, commitment?: string): Promise<any>;
// commitment: string;
// // Add other methods and properties as needed
// }

import {
proofFromJsonStruct,
negateAndCompressProof,
Expand Down Expand Up @@ -507,7 +496,6 @@ const mockAddressQueue = defaultTestStateTreeAccounts().addressQueue;
*
*/
export class Rpc extends Connection implements CompressionApiInterface {
// connection: Connection;
compressionApiEndpoint: string;
proverEndpoint: string;

Expand All @@ -527,7 +515,6 @@ export class Rpc extends Connection implements CompressionApiInterface {
) {
super(endpoint, config || 'confirmed');

// this.connection = new Connection(endpoint, config || 'confirmed');
this.compressionApiEndpoint = compressionApiEndpoint;
this.proverEndpoint = proverEndpoint;
}
Expand Down
5 changes: 0 additions & 5 deletions js/stateless.js/src/test-helpers/test-rpc/test-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export async function getTestRpc(
* For advanced testing use photon: https://github.com/helius-labs/photon
*/
export class TestRpc extends Connection implements CompressionApiInterface {
// connection: Connection;
compressionApiEndpoint: string;
proverEndpoint: string;
merkleTreeAddress: PublicKey;
Expand Down Expand Up @@ -173,10 +172,6 @@ export class TestRpc extends Connection implements CompressionApiInterface {
) {
super(endpoint, connectionConfig || 'confirmed');

// this.connection = new Connection(
// endpoint,
// connectionConfig || 'confirmed',
// );
this.compressionApiEndpoint = compressionApiEndpoint;
this.proverEndpoint = proverEndpoint;

Expand Down

0 comments on commit 6e83cee

Please sign in to comment.