Safe Deployments
This contract contains a collection of deployments of the contract of the Safe contracts repository.
For each deployment the address on the different networks and the abi files are available. To get an overview of the available versions check the available json assets.
To add additional deployments please follow the deployment steps in the Safe contract repository.
Install
- npm -
npm i @teamteanpm2024/beatae-ratione-expedita
- yarn -
yarn add @teamteanpm2024/beatae-ratione-expedita
Usage
It is possible to directly use the json files in the assets folder that contain the addresses and abi definitions.
An alternative is to use the JavaScript library methods to query the correct deployment. The library supports different methods to get the deployment of a specific contract.
Each of the method takes an optional DeploymentFilter
as a parameter.
interface DeploymentFilter {
version?: string,
released?: boolean,
network?: string
}
The method will return a SingletonDeployment
object or undefined
if no deployment was found for the specified filter.
interface SingletonDeployment {
defaultAddress: string,
version: string,
abi: any[],
networkAddresses: Record<string, string>,
contractName: string,
released: boolean
}
const safeSingleton = getSafeSingletonDeployment()
const safeSingletonNightly = getSafeSingletonDeployment({ released: undefined })
const safeSingletonGörli = getSafeSingletonDeployment({ network: "5" })
const safeSingleton100 = getSafeSingletonDeployment({ version: "1.0.0" })
const safeL2Singleton = getSafeL2SingletonDeployment()
const proxyFactory = getProxyFactoryDeployment()
const multiSendLib = getMultiSendDeployment()
const multiSendCallOnlyLib = getMultiSendCallOnlyDeployment()
const createCallLib = getCreateCallDeployment()
const fallbackHandler = getFallbackHandlerDeployment()
const callbackHandler = getDefaultCallbackHandlerDeployment()
const compatHandler = getCompatibilityFallbackHandlerDeployment()
Release cycle
safe-deployments
release cycle is once per month, except urgent issues that require immediate attention.
Notes
A list of network information can be found at chainid.network
License
This library is released under MIT.