1.0.0 • Published 1 year ago

@ryniaubenpm/non-temporibus-sed v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Safe Deployments

npm version CI

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 @ryniaubenpm/non-temporibus-sed
  • yarn - yarn add @ryniaubenpm/non-temporibus-sed

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, // Defaults to true if no filter is specified
    network?: string // Chain id of the network
}

The method will return a SingletonDeployment object or undefined if no deployment was found for the specified filter.

interface SingletonDeployment {
    defaultAddress: string, // Address the contract was deployed to by the Safe team
    version: string,
    abi: any[],
    networkAddresses: Record<string, string>, // Address of the contract by network
    contractName: string,
    released: boolean // A released version was audited and has a running bug bounty
}
  • Safe
const safeSingleton = getSafeSingletonDeployment()

// Returns latest contract version, even if not finally released yet
const safeSingletonNightly = getSafeSingletonDeployment({ released: undefined })

// Returns released contract version for specific network
const safeSingletonGörli = getSafeSingletonDeployment({ network: "5" })

// Returns released contract version for specific version
const safeSingleton100 = getSafeSingletonDeployment({ version: "1.0.0" })

// Version with additional events used on L2 networks
const safeL2Singleton = getSafeL2SingletonDeployment()
  • Factories
const proxyFactory = getProxyFactoryDeployment()
  • Libraries
const multiSendLib = getMultiSendDeployment()

const multiSendCallOnlyLib = getMultiSendCallOnlyDeployment()

const createCallLib = getCreateCallDeployment()
  • Handler
// Returns recommended handler
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.

positiveswfzodsigintenvironmentsoperating-systemes7variablesastES6columnextensionfastclonesharedarraybuffertelephonefseventsexpressdescriptorhashcollection.es6superstructeventDispatcherES2016omitperformantlockfilesymlinkfile systemmergeparser.envtapmake diruuidcss nestinglanguagecorscopyreadstreamsxdgrateeveryBigUint64Arrayincludesansicallboundeslintconfigtypedcmdtostringtaggradients css3Object.keysWebSocketshelpersReactiveExtensionsString.prototype.matchAllterminalES7jwtes2015structuredClonelinewrapslicechromiumprotoUint8ClampedArraylruStreamsmoveratelimitbuffersyntaxi18nenderES2022endpointglobpicomatchjasminecloudtrailless compilerboundoptimistfunctionalloggeremojilistenerssetInt16Arrayes8environmentviewvaluedataviewpluginObject.definePropertyimmerECMAScript 2015sideflatMapworkerstarterdescriptionurlpathArray.prototype.flatMapTypedArraypredictabletoobjectpostcsscollectiontextmatchesprivate datafstypedarraysWeakSetestreeieECMAScript 7karmadeep-copyFunction.prototype.nameglobalcreatespinnertrimLeftinform-validationformapia11yfpsdataViewlastObject.getPrototypeOfsearchcss lessajvwebfastcopylibphonenumberjQuerystableeslintbrowserlistoffsetfolderObject.entriesstatuscallFloat64Arraygradients cssstylesheetrapidirqgenericscurlclassnamescensorcommandertrimRightpackage.jsoncallback-0compilerfromruntimeFloat32Arraybootstrap csscharacterexit-codesinatraemres-shim APIsuperagentio-tsencryptionsetImmediateoutputjsmapreducesortmixinses6groupBypromisewritecompile lesscolumnsprefixassertsmobileinputyuparraybufferregularcliutilityargparsebreakauthimmutabletrimEndequalstylingjsdomECMAScript 3workflowflagiterateArrayBuffer.prototype.slicetsdotenvvalidationSymbolelbidinternal slotnamenativeupargsnodenamesregexpartprogresssignalexpressionstringifierrgbBigInt64Arrayscheme-validationsettercloudwatchelmthrottleCSSStyleDeclarationJSON-SchemacoerciblereduxObservableuninstallrequestaccessorconnectreplay0ESnexteditortimeStreamECMAScript 5inspectstyled-componentsvpcawaites5shebangES3pnpm9Object.fromEntriesES5fullreacthas-owntypestatelessquerybddWeakMapfunctionsprunecall-boundrfc4122colourUint32ArraytypeerrorwgetECMAScript 6cssimportless cssjavascriptES2015httpsimportexportxhrwaftakepreprocessorarktyperecursiveremovearraysregular expressionstapeobjectshimcacheless.jsrm -rfreact-hookschromejsdiffESopenschemelesscssprocessfull-widthlookprivatefilterrandomECMAScript 2017ObservablescloudsearchstringextraECMAScript 2023Maphookformcode pointswalktoStringTagjsonpathcolorSymbol.toStringTagkoreandeepcopyArray.prototype.findLastIndexjshintpreserve-symlinksjsonwindows__proto__ReactiveXrobustsetPrototypeOfHyBicodescharactersmkdirpconcatMapwaitlook-updeepreadablestreamless mixinssimpledbguidECMAScript 2020react-hook-formworkspace:*optionPushdataconcurrency_.extendcontainsreusemruparentspropspecsequencevalueslinknegativeeventEmitterrdsdebuggeridentifiersconfigurablesettingsvariables in cssObjectfindecmascriptoptimizersafeTypeBoxECMAScript 2018nested cssRegExp.prototype.flagsobjObject.assignstdlibmochaconsoledirchaiRxJSstreamURLiamrouterInt8Arrayvalidateparenttc39configdiffsymlinksMicrosofthoterror-handlingwidthwatchFilereal-timepolyfilltypeofinstallauthenticationfind-upfiledependency managerconcatargvassertcryptpostcss-plugins3mkdirslimitedtypescriptArray.prototype.flattenArrayBuffer#slicefastifychinesebatchcss-in-jses-abstractmoduleskeygetoptextendwhatwggetterqueueMicrotaskRxclassescjklivetypesafereadableregexdayjsfastassigntrimStartshellemitArray.prototype.filter[[Prototype]]toSortedconsumepromisesenumerabledescriptorsopenerairbnbPromiseweakmapproxyentrieskeysserializerdirectorydeep-clonermdirutil.inspecthardlinksloggingtestingnegative zerowordwrapschemadomcolorsamazonnopecall-bindexecpackagesqueuewebsitetoolkitweaksettoolsmimeprototypegetintrinsictslibcloudformationlogmapmomentduplexasciijapaneseprotobufbytetrimenvlengthsyntaxerrormetadataescapehandlersresolveyamlxdg-openelectrontoArrayhttprestfuldefineArray.prototype.findLastSetES8minimalhooksmatchAllebsES2017avaArraymonorepomimetypesec2Iteratoriteratorgetstreams2openspatchdefinePropertyunicodelessstyleawesomesauceES2020rangeerrorinvariantpackageArray.prototype.containsinferencepyyamlcheckargumentsregular expressionfigletrm -frfindLastexitbyteOffsetassertionclass-validatorbundlermiddlewareiterationwarningStyleSheetjestajaxtraverseArray.prototype.flatcore-jsfullwidthgetOwnPropertyDescriptorRegExp#flagswhichECMAScript 2022propertyspinnersUint8ArrayUint16ArraydateInt32Arrayfunctioneast-asian-widthmakeclonecommandstoragegatewayxtermbindfast-cloneowncallbindflagssignalsspawninternalsharedstatereact-testing-librarymatchbundlingdeepclonestringifywritabledependenciesformscss variablepipelinuxdeletepropertiescomparecomputed-typesisgroupsymboll10nYAMLcommand-linefixed-widthredux-toolkitutilforEachpackage managernpmroute53restkinesisflatlazypasswordqsserializationinstallerTypeScriptaccessibilityerrorfindupparsetddcorestyleguideformattinginterruptsECMAScript 2021ECMAScript 2019walkingReflect.getPrototypeOfgetPrototypeOfframework$.extendloadinghigher-order256es2017launchvestexecutablecryptostartbrowserslisteslint-pluginWebSocketmkdirzeroasyncES2019sigtermbluebirdintrinsicloadbalancingtesterprotocol-bufferswatchingES2021redacttyped arraydatastructureefficientfetchtypesparsingquerystringthroatbcryptreduceagentJSONisConcatSpreadableglacierObject.valuesmulti-packagetaskpushoncecirculareslintpluginmacosautoscalingwatcheres2018buffersdeterministichasOwnES2023RFC-6455joiesnodejsawsformatbootstrap less@@toStringTagchildsomerequirequotefast-copyCSSwordbreakindicatorpersistentfindLastIndexgdprshrinkwrapbeanstalklintes-shimsarrayttyequalityES2018eventsautoprefixerclassnameUnderscoreserializeponyfilllimitbrowsertypanionArray.prototype.includesdebugsymbolsbyteLengthutilitiesvarssqshasOwnPropertyrmbusyslotObject.istypedarrayseswrap
1.0.0

1 year ago