Skip to content

Commit

Permalink
fix: removed useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthera Node committed Jan 1, 2025
1 parent 96eb3e6 commit 477643c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 43 deletions.
4 changes: 0 additions & 4 deletions packages/plugin-arthera/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
Here’s the updated `README.md` tailored for the **Arthera plugin** while keeping relevant sections focused on its functionality:

---

# @elizaos/plugin-arthera

This plugin provides actions and providers for interacting with the **Arthera blockchain**.
Expand Down
10 changes: 1 addition & 9 deletions packages/plugin-arthera/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elizaos/plugin-arthera",
"version": "0.1.0-alpha.1",
"version": "0.1.7-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand All @@ -18,13 +18,5 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"description": "ElizaOS plugin for interacting with the Arthera blockchain network",
"keywords": ["arthera", "blockchain", "plugin", "ElizaOS", "web3", "evm"],
"author": "Your Name <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/your-repo/plugin-arthera.git"
}
}
34 changes: 4 additions & 30 deletions packages/plugin-arthera/src/providers/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,13 @@ import type {
} from "viem";
import * as viemChains from "viem/chains";
import { DeriveKeyProvider, TEEMode } from "@elizaos/plugin-tee";

const arthera: Chain = {
id: 10242,
name: "Arthera",
rpcUrls: {
default: {
http: ["https://rpc.arthera.net"],
},
},
blockExplorers: {
default: {
url: "https://explorer.arthera.net",
name: "Arthera Explorer",
},
},
nativeCurrency: {
name: "Arthera",
symbol: "AA",
decimals: 18,
},
};

import type { SupportedChain } from "../types";

export class WalletProvider {
private currentChain: SupportedChain = "mainnet";
private currentChain: SupportedChain = "arthera";
chains: Record<string, Chain> = {
mainnet: viemChains.mainnet,
arthera,
};
arthera: viemChains.arthera,
}
account!: PrivateKeyAccount; // Fixed initialization issue

constructor(
Expand Down Expand Up @@ -214,10 +191,7 @@ const genChainsFromRuntime = (
);
const chain = WalletProvider.genChainFromName(chainName, rpcUrl);
chains[chainName] = chain;
});

chains["arthera"] = arthera;

})
return chains;
};

Expand Down

0 comments on commit 477643c

Please sign in to comment.