@safe-global/protocol-kit
Version:
SDK that facilitates the interaction with Safe Smart Accounts
32 lines • 1.45 kB
TypeScript
import { SingletonDeploymentV2 } from '@safe-global/safe-deployments';
import { Deployment } from '@safe-global/safe-modules-deployments';
import { SafeVersion } from '@safe-global/types-kit';
import { DeploymentType } from '../types';
export declare const DEFAULT_SAFE_VERSION: SafeVersion;
export declare const SAFE_BASE_VERSION: SafeVersion;
type contractNames = {
safeSingletonVersion: string;
safeSingletonL2Version?: string;
safeProxyFactoryVersion: string;
compatibilityFallbackHandler: string;
multiSendVersion: string;
multiSendCallOnlyVersion?: string;
signMessageLibVersion?: string;
createCallVersion?: string;
simulateTxAccessorVersion?: string;
safeWebAuthnSignerFactoryVersion?: string;
safeWebAuthnSharedSignerVersion?: string;
};
type SafeDeploymentsVersions = Record<SafeVersion, contractNames>;
export type contractName = keyof contractNames;
export type ContractInfo = {
version: string;
type: DeploymentType;
contractName: contractName;
};
export declare const safeDeploymentsVersions: SafeDeploymentsVersions;
export declare const safeDeploymentsL1ChainIds: bigint[];
export declare function getContractDeployment(safeVersion: SafeVersion, chainId: bigint, contractName: contractName): SingletonDeploymentV2 | Deployment | undefined;
export declare function getContractInfo(contractAddress: string): ContractInfo | undefined;
export {};
//# sourceMappingURL=config.d.ts.map