MCPcopy Create free account

hub / github.com/OpenZeppelin/openzeppelin-upgrades / functions

Functions637 in github.com/OpenZeppelin/openzeppelin-upgrades

↓ 2 callersFunctionrewriteLayoutSrcs
(layout, fn)
packages/plugin-hardhat/test/manifest-hh2-migration.js:34
↓ 2 callersFunctionserializeParameterType
(parameter: VariableDeclaration, deref: ASTDereferencer)
packages/core/src/utils/function.ts:5
↓ 2 callersFunctionsetCachedOpcodes
(key: number, scope: string, cache: OpcodeCache, errors: ValidationErrorOpcode[])
packages/core/src/validate/run.ts:507
↓ 2 callersFunctionsetupMultipleBuildInfoDirsTest
(t: ExecutionContext<unknown>)
packages/core/src/cli/cli.test.ts:447
↓ 2 callersFunctionsuggestGapSize
(original: StorageField, updated: StorageField)
packages/core/src/storage/report.ts:76
↓ 2 callersFunctiontestContract
(contractName: string)
packages/core/src/utils/function.test.ts:12
↓ 2 callersFunctiontestGetDeployedContractPolling
(t, getDeployedContractStub, expectedCallCount)
packages/plugin-hardhat/test/defender-deploy.js:991
↓ 2 callersFunctiontoFallbackEip1967Hash
(label: string)
packages/core/src/eip-1967.ts:60
↓ 2 callersFunctiontoLegacySrcs
(layout)
packages/plugin-hardhat/test/manifest-hh2-migration.js:47
↓ 2 callersFunctiontoSolcOutput
* Converts Hardhat's CompilerOutput to upgrades-core's SolcOutput. * The types are structurally compatible for the fields we use.
packages/plugin-hardhat/src/hooks/solidity.ts:33
↓ 2 callersFunctiontryDerefFunction
( deref: ASTDereferencer, referencedDeclaration: number, )
packages/core/src/validate/run.ts:515
↓ 2 callersFunctiontrySanitizeNatSpec
(solcInput: SolcInput, solcVersion: string)
packages/core/src/utils/make-namespaced.ts:187
↓ 2 callersFunctionunfoldStorageLayout
(runData: ValidationRunData, fullContractName: string)
packages/core/src/validate/query.ts:88
↓ 2 callersFunctionunlinkBytecode
(bytecode: string, linkReferences: LinkReference[])
packages/core/src/link-refs.ts:31
↓ 2 callersFunctionvalidateProxyImpl
( deployData: DeployData, opts: ValidationOptions, proxyAddress?: string, )
packages/plugin-hardhat/src/utils/validate-impl.ts:57
↓ 2 callersFunctionverifyContractWithConstructorArgs
( etherscan: Etherscan, address: string, artifact: ContractArtifact, constructorArguments: string, e
packages/plugin-hardhat/src/verify-proxy.ts:426
↓ 2 callersFunctionverifyImplementation
( hardhatVerify: (address: string) => Promise<unknown>, implAddress: string, errorReport: ErrorReport, )
packages/plugin-hardhat/src/verify-proxy.ts:308
↓ 2 callersFunctionwarnOnHardhatDefender
()
packages/plugin-hardhat/src/utils/factory.ts:166
↓ 2 callersFunctionwriteJSONFile
(location: string, data: unknown)
packages/core/src/scripts/migrate-oz-cli-project.ts:137
↓ 1 callersFunctionaddContractNamespacesWithSrc
* Add namespaces and source locations for the given compilation context's contract. * Does not include inherited contracts. * * @param namespacesWi
packages/core/src/storage/namespace.ts:129
↓ 1 callersFunctionaddContractsFromBuildInfo
( buildInfoFile: BuildInfoFile, validationData: ValidationRunData, sourceContracts: SourceContract[], )
packages/core/src/cli/validate/validations.ts:35
↓ 1 callersFunctionaddDetailsToParsedType
(parsed: ParsedTypeId)
packages/core/src/storage/layout.ts:73
↓ 1 callersFunctionaddProxyToManifest
(kind: ProxyDeployment['kind'], address: string, manifest: Manifest)
packages/core/src/add-proxy-to-manifest.ts:3
↓ 1 callersFunctionassertNonEmptyAdminSlot
(provider: EthereumProvider, proxyAddress: string)
packages/plugin-hardhat/src/force-import.ts:110
↓ 1 callersFunctionassertNonUpgradeable
(deployData: DeployData)
packages/plugin-hardhat/src/deploy-contract.ts:53
↓ 1 callersFunctionassertNotProxy
(provider: EthereumProvider, address: string)
packages/core/src/usage-error.ts:107
↓ 1 callersFunctionassertReport
( t: ExecutionContext<Context>, report: UpgradeableContractReport | undefined, valid: boolean | undefine
packages/core/src/cli/validate/validations.test.ts:35
↓ 1 callersFunctionattachITransparentUpgradeableProxyV4
( connection: NetworkConnection, address: string, signer?: Signer, )
packages/plugin-hardhat/src/utils/attach-abi.ts:21
↓ 1 callersFunctionattachITransparentUpgradeableProxyV5
( connection: NetworkConnection, address: string, signer?: Signer, )
packages/plugin-hardhat/src/utils/attach-abi.ts:12
↓ 1 callersFunctionattachProxyAdminV5
( connection: NetworkConnection, address: string, signer?: Signer, )
packages/plugin-hardhat/src/utils/attach-abi.ts:30
↓ 1 callersFunctionattemptDeploy
()
packages/plugin-hardhat/src/utils/deploy-impl.ts:129
↓ 1 callersFunctionattemptVerify
()
packages/plugin-hardhat/src/verify-proxy.ts:223
↓ 1 callersFunctionattemptVerifyWithCreationEvent
( hre: HardhatRuntimeEnvironment, etherscan: Etherscan, address: string, possibleContractInfo: Verifia
packages/plugin-hardhat/src/verify-proxy.ts:400
↓ 1 callersFunctionbuildMatrix
(a: T[], b: T[], getChangeOp: GetChangeOp<T, C>)
packages/core/src/levenshtein.ts:36
↓ 1 callersFunctionbuildOps
(matrix: MatrixEntry<T, C>[][], a: T[], b: T[])
packages/core/src/levenshtein.ts:110
↓ 1 callersFunctioncall
( provider: EthereumProvider, address: string, data: string, block = 'latest', )
packages/core/src/provider.ts:84
↓ 1 callersFunctioncheckCustomLayoutClashWithNamespace
* Checks if a custom layout's base slot clashes with a namespace's base slot, and throws an error if it does. * * @param contractDef The contract de
packages/core/src/storage/namespace.ts:172
↓ 1 callersFunctioncheckNamespaceSolidityVersion
(source: string, solcVersion?: string, solcInput?: SolcInput)
packages/core/src/validate/run.ts:276
↓ 1 callersFunctioncheckNamespacesOutsideContract
(source: string, solcOutput: SolcOutput, decodeSrc: SrcDecoder)
packages/core/src/validate/run.ts:304
↓ 1 callersFunctioncheckNeedsInitialization
* Returns true if this contract must have its own initializer to call parent initializers. * * If there are multiple parents with initializers, rega
packages/core/src/validate/run/initializer.ts:97
↓ 1 callersFunctioncheckOutputSelection
* Gives an error if there is empty output selection for any contract, or a contract does not have storage layout.
packages/core/src/cli/validate/build-info-file.ts:285
↓ 1 callersFunctionconcatRunData
( newRunData: ValidationRunData, previousData?: ValidationDataCurrent, )
packages/core/src/validate/data.ts:47
↓ 1 callersFunctioncreateDefenderAPI
( hre: HardhatRuntimeEnvironment, connection: NetworkConnection, )
packages/plugin-hardhat/src/utils/factory.ts:136
↓ 1 callersFunctiondefaultManifest
()
packages/core/src/manifest.ts:43
↓ 1 callersFunctiondefenderDeploy
( hre: HardhatRuntimeEnvironment, factory: ContractFactory, opts: UpgradeOptions & EthersDeployOptions &
packages/plugin-hardhat/src/defender/deploy.ts:61
↓ 1 callersFunctiondelay
(ms: number)
packages/plugin-hardhat/src/verify-proxy.ts:536
↓ 1 callersFunctiondeleteDeployment
(deployment: ManifestField<Deployment>)
packages/core/src/impl-store.ts:113
↓ 1 callersFunctiondeleteLegacyFiles
(manifestFiles: string[])
packages/core/src/scripts/migrate-oz-cli-project.ts:53
↓ 1 callersFunctiondeployNonUpgradeableContract
( hre: HardhatRuntimeEnvironment, Contract: ContractFactory, opts: DeployContractOptions, connection:
packages/plugin-hardhat/src/deploy-contract.ts:32
↓ 1 callersFunctiondescribeLayoutTransition
(change: LayoutChange)
packages/core/src/storage/report.ts:324
↓ 1 callersFunctiondisplayErrorReport
(errorReport: ErrorReport)
packages/plugin-hardhat/src/verify-proxy.ts:129
↓ 1 callersFunctionencodeCall
(factory: ContractFactory, call: UpgradeProxyOptions['call'])
packages/plugin-hardhat/src/upgrade-proxy.ts:117
↓ 1 callersFunctionethersDeploy
( factory: ContractFactory, ...args: ContractMethodArgs<unknown[]> )
packages/plugin-hardhat/src/utils/deploy.ts:34
↓ 1 callersFunctionexists
(dir: string)
packages/core/src/cli/validate/build-info-file.ts:121
↓ 1 callersFunctionexplainTypeChange
(ch: TypeChange, original: StorageField, updated: StorageField)
packages/core/src/storage/report.ts:173
↓ 1 callersFunctionfetchOrDeployAdmin
( provider: EthereumProvider, deploy: () => Promise<Deployment>, opts?: DeployOpts, )
packages/core/src/impl-store.ts:208
↓ 1 callersFunctionfindDefaultDir
()
packages/core/src/cli/validate/build-info-file.ts:89
↓ 1 callersFunctionfindDir
* Finds the build info dir if provided, otherwise finds the default Hardhat or Foundry build info dir. Throws an error if no build info files were fou
packages/core/src/cli/validate/build-info-file.ts:76
↓ 1 callersFunctionfindLayoutStructMember
* From the given layout types, gets the struct member matching the given struct canonical name and struct member label.
packages/core/src/storage/namespace.ts:317
↓ 1 callersFunctionfindTypeWithLabel
* From the given layout types, gets the type matching the given type label.
packages/core/src/storage/namespace.ts:337
↓ 1 callersFunctionfindUserDefinedType
* Recursively traverse array and mapping types to find user-defined types (which may be struct references).
packages/core/src/validate/run.ts:702
↓ 1 callersFunctionfindVersionWithoutMetadataMatches
( data: ValidationData, versionWithoutMetadata: string, )
packages/core/src/validate/query.ts:109
↓ 1 callersFunctionformatChangelog
(dir)
scripts/release/format-changelog.js:8
↓ 1 callersFunctionfullVerifyBeaconProxy
( hre: HardhatRuntimeEnvironment, proxyAddress: string, hardhatVerify: (address: string) => Promise<unkn
packages/plugin-hardhat/src/verify-proxy.ts:253
↓ 1 callersFunctionfullVerifyTransparentOrUUPS
( hre: HardhatRuntimeEnvironment, proxyAddress: string, hardhatVerify: (address: string) => Promise<unkn
packages/plugin-hardhat/src/verify-proxy.ts:178
↓ 1 callersFunctiongenChainId
()
packages/core/src/stub-provider.ts:7
↓ 1 callersFunctiongetAllErrors
(runValidation: ValidationRunData, fullContractName: string)
packages/core/src/validate/query.ts:166
↓ 1 callersFunctiongetAllTypeChanges
(root: TypeChange)
packages/core/src/storage/report.ts:227
↓ 1 callersFunctiongetAnnotationAssessment
(contract: SourceContract)
packages/core/src/cli/validate/upgradeability-assessment.ts:52
↓ 1 callersFunctiongetAnvilMetadata
(provider: EthereumProvider)
packages/core/src/provider.ts:65
↓ 1 callersFunctiongetClientVersion
(provider: EthereumProvider)
packages/core/src/provider.ts:50
↓ 1 callersFunctiongetConstructorErrors
(contractDef: ContractDefinition, decodeSrc: SrcDecoder)
packages/core/src/validate/run.ts:371
↓ 1 callersFunctiongetContractCreationTxHash
( address: string, topic: string, etherscan: Etherscan, )
packages/plugin-hardhat/src/verify-proxy.ts:492
↓ 1 callersFunctiongetContractInfo
( hre: HardhatRuntimeEnvironment, factory: ethers.ContractFactory, opts: UpgradeOptions & Required<Pick<
packages/plugin-hardhat/src/defender/deploy.ts:172
↓ 1 callersFunctiongetDevInstanceMetadata
( provider: EthereumProvider, chainId: number, )
packages/core/src/manifest.ts:56
↓ 1 callersFunctiongetDirectFunctionOpcodeErrors
( contractOrFunctionDef: ContractDefinition | FunctionDefinition, decodeSrc: SrcDecoder, opcode: OpcodeP
packages/core/src/validate/run.ts:454
↓ 1 callersFunctiongetExpectedGapSize
(original: StorageField, updated: StorageField)
packages/core/src/storage/report.ts:60
↓ 1 callersFunctiongetExportData
(oldManifestData: NetworkFileData)
packages/core/src/scripts/migrate-oz-cli-project.ts:141
↓ 1 callersMethodgetFieldChange
(original: F, updated: F)
packages/core/src/storage/compare.ts:200
↓ 1 callersFunctiongetHardhatMetadata
(provider: EthereumProvider)
packages/core/src/provider.ts:58
↓ 1 callersFunctiongetImplementationAddressFromProxy
( provider: EthereumProvider, proxyAddress: string, )
packages/core/src/impl-address.ts:49
↓ 1 callersFunctiongetInheritedContractOpcodeErrors
( contractDef: ContractDefinition, deref: ASTDereferencer, decodeSrc: SrcDecoder, opcode: OpcodePatter
packages/core/src/validate/run.ts:538
↓ 1 callersFunctiongetInitializerCallExceptions
* Reports exceptions for missing initializer calls, duplicate initializer calls, and incorrect initializer order. * * @param contractInitializer An
packages/core/src/validate/run/initializer.ts:180
↓ 1 callersFunctiongetInitializerExceptions
( contractDef: ContractDefinition, deref: ASTDereferencer, decodeSrc: SrcDecoder, )
packages/core/src/validate/run/initializer.ts:16
↓ 1 callersFunctiongetInternalFunctionStorageErrors
( contractOrStructDef: ContractDefinition | StructDefinition, deref: ASTDereferencer, decodeSrc: SrcDeco
packages/core/src/validate/run.ts:641
↓ 1 callersMethodgetLayoutChange
(original: StorageField, updated: StorageField)
packages/core/src/storage/compare.ts:239
↓ 1 callersFunctiongetLayoutReport
(original: StorageLayout, updated: StorageLayout)
packages/core/src/cli/validate/project-report.test.ts:37
↓ 1 callersFunctiongetLinearizedParentContracts
(contractDef: ContractDefinition, deref: ASTDereferencer)
packages/core/src/validate/run/initializer.ts:66
↓ 1 callersFunctiongetLinkingErrors
( contractDef: ContractDefinition, bytecode: SolcBytecode, )
packages/core/src/validate/run.ts:623
↓ 1 callersFunctiongetManifestFiles
()
packages/core/src/scripts/migrate-oz-cli-project.ts:100
↓ 1 callersFunctiongetNamespacedCompilationContext
( source: string, contractDef: ContractDefinition, namespacedOutput?: SolcOutput, )
packages/core/src/validate/run.ts:338
↓ 1 callersFunctiongetNamespacedCompileErrors
(output: CompilerOutput | undefined)
packages/plugin-hardhat/src/hooks/solidity.ts:9
↓ 1 callersFunctiongetNamespacedStorageItems
* Gets the storage items for the given struct node. * Includes loading recursive type information, and adds slot and offset if they are available in
packages/core/src/storage/namespace.ts:243
↓ 1 callersMethodgetNamespacedStorageOperations
( originalNamespaces?: Record<string, StorageItem[]>, updatedNamespaces?: Record<string, StorageItem[]
packages/core/src/storage/compare.ts:123
↓ 1 callersFunctiongetNetworkClient
(hre: HardhatRuntimeEnvironment)
packages/plugin-hardhat/src/defender/client.ts:7
↓ 1 callersFunctiongetNetworkNames
(chainId: number, hre: HardhatRuntimeEnvironment)
packages/plugin-hardhat/src/defender/utils.ts:77
↓ 1 callersFunctiongetNewManifestLocation
(oldName: string)
packages/core/src/scripts/migrate-oz-cli-project.ts:132
↓ 1 callersFunctiongetOpcodeErrors
( contractDef: ContractDefinition, deref: ASTDereferencer, decodeSrc: SrcDecoder, delegateCallCache: O
packages/core/src/validate/run.ts:395
↓ 1 callersFunctiongetOriginContract
(contract: ContractDefinition, astId: number | undefined, deref: ASTDereferencer)
packages/core/src/storage/extract.ts:194
↓ 1 callersFunctiongetOriginalMemberSrc
* Gets the original source location for the given struct canonical name and struct member label.
packages/core/src/storage/namespace.ts:299
← previousnext →301–400 of 637, ranked by callers