You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

types.ts 782B

12345678910111213141516171819202122232425262728293031323334
  1. export type Memo = {
  2. type?: string
  3. format?: string
  4. data?: string
  5. }
  6. export type Wallet = {secret: string, address:string }
  7. export type Signature = {signature: string, signer: PublicKey}
  8. export type Address = string
  9. export type Secret = string
  10. export type PublicKey = string
  11. export type Amount = number
  12. export type TxHash = string
  13. export type Options = {
  14. debug?: boolean
  15. connectionTimeout?: number
  16. readMaxRetry?: number
  17. readRetryTimeout?: number,
  18. readFreshApi?:boolean,
  19. writeMaxRetry?: number
  20. writeRetryTimeout?: number
  21. }
  22. export const defaultOptions: Options = {
  23. debug: false,
  24. connectionTimeout: 100000,
  25. readFreshApi: true,
  26. readMaxRetry: 50,
  27. readRetryTimeout: 750,
  28. writeMaxRetry: 10,
  29. writeRetryTimeout: 10000
  30. }