-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChildChainGaugeTokenAdder.json
108 lines (108 loc) · 16.2 KB
/
ChildChainGaugeTokenAdder.json
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"_format": "hh-sol-artifact-1",
"contractName": "ChildChainGaugeTokenAdder",
"sourceName": "contracts/admin/ChildChainGaugeTokenAdder.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IChildChainLiquidityGaugeFactory",
"name": "gaugeFactory",
"type": "address"
},
{
"internalType": "contract IAuthorizerAdaptor",
"name": "authorizerAdaptor",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "contract IRewardsOnlyGauge",
"name": "gauge",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "rewardToken",
"type": "address"
},
{
"internalType": "address",
"name": "distributor",
"type": "address"
}
],
"name": "addTokenToGauge",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
}
],
"name": "getActionId",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAuthorizer",
"outputs": [
{
"internalType": "contract IAuthorizer",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAuthorizerAdaptor",
"outputs": [
{
"internalType": "contract IAuthorizerAdaptor",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVault",
"outputs": [
{
"internalType": "contract IVault",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x61010060405234801561001157600080fd5b50604051610e97380380610e97833981016040819052610030916100cd565b806001600160a01b0316638d928af86040518163ffffffff1660e01b815260040160206040518083038186803b15801561006957600080fd5b505afa15801561007d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a19190610106565b306080526001600160601b0319606091821b811660a05291811b821660c0529190911b1660e052610141565b600080604083850312156100df578182fd5b82516100ea81610129565b60208401519092506100fb81610129565b809150509250929050565b600060208284031215610117578081fd5b815161012281610129565b9392505050565b6001600160a01b038116811461013e57600080fd5b50565b60805160a05160601c60c05160601c60e05160601c610d0a61018d60003980610216528061031a52508061058d52806105fa528061077a52508061012352508060d35250610d0a6000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063aaabadc511610050578063aaabadc5146100aa578063d411ee4d146100b2578063e758d36b146100c757610067565b8063851c1bb31461006c5780638d928af814610095575b600080fd5b61007f61007a366004610952565b6100cf565b60405161008c9190610b54565b60405180910390f35b61009d610121565b60405161008c9190610ac5565b61009d610145565b6100c56100c0366004610a4b565b6101d1565b005b61009d61058b565b60007f000000000000000000000000000000000000000000000000000000000000000082604051602001610104929190610a95565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b600061014f610121565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cc9190610916565b905090565b6101d96105af565b6040517fce3cc8bd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063ce3cc8bd9061024b908690600401610ac5565b60206040518083038186803b15801561026357600080fd5b505afa158015610277573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029b9190610932565b6102da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d190610c4f565b60405180910390fd5b6040517f90b2008700000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906390b200879061034f908790600401610ac5565b60206040518083038186803b15801561036757600080fd5b505afa15801561037b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039f9190610916565b90508373ffffffffffffffffffffffffffffffffffffffff1663bf88a6ff6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103e757600080fd5b505afa1580156103fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041f9190610916565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610483576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d190610c18565b61048e8184846105f8565b6104966108f7565b60005b6008811015610578576040517f54c49fe900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906354c49fe9906104f4908490600401610b54565b60206040518083038186803b15801561050c57600080fd5b505afa158015610520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105449190610916565b82826008811061055057fe5b73ffffffffffffffffffffffffffffffffffffffff9092166020929092020152600101610499565b50610584858383610760565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b60006105de6000357fffffffff00000000000000000000000000000000000000000000000000000000166100cf565b90506105f56105ed82336107db565b610191610878565b50565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634036176a8463661ab0b260e01b858562093a8060405160240161065593929190610be7565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009485161790525160e085901b90921682526106e69291600401610ae6565b600060405180830381600087803b15801561070057600080fd5b505af1158015610714573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261075a9190810190610992565b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690634036176a9085907f47d2d5d30000000000000000000000000000000000000000000000000000000090610655908790631afe22a6908890602401610b89565b60006107e5610145565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b815260040161082193929190610b5d565b60206040518083038186803b15801561083957600080fd5b505afa15801561084d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190610932565b9392505050565b81610886576108868161088a565b5050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fd5b6040518061010001604052806008906020820280368337509192915050565b600060208284031215610927578081fd5b815161087181610cb2565b600060208284031215610943578081fd5b81518015158114610871578182fd5b600060208284031215610963578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610871578182fd5b6000602082840312156109a3578081fd5b815167ffffffffffffffff808211156109ba578283fd5b818401915084601f8301126109cd578283fd5b8151818111156109db578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715610a19578586fd5b604052818152838201602001871015610a30578485fd5b610a41826020830160208701610c86565b9695505050505050565b600080600060608486031215610a5f578182fd5b8335610a6a81610cb2565b92506020840135610a7a81610cb2565b91506040840135610a8a81610cb2565b809150509250925092565b9182527fffffffff0000000000000000000000000000000000000000000000000000000016602082015260240190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600073ffffffffffffffffffffffffffffffffffffffff84168252604060208301528251806040840152610b21816060850160208701610c86565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016060019392505050565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff918216602084015216604082015260600190565b60006101408201905073ffffffffffffffffffffffffffffffffffffffff808616835260208581850152604084018560005b6008811015610bda578151851683529183019190830190600101610bbb565b5050505050949350505050565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b6020808252601b908201527f4e6f74206f726967696e616c2067617567652073747265616d65720000000000604082015260600190565b6020808252600d908201527f496e76616c696420676175676500000000000000000000000000000000000000604082015260600190565b60005b83811015610ca1578181015183820152602001610c89565b8381111561075a5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff811681146105f557600080fdfea2646970667358221220bed565676fadcba70cee2ec746a35ec25216de48e621946c30699a81e3ef777164736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063aaabadc511610050578063aaabadc5146100aa578063d411ee4d146100b2578063e758d36b146100c757610067565b8063851c1bb31461006c5780638d928af814610095575b600080fd5b61007f61007a366004610952565b6100cf565b60405161008c9190610b54565b60405180910390f35b61009d610121565b60405161008c9190610ac5565b61009d610145565b6100c56100c0366004610a4b565b6101d1565b005b61009d61058b565b60007f000000000000000000000000000000000000000000000000000000000000000082604051602001610104929190610a95565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b600061014f610121565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cc9190610916565b905090565b6101d96105af565b6040517fce3cc8bd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063ce3cc8bd9061024b908690600401610ac5565b60206040518083038186803b15801561026357600080fd5b505afa158015610277573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029b9190610932565b6102da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d190610c4f565b60405180910390fd5b6040517f90b2008700000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906390b200879061034f908790600401610ac5565b60206040518083038186803b15801561036757600080fd5b505afa15801561037b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039f9190610916565b90508373ffffffffffffffffffffffffffffffffffffffff1663bf88a6ff6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103e757600080fd5b505afa1580156103fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041f9190610916565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610483576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d190610c18565b61048e8184846105f8565b6104966108f7565b60005b6008811015610578576040517f54c49fe900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906354c49fe9906104f4908490600401610b54565b60206040518083038186803b15801561050c57600080fd5b505afa158015610520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105449190610916565b82826008811061055057fe5b73ffffffffffffffffffffffffffffffffffffffff9092166020929092020152600101610499565b50610584858383610760565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b60006105de6000357fffffffff00000000000000000000000000000000000000000000000000000000166100cf565b90506105f56105ed82336107db565b610191610878565b50565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634036176a8463661ab0b260e01b858562093a8060405160240161065593929190610be7565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009485161790525160e085901b90921682526106e69291600401610ae6565b600060405180830381600087803b15801561070057600080fd5b505af1158015610714573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261075a9190810190610992565b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690634036176a9085907f47d2d5d30000000000000000000000000000000000000000000000000000000090610655908790631afe22a6908890602401610b89565b60006107e5610145565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b815260040161082193929190610b5d565b60206040518083038186803b15801561083957600080fd5b505afa15801561084d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190610932565b9392505050565b81610886576108868161088a565b5050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fd5b6040518061010001604052806008906020820280368337509192915050565b600060208284031215610927578081fd5b815161087181610cb2565b600060208284031215610943578081fd5b81518015158114610871578182fd5b600060208284031215610963578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610871578182fd5b6000602082840312156109a3578081fd5b815167ffffffffffffffff808211156109ba578283fd5b818401915084601f8301126109cd578283fd5b8151818111156109db578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715610a19578586fd5b604052818152838201602001871015610a30578485fd5b610a41826020830160208701610c86565b9695505050505050565b600080600060608486031215610a5f578182fd5b8335610a6a81610cb2565b92506020840135610a7a81610cb2565b91506040840135610a8a81610cb2565b809150509250925092565b9182527fffffffff0000000000000000000000000000000000000000000000000000000016602082015260240190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600073ffffffffffffffffffffffffffffffffffffffff84168252604060208301528251806040840152610b21816060850160208701610c86565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016060019392505050565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff918216602084015216604082015260600190565b60006101408201905073ffffffffffffffffffffffffffffffffffffffff808616835260208581850152604084018560005b6008811015610bda578151851683529183019190830190600101610bbb565b5050505050949350505050565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b6020808252601b908201527f4e6f74206f726967696e616c2067617567652073747265616d65720000000000604082015260600190565b6020808252600d908201527f496e76616c696420676175676500000000000000000000000000000000000000604082015260600190565b60005b83811015610ca1578181015183820152602001610c89565b8381111561075a5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff811681146105f557600080fdfea2646970667358221220bed565676fadcba70cee2ec746a35ec25216de48e621946c30699a81e3ef777164736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}