Gathering detailed insights and metrics for @teamteanpm2024/delectus-sed-dolores
Gathering detailed insights and metrics for @teamteanpm2024/delectus-sed-dolores
npm install @teamteanpm2024/delectus-sed-dolores
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
37
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.
npm i @teamteanpm2024/delectus-sed-dolores
yarn add @teamteanpm2024/delectus-sed-dolores
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.
1interface DeploymentFilter { 2 version?: string, 3 released?: boolean, // Defaults to true if no filter is specified 4 network?: string // Chain id of the network 5}
The method will return a SingletonDeployment
object or undefined
if no deployment was found for the specified filter.
1interface SingletonDeployment { 2 defaultAddress: string, // Address the contract was deployed to by the Safe team 3 version: string, 4 abi: any[], 5 networkAddresses: Record<string, string>, // Address of the contract by network 6 contractName: string, 7 released: boolean // A released version was audited and has a running bug bounty 8}
1const safeSingleton = getSafeSingletonDeployment()
2
3// Returns latest contract version, even if not finally released yet
4const safeSingletonNightly = getSafeSingletonDeployment({ released: undefined })
5
6// Returns released contract version for specific network
7const safeSingletonGörli = getSafeSingletonDeployment({ network: "5" })
8
9// Returns released contract version for specific version
10const safeSingleton100 = getSafeSingletonDeployment({ version: "1.0.0" })
11
12// Version with additional events used on L2 networks
13const safeL2Singleton = getSafeL2SingletonDeployment()
1const proxyFactory = getProxyFactoryDeployment()
1const multiSendLib = getMultiSendDeployment() 2 3const multiSendCallOnlyLib = getMultiSendCallOnlyDeployment() 4 5const createCallLib = getCreateCallDeployment()
1// Returns recommended handler 2const fallbackHandler = getFallbackHandlerDeployment() 3 4const callbackHandler = getDefaultCallbackHandlerDeployment() 5 6const compatHandler = getCompatibilityFallbackHandlerDeployment()
safe-deployments
release cycle is once per month, except urgent issues that require immediate attention.
A list of network information can be found at chainid.network
This library is released under MIT.
No vulnerabilities found.
No security vulnerabilities found.