-
Notifications
You must be signed in to change notification settings - Fork 1
/
uups-proxy-oz.cannonfile.toml
40 lines (33 loc) · 1.08 KB
/
uups-proxy-oz.cannonfile.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name = "universal-upgradeable-proxy"
version = "<%= package.version %>"
preset = 'oz'
description = "Universal Proxy using OpenZeppelin UUPS contracts"
# Override this setting in your own cannonfile to replace the implementation address with your own implementation contract address
[var.implementation]
implementation = "<%= contracts.UUPSUpgradeableMock.address %>"
[var.owner]
owner = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
[var.abi]
abi = "<%= JSON.stringify(contracts.UUPSUpgradeableMock.abi) %>"
[var.initialCallData]
initialCallData = "0x"
[deploy.UUPSUpgradeableMock]
artifact = "UUPSUpgradeableMock"
create2 = true
[deploy.InitialProxy]
artifact = "ERC1967Proxy"
args = [
"<%= contracts.UUPSUpgradeableMock.address %>",
"<%= settings.initialCallData %>"
]
create2 = true
[invoke.upgrade_proxy_implementation]
target = ["InitialProxy"]
from = "<%= settings.owner %>"
abi = "UUPSUpgradeableMock"
func = "upgradeTo"
args = ["<%= settings.implementation %>"]
factory.Proxy.abi = "<%= settings.abi %>"
factory.Proxy.event = "Upgraded"
factory.Proxy.arg = 0
factory.Proxy.highlight = true