1.2.1 • Published 7 months ago
@lidofinance/wallets-testing-nodes v1.2.1
Node Module
Module for using local ganache node with playwright helpers
Install
yarn add @lidofinance/wallets-testing-nodesUsage
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.2.0
8 months ago
1.1.1
9 months ago
1.1.1-alpha-sec.1
10 months ago
1.1.4
9 months ago
1.1.3
9 months ago
1.2.1
7 months ago
1.1.2
9 months ago
1.1.3-alpha-config.1
9 months ago
1.1.5-alpha-move-br.1
8 months ago
1.1.2-alpha-logger.1
9 months ago
1.1.0
1 year ago
1.1.0-alpha-mock-sp.1
1 year ago
1.1.0-alpha.1
1 year ago
1.1.0-alpha.2
1 year ago
1.1.0-alpha.5
1 year ago
1.1.0-alpha.3
1 year ago
1.1.0-alpha.4
1 year ago
1.0.1
2 years ago
1.0.0
2 years ago