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

123456789101112131415161718192021222324252627282930
  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. }
  20. export const defaultOptions = {
  21. debug: false,
  22. connectionTimeout: 100000,
  23. readFreshApi: true,
  24. readMaxRetry: 50,
  25. readRetryTimeout: 750
  26. }