opportunity-service 0.0.616 → 0.0.617

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.616",
3
+ "version": "0.0.617",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,20 +0,0 @@
1
-
2
-
3
- import { ethers } from "dvote-js/node_modules/ethers"
4
- import gwPool, { connectGateways } from "../src/api/voting/connect"
5
- import { registerEntity } from '../src/api/voting/entity'
6
-
7
- const ethNetworkId = 'mainnet'
8
- const environment = 'dev'
9
- const bootnodesContentUri = "https://bootnodes.vocdoni.net/gateways.dev.json"
10
-
11
- describe("Setting up a process", () => {
12
- it("Should connect gateways", async () => {
13
- expect(async () => await connectGateways(ethNetworkId, environment, bootnodesContentUri)).not.toThrow()
14
- const pool = await connectGateways(ethNetworkId, environment, bootnodesContentUri)
15
- console.log(pool)
16
- const wallet = ethers.Wallet.createRandom().connect(pool['provider'])
17
- const address = await wallet.getAddress()
18
- expect(() => registerEntity(pool, wallet, address)).not.toThrow()
19
- })
20
- })