diff --git a/packages/plugin-arthera/README.md b/packages/plugin-arthera/README.md index 659a103729..9e10fe0f55 100644 --- a/packages/plugin-arthera/README.md +++ b/packages/plugin-arthera/README.md @@ -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**. diff --git a/packages/plugin-arthera/package.json b/packages/plugin-arthera/package.json index 33b73b5949..19ccdd0f35 100644 --- a/packages/plugin-arthera/package.json +++ b/packages/plugin-arthera/package.json @@ -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", @@ -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 ", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/your-repo/plugin-arthera.git" } } diff --git a/packages/plugin-arthera/src/providers/wallet.ts b/packages/plugin-arthera/src/providers/wallet.ts index a592c5bb4a..93beaa5bb7 100644 --- a/packages/plugin-arthera/src/providers/wallet.ts +++ b/packages/plugin-arthera/src/providers/wallet.ts @@ -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 = { - mainnet: viemChains.mainnet, - arthera, - }; + arthera: viemChains.arthera, + } account!: PrivateKeyAccount; // Fixed initialization issue constructor( @@ -214,10 +191,7 @@ const genChainsFromRuntime = ( ); const chain = WalletProvider.genChainFromName(chainName, rpcUrl); chains[chainName] = chain; - }); - - chains["arthera"] = arthera; - + }) return chains; };