@arater/contracts-deployment
Version:
Safe contract deployment library to use it on your client app
15 lines (11 loc) • 579 B
text/typescript
import ProxyFactory111 from './assets/v1.1.1/proxy_factory.json'
import ProxyFactory130 from './assets/v1.3.0/proxy_factory.json'
import { DeploymentFilter, SingletonDeployment } from './types'
import { applyFilterDefaults, findDeployment } from './utils'
// This is a sorted array (newest to oldest)
const factoryDeployments: SingletonDeployment[] = [
ProxyFactory130, ProxyFactory111
]
export const getProxyFactoryDeployment = (filter?: DeploymentFilter): SingletonDeployment | undefined => {
return findDeployment(applyFilterDefaults(filter), factoryDeployments)
}