evx-sdk
Version:
The Evx SDK is a developer toolkit designed to simplify interaction with the Evx decentralized liquidity protocol. It provides an abstraction layer over the smart contracts, allowing developers to easily build applications, integrate liquidity pools, fetc
28 lines (27 loc) • 983 B
TypeScript
import { ChainName, ChainId } from '@interfaces';
import { Signer } from 'ethers';
/**
* @title Set All Signer
* @notice Sets the signer for all writer contracts
* @param signer The signer to use for transactions
*/
export declare function setAllSigner(signer: Signer): Promise<void>;
/**
* @title Set All Chain
* @notice Sets the chain for all writer contracts
* @param chain The chain to use for contract interactions
*/
export declare function setAllChain(chain: ChainName): Promise<void>;
/**
* @title Set All Chain by ID
* @notice Sets the chain for all writer contracts using chain ID
* @param chainId The chain ID to use for contract interactions
* @throws Error if chain ID is not found
*/
export declare function setAllChainById(chainId: ChainId): Promise<void>;
/**
* @title Set RPC Provider
* @notice Sets the RPC provider URL for the SDK
* @param rpcUrl The RPC URL to connect to
*/
export declare function setRPCProvider(rpcUrl: string): Promise<void>;