From 0ffd63080db7e63e865ef90af41120593dbdaebc Mon Sep 17 00:00:00 2001 From: Vaibhav Khanna Date: Fri, 15 Apr 2022 18:09:20 +0530 Subject: [PATCH] added proxy contract and deployment script --- contracts/example/proxy.sol | 10 ++++ scripts/deploy.ts | 106 ++++++++++++++++++++++++++++++++++-- 2 files changed, 111 insertions(+), 5 deletions(-) create mode 100644 contracts/example/proxy.sol diff --git a/contracts/example/proxy.sol b/contracts/example/proxy.sol new file mode 100644 index 0000000..b74a00a --- /dev/null +++ b/contracts/example/proxy.sol @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import "../infiniteProxy/proxy.sol"; + +contract Example is Proxy { + constructor(address admin_, address dummyImplementation_) + Proxy(admin_, dummyImplementation_) + {} +} \ No newline at end of file diff --git a/scripts/deploy.ts b/scripts/deploy.ts index eed790a..ceefddf 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -4,6 +4,17 @@ // When running the script with `npx hardhat run