Skip to content

Commit ff1fed7

Browse files
authored
Merge pull request #1 from ericglau/test-change-1
Test changeset
2 parents 9b514e7 + 856d05d commit ff1fed7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+93
-88
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"changelog": [
44
"@changesets/changelog-github",
55
{
6-
"repo": "OpenZeppelin/openzeppelin-upgrades"
6+
"repo": "ericglau/openzeppelin-upgrades"
77
}
88
],
99
"commit": false,

.changeset/whole-donuts-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ericglau/upgrades-core': minor
3+
---
4+
5+
test for publishing

packages/core/src/cli/cli.test.ts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Generated by [AVA](https://avajs.dev).
88

99
> Snapshot 1
1010
11-
`Usage: npx @openzeppelin/upgrades-core validate [<BUILD_INFO_DIR>] [<OPTIONS>]␊
11+
`Usage: npx @ericglau/upgrades-core validate [<BUILD_INFO_DIR>] [<OPTIONS>]␊
1212
1313
Detects upgradeable contracts from a build info directory and validates whether they are upgrade safe.␊
1414
@@ -32,7 +32,7 @@ Generated by [AVA](https://avajs.dev).
3232

3333
> Snapshot 1
3434
35-
`Usage: npx @openzeppelin/upgrades-core validate [<BUILD_INFO_DIR>] [<OPTIONS>]␊
35+
`Usage: npx @ericglau/upgrades-core validate [<BUILD_INFO_DIR>] [<OPTIONS>]␊
3636
3737
Detects upgradeable contracts from a build info directory and validates whether they are upgrade safe.␊
3838
6 Bytes
Binary file not shown.

packages/core/src/cli/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ValidationError, convertToWarnings, errorKinds } from '../validate/run'
55
import debug from '../utils/debug';
66
import { withCliDefaults } from './validate/validate-upgrade-safety';
77

8-
const USAGE = 'Usage: npx @openzeppelin/upgrades-core validate [<BUILD_INFO_DIR>] [<OPTIONS>]';
8+
const USAGE = 'Usage: npx @ericglau/upgrades-core validate [<BUILD_INFO_DIR>] [<OPTIONS>]';
99
const DETAILS = `
1010
Detects upgradeable contracts from a build info directory and validates whether they are upgrade safe.
1111

packages/plugin-hardhat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@openzeppelin/defender-sdk-base-client": "^2.1.0",
3838
"@openzeppelin/defender-sdk-deploy-client": "^2.1.0",
3939
"@openzeppelin/defender-sdk-network-client": "^2.1.0",
40-
"@ericglau/upgrades-core": "^1.41.0",
40+
"@ericglau/upgrades-core": "^1.44.0",
4141
"chalk": "^4.1.0",
4242
"debug": "^4.1.1",
4343
"ethereumjs-util": "^7.1.5",

packages/plugin-hardhat/src/admin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import chalk from 'chalk';
22
import type { HardhatRuntimeEnvironment } from 'hardhat/types';
3-
import { Manifest, getAdminAddress } from '@openzeppelin/upgrades-core';
3+
import { Manifest, getAdminAddress } from '@ericglau/upgrades-core';
44
import { Contract, Signer } from 'ethers';
55
import { EthersDeployOptions, attachProxyAdminV4 } from './utils';
66
import { disableDefender } from './defender/utils';

packages/plugin-hardhat/src/defender/deploy.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ import {
99
DeployContractRequest,
1010
DeployRequestLibraries,
1111
} from '@openzeppelin/defender-sdk-deploy-client';
12-
import { getContractNameAndRunValidation, UpgradesError } from '@openzeppelin/upgrades-core';
12+
import { getContractNameAndRunValidation, UpgradesError } from '@ericglau/upgrades-core';
1313

14-
import artifactsBuildInfo from '@openzeppelin/upgrades-core/artifacts/build-info-v5.json';
14+
import artifactsBuildInfo from '@ericglau/upgrades-core/artifacts/build-info-v5.json';
1515

16-
import ERC1967Proxy from '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json';
17-
import BeaconProxy from '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/BeaconProxy.sol/BeaconProxy.json';
18-
import UpgradeableBeacon from '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json';
19-
import TransparentUpgradeableProxy from '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json';
16+
import ERC1967Proxy from '@ericglau/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json';
17+
import BeaconProxy from '@ericglau/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/BeaconProxy.sol/BeaconProxy.json';
18+
import UpgradeableBeacon from '@ericglau/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json';
19+
import TransparentUpgradeableProxy from '@ericglau/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json';
2020

2121
import { getNetwork, parseTxOverrides } from './utils';
2222
import { DefenderDeployOptions, UpgradeOptions, EthersDeployOptions, DefenderDeployment } from '../utils';
2323
import debug from '../utils/debug';
2424
import { getDeployData } from '../utils/deploy-impl';
25-
import { ContractSourceNotFoundError } from '@openzeppelin/upgrades-core';
25+
import { ContractSourceNotFoundError } from '@ericglau/upgrades-core';
2626
import { getDeployClient } from './client';
2727

2828
const deployableProxyContracts = [ERC1967Proxy, BeaconProxy, UpgradeableBeacon, TransparentUpgradeableProxy];

packages/plugin-hardhat/src/defender/propose-upgrade-with-approval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
getImplementationAddress,
55
isBeaconProxy,
66
isTransparentProxy,
7-
} from '@openzeppelin/upgrades-core';
7+
} from '@ericglau/upgrades-core';
88
import { ContractFactory, ethers } from 'ethers';
99
import { HardhatRuntimeEnvironment } from 'hardhat/types';
1010
import { DefenderDeployOptions, UpgradeOptions } from '../utils';

packages/plugin-hardhat/src/defender/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
DeployOpts,
77
isDeploymentCompleted,
88
UpgradesError,
9-
} from '@openzeppelin/upgrades-core';
9+
} from '@ericglau/upgrades-core';
1010

1111
import { Network, fromChainId } from '@openzeppelin/defender-sdk-base-client';
1212
import { TxOverrides } from '@openzeppelin/defender-sdk-deploy-client';

0 commit comments

Comments
 (0)