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 635B

1234567891011121314151617181920212223242526272829
  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. }
  19. export const defaultOptions = {
  20. debug: false,
  21. connectionTimeout: 100000,
  22. readFreshApi: true,
  23. readMaxRetry: -1,
  24. readRetryTimeout: 1000
  25. }