@poolzfinance/api4 1.16.5 → 1.16.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -56
- package/dist/endpoints/dispenserTokenReserves.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.modern.js +10 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/utils/storage.d.ts +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the storage key for an account's auth token
|
|
3
|
+
*/
|
|
4
|
+
export declare const getStorageKey: (account: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Get the auth token for an account
|
|
7
|
+
*/
|
|
8
|
+
export declare const getAuthToken: (account: string | null | undefined) => string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Set the auth token for an account with TTL
|
|
11
|
+
* @param account - The account identifier
|
|
12
|
+
* @param token - The auth token to store
|
|
13
|
+
* @param ttlSeconds - Time to live in seconds
|
|
14
|
+
*/
|
|
15
|
+
export declare const setAuthToken: (account: string, token: string, ttlSeconds: number) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Remove the auth token for an account
|
|
18
|
+
*/
|
|
19
|
+
export declare const removeAuthToken: (account: string) => void;
|