Skip to content

Commit fecfd80

Browse files
MSNTCSsgkim126
authored andcommitted
Remove rpc from sdk folder
The removed rpc was the rpc that is being used in codechian-sdk. We replace it with foundry-rpc-js
1 parent 9c4323b commit fecfd80

File tree

11 files changed

+1
-3567
lines changed

11 files changed

+1
-3567
lines changed

test/src/helper/spawn.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ export default class CodeChain {
199199
this._rpc = new RPC(`http://localhost:${this.rpcPort}`, {
200200
devel: true
201201
});
202-
this._testFramework = new SDK({
203-
server: `http://localhost:${this.rpcPort}`
204-
});
202+
this._testFramework = new SDK({});
205203
this._chain = chain || "solo";
206204
this.argv = argv || [];
207205
this.env = env || {};

test/src/sdk/src/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Core } from "./core";
22
import { NetworkId } from "./core/types";
33
import { Key, KeyStoreType } from "./key";
4-
import { Rpc } from "./rpc";
54
import {
65
blake128,
76
blake128WithKey,
@@ -19,7 +18,6 @@ import {
1918
} from "./utils";
2019

2120
class SDK {
22-
public static Rpc = Rpc;
2321
public static Core = Core;
2422
public static Key = Key;
2523
public static util = {
@@ -39,7 +37,6 @@ class SDK {
3937
};
4038

4139
public static SDK = SDK;
42-
public rpc: Rpc;
4340
public core: Core;
4441
public key: Key;
4542
public util = SDK.util;
@@ -51,25 +48,14 @@ class SDK {
5148
* @param params.networkId The network id of CodeChain. The default value is "tc" (testnet)
5249
*/
5350
constructor(params: {
54-
server: string;
5551
keyStoreType?: KeyStoreType;
5652
networkId?: NetworkId;
57-
options?: {
58-
transactionSigner?: string;
59-
fallbackServers?: string[];
60-
};
6153
}) {
6254
const {
63-
server,
6455
keyStoreType = "local",
6556
networkId = "tc",
66-
options
6757
} = params;
6858

69-
this.rpc = new Rpc({
70-
server,
71-
options
72-
});
7359
this.core = new Core({ networkId });
7460
this.key = new Key({
7561
networkId,

test/src/sdk/src/rpc/__test__/invalid-argument.spec.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)