index.d.ts 2.7 KB

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