Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
balqaasem committed Oct 25, 2021
1 parent 29fd417 commit d64b0a5
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 11 deletions.
77 changes: 77 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions .yarn/releases/yarn-2.4.1.cjs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ yarn

## Documentation

Most of the api of sevm.js is compatible with ethers.js. If you are not familiar with ethers.js, you can start by looking at its [documentation](https://docs.ethers.io/v5/single-page/)
Most of the api of setters.js is compatible with ethers.js. If you are not familiar with ethers.js, you can start by looking at its [documentation](https://docs.ethers.io/v5/single-page/)

### Provider

Expand All @@ -24,8 +24,8 @@ The Provider provides some api for interacting with nodes and is an instance of
apiOptions has the same parameters as when creating an instance of apiPromise for polkadot.js

```javascript
import { options } from "@setheum-js/setheum.js";
import { Provider } from "@setheum-js/sevm.js";
import { options } from "@setheum.js/api";
import { Provider } from "@setheum.js/setters";
import { WsProvider } from "@polkadot/api";

const evmprovider = new Provider(
Expand All @@ -47,7 +47,7 @@ The Wallet class inherits Signer and can sign transactions and messages using a
"privateKey".

```javascript
import { Wallet } from "@setheum-js/sevm.js";
import { Wallet } from "@setheum.js/setters";
const wallet = new Wallet("0xaa397267eaee48b2262a973fdcab384a758f39a3ad8708025cfb675bb9effc20", provider)
```

Expand All @@ -67,7 +67,7 @@ wallet.claimEvmAccounts()
```javascript
import { deployContract } from "ethereum-waffle";
import ERC20Abi from "../build/ERC20Abi.json";
import { TestAccountSigningKey, Provider, Signer } from "@setheum-js/sevm.js";
import { TestAccountSigningKey, Provider, Signer } from "@setheum.js/setters";
import { WsProvider } from "@polkadot/api";
import { createTestPairs } from "@polkadot/keyring/testingPairs";

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@setheum-js/sevm.js",
"name": "@setheum.js/setters",
"version": "0.1.0",
"main": "index.js",
"repository": "https://github.com/huang-lei1/sevm.js.git",
"repository": "https://github.com/setheum-js/setters.js.git",
"author": "Setheum Labs <[email protected]>",
"license": "Apache-2.0",
"scripts": {
Expand All @@ -15,7 +15,7 @@
"test:watch": "polkadot-dev-run-test --watch"
},
"peerDependencies": {
"@setheum-js/setheum.js": "^0.7.4-12"
"@setheum.js/api": "1.0.0"
},
"dependencies": {
"@open-web3/scanner": "^0.9.4-3",
Expand All @@ -24,7 +24,7 @@
"typescript": "^4.2.4"
},
"devDependencies": {
"@setheum-js/setheum.js": "^0.7.4-12",
"@setheum.js/api": "1.0.0",
"@babel/core": "^7.14.3",
"@babel/register": "^7.13.16",
"@babel/runtime": "^7.14.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Provider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { options } from '@setheum-js/setheum.js';
import { EvmAccountInfo } from '@setheum-js/types/interfaces';
import { options } from '@setheum.js/api';
import { EvmAccountInfo } from '@setheum.js/types/interfaces';
import type {
Block,
BlockTag,
Expand Down

0 comments on commit d64b0a5

Please sign in to comment.