aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/deploy/src/utils/encoder.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/deploy/src/utils/encoder.ts')
-rw-r--r--packages/contracts/deploy/src/utils/encoder.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/packages/contracts/deploy/src/utils/encoder.ts b/packages/contracts/deploy/src/utils/encoder.ts
deleted file mode 100644
index d5f807774..000000000
--- a/packages/contracts/deploy/src/utils/encoder.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import * as _ from 'lodash';
-import * as Web3 from 'web3';
-import * as web3Abi from 'web3-eth-abi';
-
-import { AbiType } from './types';
-
-export const encoder = {
- encodeConstructorArgsFromAbi(args: any[], abi: Web3.ContractAbi): string {
- const constructorTypes: string[] = [];
- _.each(abi, (element: Web3.AbiDefinition) => {
- if (element.type === AbiType.Constructor) {
- _.each(element.inputs, (input: Web3.FunctionParameter) => {
- constructorTypes.push(input.type);
- });
- }
- });
- const encodedParameters = web3Abi.encodeParameters(constructorTypes, args);
- return encodedParameters;
- },
-};