export const WaitForVegaPayloadDefinition = [
  {
    payloadKey: 'IS_WAITFORVEGA_METHOD_CALLED',
    payloadDescription: 'Indicate if the method waitForVega of public API WaitForVegaHandler is called',
    /**
     * Indicate whether the method is collected when the method been called .
     *
     * @param {string} scope - The class name of public api
     * @param {string} methodName - The method name called by the public api
     * @returns {boolean} A boolean value
     */
    canAccept: (scope, methodName) => scope === 'WaitForVegaHandler' && methodName === 'handle',
    /**
     * The function checks if the method name is waitForVega.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
];
