import { ABIParameter , ContractMethodDescriptorClient } from '@neo-one/client-common' ; import { genFunctionParameters } from './genFunctionParameters' ; import { getEventName } from './getEventName' ; export interface GenForwardArgsFunctionOptions { readonly migration ? : boolean ; } export const genForwardArgsFunction = ( name , abi , parameters , options ) : string => `(${ genFunctionParameters ( { ... abi , constant : true } , parameters , options ) [ 0 ] }) => [ForwardOptions<${ getEventName ( name ) }>, ${ parameters . map ( ( ) => 'ForwardValue' ) . join ( ', ' ) }]` ;