@dfinity/oisy-wallet-signer
Version:
A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.
13 lines (12 loc) • 628 B
TypeScript
import type { HttpAgentRequestTransformFn } from '@icp-sdk/core/agent';
/**
* A custom transform function that processes the HTTP agent request.
*
* This transform function is intended to be used with the HttpAgent. It caches the expiry
* time of requests based on a hash of the request data and checks whether the cache is expired.
* If the cache is expired, it throws an error. If the cache is not expired, it reuses the cached
* expiry value.
*
* @returns {HttpAgentRequestTransformFn} The transform function that processes the request.
*/
export declare const customAddTransform: () => HttpAgentRequestTransformFn;