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

Commit 6f7d3ac

Browse files
author
Victor Wiebe
committed
feat: 🎸 dividendCheckpoint and generalPM txparams
1 parent 0bf3367 commit 6f7d3ac

File tree

5 files changed

+44
-4
lines changed

5 files changed

+44
-4
lines changed

‎src/contract_wrappers/modules/checkpoint/dividend_checkpoint_wrapper.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ import {
1414

1515
const EXCLUDED_ADDRESS_LIMIT = 150;
1616

17+
export namespace DividendCheckpointTransactionParams {
18+
export interface ChangeWallet extends ChangeWalletParams {}
19+
export interface SetDefaultExcluded extends SetDefaultExcludedParams {}
20+
export interface SetWithholding extends SetWithholdingParams {}
21+
export interface SetWithholdingFixed extends SetWithholdingFixedParams {}
22+
export interface PushDividendPaymentToAddresses extends PushDividendPaymentToAddressesParams {}
23+
export interface PushDividendPayment extends PushDividendPaymentParams {}
24+
export interface DividendIndexTx extends DividendIndexTxParams {}
25+
export interface UpdateDividendDates extends UpdateDividendDatesParams {}
26+
}
27+
1728
interface DividendIndexParams {
1829
dividendIndex: number;
1930
}

‎src/contract_wrappers/modules/checkpoint/erc20_dividend_checkpoint_wrapper.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ interface GetERC20DividendCheckpointLogsAsyncParams extends GetLogs {
126126
>;
127127
}
128128

129+
export namespace ERC20DividendCheckpointTransactionParams {
130+
export interface CreateDividend extends CreateDividendParams {}
131+
export interface CreateDividendWithCheckpoint extends CreateDividendWithCheckpointParams {}
132+
export interface CreateDividendWithExclusions extends CreateDividendWithExclusionsParams {}
133+
export interface CreateDividendWithCheckpointAndExclusions extends CreateDividendWithCheckpointAndExclusionsParams {}
134+
}
135+
129136
interface DividendIndexParams {
130137
dividendIndex: number;
131138
}

‎src/contract_wrappers/modules/checkpoint/ether_dividend_checkpoint_wrapper.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ interface GetEtherDividendCheckpointLogsAsyncParams extends GetLogs {
189189
(params: GetUnpauseLogsAsyncParams): Promise<LogWithDecodedArgs<EtherDividendCheckpointUnpauseEventArgs>[]>;
190190
}
191191

192+
export namespace EtherDividendCheckpointTransactionParams {
193+
export interface CreateDividend extends CreateDividendParams {}
194+
export interface CreateDividendWithCheckpoint extends CreateDividendWithCheckpointParams {}
195+
export interface CreateDividendWithExclusions extends CreateDividendWithExclusionsParams {}
196+
export interface CreateDividendWithCheckpointAndExclusions extends CreateDividendWithCheckpointAndExclusionsParams {}
197+
}
198+
192199
interface CreateDividendParams extends TxParams {
193200
maturity: Date;
194201
expiry: Date;

‎src/contract_wrappers/modules/permission_manager/general_permission_manager_wrapper.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ interface GetGeneralPermissionManagerLogsAsyncParams extends GetLogs {
5858
(params: GetAddDelegateLogsAsyncParams): Promise<LogWithDecodedArgs<GeneralPermissionManagerAddDelegateEventArgs>[]>;
5959
}
6060

61+
export namespace GeneralPermissionManagerTransactionParams {
62+
export interface DelegateTx extends DelegateTxParams {}
63+
export interface AddDelegate extends AddDelegateParams {}
64+
export interface ChangePermission extends ChangePermissionParams {}
65+
export interface ChangePermissionMulti extends ChangePermissionMultiParams {}
66+
}
67+
6168
interface PermParams {
6269
module: string;
6370
delegate: string;

‎src/index.ts‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
/* istanbul ignore file */
22
import * as conversionUtils from './utils/convert';
3-
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';
3+
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';
7+
import { DividendCheckpointTransactionParams } from './contract_wrappers/modules/checkpoint/dividend_checkpoint_wrapper';
8+
import { ERC20DividendCheckpointTransactionParams } from './contract_wrappers/modules/checkpoint/erc20_dividend_checkpoint_wrapper';
9+
import { EtherDividendCheckpointTransactionParams } from './contract_wrappers/modules/checkpoint/ether_dividend_checkpoint_wrapper';
10+
import {GeneralPermissionManagerTransactionParams} from './contract_wrappers/modules/permission_manager/general_permission_manager_wrapper';
711

812
export namespace TransactionParams {
913
export import FeatureRegistry = FeatureRegistryTransactionParams;
1014
export import ModuleRegistry = ModuleRegistryTransactionParams;
1115
export import PolymathRegistry = PolymathRegistryTransactionParams;
1216
export import SecurityTokenRegistry = SecurityTokenRegistryTransactionParams;
17+
export import DividendCheckpoint = DividendCheckpointTransactionParams;
18+
export import ERC20DividendCheckpoint = ERC20DividendCheckpointTransactionParams;
19+
export import EtherDividendCheckpoint = EtherDividendCheckpointTransactionParams;
20+
export import GeneralPermissionManagerTransaction = GeneralPermissionManagerTransactionParams;
1321
}
1422

1523
export { conversionUtils };

0 commit comments

Comments
 (0)