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 +1 -1
- package/test/voting.test.ts +0 -20
package/package.json
CHANGED
package/test/voting.test.ts
DELETED
@@ -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
|
-
})
|