1.1.0 • Published 8 months ago
@lidofinance/wallets-testing-nodes v1.1.0
Node Module
Module for using local ganache node with playwright helpers
Install
yarn add @lidofinance/wallets-testing-nodes
Usage
Import this module and provide rpcUrl
parameter via factory
@Module({
imports: [
NodeModule.forRoot(
(configService: ConfigService) => {
return { rpcUrl: configService.get('RPC_URL') };
},
[ConfigService],
[ConfigModule],
),
],
})
export class MyModule {}
// Usage
export class MyService {
constructor(private ethereumNodeService: EthereumNodeService) {}
async myMethod() {
await this.ethereumNodeService.startNode();
const state = await this.ethereumNodeService.state;
expect(state).toBeDefined()
await this.ethereumNodeService.stopNode();
}
}
1.1.0
8 months ago
1.1.0-alpha-mock-sp.1
8 months ago
1.1.0-alpha.1
9 months ago
1.1.0-alpha.2
9 months ago
1.1.0-alpha.5
8 months ago
1.1.0-alpha.3
9 months ago
1.1.0-alpha.4
9 months ago
1.0.1
1 year ago
1.0.0
2 years ago