mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-22 19:22:01 +00:00
improve tests
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.1.6-143
|
||||
* Aqua version: 0.1.6-SNAPSHOT
|
||||
*
|
||||
*/
|
||||
import { FluenceClient, PeerIdB58 } from '@fluencelabs/fluence';
|
||||
@ -12,11 +12,12 @@ import { RequestFlow } from '@fluencelabs/fluence/dist/internal/RequestFlow';
|
||||
|
||||
|
||||
|
||||
export async function viaArr(client: FluenceClient, node_id: string, viaAr: string[]): Promise<{external_addresses:string[]}> {
|
||||
export async function viaArr(client: FluenceClient, node_id: string, viaAr: string[], ttlMsGeneratedArgument?: number): Promise<{external_addresses:string[]}> {
|
||||
let request: RequestFlow;
|
||||
const promise = new Promise<{external_addresses:string[]}>((resolve, reject) => {
|
||||
request = new RequestFlowBuilder()
|
||||
.disableInjections()
|
||||
.withTTL(ttlMsGeneratedArgument || 5000)
|
||||
.withRawScript(
|
||||
`
|
||||
(xor
|
||||
@ -112,11 +113,12 @@ h.on('getDataSrv', 'viaAr', () => {return viaAr;});
|
||||
|
||||
|
||||
|
||||
export async function viaStream(client: FluenceClient, node_id: string, viaStr: string[]): Promise<{external_addresses:string[]}> {
|
||||
export async function viaStream(client: FluenceClient, node_id: string, viaStr: string[], ttlMsGeneratedArgument?: number): Promise<{external_addresses:string[]}> {
|
||||
let request: RequestFlow;
|
||||
const promise = new Promise<{external_addresses:string[]}>((resolve, reject) => {
|
||||
request = new RequestFlowBuilder()
|
||||
.disableInjections()
|
||||
.withTTL(ttlMsGeneratedArgument || 5000)
|
||||
.withRawScript(
|
||||
`
|
||||
(xor
|
||||
@ -220,11 +222,12 @@ h.on('getDataSrv', 'viaStr', () => {return viaStr;});
|
||||
|
||||
|
||||
|
||||
export async function viaOpt(client: FluenceClient, relay: string, node_id: string, viaOpt: string | null): Promise<{external_addresses:string[]}> {
|
||||
export async function viaOpt(client: FluenceClient, relay: string, node_id: string, viaOpt: string | null, ttlMsGeneratedArgument?: number): Promise<{external_addresses:string[]}> {
|
||||
let request: RequestFlow;
|
||||
const promise = new Promise<{external_addresses:string[]}>((resolve, reject) => {
|
||||
request = new RequestFlowBuilder()
|
||||
.disableInjections()
|
||||
.withTTL(ttlMsGeneratedArgument || 5000)
|
||||
.withRawScript(
|
||||
`
|
||||
(xor
|
||||
|
Reference in New Issue
Block a user