Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 6c3955c

Browse files
author
Victor Wiebe
committed
feat: 🎸 featureRegistry txParams export
1 parent c7e5510 commit 6c3955c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

‎.eslintrc.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ module.exports = {
2121
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
2222
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
2323
'@typescript-eslint/explicit-function-return-type': 'off',
24+
'@typescript-eslint/no-namespace': 'off',
25+
'@typescript-eslint/no-empty-interface': 'off',
2426
'jest/expect-expect': 'error',
2527
'jest/no-empty-title': 'warn',
2628
'jest/no-truthy-falsy': 'warn',

‎src/contract_wrappers/registries/feature_registry_wrapper.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ interface GetFeatureRegistryLogsAsyncParams extends GetLogs {
5353
>;
5454
}
5555

56+
export namespace FeatureRegistryTransactionParams {
57+
export interface GetFeatureStatus extends GetFeatureStatusParams {}
58+
export interface SetFeatureStatus extends SetFeatureStatusParams {}
59+
}
60+
5661
/**
5762
* @param nameKey is the key for the feature status mapping
5863
*/

‎src/index.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/* istanbul ignore file */
22
import * as conversionUtils from './utils/convert';
3+
import { FeatureRegistryTransactionParams} from './contract_wrappers/registries/feature_registry_wrapper';
4+
5+
export namespace TransactionParams {
6+
export import FeatureRegistry = FeatureRegistryTransactionParams;
7+
}
38

49
export { conversionUtils };
510
export { default as ContractWrapper } from './contract_wrappers/contract_wrapper';

0 commit comments

Comments
 (0)