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

Commit 0bf3367

Browse files
author
Victor Wiebe
committed
feat: 🎸 add registries transactionParams to export in index.ts
1 parent 06f7ceb commit 0bf3367

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

‎src/contract_wrappers/registries/module_registry_wrapper.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ interface GetModuleRegistryLogsAsyncParams extends GetLogs {
130130
>;
131131
}
132132

133+
export namespace ModuleRegistryTransactionParams {
134+
export interface ModuleFactory extends ModuleFactoryParams {}
135+
export interface ReclaimERC20 extends ReclaimERC20Params {}
136+
export interface TransferOwnership extends TransferOwnershipParams {}
137+
}
138+
133139
interface ModuleFactoryParams extends TxParams {
134140
moduleFactory: string;
135141
}

‎src/contract_wrappers/registries/polymath_registry_wrapper.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ interface GetPolymathRegistryLogsAsyncParams extends GetLogs {
5151
>;
5252
}
5353

54+
export namespace PolymathRegistryTransactionParams {
55+
export interface ChangeAddress extends ChangeAddressParams {}
56+
}
57+
5458
/**
5559
* @param contractName is the key for the contract address mapping
5660
*/

‎src/contract_wrappers/registries/security_token_registry_wrapper.ts‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,27 @@ interface GetISecurityTokenRegistryLogsAsyncParams extends GetLogs {
247247
(params: GetUnpauseLogsAsyncParams): Promise<LogWithDecodedArgs<ISecurityTokenRegistryUnpauseEventArgs>[]>;
248248
}
249249

250+
export namespace SecurityTokenRegistryTransactionParams {
251+
export interface RegisterTicker extends RegisterTickerParams {}
252+
export interface TransferTickerOwnership extends TransferTickerOwnershipParams {}
253+
export interface GenerateSecurityToken extends GenerateSecurityTokenParams {}
254+
export interface ModifyTicker extends ModifyTickerParams {}
255+
export interface RemoveTicker extends RemoveTickerParams {}
256+
export interface ChangeExpiryLimit extends ChangeExpiryLimitParams {}
257+
export interface NewSecurityToken extends NewSecurityTokenParams {}
258+
export interface ChangeFeesAmountAndCurrency extends ChangeFeesAmountAndCurrencyParams {}
259+
export interface RefreshSecurityToken extends RefreshSecurityTokenParams {}
260+
export interface ModifyExistingSecurityToken extends ModifyExistingSecurityTokenParams {}
261+
export interface ModifySecurityToken extends ModifySecurityTokenParams {}
262+
export interface TransferOwnership extends TransferOwnershipParams {}
263+
export interface ChangeFee extends ChangeFeeParams {}
264+
export interface ReclaimERC20 extends ReclaimERC20Params {}
265+
export interface PackageVersion extends PackageVersionParams {}
266+
export interface ModifyExistingTicker extends ModifyExistingTickerParams {}
267+
export interface SetProtocolFactory extends SetProtocolFactoryParams {}
268+
export interface RegisterNewTicker extends RegisterNewTickerParams {}
269+
}
270+
250271
/**
251272
* @param securityToken is the address of the security token.
252273
*/

‎src/index.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
/* istanbul ignore file */
22
import * as conversionUtils from './utils/convert';
33
import { FeatureRegistryTransactionParams} from './contract_wrappers/registries/feature_registry_wrapper';
4+
import {ModuleRegistryTransactionParams} from './contract_wrappers/registries/module_registry_wrapper';
5+
import {PolymathRegistryTransactionParams} from './contract_wrappers/registries/polymath_registry_wrapper';
6+
import {SecurityTokenRegistryTransactionParams} from './contract_wrappers/registries/security_token_registry_wrapper';
47

58
export namespace TransactionParams {
69
export import FeatureRegistry = FeatureRegistryTransactionParams;
10+
export import ModuleRegistry = ModuleRegistryTransactionParams;
11+
export import PolymathRegistry = PolymathRegistryTransactionParams;
12+
export import SecurityTokenRegistry = SecurityTokenRegistryTransactionParams;
713
}
814

915
export { conversionUtils };

0 commit comments

Comments
 (0)