├── .env.template ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md ├── broadcast └── Deploy.s.sol │ └── 1 │ ├── run-1680890319.json │ ├── run-1690817978.json │ └── run-latest.json ├── foundry.toml ├── script ├── Deploy.s.sol ├── DeployInput.sol └── Propose.s.sol ├── src ├── GitcoinGovernor.sol └── interfaces │ ├── IGTC.sol │ └── IGovernorAlpha.sol └── test └── GitcoinGovernor.t.sol /.env.template: -------------------------------------------------------------------------------- 1 | DEPLOYER_PRIVATE_KEY= 2 | PROPOSER_PRIVATE_KEY= 3 | MAINNET_RPC_URL= 4 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | workflow_dispatch: 5 | pull_request: 6 | push: 7 | branches: 8 | - main 9 | 10 | env: 11 | FOUNDRY_PROFILE: ci 12 | 13 | jobs: 14 | build: 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v3 18 | 19 | - name: Install Foundry 20 | uses: foundry-rs/foundry-toolchain@v1 21 | with: 22 | version: nightly 23 | 24 | - name: Build contracts 25 | run: | 26 | forge --version 27 | forge build --sizes 28 | 29 | test: 30 | runs-on: ubuntu-latest 31 | env: 32 | DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }} 33 | MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} 34 | PROPOSER_PRIVATE_KEY: ${{ secrets.PROPOSER_PRIVATE_KEY }} 35 | steps: 36 | - uses: actions/checkout@v3 37 | 38 | - name: Install Foundry 39 | uses: foundry-rs/foundry-toolchain@v1 40 | with: 41 | version: nightly 42 | 43 | - name: Cache fork requests 44 | uses: actions/cache@v3 45 | with: 46 | path: ~/.foundry/cache 47 | key: ${{ runner.os }}-foundry-network-fork-${{ github.sha }} 48 | restore-keys: | 49 | ${{ runner.os }}-foundry-network-fork- 50 | 51 | # https://twitter.com/PaulRBerg/status/1611116650664796166 52 | - name: Generate fuzz seed with 1 week TTL 53 | run: > 54 | echo "FOUNDRY_FUZZ_SEED=$( 55 | echo $(($EPOCHSECONDS - $EPOCHSECONDS % 604800)) 56 | )" >> $GITHUB_ENV 57 | 58 | - name: Run tests 59 | run: forge test 60 | 61 | coverage: 62 | env: 63 | DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }} 64 | MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} 65 | PROPOSER_PRIVATE_KEY: ${{ secrets.PROPOSER_PRIVATE_KEY }} 66 | runs-on: ubuntu-latest 67 | steps: 68 | - uses: actions/checkout@v3 69 | 70 | - name: Install Foundry 71 | uses: foundry-rs/foundry-toolchain@v1 72 | with: 73 | version: nightly 74 | 75 | - name: Cache fork requests 76 | uses: actions/cache@v3 77 | with: 78 | path: ~/.foundry/cache 79 | key: ${{ runner.os }}-foundry-network-fork-${{ github.sha }} 80 | restore-keys: | 81 | ${{ runner.os }}-foundry-network-fork- 82 | 83 | # https://twitter.com/PaulRBerg/status/1611116650664796166 84 | - name: Recycle the fuzz seed from the test run 85 | run: > 86 | echo "FOUNDRY_FUZZ_SEED=$( 87 | echo $(($EPOCHSECONDS - $EPOCHSECONDS % 604800)) 88 | )" >> $GITHUB_ENV 89 | 90 | - name: Run coverage 91 | run: forge coverage --report summary --report lcov 92 | 93 | fmt: 94 | runs-on: ubuntu-latest 95 | steps: 96 | - uses: actions/checkout@v3 97 | 98 | - name: Install Foundry 99 | uses: foundry-rs/foundry-toolchain@v1 100 | with: 101 | version: nightly 102 | 103 | - name: Install scopelint 104 | uses: engineerd/configurator@v0.0.8 105 | with: 106 | name: scopelint 107 | repo: ScopeLift/scopelint 108 | fromGitHubReleases: true 109 | version: latest 110 | pathInArchive: scopelint-x86_64-linux/scopelint 111 | urlTemplate: https://github.com/ScopeLift/scopelint/releases/download/{{version}}/scopelint-x86_64-linux.tar.xz 112 | token: ${{ secrets.GITHUB_TOKEN }} 113 | 114 | - name: Check formatting 115 | run: | 116 | scopelint --version 117 | scopelint check 118 | 119 | slither-analyze: 120 | runs-on: ubuntu-latest 121 | steps: 122 | - uses: actions/checkout@v3 123 | 124 | - name: Run Slither 125 | uses: crytic/slither-action@v0.3.0 126 | id: slither # Required to reference this step in the next step. 127 | with: 128 | fail-on: none # Required to avoid failing the CI run regardless of findings. 129 | sarif: results.sarif 130 | slither-args: --filter-paths "./lib|./test" --exclude naming-convention,solc-version 131 | 132 | - name: Upload SARIF file 133 | uses: github/codeql-action/upload-sarif@v2 134 | with: 135 | sarif_file: ${{ steps.slither.outputs.sarif }} 136 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler files 2 | cache/ 3 | out/ 4 | 5 | # Ignores development broadcast logs 6 | !/broadcast 7 | /broadcast/*/31337/ 8 | /broadcast/**/dry-run/ 9 | 10 | # Dotenv file 11 | .env 12 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "lib/forge-std"] 2 | path = lib/forge-std 3 | url = https://github.com/foundry-rs/forge-std 4 | [submodule "lib/flexible-voting"] 5 | path = lib/flexible-voting 6 | url = https://github.com/scopelift/flexible-voting 7 | [submodule "lib/solmate"] 8 | path = lib/solmate 9 | url = https://github.com/transmissions11/solmate 10 | branch = v7 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2022 Gitcoin Core 2 | founders@gitcoin.co 3 | 4 | 5 | GNU AFFERO GENERAL PUBLIC LICENSE 6 | Version 3, 19 November 2007 7 | 8 | Copyright (C) 2007 Free Software Foundation, Inc. 9 | Everyone is permitted to copy and distribute verbatim copies 10 | of this license document, but changing it is not allowed. 11 | 12 | Preamble 13 | 14 | The GNU Affero General Public License is a free, copyleft license for 15 | software and other kinds of works, specifically designed to ensure 16 | cooperation with the community in the case of network server software. 17 | 18 | The licenses for most software and other practical works are designed 19 | to take away your freedom to share and change the works. By contrast, 20 | our General Public Licenses are intended to guarantee your freedom to 21 | share and change all versions of a program--to make sure it remains free 22 | software for all its users. 23 | 24 | When we speak of free software, we are referring to freedom, not 25 | price. Our General Public Licenses are designed to make sure that you 26 | have the freedom to distribute copies of free software (and charge for 27 | them if you wish), that you receive source code or can get it if you 28 | want it, that you can change the software or use pieces of it in new 29 | free programs, and that you know you can do these things. 30 | 31 | Developers that use our General Public Licenses protect your rights 32 | with two steps: (1) assert copyright on the software, and (2) offer 33 | you this License which gives you legal permission to copy, distribute 34 | and/or modify the software. 35 | 36 | A secondary benefit of defending all users' freedom is that 37 | improvements made in alternate versions of the program, if they 38 | receive widespread use, become available for other developers to 39 | incorporate. Many developers of free software are heartened and 40 | encouraged by the resulting cooperation. However, in the case of 41 | software used on network servers, this result may fail to come about. 42 | The GNU General Public License permits making a modified version and 43 | letting the public access it on a server without ever releasing its 44 | source code to the public. 45 | 46 | The GNU Affero General Public License is designed specifically to 47 | ensure that, in such cases, the modified source code becomes available 48 | to the community. It requires the operator of a network server to 49 | provide the source code of the modified version running there to the 50 | users of that server. Therefore, public use of a modified version, on 51 | a publicly accessible server, gives the public access to the source 52 | code of the modified version. 53 | 54 | An older license, called the Affero General Public License and 55 | published by Affero, was designed to accomplish similar goals. This is 56 | a different license, not a version of the Affero GPL, but Affero has 57 | released a new version of the Affero GPL which permits relicensing under 58 | this license. 59 | 60 | The precise terms and conditions for copying, distribution and 61 | modification follow. 62 | 63 | TERMS AND CONDITIONS 64 | 65 | 0. Definitions. 66 | 67 | "This License" refers to version 3 of the GNU Affero General Public License. 68 | 69 | "Copyright" also means copyright-like laws that apply to other kinds of 70 | works, such as semiconductor masks. 71 | 72 | "The Program" refers to any copyrightable work licensed under this 73 | License. Each licensee is addressed as "you". "Licensees" and 74 | "recipients" may be individuals or organizations. 75 | 76 | To "modify" a work means to copy from or adapt all or part of the work 77 | in a fashion requiring copyright permission, other than the making of an 78 | exact copy. The resulting work is called a "modified version" of the 79 | earlier work or a work "based on" the earlier work. 80 | 81 | A "covered work" means either the unmodified Program or a work based 82 | on the Program. 83 | 84 | To "propagate" a work means to do anything with it that, without 85 | permission, would make you directly or secondarily liable for 86 | infringement under applicable copyright law, except executing it on a 87 | computer or modifying a private copy. Propagation includes copying, 88 | distribution (with or without modification), making available to the 89 | public, and in some countries other activities as well. 90 | 91 | To "convey" a work means any kind of propagation that enables other 92 | parties to make or receive copies. Mere interaction with a user through 93 | a computer network, with no transfer of a copy, is not conveying. 94 | 95 | An interactive user interface displays "Appropriate Legal Notices" 96 | to the extent that it includes a convenient and prominently visible 97 | feature that (1) displays an appropriate copyright notice, and (2) 98 | tells the user that there is no warranty for the work (except to the 99 | extent that warranties are provided), that licensees may convey the 100 | work under this License, and how to view a copy of this License. If 101 | the interface presents a list of user commands or options, such as a 102 | menu, a prominent item in the list meets this criterion. 103 | 104 | 1. Source Code. 105 | 106 | The "source code" for a work means the preferred form of the work 107 | for making modifications to it. "Object code" means any non-source 108 | form of a work. 109 | 110 | A "Standard Interface" means an interface that either is an official 111 | standard defined by a recognized standards body, or, in the case of 112 | interfaces specified for a particular programming language, one that 113 | is widely used among developers working in that language. 114 | 115 | The "System Libraries" of an executable work include anything, other 116 | than the work as a whole, that (a) is included in the normal form of 117 | packaging a Major Component, but which is not part of that Major 118 | Component, and (b) serves only to enable use of the work with that 119 | Major Component, or to implement a Standard Interface for which an 120 | implementation is available to the public in source code form. A 121 | "Major Component", in this context, means a major essential component 122 | (kernel, window system, and so on) of the specific operating system 123 | (if any) on which the executable work runs, or a compiler used to 124 | produce the work, or an object code interpreter used to run it. 125 | 126 | The "Corresponding Source" for a work in object code form means all 127 | the source code needed to generate, install, and (for an executable 128 | work) run the object code and to modify the work, including scripts to 129 | control those activities. However, it does not include the work's 130 | System Libraries, or general-purpose tools or generally available free 131 | programs which are used unmodified in performing those activities but 132 | which are not part of the work. For example, Corresponding Source 133 | includes interface definition files associated with source files for 134 | the work, and the source code for shared libraries and dynamically 135 | linked subprograms that the work is specifically designed to require, 136 | such as by intimate data communication or control flow between those 137 | subprograms and other parts of the work. 138 | 139 | The Corresponding Source need not include anything that users 140 | can regenerate automatically from other parts of the Corresponding 141 | Source. 142 | 143 | The Corresponding Source for a work in source code form is that 144 | same work. 145 | 146 | 2. Basic Permissions. 147 | 148 | All rights granted under this License are granted for the term of 149 | copyright on the Program, and are irrevocable provided the stated 150 | conditions are met. This License explicitly affirms your unlimited 151 | permission to run the unmodified Program. The output from running a 152 | covered work is covered by this License only if the output, given its 153 | content, constitutes a covered work. This License acknowledges your 154 | rights of fair use or other equivalent, as provided by copyright law. 155 | 156 | You may make, run and propagate covered works that you do not 157 | convey, without conditions so long as your license otherwise remains 158 | in force. You may convey covered works to others for the sole purpose 159 | of having them make modifications exclusively for you, or provide you 160 | with facilities for running those works, provided that you comply with 161 | the terms of this License in conveying all material for which you do 162 | not control copyright. Those thus making or running the covered works 163 | for you must do so exclusively on your behalf, under your direction 164 | and control, on terms that prohibit them from making any copies of 165 | your copyrighted material outside their relationship with you. 166 | 167 | Conveying under any other circumstances is permitted solely under 168 | the conditions stated below. Sublicensing is not allowed; section 10 169 | makes it unnecessary. 170 | 171 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 172 | 173 | No covered work shall be deemed part of an effective technological 174 | measure under any applicable law fulfilling obligations under article 175 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 176 | similar laws prohibiting or restricting circumvention of such 177 | measures. 178 | 179 | When you convey a covered work, you waive any legal power to forbid 180 | circumvention of technological measures to the extent such circumvention 181 | is effected by exercising rights under this License with respect to 182 | the covered work, and you disclaim any intention to limit operation or 183 | modification of the work as a means of enforcing, against the work's 184 | users, your or third parties' legal rights to forbid circumvention of 185 | technological measures. 186 | 187 | 4. Conveying Verbatim Copies. 188 | 189 | You may convey verbatim copies of the Program's source code as you 190 | receive it, in any medium, provided that you conspicuously and 191 | appropriately publish on each copy an appropriate copyright notice; 192 | keep intact all notices stating that this License and any 193 | non-permissive terms added in accord with section 7 apply to the code; 194 | keep intact all notices of the absence of any warranty; and give all 195 | recipients a copy of this License along with the Program. 196 | 197 | You may charge any price or no price for each copy that you convey, 198 | and you may offer support or warranty protection for a fee. 199 | 200 | 5. Conveying Modified Source Versions. 201 | 202 | You may convey a work based on the Program, or the modifications to 203 | produce it from the Program, in the form of source code under the 204 | terms of section 4, provided that you also meet all of these conditions: 205 | 206 | a) The work must carry prominent notices stating that you modified 207 | it, and giving a relevant date. 208 | 209 | b) The work must carry prominent notices stating that it is 210 | released under this License and any conditions added under section 211 | 7. This requirement modifies the requirement in section 4 to 212 | "keep intact all notices". 213 | 214 | c) You must license the entire work, as a whole, under this 215 | License to anyone who comes into possession of a copy. This 216 | License will therefore apply, along with any applicable section 7 217 | additional terms, to the whole of the work, and all its parts, 218 | regardless of how they are packaged. This License gives no 219 | permission to license the work in any other way, but it does not 220 | invalidate such permission if you have separately received it. 221 | 222 | d) If the work has interactive user interfaces, each must display 223 | Appropriate Legal Notices; however, if the Program has interactive 224 | interfaces that do not display Appropriate Legal Notices, your 225 | work need not make them do so. 226 | 227 | A compilation of a covered work with other separate and independent 228 | works, which are not by their nature extensions of the covered work, 229 | and which are not combined with it such as to form a larger program, 230 | in or on a volume of a storage or distribution medium, is called an 231 | "aggregate" if the compilation and its resulting copyright are not 232 | used to limit the access or legal rights of the compilation's users 233 | beyond what the individual works permit. Inclusion of a covered work 234 | in an aggregate does not cause this License to apply to the other 235 | parts of the aggregate. 236 | 237 | 6. Conveying Non-Source Forms. 238 | 239 | You may convey a covered work in object code form under the terms 240 | of sections 4 and 5, provided that you also convey the 241 | machine-readable Corresponding Source under the terms of this License, 242 | in one of these ways: 243 | 244 | a) Convey the object code in, or embodied in, a physical product 245 | (including a physical distribution medium), accompanied by the 246 | Corresponding Source fixed on a durable physical medium 247 | customarily used for software interchange. 248 | 249 | b) Convey the object code in, or embodied in, a physical product 250 | (including a physical distribution medium), accompanied by a 251 | written offer, valid for at least three years and valid for as 252 | long as you offer spare parts or customer support for that product 253 | model, to give anyone who possesses the object code either (1) a 254 | copy of the Corresponding Source for all the software in the 255 | product that is covered by this License, on a durable physical 256 | medium customarily used for software interchange, for a price no 257 | more than your reasonable cost of physically performing this 258 | conveying of source, or (2) access to copy the 259 | Corresponding Source from a network server at no charge. 260 | 261 | c) Convey individual copies of the object code with a copy of the 262 | written offer to provide the Corresponding Source. This 263 | alternative is allowed only occasionally and noncommercially, and 264 | only if you received the object code with such an offer, in accord 265 | with subsection 6b. 266 | 267 | d) Convey the object code by offering access from a designated 268 | place (gratis or for a charge), and offer equivalent access to the 269 | Corresponding Source in the same way through the same place at no 270 | further charge. You need not require recipients to copy the 271 | Corresponding Source along with the object code. If the place to 272 | copy the object code is a network server, the Corresponding Source 273 | may be on a different server (operated by you or a third party) 274 | that supports equivalent copying facilities, provided you maintain 275 | clear directions next to the object code saying where to find the 276 | Corresponding Source. Regardless of what server hosts the 277 | Corresponding Source, you remain obligated to ensure that it is 278 | available for as long as needed to satisfy these requirements. 279 | 280 | e) Convey the object code using peer-to-peer transmission, provided 281 | you inform other peers where the object code and Corresponding 282 | Source of the work are being offered to the general public at no 283 | charge under subsection 6d. 284 | 285 | A separable portion of the object code, whose source code is excluded 286 | from the Corresponding Source as a System Library, need not be 287 | included in conveying the object code work. 288 | 289 | A "User Product" is either (1) a "consumer product", which means any 290 | tangible personal property which is normally used for personal, family, 291 | or household purposes, or (2) anything designed or sold for incorporation 292 | into a dwelling. In determining whether a product is a consumer product, 293 | doubtful cases shall be resolved in favor of coverage. For a particular 294 | product received by a particular user, "normally used" refers to a 295 | typical or common use of that class of product, regardless of the status 296 | of the particular user or of the way in which the particular user 297 | actually uses, or expects or is expected to use, the product. A product 298 | is a consumer product regardless of whether the product has substantial 299 | commercial, industrial or non-consumer uses, unless such uses represent 300 | the only significant mode of use of the product. 301 | 302 | "Installation Information" for a User Product means any methods, 303 | procedures, authorization keys, or other information required to install 304 | and execute modified versions of a covered work in that User Product from 305 | a modified version of its Corresponding Source. The information must 306 | suffice to ensure that the continued functioning of the modified object 307 | code is in no case prevented or interfered with solely because 308 | modification has been made. 309 | 310 | If you convey an object code work under this section in, or with, or 311 | specifically for use in, a User Product, and the conveying occurs as 312 | part of a transaction in which the right of possession and use of the 313 | User Product is transferred to the recipient in perpetuity or for a 314 | fixed term (regardless of how the transaction is characterized), the 315 | Corresponding Source conveyed under this section must be accompanied 316 | by the Installation Information. But this requirement does not apply 317 | if neither you nor any third party retains the ability to install 318 | modified object code on the User Product (for example, the work has 319 | been installed in ROM). 320 | 321 | The requirement to provide Installation Information does not include a 322 | requirement to continue to provide support service, warranty, or updates 323 | for a work that has been modified or installed by the recipient, or for 324 | the User Product in which it has been modified or installed. Access to a 325 | network may be denied when the modification itself materially and 326 | adversely affects the operation of the network or violates the rules and 327 | protocols for communication across the network. 328 | 329 | Corresponding Source conveyed, and Installation Information provided, 330 | in accord with this section must be in a format that is publicly 331 | documented (and with an implementation available to the public in 332 | source code form), and must require no special password or key for 333 | unpacking, reading or copying. 334 | 335 | 7. Additional Terms. 336 | 337 | "Additional permissions" are terms that supplement the terms of this 338 | License by making exceptions from one or more of its conditions. 339 | Additional permissions that are applicable to the entire Program shall 340 | be treated as though they were included in this License, to the extent 341 | that they are valid under applicable law. If additional permissions 342 | apply only to part of the Program, that part may be used separately 343 | under those permissions, but the entire Program remains governed by 344 | this License without regard to the additional permissions. 345 | 346 | When you convey a copy of a covered work, you may at your option 347 | remove any additional permissions from that copy, or from any part of 348 | it. (Additional permissions may be written to require their own 349 | removal in certain cases when you modify the work.) You may place 350 | additional permissions on material, added by you to a covered work, 351 | for which you have or can give appropriate copyright permission. 352 | 353 | Notwithstanding any other provision of this License, for material you 354 | add to a covered work, you may (if authorized by the copyright holders of 355 | that material) supplement the terms of this License with terms: 356 | 357 | a) Disclaiming warranty or limiting liability differently from the 358 | terms of sections 15 and 16 of this License; or 359 | 360 | b) Requiring preservation of specified reasonable legal notices or 361 | author attributions in that material or in the Appropriate Legal 362 | Notices displayed by works containing it; or 363 | 364 | c) Prohibiting misrepresentation of the origin of that material, or 365 | requiring that modified versions of such material be marked in 366 | reasonable ways as different from the original version; or 367 | 368 | d) Limiting the use for publicity purposes of names of licensors or 369 | authors of the material; or 370 | 371 | e) Declining to grant rights under trademark law for use of some 372 | trade names, trademarks, or service marks; or 373 | 374 | f) Requiring indemnification of licensors and authors of that 375 | material by anyone who conveys the material (or modified versions of 376 | it) with contractual assumptions of liability to the recipient, for 377 | any liability that these contractual assumptions directly impose on 378 | those licensors and authors. 379 | 380 | All other non-permissive additional terms are considered "further 381 | restrictions" within the meaning of section 10. If the Program as you 382 | received it, or any part of it, contains a notice stating that it is 383 | governed by this License along with a term that is a further 384 | restriction, you may remove that term. If a license document contains 385 | a further restriction but permits relicensing or conveying under this 386 | License, you may add to a covered work material governed by the terms 387 | of that license document, provided that the further restriction does 388 | not survive such relicensing or conveying. 389 | 390 | If you add terms to a covered work in accord with this section, you 391 | must place, in the relevant source files, a statement of the 392 | additional terms that apply to those files, or a notice indicating 393 | where to find the applicable terms. 394 | 395 | Additional terms, permissive or non-permissive, may be stated in the 396 | form of a separately written license, or stated as exceptions; 397 | the above requirements apply either way. 398 | 399 | 8. Termination. 400 | 401 | You may not propagate or modify a covered work except as expressly 402 | provided under this License. Any attempt otherwise to propagate or 403 | modify it is void, and will automatically terminate your rights under 404 | this License (including any patent licenses granted under the third 405 | paragraph of section 11). 406 | 407 | However, if you cease all violation of this License, then your 408 | license from a particular copyright holder is reinstated (a) 409 | provisionally, unless and until the copyright holder explicitly and 410 | finally terminates your license, and (b) permanently, if the copyright 411 | holder fails to notify you of the violation by some reasonable means 412 | prior to 60 days after the cessation. 413 | 414 | Moreover, your license from a particular copyright holder is 415 | reinstated permanently if the copyright holder notifies you of the 416 | violation by some reasonable means, this is the first time you have 417 | received notice of violation of this License (for any work) from that 418 | copyright holder, and you cure the violation prior to 30 days after 419 | your receipt of the notice. 420 | 421 | Termination of your rights under this section does not terminate the 422 | licenses of parties who have received copies or rights from you under 423 | this License. If your rights have been terminated and not permanently 424 | reinstated, you do not qualify to receive new licenses for the same 425 | material under section 10. 426 | 427 | 9. Acceptance Not Required for Having Copies. 428 | 429 | You are not required to accept this License in order to receive or 430 | run a copy of the Program. Ancillary propagation of a covered work 431 | occurring solely as a consequence of using peer-to-peer transmission 432 | to receive a copy likewise does not require acceptance. However, 433 | nothing other than this License grants you permission to propagate or 434 | modify any covered work. These actions infringe copyright if you do 435 | not accept this License. Therefore, by modifying or propagating a 436 | covered work, you indicate your acceptance of this License to do so. 437 | 438 | 10. Automatic Licensing of Downstream Recipients. 439 | 440 | Each time you convey a covered work, the recipient automatically 441 | receives a license from the original licensors, to run, modify and 442 | propagate that work, subject to this License. You are not responsible 443 | for enforcing compliance by third parties with this License. 444 | 445 | An "entity transaction" is a transaction transferring control of an 446 | organization, or substantially all assets of one, or subdividing an 447 | organization, or merging organizations. If propagation of a covered 448 | work results from an entity transaction, each party to that 449 | transaction who receives a copy of the work also receives whatever 450 | licenses to the work the party's predecessor in interest had or could 451 | give under the previous paragraph, plus a right to possession of the 452 | Corresponding Source of the work from the predecessor in interest, if 453 | the predecessor has it or can get it with reasonable efforts. 454 | 455 | You may not impose any further restrictions on the exercise of the 456 | rights granted or affirmed under this License. For example, you may 457 | not impose a license fee, royalty, or other charge for exercise of 458 | rights granted under this License, and you may not initiate litigation 459 | (including a cross-claim or counterclaim in a lawsuit) alleging that 460 | any patent claim is infringed by making, using, selling, offering for 461 | sale, or importing the Program or any portion of it. 462 | 463 | 11. Patents. 464 | 465 | A "contributor" is a copyright holder who authorizes use under this 466 | License of the Program or a work on which the Program is based. The 467 | work thus licensed is called the contributor's "contributor version". 468 | 469 | A contributor's "essential patent claims" are all patent claims 470 | owned or controlled by the contributor, whether already acquired or 471 | hereafter acquired, that would be infringed by some manner, permitted 472 | by this License, of making, using, or selling its contributor version, 473 | but do not include claims that would be infringed only as a 474 | consequence of further modification of the contributor version. For 475 | purposes of this definition, "control" includes the right to grant 476 | patent sublicenses in a manner consistent with the requirements of 477 | this License. 478 | 479 | Each contributor grants you a non-exclusive, worldwide, royalty-free 480 | patent license under the contributor's essential patent claims, to 481 | make, use, sell, offer for sale, import and otherwise run, modify and 482 | propagate the contents of its contributor version. 483 | 484 | In the following three paragraphs, a "patent license" is any express 485 | agreement or commitment, however denominated, not to enforce a patent 486 | (such as an express permission to practice a patent or covenant not to 487 | sue for patent infringement). To "grant" such a patent license to a 488 | party means to make such an agreement or commitment not to enforce a 489 | patent against the party. 490 | 491 | If you convey a covered work, knowingly relying on a patent license, 492 | and the Corresponding Source of the work is not available for anyone 493 | to copy, free of charge and under the terms of this License, through a 494 | publicly available network server or other readily accessible means, 495 | then you must either (1) cause the Corresponding Source to be so 496 | available, or (2) arrange to deprive yourself of the benefit of the 497 | patent license for this particular work, or (3) arrange, in a manner 498 | consistent with the requirements of this License, to extend the patent 499 | license to downstream recipients. "Knowingly relying" means you have 500 | actual knowledge that, but for the patent license, your conveying the 501 | covered work in a country, or your recipient's use of the covered work 502 | in a country, would infringe one or more identifiable patents in that 503 | country that you have reason to believe are valid. 504 | 505 | If, pursuant to or in connection with a single transaction or 506 | arrangement, you convey, or propagate by procuring conveyance of, a 507 | covered work, and grant a patent license to some of the parties 508 | receiving the covered work authorizing them to use, propagate, modify 509 | or convey a specific copy of the covered work, then the patent license 510 | you grant is automatically extended to all recipients of the covered 511 | work and works based on it. 512 | 513 | A patent license is "discriminatory" if it does not include within 514 | the scope of its coverage, prohibits the exercise of, or is 515 | conditioned on the non-exercise of one or more of the rights that are 516 | specifically granted under this License. You may not convey a covered 517 | work if you are a party to an arrangement with a third party that is 518 | in the business of distributing software, under which you make payment 519 | to the third party based on the extent of your activity of conveying 520 | the work, and under which the third party grants, to any of the 521 | parties who would receive the covered work from you, a discriminatory 522 | patent license (a) in connection with copies of the covered work 523 | conveyed by you (or copies made from those copies), or (b) primarily 524 | for and in connection with specific products or compilations that 525 | contain the covered work, unless you entered into that arrangement, 526 | or that patent license was granted, prior to 28 March 2007. 527 | 528 | Nothing in this License shall be construed as excluding or limiting 529 | any implied license or other defenses to infringement that may 530 | otherwise be available to you under applicable patent law. 531 | 532 | 12. No Surrender of Others' Freedom. 533 | 534 | If conditions are imposed on you (whether by court order, agreement or 535 | otherwise) that contradict the conditions of this License, they do not 536 | excuse you from the conditions of this License. If you cannot convey a 537 | covered work so as to satisfy simultaneously your obligations under this 538 | License and any other pertinent obligations, then as a consequence you may 539 | not convey it at all. For example, if you agree to terms that obligate you 540 | to collect a royalty for further conveying from those to whom you convey 541 | the Program, the only way you could satisfy both those terms and this 542 | License would be to refrain entirely from conveying the Program. 543 | 544 | 13. Remote Network Interaction; Use with the GNU General Public License. 545 | 546 | Notwithstanding any other provision of this License, if you modify the 547 | Program, your modified version must prominently offer all users 548 | interacting with it remotely through a computer network (if your version 549 | supports such interaction) an opportunity to receive the Corresponding 550 | Source of your version by providing access to the Corresponding Source 551 | from a network server at no charge, through some standard or customary 552 | means of facilitating copying of software. This Corresponding Source 553 | shall include the Corresponding Source for any work covered by version 3 554 | of the GNU General Public License that is incorporated pursuant to the 555 | following paragraph. 556 | 557 | Notwithstanding any other provision of this License, you have 558 | permission to link or combine any covered work with a work licensed 559 | under version 3 of the GNU General Public License into a single 560 | combined work, and to convey the resulting work. The terms of this 561 | License will continue to apply to the part which is the covered work, 562 | but the work with which it is combined will remain governed by version 563 | 3 of the GNU General Public License. 564 | 565 | 14. Revised Versions of this License. 566 | 567 | The Free Software Foundation may publish revised and/or new versions of 568 | the GNU Affero General Public License from time to time. Such new versions 569 | will be similar in spirit to the present version, but may differ in detail to 570 | address new problems or concerns. 571 | 572 | Each version is given a distinguishing version number. If the 573 | Program specifies that a certain numbered version of the GNU Affero General 574 | Public License "or any later version" applies to it, you have the 575 | option of following the terms and conditions either of that numbered 576 | version or of any later version published by the Free Software 577 | Foundation. If the Program does not specify a version number of the 578 | GNU Affero General Public License, you may choose any version ever published 579 | by the Free Software Foundation. 580 | 581 | If the Program specifies that a proxy can decide which future 582 | versions of the GNU Affero General Public License can be used, that proxy's 583 | public statement of acceptance of a version permanently authorizes you 584 | to choose that version for the Program. 585 | 586 | Later license versions may give you additional or different 587 | permissions. However, no additional obligations are imposed on any 588 | author or copyright holder as a result of your choosing to follow a 589 | later version. 590 | 591 | 15. Disclaimer of Warranty. 592 | 593 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 594 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 595 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 596 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 597 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 598 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 599 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 600 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 601 | 602 | 16. Limitation of Liability. 603 | 604 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 605 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 606 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 607 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 608 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 609 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 610 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 611 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 612 | SUCH DAMAGES. 613 | 614 | 17. Interpretation of Sections 15 and 16. 615 | 616 | If the disclaimer of warranty and limitation of liability provided 617 | above cannot be given local legal effect according to their terms, 618 | reviewing courts shall apply local law that most closely approximates 619 | an absolute waiver of all civil liability in connection with the 620 | Program, unless a warranty or assumption of liability accompanies a 621 | copy of the Program in return for a fee. 622 | 623 | END OF TERMS AND CONDITIONS -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gitcoin Governor Bravo 2 | 3 | An upgrade to a "Bravo" compatible Governor for the GitcoinDAO, built using the OpenZeppelin implementation and [Flexible Voting](https://github.com/ScopeLift/flexible-voting). 4 | 5 | ## Development 6 | 7 | ### Foundry 8 | 9 | This project uses [Foundry](https://github.com/foundry-rs/foundry). Follow [these instructions](https://github.com/foundry-rs/foundry#installation) to install it. 10 | 11 | 12 | #### Getting started 13 | 14 | Clone the repo 15 | 16 | ```bash 17 | git clone git@github.com:gitcoinco/2022-Governor-upgrade.git 18 | cd 2022-Governor-upgrade 19 | ``` 20 | 21 | Copy the `.env.template` file and populate it with values 22 | 23 | ```bash 24 | cp .env.template .env 25 | # Open the .env file and add your values 26 | ``` 27 | 28 | ```bash 29 | forge install 30 | forge build 31 | forge test 32 | ``` 33 | 34 | ### Formatting 35 | 36 | Formatting is done via [scopelint](https://github.com/ScopeLift/scopelint). To install scopelint, run: 37 | 38 | ```bash 39 | cargo install scopelint 40 | ``` 41 | 42 | #### Apply formatting 43 | 44 | ```bash 45 | scopelint fmt 46 | ``` 47 | 48 | #### Check formatting 49 | 50 | ```bash 51 | scopelint check 52 | ``` 53 | 54 | ## Scripts 55 | 56 | * `script/Deploy.s.sol` - Deploys the GitcoinGovernor contract 57 | * `script/Propose.s.sol` - Submits a proposal to the existing Gitcoin Governor Alpha proposing migration to the GitcoinGovernor. Must be executed by someone with sufficient GTC delegation. 58 | 59 | To test these scripts locally, start a local fork with anvil: 60 | 61 | ```bash 62 | anvil --fork-url YOUR_RPC_URL --fork-block-number 15980096 63 | ``` 64 | 65 | Then execute the deploy script. 66 | 67 | _NOTE_: You must populate the `DEPLOYER_PRIVATE_KEY` in your `.env` file for this to work. 68 | 69 | ```bash 70 | forge script script/Deploy.s.sol --tc DeployScript --rpc-url http://localhost:8545 --broadcast 71 | ``` 72 | 73 | Pull the contract address for the new Governor from the deploy script address, then execute the Proposal script. 74 | 75 | _NOTE_: You must populate the `PROPOSER_PRIVATE_KEY` in your `.env` file for this to work. Additionally, the 76 | private key must correspond to the `proposer` address defined in the `Proposal.s.sol` script. You can update this 77 | variable to an address you control, however the proposal itself will still revert in this case, unless you provide 78 | the private key of an address that has sufficient GTC Token delegation to have the right to submit a proposal. 79 | 80 | ```bash 81 | forge script script/Propose.s.sol --sig "run(address)" NEW_GOVERNOR_ADDRESS --rpc-url http://localhost:8545 --broadcast 82 | ``` 83 | 84 | ## Dependencies 85 | 86 | The Gitcoin Bravo governor inherits from `GovernorCountingFractional`, which is 87 | defined in the [Flexible Voting](https://github.com/ScopeLift/flexible-voting) 88 | project. This is done to enable: 89 | 90 | * partial voting (voting with less than full weight) 91 | * rolling voting (voting multiple times on the same proposal with partial weight) 92 | * split voting (splitting vote weight across against/for/abstain options) 93 | 94 | We use the `v1.0.0` tag of Flexible Voting because this was the version audited by 95 | Open Zeppelin. 96 | 97 | Additionally, this project depends on [Open Zeppelin's contracts 98 | library](https://github.com/OpenZeppelin/openzeppelin-contracts/). However, 99 | because of [an open issue in foundry](https://github.com/foundry-rs/foundry/issues/1855), 100 | we are currently sourcing the OZ library from within the Flexible Voting dependency. 101 | Flexible Voting [uses 102 | OZ](https://github.com/ScopeLift/flexible-voting/tree/4399694c1a70d9e236c4c072802bfbe8e4951bf0/lib) 103 | tagged at [v4.8.0](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.0). (Note that an alternative solution would be to install OZ in this repo like normal, and just reference it with relative paths instead of absolute paths). 104 | 105 | At the time of writing (March 28 2023) [there are no 106 | changes](https://github.com/OpenZeppelin/openzeppelin-contracts/compare/49c0e43...d00acef) to any of the OZ 107 | contracts used by this repository between v4.8.0 and the [latest 108 | release, v4.8.2](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2). 109 | 110 | ## License 111 | 112 | The code in this repository is licensed under the [GNU Affero General Public License](LICENSE) unless otherwise indicated. 113 | 114 | Copyright (C) 2023 Gitcoin Core 115 | -------------------------------------------------------------------------------- /broadcast/Deploy.s.sol/1/run-1680890319.json: -------------------------------------------------------------------------------- 1 | { 2 | "transactions": [ 3 | { 4 | "hash": "0x61d669c6c0b976637b8f4528b99b170f060227b2bc20892743f22c6a34c84e23", 5 | "transactionType": "CREATE", 6 | "contractName": "GitcoinGovernor", 7 | "contractAddress": "0x1a84384e1f1b12D53E60C8C528178dC87767b488", 8 | "function": null, 9 | "arguments": [ 10 | "13140", 11 | "40320", 12 | "1000000000000000000000000" 13 | ], 14 | "transaction": { 15 | "type": "0x02", 16 | "from": "0x617c01cb500e7065e7734699b76d7e0604af8b58", 17 | "gas": "0x553390", 18 | "value": "0x0", 19 | "data": "0x6101606040523480156200001257600080fd5b5060405162004ff938038062004ff983398101604081905262000035916200032f565b8282827357a8865cfb1ecef7253c27da6b4bc3daee5be51873de30da39c46104798bb5aa3fe8b9e0e1f348163f6040518060400160405280601281526020017147544320476f7665726e6f7220427261766f60701b815250806200009e6200018360201b60201c565b815160209283012081519183019190912060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909501209052919091526101205260006200013b828262000403565b50506001600160a01b03166101405262000155816200019e565b50620001618362000207565b6200016c8262000248565b6200017781620002ee565b505050505050620004cf565b6040805180820190915260018152603160f81b602082015290565b600654604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600680546001600160a01b0319166001600160a01b0392909216919091179055565b60085460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600855565b60008111620002ad5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840160405180910390fd5b60095460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600955565b600a5460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600a55565b6000806000606084860312156200034557600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200038957607f821691505b602082108103620003aa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003fe57600081815260208120601f850160051c81016020861015620003d95750805b601f850160051c820191505b81811015620003fa57828155600101620003e5565b5050505b505050565b81516001600160401b038111156200041f576200041f6200035e565b620004378162000430845462000374565b84620003b0565b602080601f8311600181146200046f5760008415620004565750858301515b600019600386901b1c1916600185901b178555620003fa565b600085815260208120601f198616915b82811015620004a0578886015182559484019460019091019084016200047f565b5085821015620004bf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e051610100516101205161014051614ac862000531600039600081816109b1015261254a01526000612959015260006129a801526000612983015260006128dc01526000612906015260006129300152614ac86000f3fe6080604052600436106102a45760003560e01c80637b3c71d31161016e578063c59057e4116100cb578063eb9019d41161007f578063f23a6e6111610064578063f23a6e611461092f578063f8ce560a14610974578063fc0c546a1461099f57600080fd5b8063eb9019d4146108ef578063ece40cc11461090f57600080fd5b8063dd4e2ba5116100b0578063dd4e2ba514610886578063deaaa7cc1461089b578063ea0217cf146108cf57600080fd5b8063c59057e41461081a578063d33219b41461083a57600080fd5b8063b58131b011610122578063bc197c8111610107578063bc197c81146107a2578063c01f9e37146107e7578063c28bc2fa1461080757600080fd5b8063b58131b014610778578063b9a619611461078d57600080fd5b80639a802a6d116101535780639a802a6d14610718578063a890c91014610738578063ab58fb8e1461075857600080fd5b80637b3c71d3146106d85780637d5e81e2146106f857600080fd5b8063342cfab61161021c578063544ffc9c116101d057806356781388116101b557806356781388146106785780635f398a141461069857806370b0f660146106b857600080fd5b8063544ffc9c146105b457806354fd4d501461063257600080fd5b80633bccf4fd116102015780633bccf4fd146105035780633e4f49e614610523578063438596321461055057600080fd5b8063342cfab61461046b5780633932abb1146104ee57600080fd5b8063150b7a02116102735780632656227d116102585780632656227d146104045780632d63f693146104175780632fe3e2611461043757600080fd5b8063150b7a021461036f578063160cbed7146103e457600080fd5b806301ffc9a7146102d957806302a251a31461030e578063034201811461032d57806306fdde031461034d57600080fd5b366102d457306102b26109d3565b73ffffffffffffffffffffffffffffffffffffffff16146102d257600080fd5b005b600080fd5b3480156102e557600080fd5b506102f96102f4366004613ad1565b6109f9565b60405190151581526020015b60405180910390f35b34801561031a57600080fd5b506009545b604051908152602001610305565b34801561033957600080fd5b5061031f610348366004613c94565b610a0a565b34801561035957600080fd5b50610362610b02565b6040516103059190613da9565b34801561037b57600080fd5b506103b361038a366004613dde565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610305565b3480156103f057600080fd5b5061031f6103ff366004613fb8565b610b94565b61031f610412366004613fb8565b611028565b34801561042357600080fd5b5061031f610432366004614048565b6111a3565b34801561044357600080fd5b5061031f7fb3b3f3b703cd84ce352197dcff232b1b5d3cfb2025ce47cf04742d0651f1af8881565b34801561047757600080fd5b506104cd610486366004614061565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff9390931684529190529020546fffffffffffffffffffffffffffffffff1690565b6040516fffffffffffffffffffffffffffffffff9091168152602001610305565b3480156104fa57600080fd5b5060085461031f565b34801561050f57600080fd5b5061031f61051e366004614091565b6111dc565b34801561052f57600080fd5b5061054361053e366004614048565b611252565b604051610305919061410e565b34801561055c57600080fd5b506102f961056b366004614061565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff9390931684529190529020546fffffffffffffffffffffffffffffffff16151590565b3480156105c057600080fd5b506106176105cf366004614048565b600090815260046020526040902080546001909101546fffffffffffffffffffffffffffffffff80831693700100000000000000000000000000000000909304811692911690565b60408051938452602084019290925290820152606001610305565b34801561063e57600080fd5b5060408051808201909152600181527f31000000000000000000000000000000000000000000000000000000000000006020820152610362565b34801561068457600080fd5b5061031f61069336600461414f565b61125d565b3480156106a457600080fd5b5061031f6106b336600461417b565b611286565b3480156106c457600080fd5b506102d26106d3366004614048565b6112d0565b3480156106e457600080fd5b5061031f6106f33660046141ff565b6113cb565b34801561070457600080fd5b5061031f610713366004614259565b61141d565b34801561072457600080fd5b5061031f61073336600461430e565b61186a565b34801561074457600080fd5b506102d2610753366004614367565b611881565b34801561076457600080fd5b5061031f610773366004614048565b611979565b34801561078457600080fd5b5061031f6119a6565b34801561079957600080fd5b506102d26119b1565b3480156107ae57600080fd5b506103b36107bd366004614384565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b3480156107f357600080fd5b5061031f610802366004614048565b611a35565b6102d2610815366004614418565b611a65565b34801561082657600080fd5b5061031f610835366004613fb8565b611bf2565b34801561084657600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610305565b34801561089257600080fd5b50610362611c4a565b3480156108a757600080fd5b5061031f7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156108db57600080fd5b506102d26108ea366004614048565b611c6a565b3480156108fb57600080fd5b5061031f61090a36600461445c565b611d62565b34801561091b57600080fd5b506102d261092a366004614048565b611d83565b34801561093b57600080fd5b506103b361094a366004614488565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561098057600080fd5b5061031f61098f366004614048565b506a021165458500521280000090565b3480156109ab57600080fd5b506108617f000000000000000000000000000000000000000000000000000000000000000081565b60006109f460065473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b6000610a0482611e7b565b92915050565b600080610aae610aa67fb3b3f3b703cd84ce352197dcff232b1b5d3cfb2025ce47cf04742d0651f1af888c8c8c8c604051610a469291906144f1565b60405180910390208b80519060200120604051602001610a8b959493929190948552602085019390935260ff9190911660408401526060830152608082015260a00190565b60405160208183030381529060405280519060200120611ed1565b868686611f3a565b9050610af48a828b8b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d9250611f58915050565b9a9950505050505050505050565b606060008054610b1190614501565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3d90614501565b8015610b8a5780601f10610b5f57610100808354040283529160200191610b8a565b820191906000526020600020905b815481529060010190602001808311610b6d57829003601f168201915b5050505050905090565b600080610ba386868686611bf2565b90506004610bb082611252565b6007811115610bc157610bc16140df565b14610c53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f742073756363657373667560448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600654604080517f6a42b8f8000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691636a42b8f89160048083019260209291908290030181865afa158015610cc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce79190614554565b610cf1904261459c565b9050610d44610cff8261210c565b60008481526007602052604090209081547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff91909116179055565b60005b8751811015610fe457600654885173ffffffffffffffffffffffffffffffffffffffff9091169063f2b06537908a9084908110610d8657610d866145af565b6020026020010151898481518110610da057610da06145af565b6020026020010151898581518110610dba57610dba6145af565b602002602001015186604051602001610dd694939291906145de565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610e0a91815260200190565b602060405180830381865afa158015610e27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4b9190614632565b15610efe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a206964656e746960448201527f63616c2070726f706f73616c20616374696f6e20616c7265616479207175657560648201527f6564000000000000000000000000000000000000000000000000000000000000608482015260a401610c4a565b600654885173ffffffffffffffffffffffffffffffffffffffff90911690633a66f901908a9084908110610f3457610f346145af565b6020026020010151898481518110610f4e57610f4e6145af565b6020026020010151898581518110610f6857610f686145af565b6020026020010151866040518563ffffffff1660e01b8152600401610f9094939291906145de565b6020604051808303816000875af1158015610faf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd39190614554565b50610fdd81614654565b9050610d47565b5060408051838152602081018390527f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda2892910160405180910390a15095945050505050565b60008061103786868686611bf2565b9050600061104482611252565b9050600481600781111561105a5761105a6140df565b148061107757506005816007811115611075576110756140df565b145b611103576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f742073756363657373667560448201527f6c000000000000000000000000000000000000000000000000000000000000006064820152608401610c4a565b60008281526001602081815260409283902060020180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a161117f82888888886121aa565b61118c8288888888612273565b6111998288888888612280565b5095945050505050565b600081815260016020908152604080832081519283019091525467ffffffffffffffff16908190525b67ffffffffffffffff1692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff85166060820152600090819061122a90610aa690608001610a8b565b9050611247878288604051806020016040528060008152506122d3565b979650505050505050565b6000610a04826122ff565b60008033905061127e848285604051806020016040528060008152506122d3565b949350505050565b60008033905061124787828888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a9250611f58915050565b6112d86109d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610c4a565b306113756109d3565b73ffffffffffffffffffffffffffffffffffffffff16146113bf57600080366040516113a29291906144f1565b604051809103902090505b806113b860026123fd565b036113ad57505b6113c8816124ba565b50565b60008033905061141386828787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122d392505050565b9695505050505050565b60006114276119a6565b6114363361090a60014361468c565b10156114c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f476f7665726e6f723a2070726f706f73657220766f7465732062656c6f77207060448201527f726f706f73616c207468726573686f6c640000000000000000000000000000006064820152608401610c4a565b60006114d98686868680519060200120611bf2565b9050845186511461156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e677460448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610c4a565b83518651146115fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e677460448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610c4a565b6000865111611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610c4a565b6000818152600160209081526040918290208251918201909252815467ffffffffffffffff16908190521561171f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c726561647920657869737460448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610c4a565b600061173261172d60085490565b61210c565b61173b4361210c565b611745919061469f565b9050600061175561172d60095490565b61175f908361469f565b83547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff841617845590506001830180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff83161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d5167ffffffffffffffff81111561180857611808613b72565b60405190808252806020026020018201604052801561183b57816020015b60608152602001906001900390816118265790505b508c88888e6040516118559998979695949392919061479d565b60405180910390a15091979650505050505050565b60006118778484846124fb565b90505b9392505050565b6118896109d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461191d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610c4a565b306119266109d3565b73ffffffffffffffffffffffffffffffffffffffff161461197057600080366040516119539291906144f1565b604051809103902090505b8061196960026123fd565b0361195e57505b6113c8816125cd565b600081815260076020908152604080832081519283019091525467ffffffffffffffff16908190526111cc565b60006109f4600a5490565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e18b6816040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611a1b57600080fd5b505af1158015611a2f573d6000803e3d6000fd5b50505050565b600081815260016020818152604080842081519283019091529091015467ffffffffffffffff16908190526111cc565b611a6d6109d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610c4a565b30611b0a6109d3565b73ffffffffffffffffffffffffffffffffffffffff1614611b545760008036604051611b379291906144f1565b604051809103902090505b80611b4d60026123fd565b03611b4257505b6000808573ffffffffffffffffffffffffffffffffffffffff16858585604051611b7f9291906144f1565b60006040518083038185875af1925050503d8060008114611bbc576040519150601f19603f3d011682016040523d82523d6000602084013e611bc1565b606091505b5091509150611be98282604051806060016040528060288152602001614a3960289139612668565b50505050505050565b600084848484604051602001611c0b94939291906148ba565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012095945050505050565b6060604051806060016040528060328152602001614a6160329139905090565b611c726109d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610c4a565b30611d0f6109d3565b73ffffffffffffffffffffffffffffffffffffffff1614611d595760008036604051611d3c9291906144f1565b604051809103902090505b80611d5260026123fd565b03611d4757505b6113c881612681565b600061187a8383611d7e60408051602081019091526000815290565b6124fb565b611d8b6109d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610c4a565b30611e286109d3565b73ffffffffffffffffffffffffffffffffffffffff1614611e725760008036604051611e559291906144f1565b604051809103902090505b80611e6b60026123fd565b03611e6057505b6113c881612752565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f6e665ced000000000000000000000000000000000000000000000000000000001480610a045750610a0482612793565b6000610a04611ede6128c2565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611f4b878787876129f6565b9150915061119981612ae5565b6000858152600160208190526040822090611f7288611252565b6007811115611f8357611f836140df565b14612010576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201527f69766500000000000000000000000000000000000000000000000000000000006064820152608401610c4a565b6040805160208101909152815467ffffffffffffffff169081905260009061203a908890866124fb565b90506120498888888488612c98565b83516000036120ab578673ffffffffffffffffffffffffffffffffffffffff167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda48988848960405161209e9493929190614905565b60405180910390a2611247565b8673ffffffffffffffffffffffffffffffffffffffff167fe2babfbac5889a709b63bb7f598b324e08bc5a4fb9ec647fb3cbc9ec07eb871289888489896040516120f995949392919061492d565b60405180910390a2979650505050505050565b600067ffffffffffffffff8211156121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201527f34206269747300000000000000000000000000000000000000000000000000006064820152608401610c4a565b5090565b306121b36109d3565b73ffffffffffffffffffffffffffffffffffffffff161461226c5760005b845181101561226a573073ffffffffffffffffffffffffffffffffffffffff16858281518110612203576122036145af565b602002602001015173ffffffffffffffffffffffffffffffffffffffff160361225a5761225a83828151811061223b5761223b6145af565b6020026020010151805190602001206002612e2b90919063ffffffff16565b61226381614654565b90506121d1565b505b5050505050565b61226c8585858585612e7d565b306122896109d3565b73ffffffffffffffffffffffffffffffffffffffff161461226c57600254600f81810b700100000000000000000000000000000000909204900b131561226c57600060025561226c565b60006122f6858585856122f160408051602081019091526000815290565b611f58565b95945050505050565b60008061230b83613051565b90506004816007811115612321576123216140df565b1461232c5792915050565b600061233784611979565b905080600003612348575092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c1a287e26040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d99190614554565b6123e3908261459c565b42106123f3575060069392505050565b5060059392505050565b60006124258254600f81810b700100000000000000000000000000000000909204900b131590565b1561245c576040517f3db2a12a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b508054600f0b6000818152600180840160205260408220805492905583547fffffffffffffffffffffffffffffffff000000000000000000000000000000001692016fffffffffffffffffffffffffffffffff169190911790915590565b60085460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600855565b6040517f782d6fe100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018490526000917f00000000000000000000000000000000000000000000000000000000000000009091169063782d6fe190604401602060405180830381865afa158015612593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b79190614973565b6bffffffffffffffffffffffff16949350505050565b6006546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060831561267757508161187a565b61187a838361319d565b60008111612711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f642060448201527f746f6f206c6f77000000000000000000000000000000000000000000000000006064820152608401610c4a565b60095460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600955565b600a5460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600a55565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fbf26d89700000000000000000000000000000000000000000000000000000000148061282657507fffffffff0000000000000000000000000000000000000000000000000000000082167f79dd796f00000000000000000000000000000000000000000000000000000000145b8061287257507fffffffff0000000000000000000000000000000000000000000000000000000082167f4e2312e000000000000000000000000000000000000000000000000000000000145b80610a0457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a04565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561292857507f000000000000000000000000000000000000000000000000000000000000000046145b1561295257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612a2d5750600090506003612adc565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a81573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116612ad557600060019250925050612adc565b9150600090505b94509492505050565b6000816004811115612af957612af96140df565b03612b015750565b6001816004811115612b1557612b156140df565b03612b7c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c4a565b6002816004811115612b9057612b906140df565b03612bf7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c4a565b6003816004811115612c0b57612c0b6140df565b036113c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c4a565b60008211612d28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a206e6f207760448201527f65696768740000000000000000000000000000000000000000000000000000006064820152608401610c4a565b600085815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff881684529091529020546fffffffffffffffffffffffffffffffff168211612df8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20616c6c2060448201527f77656967687420636173740000000000000000000000000000000000000000006064820152608401610c4a565b6000612e03836131e1565b90508151600003612e1f57612e1a86868387613283565b61226a565b61226a868683856135aa565b815470010000000000000000000000000000000090819004600f0b6000818152600180860160205260409091209390935583546fffffffffffffffffffffffffffffffff908116939091011602179055565b6000612e8886611979565b905060008111612f1a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a2070726f706f7360448201527f616c206e6f7420796574207175657565640000000000000000000000000000006064820152608401610c4a565b600654612f3d9073ffffffffffffffffffffffffffffffffffffffff1634613903565b60005b8551811015611be957600654865173ffffffffffffffffffffffffffffffffffffffff90911690630825f38f90889084908110612f7f57612f7f6145af565b6020026020010151878481518110612f9957612f996145af565b6020026020010151878581518110612fb357612fb36145af565b6020026020010151866040518563ffffffff1660e01b8152600401612fdb94939291906145de565b6000604051808303816000875af1158015612ffa573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261304091908101906149a1565b5061304a81614654565b9050612f40565b6000818152600160205260408120600281015460ff16156130755750600792915050565b6002810154610100900460ff16156130905750600292915050565b600061309b846111a3565b905080600003613107576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610c4a565b438110613118575060009392505050565b600061312385611a35565b905043811061313757506001949350505050565b61314085613a62565b801561318257506000858152600460205260409020546fffffffffffffffffffffffffffffffff80821670010000000000000000000000000000000090920416115b1561319257506004949350505050565b506003949350505050565b8151156131ad5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4a9190613da9565b60006fffffffffffffffffffffffffffffffff8211156121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f32382062697473000000000000000000000000000000000000000000000000006064820152608401610c4a565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091529020546fffffffffffffffffffffffffffffffff1615613352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20766f746560448201527f20776f756c6420657863656564207765696768740000000000000000000000006064820152608401610c4a565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905560ff811661342e57600084815260046020526040812080548492906133f39084906fffffffffffffffffffffffffffffffff16614a0f565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550611a2f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60ff82160161349f57600084815260046020526040902080548391906010906133f390849070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16614a0f565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff8216016134fc57600084815260046020526040812060010180548492906133f39084906fffffffffffffffffffffffffffffffff16614a0f565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420737570706f72742076616c75652c206d75737420626520696e636c7560648201527f64656420696e20566f74655479706520656e756d000000000000000000000000608482015260a401610c4a565b805160301461363b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420766f74654461746100000000000000000000000000000000000000006064820152608401610c4a565b60208181015160408084015160008881526005855282812073ffffffffffffffffffffffffffffffffffffffff8916825290945290832054608083811c946fffffffffffffffffffffffffffffffff948516949390911c929091169081836136a3868861459c565b6136ad919061459c565b6136b7919061459c565b9050866fffffffffffffffffffffffffffffffff1681111561375b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20766f746560448201527f20776f756c6420657863656564207765696768740000000000000000000000006064820152608401610c4a565b600089815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8c168452825280832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff868116919091179091558c8452600483529281902081516060808201845282548087168352700100000000000000000000000000000000900486169482019490945260019190910154909316838201528051918201905281518190613825908990614a0f565b6fffffffffffffffffffffffffffffffff16815260200186836020015161384c9190614a0f565b6fffffffffffffffffffffffffffffffff1681526020018583604001516138739190614a0f565b6fffffffffffffffffffffffffffffffff90811690915260009b8c526004602090815260409c8d902083519184015183167001000000000000000000000000000000000291831691909117815591909b01516001909101805491909b167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090911617909955505050505050505050565b8047101561396d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c4a565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146139c7576040519150601f19603f3d011682016040523d82523d6000602084013e6139cc565b606091505b5050905080613a5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c4a565b505050565b600081815260046020526040812060018101548154613aaa916fffffffffffffffffffffffffffffffff90811691700100000000000000000000000000000000900416614a0f565b6fffffffffffffffffffffffffffffffff16613ac861098f856111a3565b11159392505050565b600060208284031215613ae357600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461187a57600080fd5b803560ff81168114613b2457600080fd5b919050565b60008083601f840112613b3b57600080fd5b50813567ffffffffffffffff811115613b5357600080fd5b602083019150836020828501011115613b6b57600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613be857613be8613b72565b604052919050565b600067ffffffffffffffff821115613c0a57613c0a613b72565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000613c49613c4484613bf0565b613ba1565b9050828152838383011115613c5d57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613c8557600080fd5b61187a83833560208501613c36565b60008060008060008060008060e0898b031215613cb057600080fd5b88359750613cc060208a01613b13565b9650604089013567ffffffffffffffff80821115613cdd57600080fd5b613ce98c838d01613b29565b909850965060608b0135915080821115613d0257600080fd5b50613d0f8b828c01613c74565b945050613d1e60808a01613b13565b925060a0890135915060c089013590509295985092959890939650565b60005b83811015613d56578181015183820152602001613d3e565b50506000910152565b60008151808452613d77816020860160208601613d3b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061187a6020830184613d5f565b73ffffffffffffffffffffffffffffffffffffffff811681146113c857600080fd5b60008060008060808587031215613df457600080fd5b8435613dff81613dbc565b93506020850135613e0f81613dbc565b925060408501359150606085013567ffffffffffffffff811115613e3257600080fd5b613e3e87828801613c74565b91505092959194509250565b600067ffffffffffffffff821115613e6457613e64613b72565b5060051b60200190565b600082601f830112613e7f57600080fd5b81356020613e8f613c4483613e4a565b82815260059290921b84018101918181019086841115613eae57600080fd5b8286015b84811015613ed2578035613ec581613dbc565b8352918301918301613eb2565b509695505050505050565b600082601f830112613eee57600080fd5b81356020613efe613c4483613e4a565b82815260059290921b84018101918181019086841115613f1d57600080fd5b8286015b84811015613ed25780358352918301918301613f21565b600082601f830112613f4957600080fd5b81356020613f59613c4483613e4a565b82815260059290921b84018101918181019086841115613f7857600080fd5b8286015b84811015613ed257803567ffffffffffffffff811115613f9c5760008081fd5b613faa8986838b0101613c74565b845250918301918301613f7c565b60008060008060808587031215613fce57600080fd5b843567ffffffffffffffff80821115613fe657600080fd5b613ff288838901613e6e565b9550602087013591508082111561400857600080fd5b61401488838901613edd565b9450604087013591508082111561402a57600080fd5b5061403787828801613f38565b949793965093946060013593505050565b60006020828403121561405a57600080fd5b5035919050565b6000806040838503121561407457600080fd5b82359150602083013561408681613dbc565b809150509250929050565b600080600080600060a086880312156140a957600080fd5b853594506140b960208701613b13565b93506140c760408701613b13565b94979396509394606081013594506080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160088310614149577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000806040838503121561416257600080fd5b8235915061417260208401613b13565b90509250929050565b60008060008060006080868803121561419357600080fd5b853594506141a360208701613b13565b9350604086013567ffffffffffffffff808211156141c057600080fd5b6141cc89838a01613b29565b909550935060608801359150808211156141e557600080fd5b506141f288828901613c74565b9150509295509295909350565b6000806000806060858703121561421557600080fd5b8435935061422560208601613b13565b9250604085013567ffffffffffffffff81111561424157600080fd5b61424d87828801613b29565b95989497509550505050565b6000806000806080858703121561426f57600080fd5b843567ffffffffffffffff8082111561428757600080fd5b61429388838901613e6e565b955060208701359150808211156142a957600080fd5b6142b588838901613edd565b945060408701359150808211156142cb57600080fd5b6142d788838901613f38565b935060608701359150808211156142ed57600080fd5b508501601f810187136142ff57600080fd5b613e3e87823560208401613c36565b60008060006060848603121561432357600080fd5b833561432e81613dbc565b925060208401359150604084013567ffffffffffffffff81111561435157600080fd5b61435d86828701613c74565b9150509250925092565b60006020828403121561437957600080fd5b813561187a81613dbc565b600080600080600060a0868803121561439c57600080fd5b85356143a781613dbc565b945060208601356143b781613dbc565b9350604086013567ffffffffffffffff808211156143d457600080fd5b6143e089838a01613edd565b945060608801359150808211156143f657600080fd5b61440289838a01613edd565b935060808801359150808211156141e557600080fd5b6000806000806060858703121561442e57600080fd5b843561443981613dbc565b935060208501359250604085013567ffffffffffffffff81111561424157600080fd5b6000806040838503121561446f57600080fd5b823561447a81613dbc565b946020939093013593505050565b600080600080600060a086880312156144a057600080fd5b85356144ab81613dbc565b945060208601356144bb81613dbc565b93506040860135925060608601359150608086013567ffffffffffffffff8111156144e557600080fd5b6141f288828901613c74565b8183823760009101908152919050565b600181811c9082168061451557607f821691505b60208210810361454e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561456657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610a0457610a0461456d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8516815283602082015260a06040820152600060a082015260c06060820152600061462160c0830185613d5f565b905082608083015295945050505050565b60006020828403121561464457600080fd5b8151801515811461187a57600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036146855761468561456d565b5060010190565b81810381811115610a0457610a0461456d565b67ffffffffffffffff8181168382160190808211156146c0576146c061456d565b5092915050565b600081518084526020808501945080840160005b8381101561470d57815173ffffffffffffffffffffffffffffffffffffffff16875295820195908201906001016146db565b509495945050505050565b600081518084526020808501945080840160005b8381101561470d5781518752958201959082019060010161472c565b600081518084526020808501808196508360051b8101915082860160005b8581101561479057828403895261477e848351613d5f565b98850198935090840190600101614766565b5091979650505050505050565b60006101208b8352602073ffffffffffffffffffffffffffffffffffffffff8c16818501528160408501526147d48285018c6146c7565b915083820360608501526147e8828b614718565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015614857577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0878403018552614845838351613d5f565b9486019492509085019060010161480b565b505086810360a088015261486b818c614748565b94505050505061488760c084018767ffffffffffffffff169052565b67ffffffffffffffff851660e08401528281036101008401526148aa8185613d5f565b9c9b505050505050505050505050565b6080815260006148cd60808301876146c7565b82810360208401526148df8187614718565b905082810360408401526148f38186614748565b91505082606083015295945050505050565b84815260ff841660208201528260408201526080606082015260006114136080830184613d5f565b85815260ff8516602082015283604082015260a06060820152600061495560a0830185613d5f565b82810360808401526149678185613d5f565b98975050505050505050565b60006020828403121561498557600080fd5b81516bffffffffffffffffffffffff8116811461187a57600080fd5b6000602082840312156149b357600080fd5b815167ffffffffffffffff8111156149ca57600080fd5b8201601f810184136149db57600080fd5b80516149e9613c4482613bf0565b8181528560208385010111156149fe57600080fd5b6122f6826020830160208601613d3b565b6fffffffffffffffffffffffffffffffff8181168382160190808211156146c0576146c061456d56fe476f7665726e6f723a2072656c617920726576657274656420776974686f7574206d657373616765737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e26706172616d733d6672616374696f6e616ca264697066735822122041c5e7b7c4132191dae71f0ccf713eda386eccd24c5df204d8b03aba1e935d0764736f6c6343000811003300000000000000000000000000000000000000000000000000000000000033540000000000000000000000000000000000000000000000000000000000009d8000000000000000000000000000000000000000000000d3c21bcecceda1000000", 20 | "nonce": "0x1", 21 | "accessList": [] 22 | }, 23 | "additionalContracts": [], 24 | "isFixedGasLimit": false 25 | } 26 | ], 27 | "receipts": [ 28 | { 29 | "transactionHash": "0x61d669c6c0b976637b8f4528b99b170f060227b2bc20892743f22c6a34c84e23", 30 | "transactionIndex": "0x15", 31 | "blockHash": "0xe84bc4cf6e7cc8259574f4070f74baa77e4f2301c943adad11081bb6fbe8aff0", 32 | "blockNumber": "0x1035f5d", 33 | "from": "0x617C01cB500E7065e7734699B76D7E0604af8B58", 34 | "to": null, 35 | "cumulativeGasUsed": "0x5ac6c6", 36 | "gasUsed": "0x418a20", 37 | "contractAddress": "0x1a84384e1f1b12D53E60C8C528178dC87767b488", 38 | "logs": [ 39 | { 40 | "address": "0x1a84384e1f1b12D53E60C8C528178dC87767b488", 41 | "topics": [ 42 | "0x08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401" 43 | ], 44 | "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057a8865cfb1ecef7253c27da6b4bc3daee5be518", 45 | "blockHash": "0xe84bc4cf6e7cc8259574f4070f74baa77e4f2301c943adad11081bb6fbe8aff0", 46 | "blockNumber": "0x1035f5d", 47 | "transactionHash": "0x61d669c6c0b976637b8f4528b99b170f060227b2bc20892743f22c6a34c84e23", 48 | "transactionIndex": "0x15", 49 | "logIndex": "0x38", 50 | "removed": false 51 | }, 52 | { 53 | "address": "0x1a84384e1f1b12D53E60C8C528178dC87767b488", 54 | "topics": [ 55 | "0xc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93" 56 | ], 57 | "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003354", 58 | "blockHash": "0xe84bc4cf6e7cc8259574f4070f74baa77e4f2301c943adad11081bb6fbe8aff0", 59 | "blockNumber": "0x1035f5d", 60 | "transactionHash": "0x61d669c6c0b976637b8f4528b99b170f060227b2bc20892743f22c6a34c84e23", 61 | "transactionIndex": "0x15", 62 | "logIndex": "0x39", 63 | "removed": false 64 | }, 65 | { 66 | "address": "0x1a84384e1f1b12D53E60C8C528178dC87767b488", 67 | "topics": [ 68 | "0x7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828" 69 | ], 70 | "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009d80", 71 | "blockHash": "0xe84bc4cf6e7cc8259574f4070f74baa77e4f2301c943adad11081bb6fbe8aff0", 72 | "blockNumber": "0x1035f5d", 73 | "transactionHash": "0x61d669c6c0b976637b8f4528b99b170f060227b2bc20892743f22c6a34c84e23", 74 | "transactionIndex": "0x15", 75 | "logIndex": "0x3a", 76 | "removed": false 77 | }, 78 | { 79 | "address": "0x1a84384e1f1b12D53E60C8C528178dC87767b488", 80 | "topics": [ 81 | "0xccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461" 82 | ], 83 | "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d3c21bcecceda1000000", 84 | "blockHash": "0xe84bc4cf6e7cc8259574f4070f74baa77e4f2301c943adad11081bb6fbe8aff0", 85 | "blockNumber": "0x1035f5d", 86 | "transactionHash": "0x61d669c6c0b976637b8f4528b99b170f060227b2bc20892743f22c6a34c84e23", 87 | "transactionIndex": "0x15", 88 | "logIndex": "0x3b", 89 | "removed": false 90 | } 91 | ], 92 | "status": "0x1", 93 | "logsBloom": "0x00000000000000000000000000000000000000004000000000000000000008000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000080002000000000000000000000000000000000000000000001000002000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000002000000000000000000008000000000000000000000000001000000000000000800000000000000000000000000000000000000000000000000000000000000000002000", 94 | "type": "0x2", 95 | "effectiveGasPrice": "0x60aa45aed" 96 | } 97 | ], 98 | "libraries": [], 99 | "pending": [], 100 | "path": "/home/bendi/Development/gitcoin-governor/broadcast/Deploy.s.sol/1/run-latest.json", 101 | "returns": { 102 | "0": { 103 | "internal_type": "contract GitcoinGovernor", 104 | "value": "0x1a84384e1f1b12D53E60C8C528178dC87767b488" 105 | } 106 | }, 107 | "timestamp": 1680890319, 108 | "chain": 1, 109 | "multi": false, 110 | "commit": "53b6e86" 111 | } -------------------------------------------------------------------------------- /broadcast/Deploy.s.sol/1/run-1690817978.json: -------------------------------------------------------------------------------- 1 | { 2 | "transactions": [ 3 | { 4 | "hash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 5 | "transactionType": "CREATE", 6 | "contractName": "GitcoinGovernor", 7 | "contractAddress": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 8 | "function": null, 9 | "arguments": [ 10 | "13140", 11 | "40320", 12 | "1000000000000000000000000" 13 | ], 14 | "transaction": { 15 | "type": "0x02", 16 | "from": "0x617c01cb500e7065e7734699b76d7e0604af8b58", 17 | "gas": "0x583163", 18 | "value": "0x0", 19 | "data": "0x6101606040523480156200001257600080fd5b50604051620052b8380380620052b883398101604081905262000035916200032f565b8282827357a8865cfb1ecef7253c27da6b4bc3daee5be51873de30da39c46104798bb5aa3fe8b9e0e1f348163f6040518060400160405280601281526020017147544320476f7665726e6f7220427261766f60701b815250806200009e6200018360201b60201c565b815160209283012081519183019190912060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909501209052919091526101205260006200013b828262000403565b50506001600160a01b03166101405262000155816200019e565b50620001618362000207565b6200016c8262000248565b6200017781620002ee565b505050505050620004cf565b6040805180820190915260018152603160f81b602082015290565b600754604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600780546001600160a01b0319166001600160a01b0392909216919091179055565b60095460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600955565b60008111620002ad5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840160405180910390fd5b600a5460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600a55565b600b5460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600b55565b6000806000606084860312156200034557600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200038957607f821691505b602082108103620003aa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003fe57600081815260208120601f850160051c81016020861015620003d95750805b601f850160051c820191505b81811015620003fa57828155600101620003e5565b5050505b505050565b81516001600160401b038111156200041f576200041f6200035e565b620004378162000430845462000374565b84620003b0565b602080601f8311600181146200046f5760008415620004565750858301515b600019600386901b1c1916600185901b178555620003fa565b600085815260208120601f198616915b82811015620004a0578886015182559484019460019091019084016200047f565b5085821015620004bf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e051610100516101205161014051614d876200053160003960008181610a0b01526127da01526000612e0f01526000612e5e01526000612e3901526000612d9201526000612dbc01526000612de60152614d876000f3fe6080604052600436106102bf5760003560e01c80637d5e81e21161016e578063d33219b4116100cb578063eb9019d41161007f578063f23a6e6111610064578063f23a6e6114610989578063f8ce560a146109ce578063fc0c546a146109f957600080fd5b8063eb9019d414610949578063ece40cc11461096957600080fd5b8063deaaa7cc116100b0578063deaaa7cc146108b6578063df482caf146108ea578063ea0217cf1461092957600080fd5b8063d33219b414610855578063dd4e2ba5146108a157600080fd5b8063b9a6196111610122578063c01f9e3711610107578063c01f9e3714610802578063c28bc2fa14610822578063c59057e41461083557600080fd5b8063b9a61961146107a8578063bc197c81146107bd57600080fd5b8063a890c91011610153578063a890c91014610753578063ab58fb8e14610773578063b58131b01461079357600080fd5b80637d5e81e2146107135780639a802a6d1461073357600080fd5b80633932abb11161021c57806354fd4d50116101d05780635f398a14116101b55780635f398a14146106b357806370b0f660146106d35780637b3c71d3146106f357600080fd5b806354fd4d501461064d578063567813881461069357600080fd5b80633e4f49e6116102015780633e4f49e61461053e578063438596321461056b578063544ffc9c146105cf57600080fd5b80633932abb1146105095780633bccf4fd1461051e57600080fd5b8063160cbed7116102735780632d63f693116102585780632d63f693146104325780632fe3e26114610452578063342cfab61461048657600080fd5b8063160cbed7146103ff5780632656227d1461041f57600080fd5b806303420181116102a4578063034201811461034857806306fdde0314610368578063150b7a021461038a57600080fd5b806301ffc9a7146102f457806302a251a31461032957600080fd5b366102ef57306102cd610a2d565b73ffffffffffffffffffffffffffffffffffffffff16146102ed57600080fd5b005b600080fd5b34801561030057600080fd5b5061031461030f366004613d61565b610a53565b60405190151581526020015b60405180910390f35b34801561033557600080fd5b50600a545b604051908152602001610320565b34801561035457600080fd5b5061033a610363366004613f24565b610a64565b34801561037457600080fd5b5061037d610a83565b6040516103209190614039565b34801561039657600080fd5b506103ce6103a536600461406e565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610320565b34801561040b57600080fd5b5061033a61041a366004614248565b610b15565b61033a61042d366004614248565b610fa9565b34801561043e57600080fd5b5061033a61044d3660046142d8565b611124565b34801561045e57600080fd5b5061033a7fb3b3f3b703cd84ce352197dcff232b1b5d3cfb2025ce47cf04742d0651f1af8881565b34801561049257600080fd5b506104e86104a13660046142f1565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff9390931684529190529020546fffffffffffffffffffffffffffffffff1690565b6040516fffffffffffffffffffffffffffffffff9091168152602001610320565b34801561051557600080fd5b5060095461033a565b34801561052a57600080fd5b5061033a610539366004614321565b61115d565b34801561054a57600080fd5b5061055e6105593660046142d8565b6111f2565b604051610320919061439e565b34801561057757600080fd5b506103146105863660046142f1565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff9390931684529190529020546fffffffffffffffffffffffffffffffff16151590565b3480156105db57600080fd5b506106326105ea3660046142d8565b600090815260046020526040902080546001909101546fffffffffffffffffffffffffffffffff80831693700100000000000000000000000000000000909304811692911690565b60408051938452602084019290925290820152606001610320565b34801561065957600080fd5b5060408051808201909152600181527f3100000000000000000000000000000000000000000000000000000000000000602082015261037d565b34801561069f57600080fd5b5061033a6106ae3660046143df565b6111fd565b3480156106bf57600080fd5b5061033a6106ce36600461440b565b611226565b3480156106df57600080fd5b506102ed6106ee3660046142d8565b611270565b3480156106ff57600080fd5b5061033a61070e36600461448f565b61136b565b34801561071f57600080fd5b5061033a61072e3660046144e9565b6113bd565b34801561073f57600080fd5b5061033a61074e36600461459e565b61180a565b34801561075f57600080fd5b506102ed61076e3660046145f7565b611821565b34801561077f57600080fd5b5061033a61078e3660046142d8565b611919565b34801561079f57600080fd5b5061033a611946565b3480156107b457600080fd5b506102ed611951565b3480156107c957600080fd5b506103ce6107d8366004614614565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561080e57600080fd5b5061033a61081d3660046142d8565b6119d5565b6102ed6108303660046146a8565b611a05565b34801561084157600080fd5b5061033a610850366004614248565b611b92565b34801561086157600080fd5b5060075473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610320565b3480156108ad57600080fd5b5061037d611bea565b3480156108c257600080fd5b5061033a7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156108f657600080fd5b506104e86109053660046145f7565b6006602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b34801561093557600080fd5b506102ed6109443660046142d8565b611c0a565b34801561095557600080fd5b5061033a6109643660046146ec565b611d02565b34801561097557600080fd5b506102ed6109843660046142d8565b611d23565b34801561099557600080fd5b506103ce6109a4366004614718565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b3480156109da57600080fd5b5061033a6109e93660046142d8565b506a021165458500521280000090565b348015610a0557600080fd5b5061087c7f000000000000000000000000000000000000000000000000000000000000000081565b6000610a4e60075473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b6000610a5e82611e1b565b92915050565b6000610a768989898989898989611e71565b9998505050505050505050565b606060008054610a9290614781565b80601f0160208091040260200160405190810160405280929190818152602001828054610abe90614781565b8015610b0b5780601f10610ae057610100808354040283529160200191610b0b565b820191906000526020600020905b815481529060010190602001808311610aee57829003601f168201915b5050505050905090565b600080610b2486868686611b92565b90506004610b31826111f2565b6007811115610b4257610b4261436f565b14610bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f742073756363657373667560448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600754604080517f6a42b8f8000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691636a42b8f89160048083019260209291908290030181865afa158015610c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6891906147d4565b610c72904261481c565b9050610cc5610c8082612161565b60008481526008602052604090209081547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff91909116179055565b60005b8751811015610f6557600754885173ffffffffffffffffffffffffffffffffffffffff9091169063f2b06537908a9084908110610d0757610d0761482f565b6020026020010151898481518110610d2157610d2161482f565b6020026020010151898581518110610d3b57610d3b61482f565b602002602001015186604051602001610d57949392919061485e565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610d8b91815260200190565b602060405180830381865afa158015610da8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcc91906148b2565b15610e7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a206964656e746960448201527f63616c2070726f706f73616c20616374696f6e20616c7265616479207175657560648201527f6564000000000000000000000000000000000000000000000000000000000000608482015260a401610bcb565b600754885173ffffffffffffffffffffffffffffffffffffffff90911690633a66f901908a9084908110610eb557610eb561482f565b6020026020010151898481518110610ecf57610ecf61482f565b6020026020010151898581518110610ee957610ee961482f565b6020026020010151866040518563ffffffff1660e01b8152600401610f11949392919061485e565b6020604051808303816000875af1158015610f30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5491906147d4565b50610f5e816148d4565b9050610cc8565b5060408051838152602081018390527f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda2892910160405180910390a15095945050505050565b600080610fb886868686611b92565b90506000610fc5826111f2565b90506004816007811115610fdb57610fdb61436f565b1480610ff857506005816007811115610ff657610ff661436f565b145b611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f742073756363657373667560448201527f6c000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b60008281526001602081815260409283902060020180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a161110082888888886121ff565b61110d82888888886122c8565b61111a82888888886122d5565b5095945050505050565b600081815260016020908152604080832081519283019091525467ffffffffffffffff16908190525b67ffffffffffffffff1692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff8516606082015260009081906111ca906111c2906080015b60405160208183030381529060405280519060200120612328565b868686612391565b90506111e7878288604051806020016040528060008152506123af565b979650505050505050565b6000610a5e826123db565b60008033905061121e848285604051806020016040528060008152506123af565b949350505050565b6000803390506111e787828888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a92506124d9915050565b611278610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461130c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611315610a2d565b73ffffffffffffffffffffffffffffffffffffffff161461135f576000803660405161134292919061490c565b604051809103902090505b80611358600261268d565b0361134d57505b6113688161274a565b50565b6000803390506113b386828787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506123af92505050565b9695505050505050565b60006113c7611946565b6113d63361096460014361491c565b1015611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f476f7665726e6f723a2070726f706f73657220766f7465732062656c6f77207060448201527f726f706f73616c207468726573686f6c640000000000000000000000000000006064820152608401610bcb565b60006114798686868680519060200120611b92565b9050845186511461150c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e677460448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b835186511461159d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e677460448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b6000865111611608576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610bcb565b6000818152600160209081526040918290208251918201909252815467ffffffffffffffff1690819052156116bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c726561647920657869737460448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b60006116d26116cd60095490565b612161565b6116db43612161565b6116e5919061492f565b905060006116f56116cd600a5490565b6116ff908361492f565b83547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff841617845590506001830180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff83161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d5167ffffffffffffffff8111156117a8576117a8613e02565b6040519080825280602002602001820160405280156117db57816020015b60608152602001906001900390816117c65790505b508c88888e6040516117f599989796959493929190614a2d565b60405180910390a15091979650505050505050565b600061181784848461278b565b90505b9392505050565b611829610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146118bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b306118c6610a2d565b73ffffffffffffffffffffffffffffffffffffffff161461191057600080366040516118f392919061490c565b604051809103902090505b80611909600261268d565b036118fe57505b6113688161285d565b600081815260086020908152604080832081519283019091525467ffffffffffffffff169081905261114d565b6000610a4e600b5490565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e18b6816040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156119bb57600080fd5b505af11580156119cf573d6000803e3d6000fd5b50505050565b600081815260016020818152604080842081519283019091529091015467ffffffffffffffff169081905261114d565b611a0d610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611aa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611aaa610a2d565b73ffffffffffffffffffffffffffffffffffffffff1614611af45760008036604051611ad792919061490c565b604051809103902090505b80611aed600261268d565b03611ae257505b6000808573ffffffffffffffffffffffffffffffffffffffff16858585604051611b1f92919061490c565b60006040518083038185875af1925050503d8060008114611b5c576040519150601f19603f3d011682016040523d82523d6000602084013e611b61565b606091505b5091509150611b898282604051806060016040528060288152602001614cf8602891396128f8565b50505050505050565b600084848484604051602001611bab9493929190614b4a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012095945050505050565b6060604051806060016040528060328152602001614d2060329139905090565b611c12610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ca6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611caf610a2d565b73ffffffffffffffffffffffffffffffffffffffff1614611cf95760008036604051611cdc92919061490c565b604051809103902090505b80611cf2600261268d565b03611ce757505b61136881612911565b600061181a8383611d1e60408051602081019091526000815290565b61278b565b611d2b610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611dbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611dc8610a2d565b73ffffffffffffffffffffffffffffffffffffffff1614611e125760008036604051611df592919061490c565b604051809103902090505b80611e0b600261268d565b03611e0057505b611368816129e2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f6e665ced000000000000000000000000000000000000000000000000000000001480610a5e5750610a5e82612a23565b6000845160401480611e8257508451155b611f34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604360248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420706172616d7320666f72207369676e61747572652d6261736564207660648201527f6f74650000000000000000000000000000000000000000000000000000000000608482015260a401610bcb565b6000611fb46111c27fb3b3f3b703cd84ce352197dcff232b1b5d3cfb2025ce47cf04742d0651f1af888c8c8c8c604051611f6f92919061490c565b60405180910390208b805190602001206040516020016111a7959493929190948552602085019390935260ff9190911660408401526060830152608082015260a00190565b9050855160400361210f5760408681015173ffffffffffffffffffffffffffffffffffffffff83166000908152600660205291909120546fffffffffffffffffffffffffffffffff9182169116811461208f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a207369676e60448201527f61747572652068617320616c7265616479206265656e207573656400000000006064820152608401610bcb565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020526040812080546fffffffffffffffffffffffffffffffff16916120d283614b95565b91906101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505060308752505b6121538a828b8b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92506124d9915050565b9a9950505050505050505050565b600067ffffffffffffffff8211156121fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201527f34206269747300000000000000000000000000000000000000000000000000006064820152608401610bcb565b5090565b30612208610a2d565b73ffffffffffffffffffffffffffffffffffffffff16146122c15760005b84518110156122bf573073ffffffffffffffffffffffffffffffffffffffff168582815181106122585761225861482f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff16036122af576122af8382815181106122905761229061482f565b6020026020010151805190602001206002612b5290919063ffffffff16565b6122b8816148d4565b9050612226565b505b5050505050565b6122c18585858585612ba4565b306122de610a2d565b73ffffffffffffffffffffffffffffffffffffffff16146122c157600254600f81810b700100000000000000000000000000000000909204900b13156122c15760006002556122c1565b6000610a5e612335612d78565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006123a287878787612eac565b9150915061111a81612f9b565b60006123d2858585856123cd60408051602081019091526000815290565b6124d9565b95945050505050565b6000806123e78361314e565b905060048160078111156123fd576123fd61436f565b146124085792915050565b600061241384611919565b905080600003612424575092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c1a287e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015612491573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b591906147d4565b6124bf908261481c565b42106124cf575060069392505050565b5060059392505050565b60008581526001602081905260408220906124f3886111f2565b60078111156125045761250461436f565b14612591576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201527f69766500000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b6040805160208101909152815467ffffffffffffffff16908190526000906125bb9088908661278b565b90506125ca888888848861329a565b835160000361262c578673ffffffffffffffffffffffffffffffffffffffff167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda48988848960405161261f9493929190614bc4565b60405180910390a26111e7565b8673ffffffffffffffffffffffffffffffffffffffff167fe2babfbac5889a709b63bb7f598b324e08bc5a4fb9ec647fb3cbc9ec07eb8712898884898960405161267a959493929190614bec565b60405180910390a2979650505050505050565b60006126b58254600f81810b700100000000000000000000000000000000909204900b131590565b156126ec576040517f3db2a12a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b508054600f0b6000818152600180840160205260408220805492905583547fffffffffffffffffffffffffffffffff000000000000000000000000000000001692016fffffffffffffffffffffffffffffffff169190911790915590565b60095460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600955565b6040517f782d6fe100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018490526000917f00000000000000000000000000000000000000000000000000000000000000009091169063782d6fe190604401602060405180830381865afa158015612823573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128479190614c32565b6bffffffffffffffffffffffff16949350505050565b6007546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060831561290757508161181a565b61181a838361342d565b600081116129a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f642060448201527f746f6f206c6f77000000000000000000000000000000000000000000000000006064820152608401610bcb565b600a5460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600a55565b600b5460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600b55565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fbf26d897000000000000000000000000000000000000000000000000000000001480612ab657507fffffffff0000000000000000000000000000000000000000000000000000000082167f79dd796f00000000000000000000000000000000000000000000000000000000145b80612b0257507fffffffff0000000000000000000000000000000000000000000000000000000082167f4e2312e000000000000000000000000000000000000000000000000000000000145b80610a5e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a5e565b815470010000000000000000000000000000000090819004600f0b6000818152600180860160205260409091209390935583546fffffffffffffffffffffffffffffffff908116939091011602179055565b6000612baf86611919565b905060008111612c41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a2070726f706f7360448201527f616c206e6f7420796574207175657565640000000000000000000000000000006064820152608401610bcb565b600754612c649073ffffffffffffffffffffffffffffffffffffffff1634613471565b60005b8551811015611b8957600754865173ffffffffffffffffffffffffffffffffffffffff90911690630825f38f90889084908110612ca657612ca661482f565b6020026020010151878481518110612cc057612cc061482f565b6020026020010151878581518110612cda57612cda61482f565b6020026020010151866040518563ffffffff1660e01b8152600401612d02949392919061485e565b6000604051808303816000875af1158015612d21573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052612d679190810190614c60565b50612d71816148d4565b9050612c67565b60003073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015612dde57507f000000000000000000000000000000000000000000000000000000000000000046145b15612e0857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ee35750600090506003612f92565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f37573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116612f8b57600060019250925050612f92565b9150600090505b94509492505050565b6000816004811115612faf57612faf61436f565b03612fb75750565b6001816004811115612fcb57612fcb61436f565b03613032576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bcb565b60028160048111156130465761304661436f565b036130ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bcb565b60038160048111156130c1576130c161436f565b03611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b6000818152600160205260408120600281015460ff16156131725750600792915050565b6002810154610100900460ff161561318d5750600292915050565b600061319884611124565b905080600003613204576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610bcb565b438110613215575060009392505050565b6000613220856119d5565b905043811061323457506001949350505050565b61323d856135d0565b801561327f57506000858152600460205260409020546fffffffffffffffffffffffffffffffff80821670010000000000000000000000000000000090920416115b1561328f57506004949350505050565b506003949350505050565b6000821161332a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a206e6f207760448201527f65696768740000000000000000000000000000000000000000000000000000006064820152608401610bcb565b600085815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff881684529091529020546fffffffffffffffffffffffffffffffff1682116133fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20616c6c2060448201527f77656967687420636173740000000000000000000000000000000000000000006064820152608401610bcb565b60006134058361363f565b905081516000036134215761341c868683876136e1565b6122bf565b6122bf86868385613a08565b81511561343d5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcb9190614039565b804710156134db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610bcb565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114613535576040519150601f19603f3d011682016040523d82523d6000602084013e61353a565b606091505b50509050806135cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610bcb565b505050565b600081815260046020526040812060018101548154613618916fffffffffffffffffffffffffffffffff90811691700100000000000000000000000000000000900416614cce565b6fffffffffffffffffffffffffffffffff166136366109e985611124565b11159392505050565b60006fffffffffffffffffffffffffffffffff8211156121fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f32382062697473000000000000000000000000000000000000000000000000006064820152608401610bcb565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091529020546fffffffffffffffffffffffffffffffff16156137b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20766f746560448201527f20776f756c6420657863656564207765696768740000000000000000000000006064820152608401610bcb565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905560ff811661388c57600084815260046020526040812080548492906138519084906fffffffffffffffffffffffffffffffff16614cce565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506119cf565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60ff8216016138fd576000848152600460205260409020805483919060109061385190849070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16614cce565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff82160161395a57600084815260046020526040812060010180548492906138519084906fffffffffffffffffffffffffffffffff16614cce565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420737570706f72742076616c75652c206d75737420626520696e636c7560648201527f64656420696e20566f74655479706520656e756d000000000000000000000000608482015260a401610bcb565b8051603014613a99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420766f74654461746100000000000000000000000000000000000000006064820152608401610bcb565b60208181015160408084015160008881526005855282812073ffffffffffffffffffffffffffffffffffffffff8916825290945290832054608083811c946fffffffffffffffffffffffffffffffff948516949390911c92909116908183613b01868861481c565b613b0b919061481c565b613b15919061481c565b9050866fffffffffffffffffffffffffffffffff16811115613bb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20766f746560448201527f20776f756c6420657863656564207765696768740000000000000000000000006064820152608401610bcb565b600089815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8c168452825280832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff868116919091179091558c8452600483529281902081516060808201845282548087168352700100000000000000000000000000000000900486169482019490945260019190910154909316838201528051918201905281518190613c83908990614cce565b6fffffffffffffffffffffffffffffffff168152602001868360200151613caa9190614cce565b6fffffffffffffffffffffffffffffffff168152602001858360400151613cd19190614cce565b6fffffffffffffffffffffffffffffffff90811690915260009b8c526004602090815260409c8d902083519184015183167001000000000000000000000000000000000291831691909117815591909b01516001909101805491909b167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090911617909955505050505050505050565b600060208284031215613d7357600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461181a57600080fd5b803560ff81168114613db457600080fd5b919050565b60008083601f840112613dcb57600080fd5b50813567ffffffffffffffff811115613de357600080fd5b602083019150836020828501011115613dfb57600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613e7857613e78613e02565b604052919050565b600067ffffffffffffffff821115613e9a57613e9a613e02565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000613ed9613ed484613e80565b613e31565b9050828152838383011115613eed57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f1557600080fd5b61181a83833560208501613ec6565b60008060008060008060008060e0898b031215613f4057600080fd5b88359750613f5060208a01613da3565b9650604089013567ffffffffffffffff80821115613f6d57600080fd5b613f798c838d01613db9565b909850965060608b0135915080821115613f9257600080fd5b50613f9f8b828c01613f04565b945050613fae60808a01613da3565b925060a0890135915060c089013590509295985092959890939650565b60005b83811015613fe6578181015183820152602001613fce565b50506000910152565b60008151808452614007816020860160208601613fcb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061181a6020830184613fef565b73ffffffffffffffffffffffffffffffffffffffff8116811461136857600080fd5b6000806000806080858703121561408457600080fd5b843561408f8161404c565b9350602085013561409f8161404c565b925060408501359150606085013567ffffffffffffffff8111156140c257600080fd5b6140ce87828801613f04565b91505092959194509250565b600067ffffffffffffffff8211156140f4576140f4613e02565b5060051b60200190565b600082601f83011261410f57600080fd5b8135602061411f613ed4836140da565b82815260059290921b8401810191818101908684111561413e57600080fd5b8286015b848110156141625780356141558161404c565b8352918301918301614142565b509695505050505050565b600082601f83011261417e57600080fd5b8135602061418e613ed4836140da565b82815260059290921b840181019181810190868411156141ad57600080fd5b8286015b8481101561416257803583529183019183016141b1565b600082601f8301126141d957600080fd5b813560206141e9613ed4836140da565b82815260059290921b8401810191818101908684111561420857600080fd5b8286015b8481101561416257803567ffffffffffffffff81111561422c5760008081fd5b61423a8986838b0101613f04565b84525091830191830161420c565b6000806000806080858703121561425e57600080fd5b843567ffffffffffffffff8082111561427657600080fd5b614282888389016140fe565b9550602087013591508082111561429857600080fd5b6142a48883890161416d565b945060408701359150808211156142ba57600080fd5b506142c7878288016141c8565b949793965093946060013593505050565b6000602082840312156142ea57600080fd5b5035919050565b6000806040838503121561430457600080fd5b8235915060208301356143168161404c565b809150509250929050565b600080600080600060a0868803121561433957600080fd5b8535945061434960208701613da3565b935061435760408701613da3565b94979396509394606081013594506080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600883106143d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080604083850312156143f257600080fd5b8235915061440260208401613da3565b90509250929050565b60008060008060006080868803121561442357600080fd5b8535945061443360208701613da3565b9350604086013567ffffffffffffffff8082111561445057600080fd5b61445c89838a01613db9565b9095509350606088013591508082111561447557600080fd5b5061448288828901613f04565b9150509295509295909350565b600080600080606085870312156144a557600080fd5b843593506144b560208601613da3565b9250604085013567ffffffffffffffff8111156144d157600080fd5b6144dd87828801613db9565b95989497509550505050565b600080600080608085870312156144ff57600080fd5b843567ffffffffffffffff8082111561451757600080fd5b614523888389016140fe565b9550602087013591508082111561453957600080fd5b6145458883890161416d565b9450604087013591508082111561455b57600080fd5b614567888389016141c8565b9350606087013591508082111561457d57600080fd5b508501601f8101871361458f57600080fd5b6140ce87823560208401613ec6565b6000806000606084860312156145b357600080fd5b83356145be8161404c565b925060208401359150604084013567ffffffffffffffff8111156145e157600080fd5b6145ed86828701613f04565b9150509250925092565b60006020828403121561460957600080fd5b813561181a8161404c565b600080600080600060a0868803121561462c57600080fd5b85356146378161404c565b945060208601356146478161404c565b9350604086013567ffffffffffffffff8082111561466457600080fd5b61467089838a0161416d565b9450606088013591508082111561468657600080fd5b61469289838a0161416d565b9350608088013591508082111561447557600080fd5b600080600080606085870312156146be57600080fd5b84356146c98161404c565b935060208501359250604085013567ffffffffffffffff8111156144d157600080fd5b600080604083850312156146ff57600080fd5b823561470a8161404c565b946020939093013593505050565b600080600080600060a0868803121561473057600080fd5b853561473b8161404c565b9450602086013561474b8161404c565b93506040860135925060608601359150608086013567ffffffffffffffff81111561477557600080fd5b61448288828901613f04565b600181811c9082168061479557607f821691505b6020821081036147ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000602082840312156147e657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610a5e57610a5e6147ed565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8516815283602082015260a06040820152600060a082015260c0606082015260006148a160c0830185613fef565b905082608083015295945050505050565b6000602082840312156148c457600080fd5b8151801515811461181a57600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614905576149056147ed565b5060010190565b8183823760009101908152919050565b81810381811115610a5e57610a5e6147ed565b67ffffffffffffffff818116838216019080821115614950576149506147ed565b5092915050565b600081518084526020808501945080840160005b8381101561499d57815173ffffffffffffffffffffffffffffffffffffffff168752958201959082019060010161496b565b509495945050505050565b600081518084526020808501945080840160005b8381101561499d578151875295820195908201906001016149bc565b600081518084526020808501808196508360051b8101915082860160005b85811015614a20578284038952614a0e848351613fef565b988501989350908401906001016149f6565b5091979650505050505050565b60006101208b8352602073ffffffffffffffffffffffffffffffffffffffff8c1681850152816040850152614a648285018c614957565b91508382036060850152614a78828b6149a8565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015614ae7577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0878403018552614ad5838351613fef565b94860194925090850190600101614a9b565b505086810360a0880152614afb818c6149d8565b945050505050614b1760c084018767ffffffffffffffff169052565b67ffffffffffffffff851660e0840152828103610100840152614b3a8185613fef565b9c9b505050505050505050505050565b608081526000614b5d6080830187614957565b8281036020840152614b6f81876149a8565b90508281036040840152614b8381866149d8565b91505082606083015295945050505050565b60006fffffffffffffffffffffffffffffffff808316818103614bba57614bba6147ed565b6001019392505050565b84815260ff841660208201528260408201526080606082015260006113b36080830184613fef565b85815260ff8516602082015283604082015260a060608201526000614c1460a0830185613fef565b8281036080840152614c268185613fef565b98975050505050505050565b600060208284031215614c4457600080fd5b81516bffffffffffffffffffffffff8116811461181a57600080fd5b600060208284031215614c7257600080fd5b815167ffffffffffffffff811115614c8957600080fd5b8201601f81018413614c9a57600080fd5b8051614ca8613ed482613e80565b818152856020838501011115614cbd57600080fd5b6123d2826020830160208601613fcb565b6fffffffffffffffffffffffffffffffff818116838216019080821115614950576149506147ed56fe476f7665726e6f723a2072656c617920726576657274656420776974686f7574206d657373616765737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e26706172616d733d6672616374696f6e616ca264697066735822122008fa22161dbe6934fa37926812642b24adde04675001a4a1d30837cdd9a335c964736f6c6343000811003300000000000000000000000000000000000000000000000000000000000033540000000000000000000000000000000000000000000000000000000000009d8000000000000000000000000000000000000000000000d3c21bcecceda1000000", 20 | "nonce": "0x3", 21 | "accessList": [] 22 | }, 23 | "additionalContracts": [], 24 | "isFixedGasLimit": false 25 | } 26 | ], 27 | "receipts": [ 28 | { 29 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 30 | "transactionIndex": "0x17", 31 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 32 | "blockNumber": "0x10fd1b6", 33 | "from": "0x617C01cB500E7065e7734699B76D7E0604af8B58", 34 | "to": null, 35 | "cumulativeGasUsed": "0x68a096", 36 | "gasUsed": "0x43dc6b", 37 | "contractAddress": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 38 | "logs": [ 39 | { 40 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 41 | "topics": [ 42 | "0x08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401" 43 | ], 44 | "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057a8865cfb1ecef7253c27da6b4bc3daee5be518", 45 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 46 | "blockNumber": "0x10fd1b6", 47 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 48 | "transactionIndex": "0x17", 49 | "logIndex": "0x36", 50 | "removed": false 51 | }, 52 | { 53 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 54 | "topics": [ 55 | "0xc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93" 56 | ], 57 | "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003354", 58 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 59 | "blockNumber": "0x10fd1b6", 60 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 61 | "transactionIndex": "0x17", 62 | "logIndex": "0x37", 63 | "removed": false 64 | }, 65 | { 66 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 67 | "topics": [ 68 | "0x7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828" 69 | ], 70 | "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009d80", 71 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 72 | "blockNumber": "0x10fd1b6", 73 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 74 | "transactionIndex": "0x17", 75 | "logIndex": "0x38", 76 | "removed": false 77 | }, 78 | { 79 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 80 | "topics": [ 81 | "0xccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461" 82 | ], 83 | "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d3c21bcecceda1000000", 84 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 85 | "blockNumber": "0x10fd1b6", 86 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 87 | "transactionIndex": "0x17", 88 | "logIndex": "0x39", 89 | "removed": false 90 | } 91 | ], 92 | "status": "0x1", 93 | "logsBloom": "0x00000000000000000020000000000000000000000000000000000000000008000000000000000000000000000010000000000000000000000000002000000000000000000000000000000000000000000000000000000000000010000000000000000000000000080002000000000000000000000000000000000000000000001000002000000000000000000000000000000000000000000010000000000002000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000001000000000000000800000000000000000000000000000000000000000000000000000000000000000002000", 94 | "type": "0x2", 95 | "effectiveGasPrice": "0xc7458d015" 96 | } 97 | ], 98 | "libraries": [], 99 | "pending": [], 100 | "returns": { 101 | "0": { 102 | "internal_type": "contract GitcoinGovernor", 103 | "value": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639" 104 | } 105 | }, 106 | "timestamp": 1690817978, 107 | "chain": 1, 108 | "multi": false, 109 | "commit": "9103e00" 110 | } -------------------------------------------------------------------------------- /broadcast/Deploy.s.sol/1/run-latest.json: -------------------------------------------------------------------------------- 1 | { 2 | "transactions": [ 3 | { 4 | "hash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 5 | "transactionType": "CREATE", 6 | "contractName": "GitcoinGovernor", 7 | "contractAddress": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 8 | "function": null, 9 | "arguments": [ 10 | "13140", 11 | "40320", 12 | "1000000000000000000000000" 13 | ], 14 | "transaction": { 15 | "type": "0x02", 16 | "from": "0x617c01cb500e7065e7734699b76d7e0604af8b58", 17 | "gas": "0x583163", 18 | "value": "0x0", 19 | "data": "0x6101606040523480156200001257600080fd5b50604051620052b8380380620052b883398101604081905262000035916200032f565b8282827357a8865cfb1ecef7253c27da6b4bc3daee5be51873de30da39c46104798bb5aa3fe8b9e0e1f348163f6040518060400160405280601281526020017147544320476f7665726e6f7220427261766f60701b815250806200009e6200018360201b60201c565b815160209283012081519183019190912060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909501209052919091526101205260006200013b828262000403565b50506001600160a01b03166101405262000155816200019e565b50620001618362000207565b6200016c8262000248565b6200017781620002ee565b505050505050620004cf565b6040805180820190915260018152603160f81b602082015290565b600754604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600780546001600160a01b0319166001600160a01b0392909216919091179055565b60095460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600955565b60008111620002ad5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840160405180910390fd5b600a5460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600a55565b600b5460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600b55565b6000806000606084860312156200034557600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200038957607f821691505b602082108103620003aa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003fe57600081815260208120601f850160051c81016020861015620003d95750805b601f850160051c820191505b81811015620003fa57828155600101620003e5565b5050505b505050565b81516001600160401b038111156200041f576200041f6200035e565b620004378162000430845462000374565b84620003b0565b602080601f8311600181146200046f5760008415620004565750858301515b600019600386901b1c1916600185901b178555620003fa565b600085815260208120601f198616915b82811015620004a0578886015182559484019460019091019084016200047f565b5085821015620004bf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e051610100516101205161014051614d876200053160003960008181610a0b01526127da01526000612e0f01526000612e5e01526000612e3901526000612d9201526000612dbc01526000612de60152614d876000f3fe6080604052600436106102bf5760003560e01c80637d5e81e21161016e578063d33219b4116100cb578063eb9019d41161007f578063f23a6e6111610064578063f23a6e6114610989578063f8ce560a146109ce578063fc0c546a146109f957600080fd5b8063eb9019d414610949578063ece40cc11461096957600080fd5b8063deaaa7cc116100b0578063deaaa7cc146108b6578063df482caf146108ea578063ea0217cf1461092957600080fd5b8063d33219b414610855578063dd4e2ba5146108a157600080fd5b8063b9a6196111610122578063c01f9e3711610107578063c01f9e3714610802578063c28bc2fa14610822578063c59057e41461083557600080fd5b8063b9a61961146107a8578063bc197c81146107bd57600080fd5b8063a890c91011610153578063a890c91014610753578063ab58fb8e14610773578063b58131b01461079357600080fd5b80637d5e81e2146107135780639a802a6d1461073357600080fd5b80633932abb11161021c57806354fd4d50116101d05780635f398a14116101b55780635f398a14146106b357806370b0f660146106d35780637b3c71d3146106f357600080fd5b806354fd4d501461064d578063567813881461069357600080fd5b80633e4f49e6116102015780633e4f49e61461053e578063438596321461056b578063544ffc9c146105cf57600080fd5b80633932abb1146105095780633bccf4fd1461051e57600080fd5b8063160cbed7116102735780632d63f693116102585780632d63f693146104325780632fe3e26114610452578063342cfab61461048657600080fd5b8063160cbed7146103ff5780632656227d1461041f57600080fd5b806303420181116102a4578063034201811461034857806306fdde0314610368578063150b7a021461038a57600080fd5b806301ffc9a7146102f457806302a251a31461032957600080fd5b366102ef57306102cd610a2d565b73ffffffffffffffffffffffffffffffffffffffff16146102ed57600080fd5b005b600080fd5b34801561030057600080fd5b5061031461030f366004613d61565b610a53565b60405190151581526020015b60405180910390f35b34801561033557600080fd5b50600a545b604051908152602001610320565b34801561035457600080fd5b5061033a610363366004613f24565b610a64565b34801561037457600080fd5b5061037d610a83565b6040516103209190614039565b34801561039657600080fd5b506103ce6103a536600461406e565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610320565b34801561040b57600080fd5b5061033a61041a366004614248565b610b15565b61033a61042d366004614248565b610fa9565b34801561043e57600080fd5b5061033a61044d3660046142d8565b611124565b34801561045e57600080fd5b5061033a7fb3b3f3b703cd84ce352197dcff232b1b5d3cfb2025ce47cf04742d0651f1af8881565b34801561049257600080fd5b506104e86104a13660046142f1565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff9390931684529190529020546fffffffffffffffffffffffffffffffff1690565b6040516fffffffffffffffffffffffffffffffff9091168152602001610320565b34801561051557600080fd5b5060095461033a565b34801561052a57600080fd5b5061033a610539366004614321565b61115d565b34801561054a57600080fd5b5061055e6105593660046142d8565b6111f2565b604051610320919061439e565b34801561057757600080fd5b506103146105863660046142f1565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff9390931684529190529020546fffffffffffffffffffffffffffffffff16151590565b3480156105db57600080fd5b506106326105ea3660046142d8565b600090815260046020526040902080546001909101546fffffffffffffffffffffffffffffffff80831693700100000000000000000000000000000000909304811692911690565b60408051938452602084019290925290820152606001610320565b34801561065957600080fd5b5060408051808201909152600181527f3100000000000000000000000000000000000000000000000000000000000000602082015261037d565b34801561069f57600080fd5b5061033a6106ae3660046143df565b6111fd565b3480156106bf57600080fd5b5061033a6106ce36600461440b565b611226565b3480156106df57600080fd5b506102ed6106ee3660046142d8565b611270565b3480156106ff57600080fd5b5061033a61070e36600461448f565b61136b565b34801561071f57600080fd5b5061033a61072e3660046144e9565b6113bd565b34801561073f57600080fd5b5061033a61074e36600461459e565b61180a565b34801561075f57600080fd5b506102ed61076e3660046145f7565b611821565b34801561077f57600080fd5b5061033a61078e3660046142d8565b611919565b34801561079f57600080fd5b5061033a611946565b3480156107b457600080fd5b506102ed611951565b3480156107c957600080fd5b506103ce6107d8366004614614565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b34801561080e57600080fd5b5061033a61081d3660046142d8565b6119d5565b6102ed6108303660046146a8565b611a05565b34801561084157600080fd5b5061033a610850366004614248565b611b92565b34801561086157600080fd5b5060075473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610320565b3480156108ad57600080fd5b5061037d611bea565b3480156108c257600080fd5b5061033a7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156108f657600080fd5b506104e86109053660046145f7565b6006602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b34801561093557600080fd5b506102ed6109443660046142d8565b611c0a565b34801561095557600080fd5b5061033a6109643660046146ec565b611d02565b34801561097557600080fd5b506102ed6109843660046142d8565b611d23565b34801561099557600080fd5b506103ce6109a4366004614718565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b3480156109da57600080fd5b5061033a6109e93660046142d8565b506a021165458500521280000090565b348015610a0557600080fd5b5061087c7f000000000000000000000000000000000000000000000000000000000000000081565b6000610a4e60075473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b6000610a5e82611e1b565b92915050565b6000610a768989898989898989611e71565b9998505050505050505050565b606060008054610a9290614781565b80601f0160208091040260200160405190810160405280929190818152602001828054610abe90614781565b8015610b0b5780601f10610ae057610100808354040283529160200191610b0b565b820191906000526020600020905b815481529060010190602001808311610aee57829003601f168201915b5050505050905090565b600080610b2486868686611b92565b90506004610b31826111f2565b6007811115610b4257610b4261436f565b14610bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f742073756363657373667560448201527f6c0000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600754604080517f6a42b8f8000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691636a42b8f89160048083019260209291908290030181865afa158015610c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6891906147d4565b610c72904261481c565b9050610cc5610c8082612161565b60008481526008602052604090209081547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff91909116179055565b60005b8751811015610f6557600754885173ffffffffffffffffffffffffffffffffffffffff9091169063f2b06537908a9084908110610d0757610d0761482f565b6020026020010151898481518110610d2157610d2161482f565b6020026020010151898581518110610d3b57610d3b61482f565b602002602001015186604051602001610d57949392919061485e565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610d8b91815260200190565b602060405180830381865afa158015610da8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcc91906148b2565b15610e7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a206964656e746960448201527f63616c2070726f706f73616c20616374696f6e20616c7265616479207175657560648201527f6564000000000000000000000000000000000000000000000000000000000000608482015260a401610bcb565b600754885173ffffffffffffffffffffffffffffffffffffffff90911690633a66f901908a9084908110610eb557610eb561482f565b6020026020010151898481518110610ecf57610ecf61482f565b6020026020010151898581518110610ee957610ee961482f565b6020026020010151866040518563ffffffff1660e01b8152600401610f11949392919061485e565b6020604051808303816000875af1158015610f30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5491906147d4565b50610f5e816148d4565b9050610cc8565b5060408051838152602081018390527f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda2892910160405180910390a15095945050505050565b600080610fb886868686611b92565b90506000610fc5826111f2565b90506004816007811115610fdb57610fdb61436f565b1480610ff857506005816007811115610ff657610ff661436f565b145b611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f742073756363657373667560448201527f6c000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b60008281526001602081815260409283902060020180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a161110082888888886121ff565b61110d82888888886122c8565b61111a82888888886122d5565b5095945050505050565b600081815260016020908152604080832081519283019091525467ffffffffffffffff16908190525b67ffffffffffffffff1692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff8516606082015260009081906111ca906111c2906080015b60405160208183030381529060405280519060200120612328565b868686612391565b90506111e7878288604051806020016040528060008152506123af565b979650505050505050565b6000610a5e826123db565b60008033905061121e848285604051806020016040528060008152506123af565b949350505050565b6000803390506111e787828888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a92506124d9915050565b611278610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461130c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611315610a2d565b73ffffffffffffffffffffffffffffffffffffffff161461135f576000803660405161134292919061490c565b604051809103902090505b80611358600261268d565b0361134d57505b6113688161274a565b50565b6000803390506113b386828787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506123af92505050565b9695505050505050565b60006113c7611946565b6113d63361096460014361491c565b1015611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f476f7665726e6f723a2070726f706f73657220766f7465732062656c6f77207060448201527f726f706f73616c207468726573686f6c640000000000000000000000000000006064820152608401610bcb565b60006114798686868680519060200120611b92565b9050845186511461150c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e677460448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b835186511461159d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e677460448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b6000865111611608576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610bcb565b6000818152600160209081526040918290208251918201909252815467ffffffffffffffff1690819052156116bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c726561647920657869737460448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b60006116d26116cd60095490565b612161565b6116db43612161565b6116e5919061492f565b905060006116f56116cd600a5490565b6116ff908361492f565b83547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff841617845590506001830180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff83161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d5167ffffffffffffffff8111156117a8576117a8613e02565b6040519080825280602002602001820160405280156117db57816020015b60608152602001906001900390816117c65790505b508c88888e6040516117f599989796959493929190614a2d565b60405180910390a15091979650505050505050565b600061181784848461278b565b90505b9392505050565b611829610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146118bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b306118c6610a2d565b73ffffffffffffffffffffffffffffffffffffffff161461191057600080366040516118f392919061490c565b604051809103902090505b80611909600261268d565b036118fe57505b6113688161285d565b600081815260086020908152604080832081519283019091525467ffffffffffffffff169081905261114d565b6000610a4e600b5490565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630e18b6816040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156119bb57600080fd5b505af11580156119cf573d6000803e3d6000fd5b50505050565b600081815260016020818152604080842081519283019091529091015467ffffffffffffffff169081905261114d565b611a0d610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611aa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611aaa610a2d565b73ffffffffffffffffffffffffffffffffffffffff1614611af45760008036604051611ad792919061490c565b604051809103902090505b80611aed600261268d565b03611ae257505b6000808573ffffffffffffffffffffffffffffffffffffffff16858585604051611b1f92919061490c565b60006040518083038185875af1925050503d8060008114611b5c576040519150601f19603f3d011682016040523d82523d6000602084013e611b61565b606091505b5091509150611b898282604051806060016040528060288152602001614cf8602891396128f8565b50505050505050565b600084848484604051602001611bab9493929190614b4a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012095945050505050565b6060604051806060016040528060328152602001614d2060329139905090565b611c12610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ca6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611caf610a2d565b73ffffffffffffffffffffffffffffffffffffffff1614611cf95760008036604051611cdc92919061490c565b604051809103902090505b80611cf2600261268d565b03611ce757505b61136881612911565b600061181a8383611d1e60408051602081019091526000815290565b61278b565b611d2b610a2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611dbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f476f7665726e6f723a206f6e6c79476f7665726e616e636500000000000000006044820152606401610bcb565b30611dc8610a2d565b73ffffffffffffffffffffffffffffffffffffffff1614611e125760008036604051611df592919061490c565b604051809103902090505b80611e0b600261268d565b03611e0057505b611368816129e2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f6e665ced000000000000000000000000000000000000000000000000000000001480610a5e5750610a5e82612a23565b6000845160401480611e8257508451155b611f34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604360248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420706172616d7320666f72207369676e61747572652d6261736564207660648201527f6f74650000000000000000000000000000000000000000000000000000000000608482015260a401610bcb565b6000611fb46111c27fb3b3f3b703cd84ce352197dcff232b1b5d3cfb2025ce47cf04742d0651f1af888c8c8c8c604051611f6f92919061490c565b60405180910390208b805190602001206040516020016111a7959493929190948552602085019390935260ff9190911660408401526060830152608082015260a00190565b9050855160400361210f5760408681015173ffffffffffffffffffffffffffffffffffffffff83166000908152600660205291909120546fffffffffffffffffffffffffffffffff9182169116811461208f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a207369676e60448201527f61747572652068617320616c7265616479206265656e207573656400000000006064820152608401610bcb565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020526040812080546fffffffffffffffffffffffffffffffff16916120d283614b95565b91906101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505060308752505b6121538a828b8b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92506124d9915050565b9a9950505050505050505050565b600067ffffffffffffffff8211156121fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201527f34206269747300000000000000000000000000000000000000000000000000006064820152608401610bcb565b5090565b30612208610a2d565b73ffffffffffffffffffffffffffffffffffffffff16146122c15760005b84518110156122bf573073ffffffffffffffffffffffffffffffffffffffff168582815181106122585761225861482f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff16036122af576122af8382815181106122905761229061482f565b6020026020010151805190602001206002612b5290919063ffffffff16565b6122b8816148d4565b9050612226565b505b5050505050565b6122c18585858585612ba4565b306122de610a2d565b73ffffffffffffffffffffffffffffffffffffffff16146122c157600254600f81810b700100000000000000000000000000000000909204900b13156122c15760006002556122c1565b6000610a5e612335612d78565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006123a287878787612eac565b9150915061111a81612f9b565b60006123d2858585856123cd60408051602081019091526000815290565b6124d9565b95945050505050565b6000806123e78361314e565b905060048160078111156123fd576123fd61436f565b146124085792915050565b600061241384611919565b905080600003612424575092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c1a287e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015612491573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b591906147d4565b6124bf908261481c565b42106124cf575060069392505050565b5060059392505050565b60008581526001602081905260408220906124f3886111f2565b60078111156125045761250461436f565b14612591576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201527f69766500000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b6040805160208101909152815467ffffffffffffffff16908190526000906125bb9088908661278b565b90506125ca888888848861329a565b835160000361262c578673ffffffffffffffffffffffffffffffffffffffff167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda48988848960405161261f9493929190614bc4565b60405180910390a26111e7565b8673ffffffffffffffffffffffffffffffffffffffff167fe2babfbac5889a709b63bb7f598b324e08bc5a4fb9ec647fb3cbc9ec07eb8712898884898960405161267a959493929190614bec565b60405180910390a2979650505050505050565b60006126b58254600f81810b700100000000000000000000000000000000909204900b131590565b156126ec576040517f3db2a12a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b508054600f0b6000818152600180840160205260408220805492905583547fffffffffffffffffffffffffffffffff000000000000000000000000000000001692016fffffffffffffffffffffffffffffffff169190911790915590565b60095460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600955565b6040517f782d6fe100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018490526000917f00000000000000000000000000000000000000000000000000000000000000009091169063782d6fe190604401602060405180830381865afa158015612823573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128479190614c32565b6bffffffffffffffffffffffff16949350505050565b6007546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060831561290757508161181a565b61181a838361342d565b600081116129a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f642060448201527f746f6f206c6f77000000000000000000000000000000000000000000000000006064820152608401610bcb565b600a5460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600a55565b600b5460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600b55565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fbf26d897000000000000000000000000000000000000000000000000000000001480612ab657507fffffffff0000000000000000000000000000000000000000000000000000000082167f79dd796f00000000000000000000000000000000000000000000000000000000145b80612b0257507fffffffff0000000000000000000000000000000000000000000000000000000082167f4e2312e000000000000000000000000000000000000000000000000000000000145b80610a5e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a5e565b815470010000000000000000000000000000000090819004600f0b6000818152600180860160205260409091209390935583546fffffffffffffffffffffffffffffffff908116939091011602179055565b6000612baf86611919565b905060008111612c41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a2070726f706f7360448201527f616c206e6f7420796574207175657565640000000000000000000000000000006064820152608401610bcb565b600754612c649073ffffffffffffffffffffffffffffffffffffffff1634613471565b60005b8551811015611b8957600754865173ffffffffffffffffffffffffffffffffffffffff90911690630825f38f90889084908110612ca657612ca661482f565b6020026020010151878481518110612cc057612cc061482f565b6020026020010151878581518110612cda57612cda61482f565b6020026020010151866040518563ffffffff1660e01b8152600401612d02949392919061485e565b6000604051808303816000875af1158015612d21573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052612d679190810190614c60565b50612d71816148d4565b9050612c67565b60003073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015612dde57507f000000000000000000000000000000000000000000000000000000000000000046145b15612e0857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ee35750600090506003612f92565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f37573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116612f8b57600060019250925050612f92565b9150600090505b94509492505050565b6000816004811115612faf57612faf61436f565b03612fb75750565b6001816004811115612fcb57612fcb61436f565b03613032576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bcb565b60028160048111156130465761304661436f565b036130ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bcb565b60038160048111156130c1576130c161436f565b03611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610bcb565b6000818152600160205260408120600281015460ff16156131725750600792915050565b6002810154610100900460ff161561318d5750600292915050565b600061319884611124565b905080600003613204576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610bcb565b438110613215575060009392505050565b6000613220856119d5565b905043811061323457506001949350505050565b61323d856135d0565b801561327f57506000858152600460205260409020546fffffffffffffffffffffffffffffffff80821670010000000000000000000000000000000090920416115b1561328f57506004949350505050565b506003949350505050565b6000821161332a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a206e6f207760448201527f65696768740000000000000000000000000000000000000000000000000000006064820152608401610bcb565b600085815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff881684529091529020546fffffffffffffffffffffffffffffffff1682116133fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20616c6c2060448201527f77656967687420636173740000000000000000000000000000000000000000006064820152608401610bcb565b60006134058361363f565b905081516000036134215761341c868683876136e1565b6122bf565b6122bf86868385613a08565b81511561343d5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcb9190614039565b804710156134db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610bcb565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114613535576040519150601f19603f3d011682016040523d82523d6000602084013e61353a565b606091505b50509050806135cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610bcb565b505050565b600081815260046020526040812060018101548154613618916fffffffffffffffffffffffffffffffff90811691700100000000000000000000000000000000900416614cce565b6fffffffffffffffffffffffffffffffff166136366109e985611124565b11159392505050565b60006fffffffffffffffffffffffffffffffff8211156121fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f32382062697473000000000000000000000000000000000000000000000000006064820152608401610bcb565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091529020546fffffffffffffffffffffffffffffffff16156137b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20766f746560448201527f20776f756c6420657863656564207765696768740000000000000000000000006064820152608401610bcb565b600084815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905560ff811661388c57600084815260046020526040812080548492906138519084906fffffffffffffffffffffffffffffffff16614cce565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506119cf565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60ff8216016138fd576000848152600460205260409020805483919060109061385190849070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16614cce565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff82160161395a57600084815260046020526040812060010180548492906138519084906fffffffffffffffffffffffffffffffff16614cce565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420737570706f72742076616c75652c206d75737420626520696e636c7560648201527f64656420696e20566f74655479706520656e756d000000000000000000000000608482015260a401610bcb565b8051603014613a99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20696e766160448201527f6c696420766f74654461746100000000000000000000000000000000000000006064820152608401610bcb565b60208181015160408084015160008881526005855282812073ffffffffffffffffffffffffffffffffffffffff8916825290945290832054608083811c946fffffffffffffffffffffffffffffffff948516949390911c92909116908183613b01868861481c565b613b0b919061481c565b613b15919061481c565b9050866fffffffffffffffffffffffffffffffff16811115613bb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f476f7665726e6f72436f756e74696e674672616374696f6e616c3a20766f746560448201527f20776f756c6420657863656564207765696768740000000000000000000000006064820152608401610bcb565b600089815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8c168452825280832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff868116919091179091558c8452600483529281902081516060808201845282548087168352700100000000000000000000000000000000900486169482019490945260019190910154909316838201528051918201905281518190613c83908990614cce565b6fffffffffffffffffffffffffffffffff168152602001868360200151613caa9190614cce565b6fffffffffffffffffffffffffffffffff168152602001858360400151613cd19190614cce565b6fffffffffffffffffffffffffffffffff90811690915260009b8c526004602090815260409c8d902083519184015183167001000000000000000000000000000000000291831691909117815591909b01516001909101805491909b167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090911617909955505050505050505050565b600060208284031215613d7357600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461181a57600080fd5b803560ff81168114613db457600080fd5b919050565b60008083601f840112613dcb57600080fd5b50813567ffffffffffffffff811115613de357600080fd5b602083019150836020828501011115613dfb57600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613e7857613e78613e02565b604052919050565b600067ffffffffffffffff821115613e9a57613e9a613e02565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000613ed9613ed484613e80565b613e31565b9050828152838383011115613eed57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f1557600080fd5b61181a83833560208501613ec6565b60008060008060008060008060e0898b031215613f4057600080fd5b88359750613f5060208a01613da3565b9650604089013567ffffffffffffffff80821115613f6d57600080fd5b613f798c838d01613db9565b909850965060608b0135915080821115613f9257600080fd5b50613f9f8b828c01613f04565b945050613fae60808a01613da3565b925060a0890135915060c089013590509295985092959890939650565b60005b83811015613fe6578181015183820152602001613fce565b50506000910152565b60008151808452614007816020860160208601613fcb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061181a6020830184613fef565b73ffffffffffffffffffffffffffffffffffffffff8116811461136857600080fd5b6000806000806080858703121561408457600080fd5b843561408f8161404c565b9350602085013561409f8161404c565b925060408501359150606085013567ffffffffffffffff8111156140c257600080fd5b6140ce87828801613f04565b91505092959194509250565b600067ffffffffffffffff8211156140f4576140f4613e02565b5060051b60200190565b600082601f83011261410f57600080fd5b8135602061411f613ed4836140da565b82815260059290921b8401810191818101908684111561413e57600080fd5b8286015b848110156141625780356141558161404c565b8352918301918301614142565b509695505050505050565b600082601f83011261417e57600080fd5b8135602061418e613ed4836140da565b82815260059290921b840181019181810190868411156141ad57600080fd5b8286015b8481101561416257803583529183019183016141b1565b600082601f8301126141d957600080fd5b813560206141e9613ed4836140da565b82815260059290921b8401810191818101908684111561420857600080fd5b8286015b8481101561416257803567ffffffffffffffff81111561422c5760008081fd5b61423a8986838b0101613f04565b84525091830191830161420c565b6000806000806080858703121561425e57600080fd5b843567ffffffffffffffff8082111561427657600080fd5b614282888389016140fe565b9550602087013591508082111561429857600080fd5b6142a48883890161416d565b945060408701359150808211156142ba57600080fd5b506142c7878288016141c8565b949793965093946060013593505050565b6000602082840312156142ea57600080fd5b5035919050565b6000806040838503121561430457600080fd5b8235915060208301356143168161404c565b809150509250929050565b600080600080600060a0868803121561433957600080fd5b8535945061434960208701613da3565b935061435760408701613da3565b94979396509394606081013594506080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600883106143d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080604083850312156143f257600080fd5b8235915061440260208401613da3565b90509250929050565b60008060008060006080868803121561442357600080fd5b8535945061443360208701613da3565b9350604086013567ffffffffffffffff8082111561445057600080fd5b61445c89838a01613db9565b9095509350606088013591508082111561447557600080fd5b5061448288828901613f04565b9150509295509295909350565b600080600080606085870312156144a557600080fd5b843593506144b560208601613da3565b9250604085013567ffffffffffffffff8111156144d157600080fd5b6144dd87828801613db9565b95989497509550505050565b600080600080608085870312156144ff57600080fd5b843567ffffffffffffffff8082111561451757600080fd5b614523888389016140fe565b9550602087013591508082111561453957600080fd5b6145458883890161416d565b9450604087013591508082111561455b57600080fd5b614567888389016141c8565b9350606087013591508082111561457d57600080fd5b508501601f8101871361458f57600080fd5b6140ce87823560208401613ec6565b6000806000606084860312156145b357600080fd5b83356145be8161404c565b925060208401359150604084013567ffffffffffffffff8111156145e157600080fd5b6145ed86828701613f04565b9150509250925092565b60006020828403121561460957600080fd5b813561181a8161404c565b600080600080600060a0868803121561462c57600080fd5b85356146378161404c565b945060208601356146478161404c565b9350604086013567ffffffffffffffff8082111561466457600080fd5b61467089838a0161416d565b9450606088013591508082111561468657600080fd5b61469289838a0161416d565b9350608088013591508082111561447557600080fd5b600080600080606085870312156146be57600080fd5b84356146c98161404c565b935060208501359250604085013567ffffffffffffffff8111156144d157600080fd5b600080604083850312156146ff57600080fd5b823561470a8161404c565b946020939093013593505050565b600080600080600060a0868803121561473057600080fd5b853561473b8161404c565b9450602086013561474b8161404c565b93506040860135925060608601359150608086013567ffffffffffffffff81111561477557600080fd5b61448288828901613f04565b600181811c9082168061479557607f821691505b6020821081036147ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000602082840312156147e657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610a5e57610a5e6147ed565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8516815283602082015260a06040820152600060a082015260c0606082015260006148a160c0830185613fef565b905082608083015295945050505050565b6000602082840312156148c457600080fd5b8151801515811461181a57600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614905576149056147ed565b5060010190565b8183823760009101908152919050565b81810381811115610a5e57610a5e6147ed565b67ffffffffffffffff818116838216019080821115614950576149506147ed565b5092915050565b600081518084526020808501945080840160005b8381101561499d57815173ffffffffffffffffffffffffffffffffffffffff168752958201959082019060010161496b565b509495945050505050565b600081518084526020808501945080840160005b8381101561499d578151875295820195908201906001016149bc565b600081518084526020808501808196508360051b8101915082860160005b85811015614a20578284038952614a0e848351613fef565b988501989350908401906001016149f6565b5091979650505050505050565b60006101208b8352602073ffffffffffffffffffffffffffffffffffffffff8c1681850152816040850152614a648285018c614957565b91508382036060850152614a78828b6149a8565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015614ae7577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0878403018552614ad5838351613fef565b94860194925090850190600101614a9b565b505086810360a0880152614afb818c6149d8565b945050505050614b1760c084018767ffffffffffffffff169052565b67ffffffffffffffff851660e0840152828103610100840152614b3a8185613fef565b9c9b505050505050505050505050565b608081526000614b5d6080830187614957565b8281036020840152614b6f81876149a8565b90508281036040840152614b8381866149d8565b91505082606083015295945050505050565b60006fffffffffffffffffffffffffffffffff808316818103614bba57614bba6147ed565b6001019392505050565b84815260ff841660208201528260408201526080606082015260006113b36080830184613fef565b85815260ff8516602082015283604082015260a060608201526000614c1460a0830185613fef565b8281036080840152614c268185613fef565b98975050505050505050565b600060208284031215614c4457600080fd5b81516bffffffffffffffffffffffff8116811461181a57600080fd5b600060208284031215614c7257600080fd5b815167ffffffffffffffff811115614c8957600080fd5b8201601f81018413614c9a57600080fd5b8051614ca8613ed482613e80565b818152856020838501011115614cbd57600080fd5b6123d2826020830160208601613fcb565b6fffffffffffffffffffffffffffffffff818116838216019080821115614950576149506147ed56fe476f7665726e6f723a2072656c617920726576657274656420776974686f7574206d657373616765737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e26706172616d733d6672616374696f6e616ca264697066735822122008fa22161dbe6934fa37926812642b24adde04675001a4a1d30837cdd9a335c964736f6c6343000811003300000000000000000000000000000000000000000000000000000000000033540000000000000000000000000000000000000000000000000000000000009d8000000000000000000000000000000000000000000000d3c21bcecceda1000000", 20 | "nonce": "0x3", 21 | "accessList": [] 22 | }, 23 | "additionalContracts": [], 24 | "isFixedGasLimit": false 25 | } 26 | ], 27 | "receipts": [ 28 | { 29 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 30 | "transactionIndex": "0x17", 31 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 32 | "blockNumber": "0x10fd1b6", 33 | "from": "0x617C01cB500E7065e7734699B76D7E0604af8B58", 34 | "to": null, 35 | "cumulativeGasUsed": "0x68a096", 36 | "gasUsed": "0x43dc6b", 37 | "contractAddress": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 38 | "logs": [ 39 | { 40 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 41 | "topics": [ 42 | "0x08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401" 43 | ], 44 | "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057a8865cfb1ecef7253c27da6b4bc3daee5be518", 45 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 46 | "blockNumber": "0x10fd1b6", 47 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 48 | "transactionIndex": "0x17", 49 | "logIndex": "0x36", 50 | "removed": false 51 | }, 52 | { 53 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 54 | "topics": [ 55 | "0xc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93" 56 | ], 57 | "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003354", 58 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 59 | "blockNumber": "0x10fd1b6", 60 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 61 | "transactionIndex": "0x17", 62 | "logIndex": "0x37", 63 | "removed": false 64 | }, 65 | { 66 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 67 | "topics": [ 68 | "0x7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828" 69 | ], 70 | "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009d80", 71 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 72 | "blockNumber": "0x10fd1b6", 73 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 74 | "transactionIndex": "0x17", 75 | "logIndex": "0x38", 76 | "removed": false 77 | }, 78 | { 79 | "address": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639", 80 | "topics": [ 81 | "0xccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461" 82 | ], 83 | "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d3c21bcecceda1000000", 84 | "blockHash": "0x1e92e35400250fee1f0472a30ebc55f1eead3525d7812e21c919db07c057d16d", 85 | "blockNumber": "0x10fd1b6", 86 | "transactionHash": "0x11e15391dc2ff0db7e0ce1a7c1f5cf8b6ffa9eb6aa7ddae1e488cb91bf9ba2be", 87 | "transactionIndex": "0x17", 88 | "logIndex": "0x39", 89 | "removed": false 90 | } 91 | ], 92 | "status": "0x1", 93 | "logsBloom": "0x00000000000000000020000000000000000000000000000000000000000008000000000000000000000000000010000000000000000000000000002000000000000000000000000000000000000000000000000000000000000010000000000000000000000000080002000000000000000000000000000000000000000000001000002000000000000000000000000000000000000000000010000000000002000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000001000000000000000800000000000000000000000000000000000000000000000000000000000000000002000", 94 | "type": "0x2", 95 | "effectiveGasPrice": "0xc7458d015" 96 | } 97 | ], 98 | "libraries": [], 99 | "pending": [], 100 | "returns": { 101 | "0": { 102 | "internal_type": "contract GitcoinGovernor", 103 | "value": "0x9D4C63565D5618310271bF3F3c01b2954C1D1639" 104 | } 105 | }, 106 | "timestamp": 1690817978, 107 | "chain": 1, 108 | "multi": false, 109 | "commit": "9103e00" 110 | } -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- 1 | [profile.default] 2 | optimizer = true 3 | optimizer_runs = 10_000_000 4 | remappings = ["@openzeppelin=lib/flexible-voting/lib/openzeppelin-contracts/"] 5 | solc_version = "0.8.17" 6 | verbosity = 3 7 | 8 | [profile.ci] 9 | fuzz = { runs = 500 } 10 | invariant = { runs = 500 } 11 | 12 | [profile.lite] 13 | fuzz = { runs = 50, seed = 1673481600 } 14 | invariant = { runs = 10 } 15 | # Speed up compilation and tests during development. 16 | optimizer = false 17 | 18 | [rpc_endpoints] 19 | mainnet = "${MAINNET_RPC_URL}" 20 | 21 | [fmt] 22 | bracket_spacing = false 23 | int_types = "long" 24 | line_length = 100 25 | multiline_func_header = "attributes_first" 26 | number_underscore = "thousands" 27 | quote_style = "double" 28 | single_line_statement_blocks = "single" 29 | tab_width = 2 30 | wrap_comments = true 31 | -------------------------------------------------------------------------------- /script/Deploy.s.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: AGPL-3.0-only 2 | pragma solidity ^0.8.17; 3 | 4 | import {Script} from "forge-std/Script.sol"; 5 | import {DeployInput} from "script/DeployInput.sol"; 6 | import {GitcoinGovernor} from "src/GitcoinGovernor.sol"; 7 | 8 | contract DeployScript is DeployInput, Script { 9 | uint256 deployerPrivateKey; 10 | 11 | function setUp() public { 12 | deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY"); 13 | } 14 | 15 | function run() public returns (GitcoinGovernor) { 16 | vm.startBroadcast(deployerPrivateKey); 17 | GitcoinGovernor _governor = 18 | new GitcoinGovernor(INITIAL_VOTING_DELAY, INITIAL_VOTING_PERIOD, INITIAL_PROPOSAL_THRESHOLD); 19 | vm.stopBroadcast(); 20 | 21 | return _governor; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /script/DeployInput.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: AGPL-3.0-only 2 | pragma solidity ^0.8.17; 3 | 4 | contract DeployInput { 5 | uint256 constant INITIAL_VOTING_DELAY = 13_140; 6 | uint256 constant INITIAL_VOTING_PERIOD = 40_320; 7 | uint256 constant INITIAL_PROPOSAL_THRESHOLD = 1_000_000e18; 8 | } 9 | -------------------------------------------------------------------------------- /script/Propose.s.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: AGPL-3.0-only 2 | pragma solidity ^0.8.17; 3 | 4 | import {Script} from "forge-std/Script.sol"; 5 | import {GitcoinGovernor} from "src/GitcoinGovernor.sol"; 6 | import {IGovernorAlpha} from "src/interfaces/IGovernorAlpha.sol"; 7 | import {ICompoundTimelock} from 8 | "@openzeppelin/contracts/governance/extensions/GovernorTimelockCompound.sol"; 9 | 10 | contract ProposeScript is Script { 11 | IGovernorAlpha constant GOVERNOR_ALPHA = 12 | IGovernorAlpha(0xDbD27635A534A3d3169Ef0498beB56Fb9c937489); 13 | address constant PROPOSER = 0xc2E2B715d9e302947Ec7e312fd2384b5a1296099; // kbw.eth 14 | 15 | function propose(GitcoinGovernor _newGovernor) internal returns (uint256 _proposalId) { 16 | address[] memory _targets = new address[](2); 17 | uint256[] memory _values = new uint256[](2); 18 | string[] memory _signatures = new string [](2); 19 | bytes[] memory _calldatas = new bytes[](2); 20 | 21 | _targets[0] = GOVERNOR_ALPHA.timelock(); 22 | _values[0] = 0; 23 | _signatures[0] = "setPendingAdmin(address)"; 24 | _calldatas[0] = abi.encode(address(_newGovernor)); 25 | 26 | _targets[1] = address(_newGovernor); 27 | _values[1] = 0; 28 | _signatures[1] = "__acceptAdmin()"; 29 | _calldatas[1] = ""; 30 | 31 | return GOVERNOR_ALPHA.propose( 32 | _targets, _values, _signatures, _calldatas, "Upgrade to Governor Bravo" 33 | ); 34 | } 35 | 36 | /// @dev After the new Governor is deployed on mainnet, this can move from a parameter to a const 37 | function run(GitcoinGovernor _newGovernor) public returns (uint256 _proposalId) { 38 | // The expectation is the key loaded here corresponds to the address of the `proposer` above. 39 | // When running as a script, broadcast will fail if the key is not correct. 40 | uint256 _proposerKey = vm.envUint("PROPOSER_PRIVATE_KEY"); 41 | vm.rememberKey(_proposerKey); 42 | 43 | vm.startBroadcast(PROPOSER); 44 | _proposalId = propose(_newGovernor); 45 | vm.stopBroadcast(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/GitcoinGovernor.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: AGPL-3.0-only 2 | pragma solidity ^0.8.17; 3 | 4 | // forgefmt: disable-start 5 | import { Governor, GovernorCountingFractional } from "flexible-voting/src/GovernorCountingFractional.sol"; 6 | import { ERC20VotesComp, GovernorVotesComp } from "@openzeppelin/contracts/governance/extensions/GovernorVotesComp.sol"; 7 | import {IGovernor} from "@openzeppelin/contracts/governance/IGovernor.sol"; 8 | import { GovernorTimelockCompound, ICompoundTimelock } from "@openzeppelin/contracts/governance/extensions/GovernorTimelockCompound.sol"; 9 | import { GovernorSettings } from "@openzeppelin/contracts/governance/extensions/GovernorSettings.sol"; 10 | // forgefmt: disable-end 11 | 12 | /// @notice The upgraded Gitcoin Governor: Bravo compatible and built with OpenZeppelin. 13 | contract GitcoinGovernor is 14 | GovernorCountingFractional, 15 | GovernorVotesComp, 16 | GovernorTimelockCompound, 17 | GovernorSettings 18 | { 19 | /// @notice The address of the GTC token on Ethereum mainnet from which this Governor derives 20 | /// delegated voting weight. 21 | ERC20VotesComp private constant GTC_TOKEN = 22 | ERC20VotesComp(0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F); 23 | 24 | /// @notice The address of the existing GitcoinDAO Timelock on Ethereum mainnet through which 25 | /// this Governor executes transactions. 26 | ICompoundTimelock private constant TIMELOCK = 27 | ICompoundTimelock(payable(0x57a8865cfB1eCEf7253c27da6B4BC3dAEE5Be518)); 28 | 29 | /// @notice Human readable name of this Governor. 30 | string private constant GOVERNOR_NAME = "GTC Governor Bravo"; 31 | 32 | /// @notice The number of GTC (in "wei") that must participate in a vote for it to meet quorum 33 | /// threshold. 34 | uint256 private constant QUORUM = 2_500_000e18; // 2,500,000 GTC 35 | 36 | /// @param _initialVotingDelay The deployment value for the voting delay this Governor will 37 | /// enforce. 38 | /// @param _initialVotingPeriod The deployment value for the voting period this Governor will 39 | /// enforce. 40 | /// @param _initialProposalThreshold The deployment value for the number of GTC required to submit 41 | /// a proposal this Governor will enforce. 42 | constructor( 43 | uint256 _initialVotingDelay, 44 | uint256 _initialVotingPeriod, 45 | uint256 _initialProposalThreshold 46 | ) 47 | GovernorVotesComp(GTC_TOKEN) 48 | GovernorSettings(_initialVotingDelay, _initialVotingPeriod, _initialProposalThreshold) 49 | GovernorTimelockCompound(TIMELOCK) 50 | Governor(GOVERNOR_NAME) 51 | {} 52 | 53 | /// @dev We override this function to resolve ambiguity between inherited contracts. 54 | function supportsInterface(bytes4 interfaceId) 55 | public 56 | view 57 | virtual 58 | override(Governor, GovernorTimelockCompound) 59 | returns (bool) 60 | { 61 | return GovernorTimelockCompound.supportsInterface(interfaceId); 62 | } 63 | 64 | /// @dev We override this function to resolve ambiguity between inherited contracts. 65 | function proposalThreshold() 66 | public 67 | view 68 | virtual 69 | override(Governor, GovernorSettings) 70 | returns (uint256) 71 | { 72 | return GovernorSettings.proposalThreshold(); 73 | } 74 | 75 | /// @dev We override this function to resolve ambiguity between inherited contracts. 76 | function state(uint256 proposalId) 77 | public 78 | view 79 | virtual 80 | override(Governor, GovernorTimelockCompound) 81 | returns (ProposalState) 82 | { 83 | return GovernorTimelockCompound.state(proposalId); 84 | } 85 | 86 | /// @notice The amount of GTC required to meet the quorum threshold for a proposal 87 | /// as of a given block. 88 | /// @dev Our implementation ignores the block number parameter and returns a constant. 89 | function quorum(uint256) public pure override returns (uint256) { 90 | return QUORUM; 91 | } 92 | 93 | /// @dev We override this function to resolve ambiguity between inherited contracts. 94 | function castVoteWithReasonAndParamsBySig( 95 | uint256 proposalId, 96 | uint8 support, 97 | string calldata reason, 98 | bytes memory params, 99 | uint8 v, 100 | bytes32 r, 101 | bytes32 s 102 | ) public override(Governor, GovernorCountingFractional, IGovernor) returns (uint256) { 103 | return GovernorCountingFractional.castVoteWithReasonAndParamsBySig( 104 | proposalId, support, reason, params, v, r, s 105 | ); 106 | } 107 | 108 | /// @dev We override this function to resolve ambiguity between inherited contracts. 109 | function _execute( 110 | uint256 proposalId, 111 | address[] memory targets, 112 | uint256[] memory values, 113 | bytes[] memory calldatas, 114 | bytes32 descriptionHash 115 | ) internal virtual override(Governor, GovernorTimelockCompound) { 116 | return 117 | GovernorTimelockCompound._execute(proposalId, targets, values, calldatas, descriptionHash); 118 | } 119 | 120 | /// @dev We override this function to resolve ambiguity between inherited contracts. 121 | function _cancel( 122 | address[] memory targets, 123 | uint256[] memory values, 124 | bytes[] memory calldatas, 125 | bytes32 descriptionHash 126 | ) internal virtual override(Governor, GovernorTimelockCompound) returns (uint256) { 127 | return GovernorTimelockCompound._cancel(targets, values, calldatas, descriptionHash); 128 | } 129 | 130 | /// @dev We override this function to resolve ambiguity between inherited contracts. 131 | function _executor() 132 | internal 133 | view 134 | virtual 135 | override(Governor, GovernorTimelockCompound) 136 | returns (address) 137 | { 138 | return GovernorTimelockCompound._executor(); 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /src/interfaces/IGTC.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: AGPL-3.0-only 2 | pragma solidity ^0.8.17; 3 | 4 | interface IGTC { 5 | event Approval(address indexed owner, address indexed spender, uint256 amount); 6 | event DelegateChanged( 7 | address indexed delegator, address indexed fromDelegate, address indexed toDelegate 8 | ); 9 | event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); 10 | event GTCDistChanged(address delegator, address delegatee); 11 | event MinterChanged(address minter, address newMinter); 12 | event Transfer(address indexed from, address indexed to, uint256 amount); 13 | 14 | function DELEGATION_TYPEHASH() external view returns (bytes32); 15 | function DOMAIN_TYPEHASH() external view returns (bytes32); 16 | function GTCDist() external view returns (address); 17 | function PERMIT_TYPEHASH() external view returns (bytes32); 18 | function allowance(address account, address spender) external view returns (uint256); 19 | function approve(address spender, uint256 rawAmount) external returns (bool); 20 | function balanceOf(address account) external view returns (uint256); 21 | function checkpoints(address, uint32) external view returns (uint32 fromBlock, uint96 votes); 22 | function decimals() external view returns (uint8); 23 | function delegate(address delegatee) external; 24 | function delegateBySig( 25 | address delegatee, 26 | uint256 nonce, 27 | uint256 expiry, 28 | uint8 v, 29 | bytes32 r, 30 | bytes32 s 31 | ) external; 32 | function delegateOnDist(address delegator, address delegatee) external; 33 | function delegates(address) external view returns (address); 34 | function getCurrentVotes(address account) external view returns (uint96); 35 | function getPriorVotes(address account, uint256 blockNumber) external view returns (uint96); 36 | function minimumTimeBetweenMints() external view returns (uint32); 37 | function mint(address dst, uint256 rawAmount) external; 38 | function mintCap() external view returns (uint8); 39 | function minter() external view returns (address); 40 | function mintingAllowedAfter() external view returns (uint256); 41 | function name() external view returns (string memory); 42 | function nonces(address) external view returns (uint256); 43 | function numCheckpoints(address) external view returns (uint32); 44 | function permit( 45 | address owner, 46 | address spender, 47 | uint256 rawAmount, 48 | uint256 deadline, 49 | uint8 v, 50 | bytes32 r, 51 | bytes32 s 52 | ) external; 53 | function setGTCDist(address GTCDist_) external; 54 | function setMinter(address minter_) external; 55 | function symbol() external view returns (string memory); 56 | function totalSupply() external view returns (uint256); 57 | function transfer(address dst, uint256 rawAmount) external returns (bool); 58 | function transferFrom(address src, address dst, uint256 rawAmount) external returns (bool); 59 | } 60 | -------------------------------------------------------------------------------- /src/interfaces/IGovernorAlpha.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: AGPL-3.0-only 2 | pragma solidity ^0.8.17; 3 | 4 | interface IGovernorAlpha { 5 | event ProposalCanceled(uint256 id); 6 | event ProposalCreated( 7 | uint256 id, 8 | address proposer, 9 | address[] targets, 10 | uint256[] values, 11 | string[] signatures, 12 | bytes[] calldatas, 13 | uint256 startBlock, 14 | uint256 endBlock, 15 | string description 16 | ); 17 | event ProposalExecuted(uint256 id); 18 | event ProposalQueued(uint256 id, uint256 eta); 19 | event VoteCast(address voter, uint256 proposalId, bool support, uint256 votes); 20 | 21 | struct Receipt { 22 | bool hasVoted; 23 | bool support; 24 | uint96 votes; 25 | } 26 | 27 | function BALLOT_TYPEHASH() external view returns (bytes32); 28 | function DOMAIN_TYPEHASH() external view returns (bytes32); 29 | function cancel(uint256 proposalId) external; 30 | function castVote(uint256 proposalId, bool support) external; 31 | function castVoteBySig(uint256 proposalId, bool support, uint8 v, bytes32 r, bytes32 s) external; 32 | function execute(uint256 proposalId) external payable; 33 | function getActions(uint256 proposalId) 34 | external 35 | view 36 | returns ( 37 | address[] memory targets, 38 | uint256[] memory values, 39 | string[] memory signatures, 40 | bytes[] memory calldatas 41 | ); 42 | function getReceipt(uint256 proposalId, address voter) external view returns (Receipt memory); 43 | function gtc() external view returns (address); 44 | function latestProposalIds(address) external view returns (uint256); 45 | function name() external view returns (string memory); 46 | function proposalCount() external view returns (uint256); 47 | function proposalMaxOperations() external pure returns (uint256); 48 | function proposalThreshold() external pure returns (uint256); 49 | function proposals(uint256) 50 | external 51 | view 52 | returns ( 53 | uint256 id, 54 | address proposer, 55 | uint256 eta, 56 | uint256 startBlock, 57 | uint256 endBlock, 58 | uint256 forVotes, 59 | uint256 againstVotes, 60 | bool canceled, 61 | bool executed 62 | ); 63 | function propose( 64 | address[] memory targets, 65 | uint256[] memory values, 66 | string[] memory signatures, 67 | bytes[] memory calldatas, 68 | string memory description 69 | ) external returns (uint256); 70 | function queue(uint256 proposalId) external; 71 | function quorumVotes() external pure returns (uint256); 72 | function state(uint256 proposalId) external view returns (uint8); 73 | function timelock() external view returns (address); 74 | function votingDelay() external pure returns (uint256); 75 | function votingPeriod() external pure returns (uint256); 76 | } 77 | --------------------------------------------------------------------------------