"use strict" ; import { DefaultSchemePermissions , Hash , SchemePermissions } from "../../commonTypes" ; import { ContractWrapperBase } from "../../contractWrapperBase" ; import { ContractWrapperFactory } from "../../contractWrapperFactory" ; import { ArcTransactionDataResult , IContractWrapperFactory } from "../../iContractWrapperBase" ; import { TxGeneratingFunctionOptions } from "../../transactionService" ; import { Web3EventService } from "../../web3EventService" ; import { AbsoluteVoteParams } from "../../wrappers/absoluteVote" ; export class TestWrapperWrapper extends ContractWrapperBase { public name : string = "AbsoluteVote" ; public friendlyName : string = "Test Wrapper" ; public factory : IContractWrapperFactory < TestWrapperWrapper > = TestWrapperFactory ; public foo ( ) { return "bar" ; } public aMethod ( ) { return "abc" ; } public setParameters ( params ) { params = Object . assign ( { } , { ownerVote : true , votePerc : 50 , } , params ) ; return super . _setParameters ( "AbsoluteVote.setParameters" , params . txEventContext , params . votePerc , params . ownerVote ) ; } public getDefaultPermissions ( ) { return DefaultSchemePermissions . MinimumPermissions as number ; } } export const TestWrapperFactory = new ContractWrapperFactory ( "AbsoluteVote" , TestWrapperWrapper , new Web3EventService ( ) ) ;