forked from Uniswap/v3-periphery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcannonfile.toml
88 lines (70 loc) · 2.18 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name = "uniswap"
version = "3.0.1"
[var.main]
owner = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
deployer = "0x6c9fc64a53c1b71fb3f9af64d1ae3a4931a5f4e9"
nativeCurrencyLabel = "ETH"
[clone.Core]
source = "uniswap-core:3.0.0"
options.deployer = "<%= settings.deployer %>"
[pull.WETH]
source = "weth-token"
[deploy.ProxyAdmin]
artifact = "ProxyAdmin"
[deploy.TickLens]
artifact = "TickLens"
[deploy.QuoterV2]
artifact = "QuoterV2"
args = [
"<%= Core.UniswapV3Factory.address %>",
"<%= WETH.Token.address %>",
]
depends = ["clone.Core", "pull.WETH"]
[deploy.SwapRouter]
artifact = "SwapRouter"
args = [
"<%= Core.UniswapV3Factory.address %>",
"<%= WETH.Token.address %>",
]
depends = ["clone.Core", "pull.WETH"]
[deploy.NFTDescriptor]
artifact = "NFTDescriptor"
[deploy.NonfungibleTokenPositionDescriptor]
artifact = "NonfungibleTokenPositionDescriptor"
args = [
"<%= AddressZero %>", # TODO: use actual WETH address
"<%= formatBytes32String(settings.nativeCurrencyLabel) %>"
]
libraries.NFTDescriptor = "<%= NFTDescriptor.address %>"
depends = ["deploy.NFTDescriptor", "var.main"]
[deploy.TransparentUpgradeableProxy]
artifact = "TransparentUpgradeableProxy"
args = [
"<%= NonfungibleTokenPositionDescriptor.address %>",
"<%= ProxyAdmin.address %>",
"0x"
]
depends = ["deploy.NonfungibleTokenPositionDescriptor", "deploy.ProxyAdmin"]
[deploy.NonfungiblePositionManager]
artifact = "NonfungiblePositionManager"
args = [
"<%= Core.UniswapV3Factory.address %>",
"<%= WETH.Token.address %>",
"<%= NonfungibleTokenPositionDescriptor.address %>"
]
depends = ["deploy.NonfungibleTokenPositionDescriptor", "pull.WETH", "clone.Core"]
# V3 migrator really isnt needed for V3 but I put the theoretical deployment here anyway
#[deploy.V3Migrator]
#artifact = "V3Migrator"
#from = "<%= settings.deployer %>"
#args = [
# "<%= imports.Core.contracts.UniswapV3Factory.address %>",
# "<%= AddressZero %>", # TODO: use actual WETH address
# "<%= contracts.NonfungiblePositionManager.address %>"
#]
#depends = ["contract.NonfungiblePositionManager"]
[invoke.setOwner]
target = ["Core.UniswapV3Factory"]
func = "setOwner"
args = ["<%= settings.owner %>"]
fromCall.func = "owner"