index.d.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import * as accounts from './accounts.js';
  2. import * as address from './address.js';
  3. import * as base58 from './base58.js';
  4. import * as bytes from './bytes.js';
  5. import * as crypto from './crypto.js';
  6. import * as code from './code.js';
  7. import * as abi from './abi.js';
  8. import * as message from './message.js';
  9. import * as ethersUtils from './ethersUtils.js';
  10. import { TypedDataEncoder as _TypedDataEncoder } from './typedData.js';
  11. import * as transaction from './transaction.js';
  12. declare const utils: {
  13. address: typeof address;
  14. code: typeof code;
  15. accounts: typeof accounts;
  16. base58: typeof base58;
  17. bytes: typeof bytes;
  18. crypto: typeof crypto;
  19. abi: typeof abi;
  20. message: typeof message;
  21. _TypedDataEncoder: typeof _TypedDataEncoder;
  22. transaction: typeof transaction;
  23. ethersUtils: typeof ethersUtils;
  24. isValidURL(url: string): boolean;
  25. isObject(obj: unknown): obj is Record<number | string | symbol, unknown>;
  26. isArray(array: unknown): array is unknown[];
  27. isJson(string: string): boolean;
  28. isBoolean(bool: unknown): bool is boolean;
  29. isBigNumber(number: unknown): number is import("../types/TronWeb.js").IBigNumber;
  30. isString(string: unknown): string is string;
  31. isFunction(obj: unknown): obj is (...args: unknown[]) => unknown;
  32. isHex(string: string): string is string;
  33. isInteger(number: unknown): number is number;
  34. hasProperty(obj: object, property: string | number | symbol): boolean;
  35. hasProperties(obj: object, ...properties: (string | number | symbol)[]): boolean | 0;
  36. mapEvent(event: import("../types/UtilsTypes.js").EventQueryDataType): import("../types/UtilsTypes.js").MapEventQueryDataType;
  37. parseEvent(event: import("../types/UtilsTypes.js").EventQueryDataType, { inputs: abi }: {
  38. inputs: ReadonlyArray<import("../types/ABI.js").AbiParamsCommon>;
  39. }): import("../types/UtilsTypes.js").EventQueryDataType;
  40. padLeft(input: string | number, padding: string, amount: number): string;
  41. isNotNullOrUndefined(val: unknown): boolean;
  42. sleep(millis?: number): Promise<any>;
  43. };
  44. export default utils;
  45. export * from './accounts.js';
  46. export * from './address.js';
  47. export * from './base58.js';
  48. export * from './bytes.js';
  49. export * from './crypto.js';
  50. export * from './code.js';
  51. export * from './abi.js';
  52. export * from './message.js';
  53. export * from './ethersUtils.js';
  54. export * from './typedData.js';
  55. export * from './transaction.js';
  56. export * from './validations.js';