src/protocolMessaging/index.js
// * returns a `Promise` which is resolved with an array of `intents`
returns a `Promise` which is resolved with an array of `intents`
returns a ` Promise ` which is resolved with an array of ` intents `
findIntents(makerTokens, takerTokens, role = 'maker') {
    if (!makerTokens || !takerTokens) {
      throw new Error('missing arguments makerTokens or takerTokens')
    }
    const payload = Router.makeRPC('findIntents', {
      makerTokens,
      takerTokens,
      role,
    })
    return new Promise((resolve, reject) => this.call(INDEXER_ADDRESS, payload, resolve, reject))
  }
findIntents ( makerTokens , takerTokens , role = 'maker' ) { if ( ! makerTokens || ! takerTokens ) { throw new Error ( 'missing arguments makerTokens or takerTokens' ) } const payload = Router . makeRPC ( 'findIntents' , { makerTokens , takerTokens , role , } ) return new Promise ( ( resolve , reject ) => this . call ( INDEXER_ADDRESS , payload , resolve , reject ) ) }
returns a `Promise` which is resolved with an array of `intents`
returns a ` Promise ` which is resolved with an array of ` intents `