Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
feat: support multiple versions
Browse files Browse the repository at this point in the history
BREAKING CHANGE: abi wrappers are now exported per version and with version names
  • Loading branch information
monitz87 committed Sep 6, 2019
1 parent bc2b919 commit 6ca6721
Show file tree
Hide file tree
Showing 503 changed files with 128,636 additions and 5,797 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BaseContract } from '@0x/base-contract';
import { BlockParamLiteral, CallData, ContractAbi, DecodedLogArgs, TxData, SupportedProvider, AbiDefinition } from 'ethereum-types';
import { BigNumber } from '@0x/utils';
import { PolyResponse } from '../polyResponse';
export declare type BlacklistTransferManagerEventArgs = BlacklistTransferManagerAddBlacklistTypeEventArgs | BlacklistTransferManagerModifyBlacklistTypeEventArgs | BlacklistTransferManagerDeleteBlacklistTypeEventArgs | BlacklistTransferManagerAddInvestorToBlacklistEventArgs | BlacklistTransferManagerDeleteInvestorFromBlacklistEventArgs | BlacklistTransferManagerPauseEventArgs | BlacklistTransferManagerUnpauseEventArgs;
export declare enum BlacklistTransferManagerEvents {
import { PolyResponse } from '../../PolyResponse';
export declare type BlacklistTransferManagerEventArgs_3_0_0 = BlacklistTransferManagerAddBlacklistTypeEventArgs_3_0_0 | BlacklistTransferManagerModifyBlacklistTypeEventArgs_3_0_0 | BlacklistTransferManagerDeleteBlacklistTypeEventArgs_3_0_0 | BlacklistTransferManagerAddInvestorToBlacklistEventArgs_3_0_0 | BlacklistTransferManagerDeleteInvestorFromBlacklistEventArgs_3_0_0 | BlacklistTransferManagerPauseEventArgs_3_0_0 | BlacklistTransferManagerUnpauseEventArgs_3_0_0;
export declare enum BlacklistTransferManagerEvents_3_0_0 {
AddBlacklistType = "AddBlacklistType",
ModifyBlacklistType = "ModifyBlacklistType",
DeleteBlacklistType = "DeleteBlacklistType",
Expand All @@ -12,36 +12,36 @@ export declare enum BlacklistTransferManagerEvents {
Pause = "Pause",
Unpause = "Unpause"
}
export interface BlacklistTransferManagerAddBlacklistTypeEventArgs extends DecodedLogArgs {
export interface BlacklistTransferManagerAddBlacklistTypeEventArgs_3_0_0 extends DecodedLogArgs {
_startTime: BigNumber;
_endTime: BigNumber;
_blacklistName: string;
_repeatPeriodTime: BigNumber;
}
export interface BlacklistTransferManagerModifyBlacklistTypeEventArgs extends DecodedLogArgs {
export interface BlacklistTransferManagerModifyBlacklistTypeEventArgs_3_0_0 extends DecodedLogArgs {
_startTime: BigNumber;
_endTime: BigNumber;
_blacklistName: string;
_repeatPeriodTime: BigNumber;
}
export interface BlacklistTransferManagerDeleteBlacklistTypeEventArgs extends DecodedLogArgs {
export interface BlacklistTransferManagerDeleteBlacklistTypeEventArgs_3_0_0 extends DecodedLogArgs {
_blacklistName: string;
}
export interface BlacklistTransferManagerAddInvestorToBlacklistEventArgs extends DecodedLogArgs {
export interface BlacklistTransferManagerAddInvestorToBlacklistEventArgs_3_0_0 extends DecodedLogArgs {
_investor: string;
_blacklistName: string;
}
export interface BlacklistTransferManagerDeleteInvestorFromBlacklistEventArgs extends DecodedLogArgs {
export interface BlacklistTransferManagerDeleteInvestorFromBlacklistEventArgs_3_0_0 extends DecodedLogArgs {
_investor: string;
_blacklistName: string;
}
export interface BlacklistTransferManagerPauseEventArgs extends DecodedLogArgs {
export interface BlacklistTransferManagerPauseEventArgs_3_0_0 extends DecodedLogArgs {
account: string;
}
export interface BlacklistTransferManagerUnpauseEventArgs extends DecodedLogArgs {
export interface BlacklistTransferManagerUnpauseEventArgs_3_0_0 extends DecodedLogArgs {
account: string;
}
export declare class BlacklistTransferManagerContract extends BaseContract {
export declare class BlacklistTransferManagerContract_3_0_0 extends BaseContract {
private _defaultEstimateGasFactor;
reclaimETH: {
sendTransactionAsync(txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
Expand Down Expand Up @@ -225,14 +225,14 @@ export declare class BlacklistTransferManagerContract extends BaseContract {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string[]>;
getABIEncodedTransactionData(): string;
};
static deployAsync(bytecode: string, abi: ContractAbi, supportedProvider: SupportedProvider, txDefaults: Partial<TxData>, _securityToken: string, _polyAddress: string): Promise<BlacklistTransferManagerContract>;
static deployAsync(bytecode: string, abi: ContractAbi, supportedProvider: SupportedProvider, txDefaults: Partial<TxData>, _securityToken: string, _polyAddress: string): Promise<BlacklistTransferManagerContract_3_0_0>;
/**
* @returns The contract ABI
*/
* @returns The contract ABI
*/
static ABI(): ContractAbi;
/**
* To add ABIs to the decoder to decode every event log emmited
*/
* To add ABIs to the decoder to decode every event log emmited
*/
addABItoDecoder(abiArray: AbiDefinition[], contractName?: string): void;
constructor(address: string, supportedProvider: SupportedProvider, txDefaults?: Partial<TxData>, defaultEstimateGasFactor?: number);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

192 changes: 192 additions & 0 deletions lib/src/generated-wrappers/3.0.0/capped_s_t_o.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
import { BaseContract } from '@0x/base-contract';
import { BlockParamLiteral, CallData, ContractAbi, DecodedLogArgs, TxData, SupportedProvider, AbiDefinition } from 'ethereum-types';
import { BigNumber } from '@0x/utils';
import { PolyResponse } from '../../PolyResponse';
export declare type CappedSTOEventArgs_3_0_0 = CappedSTOTokenPurchaseEventArgs_3_0_0 | CappedSTOSetAllowBeneficialInvestmentsEventArgs_3_0_0 | CappedSTOPauseEventArgs_3_0_0 | CappedSTOUnpauseEventArgs_3_0_0 | CappedSTOSetFundRaiseTypesEventArgs_3_0_0;
export declare enum CappedSTOEvents_3_0_0 {
TokenPurchase = "TokenPurchase",
SetAllowBeneficialInvestments = "SetAllowBeneficialInvestments",
Pause = "Pause",
Unpause = "Unpause",
SetFundRaiseTypes = "SetFundRaiseTypes"
}
export interface CappedSTOTokenPurchaseEventArgs_3_0_0 extends DecodedLogArgs {
purchaser: string;
beneficiary: string;
value: BigNumber;
amount: BigNumber;
}
export interface CappedSTOSetAllowBeneficialInvestmentsEventArgs_3_0_0 extends DecodedLogArgs {
_allowed: boolean;
}
export interface CappedSTOPauseEventArgs_3_0_0 extends DecodedLogArgs {
account: string;
}
export interface CappedSTOUnpauseEventArgs_3_0_0 extends DecodedLogArgs {
account: string;
}
export interface CappedSTOSetFundRaiseTypesEventArgs_3_0_0 extends DecodedLogArgs {
_fundRaiseTypes: BigNumber[];
}
export declare class CappedSTOContract_3_0_0 extends BaseContract {
private _defaultEstimateGasFactor;
reclaimETH: {
sendTransactionAsync(txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(): string;
};
ADMIN: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
rate: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
allowBeneficialInvestments: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<boolean>;
getABIEncodedTransactionData(): string;
};
endTime: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
cap: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
unpause: {
sendTransactionAsync(txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(): string;
};
wallet: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
paused: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<boolean>;
getABIEncodedTransactionData(): string;
};
totalTokensSold: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
investors: {
callAsync(index_0: string, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(index_0: string): string;
};
polyToken: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
startTime: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
pause: {
sendTransactionAsync(txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(): string;
};
reclaimERC20: {
sendTransactionAsync(_tokenContract: string, txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(_tokenContract: string, factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(_tokenContract: string, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(_tokenContract: string): string;
};
OPERATOR: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
getRaised: {
callAsync(_fundRaiseType: number | BigNumber, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(_fundRaiseType: number | BigNumber): string;
};
pausedTime: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
securityToken: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
factory: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
fundsRaised: {
callAsync(index_0: number | BigNumber, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(index_0: number | BigNumber): string;
};
fundRaiseTypes: {
callAsync(index_0: number | BigNumber, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<boolean>;
getABIEncodedTransactionData(index_0: number | BigNumber): string;
};
investorCount: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
getDataStore: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
configure: {
sendTransactionAsync(_startTime: BigNumber, _endTime: BigNumber, _cap: BigNumber, _rate: BigNumber, _fundRaiseTypes: (number | BigNumber)[], _fundsReceiver: string, txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(_startTime: BigNumber, _endTime: BigNumber, _cap: BigNumber, _rate: BigNumber, _fundRaiseTypes: (number | BigNumber)[], _fundsReceiver: string, factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(_startTime: BigNumber, _endTime: BigNumber, _cap: BigNumber, _rate: BigNumber, _fundRaiseTypes: (number | BigNumber)[], _fundsReceiver: string, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(_startTime: BigNumber, _endTime: BigNumber, _cap: BigNumber, _rate: BigNumber, _fundRaiseTypes: (number | BigNumber)[], _fundsReceiver: string): string;
};
getInitFunction: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string>;
getABIEncodedTransactionData(): string;
};
changeAllowBeneficialInvestments: {
sendTransactionAsync(_allowBeneficialInvestments: boolean, txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(_allowBeneficialInvestments: boolean, factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(_allowBeneficialInvestments: boolean, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(_allowBeneficialInvestments: boolean): string;
};
buyTokens: {
sendTransactionAsync(_beneficiary: string, txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(_beneficiary: string, factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(_beneficiary: string, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(_beneficiary: string): string;
};
buyTokensWithPoly: {
sendTransactionAsync(_investedPOLY: BigNumber, txData?: Partial<TxData> | undefined, estimateGasFactor?: number | undefined): Promise<PolyResponse>;
estimateGasAsync(_investedPOLY: BigNumber, factor?: number | undefined, txData?: Partial<TxData> | undefined): Promise<number>;
callAsync(_investedPOLY: BigNumber, callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<void>;
getABIEncodedTransactionData(_investedPOLY: BigNumber): string;
};
capReached: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<boolean>;
getABIEncodedTransactionData(): string;
};
getTokensSold: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<BigNumber>;
getABIEncodedTransactionData(): string;
};
getPermissions: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<string[]>;
getABIEncodedTransactionData(): string;
};
getSTODetails: {
callAsync(callData?: Partial<CallData>, defaultBlock?: number | BlockParamLiteral | undefined): Promise<[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, boolean]>;
getABIEncodedTransactionData(): string;
};
static deployAsync(bytecode: string, abi: ContractAbi, supportedProvider: SupportedProvider, txDefaults: Partial<TxData>, _securityToken: string, _polyToken: string): Promise<CappedSTOContract_3_0_0>;
/**
* @returns The contract ABI
*/
static ABI(): ContractAbi;
/**
* To add ABIs to the decoder to decode every event log emmited
*/
addABItoDecoder(abiArray: AbiDefinition[], contractName?: string): void;
constructor(address: string, supportedProvider: SupportedProvider, txDefaults?: Partial<TxData>, defaultEstimateGasFactor?: number);
}
//# sourceMappingURL=capped_s_t_o.d.ts.map
Loading

0 comments on commit 6ca6721

Please sign in to comment.