@colony/colony-js-contract-client
Version:
Method-like interface for Smart Contracts
29 lines (25 loc) • 517 B
Flow
/* @flow */
export type ParamTypes =
| '[address]'
| '[bigNumber]'
| '[hexString]'
| '[number]'
| '[string]'
| 'address'
| 'anyAddress'
| 'bigNumber'
| 'boolean'
| 'bytes32String'
| 'date'
| 'hexString'
| 'ipfsHash'
| 'number'
| 'string';
// [param name, param type]
export type Param = [string, ParamTypes];
export type Params = Array<Param>;
export type ParamTypeDef = {
validate: (value: any) => boolean,
convertOutput: (value: any) => *,
convertInput: (value: any) => *,
};