Variable permitStoreConst

permitStore: {
    getActivePermit: ((account) => undefined | PermitV2);
    getActivePermitHash: ((account) => undefined | string);
    getPermit: ((account, hash) => undefined | PermitV2);
    getPermits: ((account) => Record<string, PermitV2>);
    removeActivePermitHash: ((account) => void);
    removePermit: ((account, hash) => void);
    setActivePermitHash: ((account, hash) => void);
    setPermit: ((account, permitV2) => void);
    store: Write<StoreApi<PermitsStore>, StorePersist<PermitsStore, {
        activePermitHash: {};
        permits: {};
    }>>;
} = ...

Type declaration

  • getActivePermit: ((account) => undefined | PermitV2)
      • (account): undefined | PermitV2
      • Parameters

        • account: undefined | string

        Returns undefined | PermitV2

  • getActivePermitHash: ((account) => undefined | string)
      • (account): undefined | string
      • Parameters

        • account: undefined | string

        Returns undefined | string

  • getPermit: ((account, hash) => undefined | PermitV2)
      • (account, hash): undefined | PermitV2
      • Parameters

        • account: undefined | string
        • hash: undefined | string

        Returns undefined | PermitV2

  • getPermits: ((account) => Record<string, PermitV2>)
      • (account): Record<string, PermitV2>
      • Parameters

        • account: undefined | string

        Returns Record<string, PermitV2>

  • removeActivePermitHash: ((account) => void)
      • (account): void
      • Parameters

        • account: string

        Returns void

  • removePermit: ((account, hash) => void)
      • (account, hash): void
      • Parameters

        • account: string
        • hash: string

        Returns void

  • setActivePermitHash: ((account, hash) => void)
      • (account, hash): void
      • Parameters

        • account: string
        • hash: string

        Returns void

  • setPermit: ((account, permitV2) => void)
      • (account, permitV2): void
      • Parameters

        Returns void

  • store: Write<StoreApi<PermitsStore>, StorePersist<PermitsStore, {
        activePermitHash: {};
        permits: {};
    }>>