Contract 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xae9539c056c65de626a5a0b557bdf16c7b6ddfad8f103d35d62791ff8f2827d9Register With Pr...203770492022-09-28 8:33:352 hrs 16 mins ago0x46f0849df698b6c5e31936b21ea28f301fb8d7e2 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.328795156596932 AVAX0.02953737927
0x2298c6bd69522e638837fa9168f1900c8a7690245b7bea1e0ac2e3257dd1e1edRegister With Pr...203762352022-09-28 8:05:092 hrs 45 mins ago0x5afe422be84fb5dd678b47ff5647ee18c58dacc1 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed1.310288204520642 AVAX0.103121517626.1
0xe5b6ad67c811505b7f33dad9beee4338c7a895babbf80e57ed846b261a48c1caRegister With Pr...203753522022-09-28 7:34:393 hrs 15 mins ago0x6047314dbd7579e3e3f4d7877181780f8e27d938 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed1.644196089808897 AVAX0.127423166 26
0x7ca9a58bb788c2ae5bb3ad4677fb40744d249c552c545a58f672569fc2babf04Register With Pr...203752242022-09-28 7:30:143 hrs 19 mins ago0x5afe422be84fb5dd678b47ff5647ee18c58dacc1 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed10.546456906365984 AVAX0.02856775526.1
0xce0203a2fe70a37de22ec58a2710333639263215ba78371ebf4d4eef5716b69fRegister With Pr...203749122022-09-28 7:19:313 hrs 30 mins ago0x6047314dbd7579e3e3f4d7877181780f8e27d938 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed2.314814814814813 AVAX0.17965838265 26.41
0x7ba53c2cf6a717fcb590b815729fa9b6747ff15e68eef83c5ec6bf3ba1fa7b5dRegister With Pr...203746792022-09-28 7:11:433 hrs 38 mins ago0x5afe422be84fb5dd678b47ff5647ee18c58dacc1 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed21.136788425162784 AVAX0.0511197525
0x2c18ce8c889daa8b058cc3dfc675320548feeee02e9f542960abf21246983971Register With Pr...203741252022-09-28 6:52:543 hrs 57 mins ago0x5afe422be84fb5dd678b47ff5647ee18c58dacc1 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed10.502089369347647 AVAX0.02732532525
0x0703389b0a4ed0805267506c04e2c13e63dfe04d710b4a48c110cc01714940dbRegister With Pr...203740362022-09-28 6:49:444 hrs ago0x5afe422be84fb5dd678b47ff5647ee18c58dacc1 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed84.08090967467238 AVAX0.0511896525
0x9fa1c5cffa2857201b3dff6f9b36c0e3211a753d52b5a403aa804399a823c51fRegister With Pr...203738572022-09-28 6:43:424 hrs 6 mins ago0xf621b92424b3e26bf2c438b26e07e624522f8268 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.327500536979705 AVAX0.028865655 26.5
0x61c03a6f9ac114900ae2103987b6598e617f1363f44a905f0c5e9914d4cc66d4Register With Pr...203720152022-09-28 5:40:265 hrs 9 mins ago0x33e7398605736718648d724aadefe4eff838c623 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.327878915439185 AVAX0.028867563 26.5
0xa6ec70e5f86de463d3a2e89decea360da1743fc99fd43c113d8357e55c8d0324Register With Pr...203639312022-09-28 1:02:579 hrs 47 mins ago0x72d0bbd167adad9e8a22cae396ba4600a23ee7f8 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.321092193091184 AVAX0.028981195 26.5
0xa6498e1ab1227e1b156404bd181d8804b716430e922b398a98b49c286f668c31Register203629372022-09-28 0:28:3710 hrs 21 mins ago0x0000b110411ef934ef12b8a66d46036a5099a799 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.641271265185202 AVAX0.0443924555 26.5
0x2e29dc1417870c0cf005e69fc4b23a198b42dfc39a2f1517e0fa373621def13cRegister203606942022-09-27 23:11:0011 hrs 39 mins ago0x35cde93a61fe492c24e7fd746ab02237e2e55088 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed1.60417957309342 AVAX0.0238002595 26.5
0x8bb0262bde28a3b3f3219faf4634b6af9270ffef685257dc7ab89ed71dc90100Register With Pr...203598762022-09-27 22:42:3212 hrs 7 mins ago0x06e4a25159bb603e4a8f3bab9077bb57cd082f74 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed1.925442788686872 AVAX0.1606883406 27.425
0x3ea3e4e093c03be2caa7096d3e715fbec3a7750fa8c750efe3a81989268c1f70Register With Pr...203598512022-09-27 22:41:3812 hrs 8 mins ago0x06e4a25159bb603e4a8f3bab9077bb57cd082f74 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed2.567257051582496 AVAX0.205388303 26.5
0x55803cd188e956cd94026cf9022dec4ef4361abe63cc87acdb6ee27c01c5ef0dRegister With Pr...203587272022-09-27 22:03:1412 hrs 46 mins ago0x06e4a25159bb603e4a8f3bab9077bb57cd082f74 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed2.591692264616784 AVAX0.2055421885 26.5
0x68bb07a8d571adb38ab22c273a23cc8e86bb3b34befac51f1e047ba6ee398abeRegister With Pr...203586372022-09-27 22:00:1012 hrs 50 mins ago0x06e4a25159bb603e4a8f3bab9077bb57cd082f74 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed2.591257265898328 AVAX0.205659822 26.5
0x06beda0907a239594a956a63831e1ad37d7ed972f3d4d9794f2c6a88c56b5ea9Register With Pr...203581312022-09-27 21:42:4013 hrs 7 mins ago0x505cfea620d85208910236bfab2b6edc6dbbd033 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.648027638228428 AVAX0.028929679 26.5
0xee4589b060515023ff101eeda25ef7dff9cd14180282e6db8b2d4e2957d6058eRegister With Pr...203581022022-09-27 21:41:4213 hrs 8 mins ago0x505cfea620d85208910236bfab2b6edc6dbbd033 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.648027638228428 AVAX0.028962274 26.5
0x5ac5aeb8c45bc8f32714d1fc06aafd97fb19f9d3eaf45c208369cbad958c4a32Register With Pr...203558522022-09-27 20:25:0514 hrs 25 mins ago0x25f34198bbc16565782863f243a4d7d9c3f8fffc IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.325243881180846 AVAX0.02722065 25
0xf5a06fd354f166a55705971540c6712605079828eac1831365d0345a16802684Register With Pr...203558032022-09-27 20:23:2514 hrs 26 mins ago0x06e4a25159bb603e4a8f3bab9077bb57cd082f74 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed1.626133744756097 AVAX0.133355912707 27.213232025
0x0be3e182665d386c63da37c0b661e5e44464c9bfd1945739bd815efcfa5a9611Register With Pr...203557772022-09-27 20:22:3214 hrs 27 mins ago0x06e4a25159bb603e4a8f3bab9077bb57cd082f74 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed2.599090318388564 AVAX0.20904790746 26.94
0xeaa5500e512c4ae6efe40204bbe1a47e1fe058e9a202de902a6527f5977b3230Register With Pr...203557112022-09-27 20:20:1714 hrs 29 mins ago0x06e4a25159bb603e4a8f3bab9077bb57cd082f74 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed2.597571270861744 AVAX0.20542694 26.5
0xe7d45466e8e0448d17cf4dc2a9e176413ddb06729d0b71cb1b4466f3d44b4c40Register With Pr...203552252022-09-27 20:03:4314 hrs 46 mins ago0x505cfea620d85208910236bfab2b6edc6dbbd033 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed1.622039007855522 AVAX0.1297075095 26.5
0x01ad2cb188acc7fd2fdc4702e90d17318d9a305662fb562f639a0d6768ea73c1Register With Pr...203540622022-09-27 19:24:2015 hrs 25 mins ago0x505cfea620d85208910236bfab2b6edc6dbbd033 IN  0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0.970473896514357 AVAX0.0794362675 26.5
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xae9539c056c65de626a5a0b557bdf16c7b6ddfad8f103d35d62791ff8f2827d9203770492022-09-28 8:33:352 hrs 16 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x46f0849df698b6c5e31936b21ea28f301fb8d7e20.032879515659693 AVAX
0xae9539c056c65de626a5a0b557bdf16c7b6ddfad8f103d35d62791ff8f2827d9203770492022-09-28 8:33:352 hrs 16 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0590.2959156409372395 AVAX
0x2298c6bd69522e638837fa9168f1900c8a7690245b7bea1e0ac2e3257dd1e1ed203762352022-09-28 8:05:092 hrs 45 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x5afe422be84fb5dd678b47ff5647ee18c58dacc10.131028821842718 AVAX
0x2298c6bd69522e638837fa9168f1900c8a7690245b7bea1e0ac2e3257dd1e1ed203762352022-09-28 8:05:092 hrs 45 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0591.179259382677924 AVAX
0xe5b6ad67c811505b7f33dad9beee4338c7a895babbf80e57ed846b261a48c1ca203753522022-09-28 7:34:393 hrs 15 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x6047314dbd7579e3e3f4d7877181780f8e27d9380.16441961248447 AVAX
0xe5b6ad67c811505b7f33dad9beee4338c7a895babbf80e57ed846b261a48c1ca203753522022-09-28 7:34:393 hrs 15 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0591.4797764773244275 AVAX
0x7ca9a58bb788c2ae5bb3ad4677fb40744d249c552c545a58f672569fc2babf04203752242022-09-28 7:30:143 hrs 19 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x5afe422be84fb5dd678b47ff5647ee18c58dacc11.054645701898416 AVAX
0x7ca9a58bb788c2ae5bb3ad4677fb40744d249c552c545a58f672569fc2babf04203752242022-09-28 7:30:143 hrs 19 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0599.491811204467568 AVAX
0xce0203a2fe70a37de22ec58a2710333639263215ba78371ebf4d4eef5716b69f203749122022-09-28 7:19:313 hrs 30 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x6047314dbd7579e3e3f4d7877181780f8e27d9380.2346647536927855 AVAX
0xce0203a2fe70a37de22ec58a2710333639263215ba78371ebf4d4eef5716b69f203749122022-09-28 7:19:313 hrs 30 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0592.080150061122028 AVAX
0x7ba53c2cf6a717fcb590b815729fa9b6747ff15e68eef83c5ec6bf3ba1fa7b5d203746792022-09-28 7:11:433 hrs 38 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x5afe422be84fb5dd678b47ff5647ee18c58dacc12.113678932985952 AVAX
0x7ba53c2cf6a717fcb590b815729fa9b6747ff15e68eef83c5ec6bf3ba1fa7b5d203746792022-09-28 7:11:433 hrs 38 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe05919.023109492176832 AVAX
0x2c18ce8c889daa8b058cc3dfc675320548feeee02e9f542960abf21246983971203741252022-09-28 6:52:543 hrs 57 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x5afe422be84fb5dd678b47ff5647ee18c58dacc11.050208936934751 AVAX
0x2c18ce8c889daa8b058cc3dfc675320548feeee02e9f542960abf21246983971203741252022-09-28 6:52:543 hrs 57 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0599.451880432412896 AVAX
0x0703389b0a4ed0805267506c04e2c13e63dfe04d710b4a48c110cc01714940db203740362022-09-28 6:49:444 hrs ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x5afe422be84fb5dd678b47ff5647ee18c58dacc18.408091191153788 AVAX
0x0703389b0a4ed0805267506c04e2c13e63dfe04d710b4a48c110cc01714940db203740362022-09-28 6:49:444 hrs ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe05975.672818483518592 AVAX
0x9fa1c5cffa2857201b3dff6f9b36c0e3211a753d52b5a403aa804399a823c51f203738572022-09-28 6:43:424 hrs 6 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0xf621b92424b3e26bf2c438b26e07e624522f82680.032750053871726 AVAX
0x9fa1c5cffa2857201b3dff6f9b36c0e3211a753d52b5a403aa804399a823c51f203738572022-09-28 6:43:424 hrs 6 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0590.294750483107979 AVAX
0x61c03a6f9ac114900ae2103987b6598e617f1363f44a905f0c5e9914d4cc66d4203720152022-09-28 5:40:265 hrs 9 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x33e7398605736718648d724aadefe4eff838c6230.0330929902485865 AVAX
0x61c03a6f9ac114900ae2103987b6598e617f1363f44a905f0c5e9914d4cc66d4203720152022-09-28 5:40:265 hrs 9 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0590.294785925190599 AVAX
0xa6ec70e5f86de463d3a2e89decea360da1743fc99fd43c113d8357e55c8d0324203639312022-09-28 1:02:579 hrs 47 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x72d0bbd167adad9e8a22cae396ba4600a23ee7f80.0321092193091185 AVAX
0xa6ec70e5f86de463d3a2e89decea360da1743fc99fd43c113d8357e55c8d0324203639312022-09-28 1:02:579 hrs 47 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0590.2889829737820655 AVAX
0xa6498e1ab1227e1b156404bd181d8804b716430e922b398a98b49c286f668c31203629372022-09-28 0:28:3710 hrs 21 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x0000b110411ef934ef12b8a66d46036a5099a7990.064127128850188 AVAX
0xa6498e1ab1227e1b156404bd181d8804b716430e922b398a98b49c286f668c31203629372022-09-28 0:28:3710 hrs 21 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed 0x07b0b3141a32adfb85d259d6fe27e612bdfbe0590.577144136335014 AVAX
0x2e29dc1417870c0cf005e69fc4b23a198b42dfc39a2f1517e0fa373621def13c203606942022-09-27 23:11:0011 hrs 39 mins ago 0x5c9140b835f5a74e62b49c7ba30a7362aadbd4ed0x35cde93a61fe492c24e7fd746ab02237e2e550880.1604179614782375 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LeasingAgentV1

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2022-06-15
*/

//
// .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
// MMMMMMMMMMMMMMMWNKOdolc:::cclodk0NWMMMMMMMMMMMMMMM
// MMMMMMMMMMMMNOd:'....,;;::;;,....':oONMMMMMMMMMMMM
// MMMMMMMMMW0o,..,cdOKNWWWMMWWWNKOxc,..'l0WMMMMMMMMM
// MMMMMMMWOc..,o0NMMMMMMMMMMMMMMMMMMN0d,..:OWMMMMMMM
// MMMMMMKl. ;kNMMMMMMMMMMMMMMMMMMMMMMMMNk;..cKWMMMMM
// MMMMWO, .dNMMMMMMMMMMMMMNXNMMMMMMMMMMMMNx' 'kWMMMM
// MMMWO' ,0WMMMMMMMMMMMMXx;.,dXMMMMMMMMMMMMK; .kWMMM
// MMM0, ,0MMMMMMMMMMMMXx, ... 'dXMMMMMMMMMMMK; 'OMMM
// MMNl .xWMMMMMMMMMMXd' .l0X0l. 'dXMMMMMMMMMMO. :XMM
// MM0' :XMMMXdlkNMXd' .l0WMMMWKl. 'dXMNxcxNMMNc .OMM
// MMk. oWMMMKc..:l' .lKWWKdokNMWKl. 'c, .oNMMWd..dMM
// MMx. dWMMMMNo.   ;0WWKl.   ;kNMWO,   .xWMMMMx. dWM
// MMO. lNMMWXd' .. .oko. 'lo:..;xk:..'. 'dXMMWo .xMM
// MMK; ,0MXd' .oKXd.   .dXMMWO:   .;kNKl. 'dXK; ,0MM
// MMWx. :l' .oKWMMMKl. .xNMMWKc. ,kNMMMWKl. ',..oWMM
// MMMNl   .oKWMMMMMMW0c..;dkl. 'xNMMMMMMMWKc.  :XMMM
// MMMMXc  :XMMMMMMMMMMWO:.   .dXMMMMMMMMMMNo. :KMMMM
// MMMMMNo. ,kNMMMMMMMMMMX:  .kWMMMMMMMMMWO; .lXMMMMM
// MMMMMMW0:..;kXMMMMMMMMNc  .OMMMMMMMMNk:..;OWMMMMMM
// MMMMMMMMNO:..'ckKNMMMMNc  .OMMMMWKkl'..:kNMMMMMMMM
// MMMMMMMMMMWKd:...,:odkk,  .okxoc,...;o0WMMMMMMMMMM
// MMMMMMMMMMMMMWXkoc,.....   ....,:okKWMMMMMMMMMMMMM
// 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM'
//
//                    AVVY DOMAINS
//

// Sources flattened with hardhat v2.8.3 https://hardhat.org

// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.8.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.8.0;



/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}


// File contracts/ContractRegistryInterface.sol

pragma solidity ^0.8.0;

interface ContractRegistryInterface {
  function get(string memory contractName) external view returns (address);
}


// File contracts/PricingOracleInterface.sol

pragma solidity ^0.8.0;

interface PricingOracleInterface {
  function getPriceForName(uint256 name, bytes memory data) external view returns (uint256 price, uint256 priceCentsUsd);
  function convertWeiToUsdCents(uint256 amount) external view returns (uint256 usdCents);
}


// File contracts/RainbowTableInterface.sol

pragma solidity ^0.8.0;

interface RainbowTableInterface {
  function reveal(uint256[] memory preimage, uint256 hash) external;
  function lookup(uint256 hash) external returns (uint256[] memory preimage);
  function getHash(uint256 hash, uint256[] calldata preimage) external view returns (uint256);
  function isRevealed(uint256 hash) external view returns (bool);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

pragma solidity ^0.8.0;







/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

pragma solidity ^0.8.0;


/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}


// File contracts/NamespaceInterface.sol

pragma solidity ^0.8.0;

/*
Casing is not enforced here. Users must be careful not to
implement duplicates by casing errors, e.g. by adding
AVAX and aVaX and avax as namespaces.

Casing rules are to be enforced by the MANAGER role.
*/

interface NamespaceInterface {
  function getGracePeriodLength(uint256 id) external view returns (uint256 gracePeriodLength);
  function getRecyclePeriodLength(uint256 id) external view returns (uint256 recyclePeriodLength);
  function checkName(uint256 id, uint256 name, bytes memory constraintsData) external view;
}


// File contracts/Domain.sol

//
// .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
// MMMMMMMMMMMMMMMWNKOdolc:::cclodk0NWMMMMMMMMMMMMMMM
// MMMMMMMMMMMMNOd:'....,;;::;;,....':oONMMMMMMMMMMMM
// MMMMMMMMMW0o,..,cdOKNWWWMMWWWNKOxc,..'l0WMMMMMMMMM
// MMMMMMMWOc..,o0NMMMMMMMMMMMMMMMMMMN0d,..:OWMMMMMMM
// MMMMMMKl. ;kNMMMMMMMMMMMMMMMMMMMMMMMMNk;..cKWMMMMM
// MMMMWO, .dNMMMMMMMMMMMMMNXNMMMMMMMMMMMMNx' 'kWMMMM
// MMMWO' ,0WMMMMMMMMMMMMXx;.,dXMMMMMMMMMMMMK; .kWMMM
// MMM0, ,0MMMMMMMMMMMMXx, ... 'dXMMMMMMMMMMMK; 'OMMM
// MMNl .xWMMMMMMMMMMXd' .l0X0l. 'dXMMMMMMMMMMO. :XMM
// MM0' :XMMMXdlkNMXd' .l0WMMMWKl. 'dXMNxcxNMMNc .OMM
// MMk. oWMMMKc..:l' .lKWWKdokNMWKl. 'c, .oNMMWd..dMM
// MMx. dWMMMMNo.   ;0WWKl.   ;kNMWO,   .xWMMMMx. dWM
// MMO. lNMMWXd' .. .oko. 'lo:..;xk:..'. 'dXMMWo .xMM
// MMK; ,0MXd' .oKXd.   .dXMMWO:   .;kNKl. 'dXK; ,0MM
// MMWx. :l' .oKWMMMKl. .xNMMWKc. ,kNMMMWKl. ',..oWMM
// MMMNl   .oKWMMMMMMW0c..;dkl. 'xNMMMMMMMWKc.  :XMMM
// MMMMXc  :XMMMMMMMMMMWO:.   .dXMMMMMMMMMMNo. :KMMMM
// MMMMMNo. ,kNMMMMMMMMMMX:  .kWMMMMMMMMMWO; .lXMMMMM
// MMMMMMW0:..;kXMMMMMMMMNc  .OMMMMMMMMNk:..;OWMMMMMM
// MMMMMMMMNO:..'ckKNMMMMNc  .OMMMMWKkl'..:kNMMMMMMMM
// MMMMMMMMMMWKd:...,:odkk,  .okxoc,...;o0WMMMMMMMMMM
// MMMMMMMMMMMMMWXkoc,.....   ....,:okKWMMMMMMMMMMMMM
// 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM'
//
//                    AVVY DOMAINS.
//

pragma solidity ^0.8.0;




contract Domain is ERC721, ERC721Enumerable, AccessControl {

  event Register(address agent, address indexed registrant, uint256 indexed name, uint256 leaseLength);
  event Suspend(address agent, uint256 indexed name, bool suspended);
  event Recycle(address agent, address indexed registrant, uint256 indexed name, uint256 leaseLength);
  event Revoke(address agent, address indexed holder, uint256 indexed name);
  event TokenBaseURISet(string uri);
  event ContractURISet(string uri);

  // =====
  // ROLES
  // =====

  // can update metadata
  bytes32 public constant ADMIN_AGENT = keccak256("1");

  // can mark domains as suspended.
  bytes32 public constant SUSPENSION_AGENT = keccak256("2");

  // can lease domains that are currently available or within the grace period
  bytes32 public constant LEASING_AGENT = keccak256("3");

  // can lease domains that are in the recycle period
  bytes32 public constant RECYCLING_AGENT = keccak256("4");

  // can transfer domains at any time
  bytes32 public constant REVOCATION_AGENT = keccak256("5");

  // ====
  // DATA
  // ====

  ContractRegistryInterface public immutable _contractRegistry;

  // which namespace does the domain belong to?
  mapping(uint256 => uint256) _domainToNamespace;

  // at what exact second does the lease expire? (i.e. at that second and after, the domain is no longer leased)
  mapping(uint256 => uint256) _leaseExpiresAt;

  // which domains are suspended?
  // users of the system should disregard suspended domains
  mapping(uint256 => bool) _suspensions;

  function exists(uint256 name) external view returns (bool) {
    return _exists(name);
  }

  // ===============
  // ERC721 Metadata
  // ===============

  string _baseTokenURI;
  string _contractURI;

  function setBaseTokenURI(string memory uri) external onlyRole(ADMIN_AGENT) {
    _baseTokenURI = uri;
    emit TokenBaseURISet(uri);
  }

  function setContractURI(string memory uri) external onlyRole(ADMIN_AGENT) {
    _contractURI = uri;
    emit ContractURISet(uri);
  }

  // tokenURI() implemented in ERC721, uses _baseURI below to
  // get the prefix for the URL.
  // _baseURI override from ERC721
  function _baseURI() internal view virtual override returns (string memory) {
    return _baseTokenURI;
  }

  function contractURI() external view returns (string memory) {
    return _contractURI;
  }

  // ==================
  // Core functionality
  // ==================

  function _isGracePeriod(
    uint256 leaseExpiresAt,
    uint256 namespaceId,
    NamespaceInterface namespace
  ) internal view returns (bool) {
    uint256 gracePeriodLength = namespace.getGracePeriodLength(namespaceId);
    return block.timestamp >= leaseExpiresAt && block.timestamp < leaseExpiresAt + gracePeriodLength;
  }

  function _isRecyclePeriod(
    uint256 leaseExpiresAt,
    uint256 namespaceId,
    NamespaceInterface namespace
  ) internal view returns (bool) {
    uint256 gracePeriodLength = namespace.getGracePeriodLength(namespaceId);
    uint256 recyclePeriodLength = namespace.getRecyclePeriodLength(namespaceId);
    uint256 gracePeriodEndsAt = leaseExpiresAt + gracePeriodLength;
    return block.timestamp >= gracePeriodEndsAt && block.timestamp < gracePeriodEndsAt + recyclePeriodLength;
  }
  
  function _isExpired(
    uint256 leaseExpiresAt,
    uint256 namespaceId,
    NamespaceInterface namespace
  ) internal view returns (bool) {
    uint256 gracePeriodLength = namespace.getGracePeriodLength(namespaceId);
    uint256 recyclePeriodLength = namespace.getRecyclePeriodLength(namespaceId);
    return block.timestamp >= leaseExpiresAt + gracePeriodLength + recyclePeriodLength;
  }

  function getRoleForNamespace(bytes32 role, uint256 namespaceId) public pure returns (bytes32) {
    bytes32 _role = keccak256(abi.encodePacked(role, namespaceId));
    return _role;
  }

  function _hasRoleForNamespace(bytes32 role, uint256 namespaceId) internal view returns (bool) {
    return hasRole(getRoleForNamespace(role, namespaceId), msg.sender);
  }

  function _checkNameMatchesNamespace(uint256 name, uint256 namespaceId) internal view {
    require(_domainToNamespace[name] == namespaceId, "Domain: Namespace mismatch");
  }

  function getNamespaceId(
    uint256 domainId
  ) external view returns (uint256) {
    return _domainToNamespace[domainId];
  }

  function getDomainExpiry(
    uint256 name 
  ) external view returns (uint256) {
    return _leaseExpiresAt[name];
  }

  function suspend(
    uint256 namespaceId,
    uint256 name,
    bool suspended
  ) external {
    require(_hasRoleForNamespace(SUSPENSION_AGENT, namespaceId), "Domain: Invalid permissions");
    _checkNameMatchesNamespace(name, namespaceId);
    _suspensions[name] = suspended;
    emit Suspend(msg.sender, name, suspended);
  }

  function isSuspended(
    uint256 name
  ) external view returns (bool suspended) {
    return _suspensions[name];
  }

  // used by the leasing agent to register domains
  function register(
    address registrant,
    uint256 namespaceId,
    uint256 name,
    uint256 leaseLength,
    bytes memory constraintsData
  ) external {

    require(
      _hasRoleForNamespace(LEASING_AGENT, namespaceId),
      "Domain: Invalid permissions"
    );

    address owner;
    require(!_suspensions[name], "Domain: Cannot register suspended domain");

    NamespaceInterface namespace = NamespaceInterface(_contractRegistry.get('Namespace'));
    bool tokenExists = _exists(name);
    if (tokenExists) {
      _checkNameMatchesNamespace(name, namespaceId);
    } else {
      namespace.checkName(
        namespaceId,
        name,
        constraintsData
      );
    }

    uint256 leaseExpiresAt = _leaseExpiresAt[name];
    _leaseExpiresAt[name] = block.timestamp + leaseLength;
    emit Register(msg.sender, registrant, name, leaseLength);

    // if the domain hasn't been minted already,
    // let's proceed with minting 
    if (!tokenExists) {
      _domainToNamespace[name] = namespaceId;
      _safeMint(registrant, name);
    } 
    
    // if the domain has been minted, but it's
    // available for immediate transfer
    else if (_isExpired(leaseExpiresAt, namespaceId, namespace)) {
      owner = ownerOf(name);
      if (owner != registrant) {
        _safeTransfer(owner, registrant, name, '');
      }
    } 
    
    // if the domain has been minted, expired,
    // but is currently in the grace period
    else if (_isGracePeriod(leaseExpiresAt, namespaceId, namespace)) {
      owner = ownerOf(name);
      require(owner == registrant, "Domain: Can only register to owner during grace period");
    }

    // otherwise, it's currently registered & we only allow it to be modified by
    // the owner, for the purpose of increasing the lease period
    else {
      owner = ownerOf(name);
      require(!_isRecyclePeriod(leaseExpiresAt, namespaceId, namespace), "Domain: Cannot register during recycle period");
      require(owner == registrant, "Domain: Only owner can modify registration if leased");
    }
  }

  function recycle(
    address to,
    uint256 namespaceId,
    uint256 name,
    uint256 leaseLength
  ) external {
    require(
      _hasRoleForNamespace(RECYCLING_AGENT, namespaceId),
      "Domain: Invalid permissions"
    );

    address owner = ownerOf(name);
    NamespaceInterface namespace = NamespaceInterface(_contractRegistry.get('Namespace'));

    require(!_suspensions[name], "Domain: Cannot recycle suspended domain");
    uint256 leaseExpiresAt = _leaseExpiresAt[name];

    require(
      _isRecyclePeriod(leaseExpiresAt, namespaceId, namespace),
      "Domain: Not recycling period"
    );

    _checkNameMatchesNamespace(name, namespaceId);
    _leaseExpiresAt[name] = block.timestamp + leaseLength;
    emit Recycle(msg.sender, to, name, leaseLength);
    _safeTransfer(owner, to, name, '');
  }

  function revoke(
    address to, 
    uint256 namespaceId,
    uint256 name
  ) external {
    require(
      _hasRoleForNamespace(REVOCATION_AGENT, namespaceId),
      "Domain: Invalid permissions"
    );
    _checkNameMatchesNamespace(name, namespaceId);
    address owner = ownerOf(name);
    _safeTransfer(owner, to, name, '');
    emit Revoke(msg.sender, to, name);
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 name
  ) override(ERC721, ERC721Enumerable) internal virtual {
    uint256 namespaceId = _domainToNamespace[name];
    if (_hasRoleForNamespace(REVOCATION_AGENT, namespaceId)) {
      return super._beforeTokenTransfer(from, to, name);
    }
    require(!_suspensions[name], "Domain: Cannot transfer suspended domain");
    NamespaceInterface namespace = NamespaceInterface(_contractRegistry.get('Namespace'));
    uint256 leaseExpiresAt = _leaseExpiresAt[name];
    require(!_isGracePeriod(leaseExpiresAt, namespaceId, namespace), "Domain: Cannot transfer expired domain");
    if (_isRecyclePeriod(leaseExpiresAt, namespaceId, namespace)) {
      require(_hasRoleForNamespace(RECYCLING_AGENT, namespaceId), "Domain: Cannot transfer expired domain");
    } else if (_isExpired(leaseExpiresAt, namespaceId, namespace)) {
      require(_hasRoleForNamespace(LEASING_AGENT, namespaceId), "Domain: Cannot transfer expired domain");
    }
    super._beforeTokenTransfer(from, to, name);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable, AccessControl) returns (bool) {
    return (
      ERC721.supportsInterface(interfaceId)
      || ERC721Enumerable.supportsInterface(interfaceId)
      || AccessControl.supportsInterface(interfaceId)
    );
  }

  constructor(string memory name, string memory symbol, ContractRegistryInterface contractRegistry) ERC721(name, symbol) {
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    _contractRegistry = contractRegistry;
  }
}


// File contracts/LeasingAgentV1.sol

pragma solidity ^0.8.0;





contract LeasingAgentV1 is AccessControl {
  bytes32 public constant MANAGER_ROLE = keccak256("MANAGER");

  ContractRegistryInterface immutable public _contractRegistry;
  uint256 immutable public _namespaceId;
  bool public _enabled = false;
  uint constant MAX_YEARS = 5;
  uint256 constant ONE_YEAR = 60*60*24*365;
  uint256 public _premiumStartTime;
  uint256 public _premiumEndTime;
  uint256[] public _premiumPricePoints;

  event Enabled(bool enabled);
  event RegistrationPremiumSet(uint256 premiumStartTime, uint256 premiumEndTime, uint256[] premiumPricePoints);
  event Registered(uint256[] names, uint256[] quantities, uint256 payment);

  function enable(bool enabled) external onlyRole(MANAGER_ROLE) {
    _enabled = enabled;
    emit Enabled(enabled);
  }

  function setRegistrationPremiumDetails(uint256 premiumStartTime, uint256 premiumEndTime, uint256[] calldata premiumPricePoints) external onlyRole(MANAGER_ROLE) {
    require(premiumEndTime > premiumStartTime, "LeasingAgentV1: premiumEndTime must be larger than premiumStartTime");

    // each premiumPricePoint should be smaller than the previous
    for (uint256 i = 0; i < premiumPricePoints.length; i += 1) {
      if (i > 0) {
        require(premiumPricePoints[i] < premiumPricePoints[i-1], "LeasingAgentV1: premiumPricePoint[i] must be smaller than premiumPricePoint[i-1]");
      }
    }

    _premiumStartTime = premiumStartTime;
    _premiumEndTime = premiumEndTime;
    _premiumPricePoints = premiumPricePoints;
    emit RegistrationPremiumSet(premiumStartTime, premiumEndTime, premiumPricePoints);
  }

  function getRegistrationPremium(uint256 t) public view returns (uint256) {
    // the auction premium decreases at a constant rate between price points.
    // for _premiumPricePoints = [2000, 1000, 500, 250], this simulates
    // an exponential decay. we divide the auction period into four slices
    // of equal length, and during each of those slices, we have constant
    // decrease. the first slice goes from 2000-1000 at a constant rate.
    // then 1000-500, 500-250, 250-0.
    if (_premiumPricePoints.length == 0) return 0;
    if (t > _premiumEndTime) return 0;
    if (t < _premiumStartTime) return _premiumPricePoints[0];
    uint256 diff = _premiumEndTime - _premiumStartTime;
    if (diff == 0) return 0;
    uint256 sliceSize = diff / _premiumPricePoints.length;
    uint256 i = 0;
    uint256 endTime = _premiumStartTime;
    uint256 x; // time point in the current straight-line depreciation
    uint256 curvePrice;
    uint256 base;

    for (i = 0; i < _premiumPricePoints.length; i += 1) {
      endTime += sliceSize;
      if (t < endTime) {
        if (i == _premiumPricePoints.length - 1) {
          base = 0;
        } else {
          base = _premiumPricePoints[i + 1];
        }
        x = endTime - t;
        curvePrice = base + (_premiumPricePoints[i] - base) * x / sliceSize;
        break;
      }    
    }

    return curvePrice;
  }

  function _getRegistrationLength(uint256 name, uint256 numYears) internal view returns (uint256) {
    Domain _domain = Domain(_contractRegistry.get('Domain'));
    uint256 currExpiry = _domain.getDomainExpiry(name);
    uint256 expiry = ONE_YEAR * numYears;
    if (currExpiry > block.timestamp) expiry = expiry + currExpiry - block.timestamp;
    uint256 maxExpiry = ONE_YEAR * MAX_YEARS;
    require(expiry <= maxExpiry, "LeasingAgentV1: registration too far in future");
    return expiry;
  }

  function _registerName(
    uint256 name,
    uint256 quantity,
    bytes memory constraintsProof,
    Domain domain
  ) internal {
    require(quantity > 0, "LeasingAgentV1: invalid quantity");
    domain.register(
      msg.sender, // to
      _namespaceId, // namespace
      name, // name id
      _getRegistrationLength(name, quantity),
      constraintsProof
    );
  }

  function _transferToTreasury(uint256 total) internal {
    address payable _treasuryAddress = payable(_contractRegistry.get('Treasury'));
    (bool sent,) = _treasuryAddress.call{value: total}("");
    require(sent, "LeasingAgentV1: payment not sent");
  }

  // attempt to register the name.
  // compare it to hash details provided in commit
  function register(
    uint256[] calldata names, 
    uint256[] calldata quantities,
    bytes[] calldata constraintsProofs,
    bytes[] calldata pricingProofs
  ) public payable {
    require(_enabled, "LeasingAgentV1: registration disabled");
    require(names.length == constraintsProofs.length, "LeasingAgentV1: proof length mismatch");
    require(names.length == pricingProofs.length, "LeasingAgentV1: proof length mismatch");
    require(names.length == quantities.length, "LeasingAgentV1: quantities length mismatch");

    PricingOracleInterface _pricingOracle = PricingOracleInterface(_contractRegistry.get('PricingOracle'));
    Domain _domain = Domain(_contractRegistry.get('Domain'));

    uint256 total = 0;
    uint256 price;
    uint256 i;

    // get pricing for names
    for (i = 0; i < names.length; i += 1) {
      (price, /* priceCentsUsd */) = _pricingOracle.getPriceForName(names[i], pricingProofs[i]);
      total += price * quantities[i];
    }

    // add the premium
    total += getRegistrationPremium(block.timestamp) * names.length;
    
    // collect payment 
    require(msg.value >= total, "LeasingAgentV1: insufficient payment");
    uint256 diff = msg.value - total;
    _transferToTreasury(total);

    // register names
    emit Registered(names, quantities, msg.value);
    for (i = 0; i < names.length; i += 1) {
      _registerName(names[i], quantities[i], constraintsProofs[i], _domain);
    }

    // return over-payment to sender
    if (diff > 0) {
      payable(msg.sender).transfer(diff);
    }
  }

  function registerWithPreimage(
    uint256[] calldata names, 
    uint256[] calldata quantities,
    bytes[] calldata constraintsProofs,
    bytes[] calldata pricingProofs,
    uint256[] calldata preimages
  ) external payable {
    require(preimages.length % 4 == 0, "LeasingAgentV1: incorrect preimage length");
    require(preimages.length / names.length == 4, "LeasingAgentV1: incorrect preimage length");
    RainbowTableInterface rainbowTable = RainbowTableInterface(_contractRegistry.get('RainbowTable'));
    for (uint256 i = 0; i < names.length; i += 1) {
      if (!rainbowTable.isRevealed(names[i])) {
        rainbowTable.reveal(preimages[i * 4:i * 4 + 4], names[i]);
      }
    }
    register(names, quantities, constraintsProofs, pricingProofs);
  }

  constructor(address contractRegistryAddress, uint256 namespaceId) {
    _contractRegistry = ContractRegistryInterface(contractRegistryAddress);
    _namespaceId = namespaceId;
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"contractRegistryAddress","type":"address"},{"internalType":"uint256","name":"namespaceId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"Enabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"names","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"payment","type":"uint256"}],"name":"Registered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"premiumStartTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"premiumEndTime","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"premiumPricePoints","type":"uint256[]"}],"name":"RegistrationPremiumSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractRegistry","outputs":[{"internalType":"contract ContractRegistryInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_enabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_namespaceId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_premiumEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_premiumPricePoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_premiumStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"enable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"t","type":"uint256"}],"name":"getRegistrationPremium","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"names","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"bytes[]","name":"constraintsProofs","type":"bytes[]"},{"internalType":"bytes[]","name":"pricingProofs","type":"bytes[]"}],"name":"register","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"names","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"bytes[]","name":"constraintsProofs","type":"bytes[]"},{"internalType":"bytes[]","name":"pricingProofs","type":"bytes[]"},{"internalType":"uint256[]","name":"preimages","type":"uint256[]"}],"name":"registerWithPreimage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"premiumStartTime","type":"uint256"},{"internalType":"uint256","name":"premiumEndTime","type":"uint256"},{"internalType":"uint256[]","name":"premiumPricePoints","type":"uint256[]"}],"name":"setRegistrationPremiumDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60c06040526000600160006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516200380938038062003809833981810160405281019062000052919062000255565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508060a08181525050620000a66000801b33620000ae60201b60201c565b505062000308565b620000c08282620000c460201b60201c565b5050565b620000d68282620001b560201b60201c565b620001b157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001566200021f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000815190506200023881620002d4565b92915050565b6000815190506200024f81620002ee565b92915050565b600080604083850312156200026957600080fd5b6000620002798582860162000227565b92505060206200028c858286016200023e565b9150509250929050565b6000620002a382620002aa565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b620002df8162000296565b8114620002eb57600080fd5b50565b620002f981620002ca565b81146200030557600080fd5b50565b60805160601c60a0516134ae6200035b6000396000818161150201526119b2015260008181610b8601528181610c31015281816111e00152818161147e015281816117f80152611d3401526134ae6000f3fe6080604052600436106101145760003560e01c806367b76924116100a0578063c1058b8f11610064578063c1058b8f146103a7578063c36be496146103d2578063d547741f146103fd578063ec87621c14610426578063f1be14611461045157610114565b806367b76924146102ca57806374c9f18f1461030757806391d1485414610323578063a1da502414610360578063a217fddf1461037c57610114565b806326634d20116100e757806326634d20146101e75780632f2ff15d1461022457806336568abe1461024d5780634630d113146102765780634df68ada146102a157610114565b806301ffc9a714610119578063037a561d1461015657806317ae321314610181578063248a9ca3146101aa575b600080fd5b34801561012557600080fd5b50610140600480360381019061013b9190612363565b61047c565b60405161014d9190612d59565b60405180910390f35b34801561016257600080fd5b5061016b6104f6565b6040516101789190612fcc565b60405180910390f35b34801561018d57600080fd5b506101a860048036038101906101a3919061241a565b6104fc565b005b3480156101b657600080fd5b506101d160048036038101906101cc91906122fe565b6106cd565b6040516101de9190612d74565b60405180910390f35b3480156101f357600080fd5b5061020e6004803603810190610209919061238c565b6106ec565b60405161021b9190612fcc565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190612327565b610710565b005b34801561025957600080fd5b50610274600480360381019061026f9190612327565b610739565b005b34801561028257600080fd5b5061028b6107bc565b6040516102989190612fcc565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c391906122ac565b6107c2565b005b3480156102d657600080fd5b506102f160048036038101906102ec919061238c565b610849565b6040516102fe9190612fcc565b60405180910390f35b610321600480360381019061031c91906120d2565b610a5b565b005b34801561032f57600080fd5b5061034a60048036038101906103459190612327565b6110cc565b6040516103579190612d59565b60405180910390f35b61037a600480360381019061037591906121a7565b611136565b005b34801561038857600080fd5b50610391611475565b60405161039e9190612d74565b60405180910390f35b3480156103b357600080fd5b506103bc61147c565b6040516103c99190612d8f565b60405180910390f35b3480156103de57600080fd5b506103e76114a0565b6040516103f49190612d59565b60405180910390f35b34801561040957600080fd5b50610424600480360381019061041f9190612327565b6114b3565b005b34801561043257600080fd5b5061043b6114dc565b6040516104489190612d74565b60405180910390f35b34801561045d57600080fd5b50610466611500565b6040516104739190612fcc565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104ef57506104ee82611524565b5b9050919050565b60025481565b7faf290d8680820aad922855f39b306097b20e28774d6c1ad35a20325630c3a02c61052e8161052961158e565b611596565b848411610570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056790612e2c565b60405180910390fd5b60005b838390508110156106685760008111156106545783836001836105969190613223565b8181106105cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013584848381811061060c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013510610653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064a90612f6c565b60405180910390fd5b5b6001816106619190613142565b9050610573565b508460028190555083600381905550828260049190610688929190611f03565b507f3bed3244e6743d5945578f85ef626f0df265038562d9376fe3182a00bcd7adc0858585856040516106be9493929190613019565b60405180910390a15050505050565b6000806000838152602001908152602001600020600101549050919050565b600481815481106106fc57600080fd5b906000526020600020016000915090505481565b610719826106cd565b61072a8161072561158e565b611596565b6107348383611633565b505050565b61074161158e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a590612f8c565b60405180910390fd5b6107b88282611713565b5050565b60035481565b7faf290d8680820aad922855f39b306097b20e28774d6c1ad35a20325630c3a02c6107f4816107ef61158e565b611596565b81600160006101000a81548160ff0219169083151502179055507f54ca1f89aee2b8d11c89b7813c6aa99caa0f8c55c8eccf8b70c3bb42029fa1348260405161083d9190612d59565b60405180910390a15050565b60008060048054905014156108615760009050610a56565b6003548211156108745760009050610a56565b6002548210156108cb5760046000815481106108b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050610a56565b60006002546003546108dd9190613223565b905060008114156108f2576000915050610a56565b6000600480549050826109059190613198565b9050600080600254905060008060008094505b600480549050851015610a4b5785846109319190613142565b935083891015610a3757600160048054905061094d9190613223565b85141561095d57600090506109b1565b600460018661096c9190613142565b815481106109a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490505b88846109bd9190613223565b9250858382600488815481106109fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154610a119190613223565b610a1b91906131c9565b610a259190613198565b81610a309190613142565b9150610a4b565b600185610a449190613142565b9450610918565b819750505050505050505b919050565b600160009054906101000a900460ff16610aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa190612eac565b60405180910390fd5b838390508888905014610af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae990612dec565b60405180910390fd5b818190508888905014610b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3190612dec565b60405180910390fd5b858590508888905014610b82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7990612e8c565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663693ec85e6040518163ffffffff1660e01b8152600401610bdb90612eec565b60206040518083038186803b158015610bf357600080fd5b505afa158015610c07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2b91906120a9565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663693ec85e6040518163ffffffff1660e01b8152600401610c8690612f0c565b60206040518083038186803b158015610c9e57600080fd5b505afa158015610cb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd691906120a9565b905060008080600090505b8c8c9050811015610e71578473ffffffffffffffffffffffffffffffffffffffff16638fb258878e8e84818110610d41577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135898985818110610d81577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002810190610d939190613059565b6040518463ffffffff1660e01b8152600401610db193929190612fe7565b604080518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0091906123de565b50809250508a8a82818110610e3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013582610e5091906131c9565b83610e5b9190613142565b9250600181610e6a9190613142565b9050610ce1565b8c8c9050610e7e42610849565b610e8891906131c9565b83610e939190613142565b925082341015610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf90612f4c565b60405180910390fd5b60008334610ee69190613223565b9050610ef1846117f4565b7f56e633e09b0a624ca11db9196c2f48c5a7b4421dc876324d3774c1df2efed6508e8e8e8e34604051610f28959493929190612d10565b60405180910390a1600091505b8d8d905082101561106b576110578e8e84818110610f7c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201358d8d85818110610fbc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201358c8c86818110610ffc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200281019061100e9190613059565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505088611950565b6001826110649190613142565b9150610f35565b60008111156110bc573373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156110ba573d6000803e3d6000fd5b505b5050505050505050505050505050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006004838390506111489190613365565b14611188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117f90612e0c565b60405180910390fd5b60048a8a90508383905061119c9190613198565b146111dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d390612e0c565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663693ec85e6040518163ffffffff1660e01b815260040161123590612e4c565b60206040518083038186803b15801561124d57600080fd5b505afa158015611261573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128591906120a9565b905060005b8b8b9050811015611457578173ffffffffffffffffffffffffffffffffffffffff16635055fbc38d8d848181106112ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b815260040161130d9190612fcc565b60206040518083038186803b15801561132557600080fd5b505afa158015611339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135d91906122d5565b611443578173ffffffffffffffffffffffffffffffffffffffff166307461df1858560048561138c91906131c9565b906004808761139b91906131c9565b6113a59190613142565b926113b29392919061310f565b8f8f868181106113eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161141093929190612cde565b600060405180830381600087803b15801561142a57600080fd5b505af115801561143e573d6000803e3d6000fd5b505050505b6001816114509190613142565b905061128a565b506114688b8b8b8b8b8b8b8b610a5b565b5050505050505050505050565b6000801b81565b7f000000000000000000000000000000000000000000000000000000000000000081565b600160009054906101000a900460ff1681565b6114bc826106cd565b6114cd816114c861158e565b611596565b6114d78383611713565b505050565b7faf290d8680820aad922855f39b306097b20e28774d6c1ad35a20325630c3a02c81565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6115a082826110cc565b61162f576115c58173ffffffffffffffffffffffffffffffffffffffff166014611a35565b6115d38360001c6020611a35565b6040516020016115e4929190612c4a565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116269190612daa565b60405180910390fd5b5050565b61163d82826110cc565b61170f57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506116b461158e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61171d82826110cc565b156117f057600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061179561158e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663693ec85e6040518163ffffffff1660e01b815260040161184d90612e6c565b60206040518083038186803b15801561186557600080fd5b505afa158015611879573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189d91906120a9565b905060008173ffffffffffffffffffffffffffffffffffffffff16836040516118c590612c35565b60006040518083038185875af1925050503d8060008114611902576040519150601f19603f3d011682016040523d82523d6000602084013e611907565b606091505b505090508061194b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194290612fac565b60405180910390fd5b505050565b60008311611993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198a90612ecc565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663b3e482fa337f0000000000000000000000000000000000000000000000000000000000000000876119dc8989611d2f565b876040518663ffffffff1660e01b81526004016119fd959493929190612c84565b600060405180830381600087803b158015611a1757600080fd5b505af1158015611a2b573d6000803e3d6000fd5b5050505050505050565b606060006002836002611a4891906131c9565b611a529190613142565b67ffffffffffffffff811115611a91577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ac35781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611b21577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611bab577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611beb91906131c9565b611bf59190613142565b90505b6001811115611ce1577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611c5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611c9a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611cda9061333b565b9050611bf8565b5060008414611d25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1c90612dcc565b60405180910390fd5b8091505092915050565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663693ec85e6040518163ffffffff1660e01b8152600401611d8990612f0c565b60206040518083038186803b158015611da157600080fd5b505afa158015611db5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd991906120a9565b905060008173ffffffffffffffffffffffffffffffffffffffff16639c9e3698866040518263ffffffff1660e01b8152600401611e169190612fcc565b60206040518083038186803b158015611e2e57600080fd5b505afa158015611e42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6691906123b5565b90506000846301e13380611e7a91906131c9565b905042821115611e9e57428282611e919190613142565b611e9b9190613223565b90505b600060056301e13380611eb191906131c9565b905080821115611ef6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eed90612f2c565b60405180910390fd5b8194505050505092915050565b828054828255906000526020600020908101928215611f3f579160200282015b82811115611f3e578235825591602001919060010190611f23565b5b509050611f4c9190611f50565b5090565b5b80821115611f69576000816000905550600101611f51565b5090565b600081359050611f7c81613405565b92915050565b600081519050611f9181613405565b92915050565b60008083601f840112611fa957600080fd5b8235905067ffffffffffffffff811115611fc257600080fd5b602083019150836020820283011115611fda57600080fd5b9250929050565b60008083601f840112611ff357600080fd5b8235905067ffffffffffffffff81111561200c57600080fd5b60208301915083602082028301111561202457600080fd5b9250929050565b60008135905061203a8161341c565b92915050565b60008151905061204f8161341c565b92915050565b60008135905061206481613433565b92915050565b6000813590506120798161344a565b92915050565b60008135905061208e81613461565b92915050565b6000815190506120a381613461565b92915050565b6000602082840312156120bb57600080fd5b60006120c984828501611f82565b91505092915050565b6000806000806000806000806080898b0312156120ee57600080fd5b600089013567ffffffffffffffff81111561210857600080fd5b6121148b828c01611fe1565b9850985050602089013567ffffffffffffffff81111561213357600080fd5b61213f8b828c01611fe1565b9650965050604089013567ffffffffffffffff81111561215e57600080fd5b61216a8b828c01611f97565b9450945050606089013567ffffffffffffffff81111561218957600080fd5b6121958b828c01611f97565b92509250509295985092959890939650565b60008060008060008060008060008060a08b8d0312156121c657600080fd5b60008b013567ffffffffffffffff8111156121e057600080fd5b6121ec8d828e01611fe1565b9a509a505060208b013567ffffffffffffffff81111561220b57600080fd5b6122178d828e01611fe1565b985098505060408b013567ffffffffffffffff81111561223657600080fd5b6122428d828e01611f97565b965096505060608b013567ffffffffffffffff81111561226157600080fd5b61226d8d828e01611f97565b945094505060808b013567ffffffffffffffff81111561228c57600080fd5b6122988d828e01611fe1565b92509250509295989b9194979a5092959850565b6000602082840312156122be57600080fd5b60006122cc8482850161202b565b91505092915050565b6000602082840312156122e757600080fd5b60006122f584828501612040565b91505092915050565b60006020828403121561231057600080fd5b600061231e84828501612055565b91505092915050565b6000806040838503121561233a57600080fd5b600061234885828601612055565b925050602061235985828601611f6d565b9150509250929050565b60006020828403121561237557600080fd5b60006123838482850161206a565b91505092915050565b60006020828403121561239e57600080fd5b60006123ac8482850161207f565b91505092915050565b6000602082840312156123c757600080fd5b60006123d584828501612094565b91505092915050565b600080604083850312156123f157600080fd5b60006123ff85828601612094565b925050602061241085828601612094565b9150509250929050565b6000806000806060858703121561243057600080fd5b600061243e8782880161207f565b945050602061244f8782880161207f565b935050604085013567ffffffffffffffff81111561246c57600080fd5b61247887828801611fe1565b925092505092959194509250565b61248f81613257565b82525050565b60006124a183856130c6565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156124d057600080fd5b6020830292506124e18385846132f9565b82840190509392505050565b6124f681613269565b82525050565b61250581613275565b82525050565b600061251783856130d7565b93506125248385846132f9565b61252d836133f4565b840190509392505050565b6000612543826130b0565b61254d81856130d7565b935061255d818560208601613308565b612566816133f4565b840191505092915050565b61257a816132d5565b82525050565b600061258b826130bb565b61259581856130f3565b93506125a5818560208601613308565b6125ae816133f4565b840191505092915050565b60006125c4826130bb565b6125ce8185613104565b93506125de818560208601613308565b80840191505092915050565b60006125f76020836130f3565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b60006126376025836130f3565b91507f4c656173696e674167656e7456313a2070726f6f66206c656e677468206d697360008301527f6d617463680000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061269d6029836130f3565b91507f4c656173696e674167656e7456313a20696e636f727265637420707265696d6160008301527f6765206c656e67746800000000000000000000000000000000000000000000006020830152604082019050919050565b60006127036043836130f3565b91507f4c656173696e674167656e7456313a207072656d69756d456e6454696d65206d60008301527f757374206265206c6172676572207468616e207072656d69756d53746172745460208301527f696d6500000000000000000000000000000000000000000000000000000000006040830152606082019050919050565b600061278f600c836130f3565b91507f5261696e626f775461626c6500000000000000000000000000000000000000006000830152602082019050919050565b60006127cf6008836130f3565b91507f54726561737572790000000000000000000000000000000000000000000000006000830152602082019050919050565b600061280f602a836130f3565b91507f4c656173696e674167656e7456313a207175616e746974696573206c656e677460008301527f68206d69736d61746368000000000000000000000000000000000000000000006020830152604082019050919050565b60006128756025836130f3565b91507f4c656173696e674167656e7456313a20726567697374726174696f6e2064697360008301527f61626c65640000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006128db6020836130f3565b91507f4c656173696e674167656e7456313a20696e76616c6964207175616e746974796000830152602082019050919050565b600061291b600d836130f3565b91507f50726963696e674f7261636c65000000000000000000000000000000000000006000830152602082019050919050565b600061295b6000836130e8565b9150600082019050919050565b60006129756006836130f3565b91507f446f6d61696e00000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006129b5602e836130f3565b91507f4c656173696e674167656e7456313a20726567697374726174696f6e20746f6f60008301527f2066617220696e206675747572650000000000000000000000000000000000006020830152604082019050919050565b6000612a1b601783613104565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000612a5b6024836130f3565b91507f4c656173696e674167656e7456313a20696e73756666696369656e742070617960008301527f6d656e74000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612ac16050836130f3565b91507f4c656173696e674167656e7456313a207072656d69756d5072696365506f696e60008301527f745b695d206d75737420626520736d616c6c6572207468616e207072656d697560208301527f6d5072696365506f696e745b692d315d000000000000000000000000000000006040830152606082019050919050565b6000612b4d601183613104565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b6000612b8d602f836130f3565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b6000612bf36020836130f3565b91507f4c656173696e674167656e7456313a207061796d656e74206e6f742073656e746000830152602082019050919050565b612c2f816132cb565b82525050565b6000612c408261294e565b9150819050919050565b6000612c5582612a0e565b9150612c6182856125b9565b9150612c6c82612b40565b9150612c7882846125b9565b91508190509392505050565b600060a082019050612c996000830188612486565b612ca66020830187612c26565b612cb36040830186612c26565b612cc06060830185612c26565b8181036080830152612cd28184612538565b90509695505050505050565b60006040820190508181036000830152612cf9818587612495565b9050612d086020830184612c26565b949350505050565b60006060820190508181036000830152612d2b818789612495565b90508181036020830152612d40818587612495565b9050612d4f6040830184612c26565b9695505050505050565b6000602082019050612d6e60008301846124ed565b92915050565b6000602082019050612d8960008301846124fc565b92915050565b6000602082019050612da46000830184612571565b92915050565b60006020820190508181036000830152612dc48184612580565b905092915050565b60006020820190508181036000830152612de5816125ea565b9050919050565b60006020820190508181036000830152612e058161262a565b9050919050565b60006020820190508181036000830152612e2581612690565b9050919050565b60006020820190508181036000830152612e45816126f6565b9050919050565b60006020820190508181036000830152612e6581612782565b9050919050565b60006020820190508181036000830152612e85816127c2565b9050919050565b60006020820190508181036000830152612ea581612802565b9050919050565b60006020820190508181036000830152612ec581612868565b9050919050565b60006020820190508181036000830152612ee5816128ce565b9050919050565b60006020820190508181036000830152612f058161290e565b9050919050565b60006020820190508181036000830152612f2581612968565b9050919050565b60006020820190508181036000830152612f45816129a8565b9050919050565b60006020820190508181036000830152612f6581612a4e565b9050919050565b60006020820190508181036000830152612f8581612ab4565b9050919050565b60006020820190508181036000830152612fa581612b80565b9050919050565b60006020820190508181036000830152612fc581612be6565b9050919050565b6000602082019050612fe16000830184612c26565b92915050565b6000604082019050612ffc6000830186612c26565b818103602083015261300f81848661250b565b9050949350505050565b600060608201905061302e6000830187612c26565b61303b6020830186612c26565b818103604083015261304e818486612495565b905095945050505050565b6000808335600160200384360303811261307257600080fd5b80840192508235915067ffffffffffffffff82111561309057600080fd5b6020830192506001820236038313156130a857600080fd5b509250929050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000808585111561311f57600080fd5b8386111561312c57600080fd5b6020850283019150848603905094509492505050565b600061314d826132cb565b9150613158836132cb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561318d5761318c613396565b5b828201905092915050565b60006131a3826132cb565b91506131ae836132cb565b9250826131be576131bd6133c5565b5b828204905092915050565b60006131d4826132cb565b91506131df836132cb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561321857613217613396565b5b828202905092915050565b600061322e826132cb565b9150613239836132cb565b92508282101561324c5761324b613396565b5b828203905092915050565b6000613262826132ab565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006132e0826132e7565b9050919050565b60006132f2826132ab565b9050919050565b82818337600083830152505050565b60005b8381101561332657808201518184015260208101905061330b565b83811115613335576000848401525b50505050565b6000613346826132cb565b9150600082141561335a57613359613396565b5b600182039050919050565b6000613370826132cb565b915061337b836132cb565b92508261338b5761338a6133c5565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b61340e81613257565b811461341957600080fd5b50565b61342581613269565b811461343057600080fd5b50565b61343c81613275565b811461344757600080fd5b50565b6134538161327f565b811461345e57600080fd5b50565b61346a816132cb565b811461347557600080fd5b5056fea26469706673582212206eada6e0059e52a4ad4305f5e8aa58f2b531f8e546cd0e2362f843aef09f8a2064736f6c634300080000330000000000000000000000004832d668c2c75fa10c597fd19b116d2e1873ed690972566abecfd569eb5919f1d86ff44a35741bb364a6604fbeb87b7420a3d729

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000004832d668c2c75fa10c597fd19b116d2e1873ed690972566abecfd569eb5919f1d86ff44a35741bb364a6604fbeb87b7420a3d729

-----Decoded View---------------
Arg [0] : contractRegistryAddress (address): 0x4832d668c2c75fa10c597fd19b116d2e1873ed69
Arg [1] : namespaceId (uint256): 4272832630669137235923015693490068373911885005413996126751674003559469537065

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004832d668c2c75fa10c597fd19b116d2e1873ed69
Arg [1] : 0972566abecfd569eb5919f1d86ff44a35741bb364a6604fbeb87b7420a3d729


Deployed ByteCode Sourcemap

81170:6912:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11666:204;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;81499:32;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;81965:827;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;13077:123;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;81571:36;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;13462:147;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;14510:218;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;81536:30;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;81838:121;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;82798:1405;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;85468:1588;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;11962:139;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;87062:780;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;11053:49;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;81282:60;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;81389:28;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;13854:149;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;81216:59;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;81347:37;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;11666:204;11751:4;11790:32;11775:47;;;:11;:47;;;;:87;;;;11826:36;11850:11;11826:23;:36::i;:::-;11775:87;11768:94;;11666:204;;;:::o;81499:32::-;;;;:::o;81965:827::-;81255:20;11544:30;11555:4;11561:12;:10;:12::i;:::-;11544:10;:30::i;:::-;82157:16:::1;82140:14;:33;82132:113;;;;;;;;;;;;:::i;:::-;;;;;;;;;82326:9;82321:247;82345:18;;:25;;82341:1;:29;82321:247;;;82397:1;82393;:5;82389:172;;;82443:18;;82464:1;82462;:3;;;;:::i;:::-;82443:23;;;;;;;;;;;;;;;;;;;;;82419:18;;82438:1;82419:21;;;;;;;;;;;;;;;;;;;;;:47;82411:140;;;;;;;;;;;;:::i;:::-;;;;;;;;;82389:172;82377:1;82372:6;;;;;:::i;:::-;;;82321:247;;;;82596:16;82576:17;:36;;;;82637:14;82619:15;:32;;;;82680:18;;82658:19;:40;;;;;;;:::i;:::-;;82710:76;82733:16;82751:14;82767:18;;82710:76;;;;;;;;;:::i;:::-;;;;;;;;81965:827:::0;;;;;:::o;13077:123::-;13143:7;13170:6;:12;13177:4;13170:12;;;;;;;;;;;:22;;;13163:29;;13077:123;;;:::o;81571:36::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;13462:147::-;13545:18;13558:4;13545:12;:18::i;:::-;11544:30;11555:4;11561:12;:10;:12::i;:::-;11544:10;:30::i;:::-;13576:25:::1;13587:4;13593:7;13576:10;:25::i;:::-;13462:147:::0;;;:::o;14510:218::-;14617:12;:10;:12::i;:::-;14606:23;;:7;:23;;;14598:83;;;;;;;;;;;;:::i;:::-;;;;;;;;;14694:26;14706:4;14712:7;14694:11;:26::i;:::-;14510:218;;:::o;81536:30::-;;;;:::o;81838:121::-;81255:20;11544:30;11555:4;11561:12;:10;:12::i;:::-;11544:10;:30::i;:::-;81918:7:::1;81907:8;;:18;;;;;;;;;;;;;;;;;;81937:16;81945:7;81937:16;;;;;;:::i;:::-;;;;;;;;81838:121:::0;;:::o;82798:1405::-;82862:7;83328:1;83298:19;:26;;;;:31;83294:45;;;83338:1;83331:8;;;;83294:45;83354:15;;83350:1;:19;83346:33;;;83378:1;83371:8;;;;83346:33;83394:17;;83390:1;:21;83386:56;;;83420:19;83440:1;83420:22;;;;;;;;;;;;;;;;;;;;;;;;83413:29;;;;83386:56;83449:12;83482:17;;83464:15;;:35;;;;:::i;:::-;83449:50;;83518:1;83510:4;:9;83506:23;;;83528:1;83521:8;;;;;83506:23;83536:17;83563:19;:26;;;;83556:4;:33;;;;:::i;:::-;83536:53;;83596:9;83616:15;83634:17;;83616:35;;83658:9;83730:18;83755:12;83785:1;83781:5;;83776:396;83792:19;:26;;;;83788:1;:30;83776:396;;;83848:9;83837:20;;;;;:::i;:::-;;;83874:7;83870:1;:11;83866:295;;;83932:1;83903:19;:26;;;;:30;;;;:::i;:::-;83898:1;:35;83894:138;;;83955:1;83948:8;;83894:138;;;83994:19;84018:1;84014;:5;;;;:::i;:::-;83994:26;;;;;;;;;;;;;;;;;;;;;;;;83987:33;;83894:138;84056:1;84046:7;:11;;;;:::i;:::-;84042:15;;84126:9;84122:1;84114:4;84089:19;84109:1;84089:22;;;;;;;;;;;;;;;;;;;;;;;;:29;;;;:::i;:::-;84088:35;;;;:::i;:::-;:47;;;;:::i;:::-;84081:4;:54;;;;:::i;:::-;84068:67;;84146:5;;83866:295;83825:1;83820:6;;;;;:::i;:::-;;;83776:396;;;84187:10;84180:17;;;;;;;;;82798:1405;;;;:::o;85468:1588::-;85667:8;;;;;;;;;;;85659:58;;;;;;;;;;;;:::i;:::-;;;;;;;;;85748:17;;:24;;85732:5;;:12;;:40;85724:90;;;;;;;;;;;;:::i;:::-;;;;;;;;;85845:13;;:20;;85829:5;;:12;;:36;85821:86;;;;;;;;;;;;:::i;:::-;;;;;;;;;85938:10;;:17;;85922:5;;:12;;:33;85914:88;;;;;;;;;;;;:::i;:::-;;;;;;;;;86011:37;86074:17;:21;;;:38;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;86011:102;;86120:14;86144:17;:21;;;:31;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;86120:56;;86185:13;86209;86229:9;86286:1;86282:5;;86277:183;86293:5;;:12;;86289:1;:16;86277:183;;;86355:14;:30;;;86386:5;;86392:1;86386:8;;;;;;;;;;;;;;;;;;;;;86396:13;;86410:1;86396:16;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;86355:58;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;86324:89;;;;;86439:10;;86450:1;86439:13;;;;;;;;;;;;;;;;;;;;;86431:5;:21;;;;:::i;:::-;86422:30;;;;;:::i;:::-;;;86312:1;86307:6;;;;;:::i;:::-;;;86277:183;;;86543:5;;:12;;86501:39;86524:15;86501:22;:39::i;:::-;:54;;;;:::i;:::-;86492:63;;;;;:::i;:::-;;;86614:5;86601:9;:18;;86593:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;86667:12;86694:5;86682:9;:17;;;;:::i;:::-;86667:32;;86706:26;86726:5;86706:19;:26::i;:::-;86769:40;86780:5;;86787:10;;86799:9;86769:40;;;;;;;;;;:::i;:::-;;;;;;;;86825:1;86821:5;;86816:124;86832:5;;:12;;86828:1;:16;86816:124;;;86863:69;86877:5;;86883:1;86877:8;;;;;;;;;;;;;;;;;;;;;86887:10;;86898:1;86887:13;;;;;;;;;;;;;;;;;;;;;86902:17;;86920:1;86902:20;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;86863:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86924:7;86863:13;:69::i;:::-;86851:1;86846:6;;;;;:::i;:::-;;;86816:124;;;86997:1;86990:4;:8;86986:65;;;87017:10;87009:28;;:34;87038:4;87009:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86986:65;85468:1588;;;;;;;;;;;;;;:::o;11962:139::-;12040:4;12064:6;:12;12071:4;12064:12;;;;;;;;;;;:20;;:29;12085:7;12064:29;;;;;;;;;;;;;;;;;;;;;;;;;12057:36;;11962:139;;;;:::o;87062:780::-;87334:1;87329;87310:9;;:16;;:20;;;;:::i;:::-;:25;87302:79;;;;;;;;;;;;:::i;:::-;;;;;;;;;87431:1;87415:5;;:12;;87396:9;;:16;;:31;;;;:::i;:::-;:36;87388:90;;;;;;;;;;;;:::i;:::-;;;;;;;;;87485:34;87544:17;:21;;;:37;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;87485:97;;87594:9;87589:180;87613:5;;:12;;87609:1;:16;87589:180;;;87649:12;:23;;;87673:5;;87679:1;87673:8;;;;;;;;;;;;;;;;;;;;;87649:33;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;87644:118;;87695:12;:19;;;87715:9;;87729:1;87725;:5;;;;:::i;:::-;87715:26;87739:1;87735;87731;:5;;;;:::i;:::-;:9;;;;:::i;:::-;87715:26;;;;;;;:::i;:::-;87743:5;;87749:1;87743:8;;;;;;;;;;;;;;;;;;;;;87695:57;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87644:118;87632:1;87627:6;;;;;:::i;:::-;;;87589:180;;;;87775:61;87784:5;;87791:10;;87803:17;;87822:13;;87775:8;:61::i;:::-;87062:780;;;;;;;;;;;:::o;11053:49::-;11098:4;11053:49;;;:::o;81282:60::-;;;:::o;81389:28::-;;;;;;;;;;;;;:::o;13854:149::-;13938:18;13951:4;13938:12;:18::i;:::-;11544:30;11555:4;11561:12;:10;:12::i;:::-;11544:10;:30::i;:::-;13969:26:::1;13981:4;13987:7;13969:11;:26::i;:::-;13854:149:::0;;;:::o;81216:59::-;81255:20;81216:59;:::o;81347:37::-;;;:::o;8985:157::-;9070:4;9109:25;9094:40;;;:11;:40;;;;9087:47;;8985:157;;;:::o;5044:98::-;5097:7;5124:10;5117:17;;5044:98;:::o;12391:497::-;12472:22;12480:4;12486:7;12472;:22::i;:::-;12467:414;;12660:41;12688:7;12660:41;;12698:2;12660:19;:41::i;:::-;12774:38;12802:4;12794:13;;12809:2;12774:19;:38::i;:::-;12565:270;;;;;;;;;:::i;:::-;;;;;;;;;;;;;12511:358;;;;;;;;;;;:::i;:::-;;;;;;;;12467:414;12391:497;;:::o;15814:229::-;15889:22;15897:4;15903:7;15889;:22::i;:::-;15884:152;;15960:4;15928:6;:12;15935:4;15928:12;;;;;;;;;;;:20;;:29;15949:7;15928:29;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;16011:12;:10;:12::i;:::-;15984:40;;16002:7;15984:40;;15996:4;15984:40;;;;;;;;;;15884:152;15814:229;;:::o;16051:230::-;16126:22;16134:4;16140:7;16126;:22::i;:::-;16122:152;;;16197:5;16165:6;:12;16172:4;16165:12;;;;;;;;;;;:20;;:29;16186:7;16165:29;;;;;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;16249:12;:10;:12::i;:::-;16222:40;;16240:7;16222:40;;16234:4;16222:40;;;;;;;;;;16122:152;16051:230;;:::o;85114:260::-;85174:32;85217:17;:21;;;:33;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;85174:77;;85259:9;85273:16;:21;;85302:5;85273:39;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85258:54;;;85327:4;85319:49;;;;;;;;;;;;:::i;:::-;;;;;;;;;85114:260;;;:::o;84719:389::-;84880:1;84869:8;:12;84861:57;;;;;;;;;;;;:::i;:::-;;;;;;;;;84925:6;:15;;;84949:10;84974:12;85008:4;85032:38;85055:4;85061:8;85032:22;:38::i;:::-;85079:16;84925:177;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84719:389;;;;:::o;6874:451::-;6949:13;6975:19;7020:1;7011:6;7007:1;:10;;;;:::i;:::-;:14;;;;:::i;:::-;6997:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6975:47;;7033:15;:6;7040:1;7033:9;;;;;;;;;;;;;;;;;;;:15;;;;;;;;;;;7059;:6;7066:1;7059:9;;;;;;;;;;;;;;;;;;;:15;;;;;;;;;;;7090:9;7115:1;7106:6;7102:1;:10;;;;:::i;:::-;:14;;;;:::i;:::-;7090:26;;7085:135;7122:1;7118;:5;7085:135;;;7157:12;7178:3;7170:5;:11;7157:25;;;;;;;;;;;;;;;;;;7145:6;7152:1;7145:9;;;;;;;;;;;;;;;;;;;:37;;;;;;;;;;;7207:1;7197:11;;;;;7125:3;;;;:::i;:::-;;;7085:135;;;;7247:1;7238:5;:10;7230:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;7310:6;7296:21;;;6874:451;;;;:::o;84209:504::-;84296:7;84312:14;84336:17;:21;;;:31;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;84312:56;;84375:18;84396:7;:23;;;84420:4;84396:29;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;84375:50;;84432:14;84460:8;81482:12;84449:19;;;;:::i;:::-;84432:36;;84492:15;84479:10;:28;84475:80;;;84540:15;84527:10;84518:6;:19;;;;:::i;:::-;:37;;;;:::i;:::-;84509:46;;84475:80;84562:17;81448:1;81482:12;84582:20;;;;:::i;:::-;84562:40;;84627:9;84617:6;:19;;84609:78;;;;;;;;;;;;:::i;:::-;;;;;;;;;84701:6;84694:13;;;;;;84209:504;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:139:1:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:143::-;;240:6;234:13;225:22;;256:33;283:5;256:33;:::i;:::-;215:80;;;;:::o;316:378::-;;;460:3;453:4;445:6;441:17;437:27;427:2;;478:1;475;468:12;427:2;514:6;501:20;491:30;;544:18;536:6;533:30;530:2;;;576:1;573;566:12;530:2;613:4;605:6;601:17;589:29;;667:3;659:4;651:6;647:17;637:8;633:32;630:41;627:2;;;684:1;681;674:12;627:2;417:277;;;;;:::o;717:367::-;;;850:3;843:4;835:6;831:17;827:27;817:2;;868:1;865;858:12;817:2;904:6;891:20;881:30;;934:18;926:6;923:30;920:2;;;966:1;963;956:12;920:2;1003:4;995:6;991:17;979:29;;1057:3;1049:4;1041:6;1037:17;1027:8;1023:32;1020:41;1017:2;;;1074:1;1071;1064:12;1017:2;807:277;;;;;:::o;1090:133::-;;1171:6;1158:20;1149:29;;1187:30;1211:5;1187:30;:::i;:::-;1139:84;;;;:::o;1229:137::-;;1314:6;1308:13;1299:22;;1330:30;1354:5;1330:30;:::i;:::-;1289:77;;;;:::o;1372:139::-;;1456:6;1443:20;1434:29;;1472:33;1499:5;1472:33;:::i;:::-;1424:87;;;;:::o;1517:137::-;;1600:6;1587:20;1578:29;;1616:32;1642:5;1616:32;:::i;:::-;1568:86;;;;:::o;1660:139::-;;1744:6;1731:20;1722:29;;1760:33;1787:5;1760:33;:::i;:::-;1712:87;;;;:::o;1805:143::-;;1893:6;1887:13;1878:22;;1909:33;1936:5;1909:33;:::i;:::-;1868:80;;;;:::o;1954:284::-;;2073:2;2061:9;2052:7;2048:23;2044:32;2041:2;;;2089:1;2086;2079:12;2041:2;2132:1;2157:64;2213:7;2204:6;2193:9;2189:22;2157:64;:::i;:::-;2147:74;;2103:128;2031:207;;;;:::o;2244:1394::-;;;;;;;;;2565:3;2553:9;2544:7;2540:23;2536:33;2533:2;;;2582:1;2579;2572:12;2533:2;2653:1;2642:9;2638:17;2625:31;2683:18;2675:6;2672:30;2669:2;;;2715:1;2712;2705:12;2669:2;2751:80;2823:7;2814:6;2803:9;2799:22;2751:80;:::i;:::-;2733:98;;;;2596:245;2908:2;2897:9;2893:18;2880:32;2939:18;2931:6;2928:30;2925:2;;;2971:1;2968;2961:12;2925:2;3007:80;3079:7;3070:6;3059:9;3055:22;3007:80;:::i;:::-;2989:98;;;;2851:246;3164:2;3153:9;3149:18;3136:32;3195:18;3187:6;3184:30;3181:2;;;3227:1;3224;3217:12;3181:2;3263:91;3346:7;3337:6;3326:9;3322:22;3263:91;:::i;:::-;3245:109;;;;3107:257;3431:2;3420:9;3416:18;3403:32;3462:18;3454:6;3451:30;3448:2;;;3494:1;3491;3484:12;3448:2;3530:91;3613:7;3604:6;3593:9;3589:22;3530:91;:::i;:::-;3512:109;;;;3374:257;2523:1115;;;;;;;;;;;:::o;3644:1703::-;;;;;;;;;;;4017:3;4005:9;3996:7;3992:23;3988:33;3985:2;;;4034:1;4031;4024:12;3985:2;4105:1;4094:9;4090:17;4077:31;4135:18;4127:6;4124:30;4121:2;;;4167:1;4164;4157:12;4121:2;4203:80;4275:7;4266:6;4255:9;4251:22;4203:80;:::i;:::-;4185:98;;;;4048:245;4360:2;4349:9;4345:18;4332:32;4391:18;4383:6;4380:30;4377:2;;;4423:1;4420;4413:12;4377:2;4459:80;4531:7;4522:6;4511:9;4507:22;4459:80;:::i;:::-;4441:98;;;;4303:246;4616:2;4605:9;4601:18;4588:32;4647:18;4639:6;4636:30;4633:2;;;4679:1;4676;4669:12;4633:2;4715:91;4798:7;4789:6;4778:9;4774:22;4715:91;:::i;:::-;4697:109;;;;4559:257;4883:2;4872:9;4868:18;4855:32;4914:18;4906:6;4903:30;4900:2;;;4946:1;4943;4936:12;4900:2;4982:91;5065:7;5056:6;5045:9;5041:22;4982:91;:::i;:::-;4964:109;;;;4826:257;5150:3;5139:9;5135:19;5122:33;5182:18;5174:6;5171:30;5168:2;;;5214:1;5211;5204:12;5168:2;5250:80;5322:7;5313:6;5302:9;5298:22;5250:80;:::i;:::-;5232:98;;;;5093:247;3975:1372;;;;;;;;;;;;;:::o;5353:256::-;;5458:2;5446:9;5437:7;5433:23;5429:32;5426:2;;;5474:1;5471;5464:12;5426:2;5517:1;5542:50;5584:7;5575:6;5564:9;5560:22;5542:50;:::i;:::-;5532:60;;5488:114;5416:193;;;;:::o;5615:278::-;;5731:2;5719:9;5710:7;5706:23;5702:32;5699:2;;;5747:1;5744;5737:12;5699:2;5790:1;5815:61;5868:7;5859:6;5848:9;5844:22;5815:61;:::i;:::-;5805:71;;5761:125;5689:204;;;;:::o;5899:262::-;;6007:2;5995:9;5986:7;5982:23;5978:32;5975:2;;;6023:1;6020;6013:12;5975:2;6066:1;6091:53;6136:7;6127:6;6116:9;6112:22;6091:53;:::i;:::-;6081:63;;6037:117;5965:196;;;;:::o;6167:407::-;;;6292:2;6280:9;6271:7;6267:23;6263:32;6260:2;;;6308:1;6305;6298:12;6260:2;6351:1;6376:53;6421:7;6412:6;6401:9;6397:22;6376:53;:::i;:::-;6366:63;;6322:117;6478:2;6504:53;6549:7;6540:6;6529:9;6525:22;6504:53;:::i;:::-;6494:63;;6449:118;6250:324;;;;;:::o;6580:260::-;;6687:2;6675:9;6666:7;6662:23;6658:32;6655:2;;;6703:1;6700;6693:12;6655:2;6746:1;6771:52;6815:7;6806:6;6795:9;6791:22;6771:52;:::i;:::-;6761:62;;6717:116;6645:195;;;;:::o;6846:262::-;;6954:2;6942:9;6933:7;6929:23;6925:32;6922:2;;;6970:1;6967;6960:12;6922:2;7013:1;7038:53;7083:7;7074:6;7063:9;7059:22;7038:53;:::i;:::-;7028:63;;6984:117;6912:196;;;;:::o;7114:284::-;;7233:2;7221:9;7212:7;7208:23;7204:32;7201:2;;;7249:1;7246;7239:12;7201:2;7292:1;7317:64;7373:7;7364:6;7353:9;7349:22;7317:64;:::i;:::-;7307:74;;7263:128;7191:207;;;;:::o;7404:440::-;;;7540:2;7528:9;7519:7;7515:23;7511:32;7508:2;;;7556:1;7553;7546:12;7508:2;7599:1;7624:64;7680:7;7671:6;7660:9;7656:22;7624:64;:::i;:::-;7614:74;;7570:128;7737:2;7763:64;7819:7;7810:6;7799:9;7795:22;7763:64;:::i;:::-;7753:74;;7708:129;7498:346;;;;;:::o;7850:715::-;;;;;8027:2;8015:9;8006:7;8002:23;7998:32;7995:2;;;8043:1;8040;8033:12;7995:2;8086:1;8111:53;8156:7;8147:6;8136:9;8132:22;8111:53;:::i;:::-;8101:63;;8057:117;8213:2;8239:53;8284:7;8275:6;8264:9;8260:22;8239:53;:::i;:::-;8229:63;;8184:118;8369:2;8358:9;8354:18;8341:32;8400:18;8392:6;8389:30;8386:2;;;8432:1;8429;8422:12;8386:2;8468:80;8540:7;8531:6;8520:9;8516:22;8468:80;:::i;:::-;8450:98;;;;8312:246;7985:580;;;;;;;:::o;8571:118::-;8658:24;8676:5;8658:24;:::i;:::-;8653:3;8646:37;8636:53;;:::o;8725:470::-;;8874:86;8953:6;8948:3;8874:86;:::i;:::-;8867:93;;8984:66;8976:6;8973:78;8970:2;;;9064:1;9061;9054:12;8970:2;9099:4;9091:6;9087:17;9077:27;;9114:43;9150:6;9145:3;9138:5;9114:43;:::i;:::-;9182:6;9177:3;9173:16;9166:23;;8857:338;;;;;:::o;9201:109::-;9282:21;9297:5;9282:21;:::i;:::-;9277:3;9270:34;9260:50;;:::o;9316:118::-;9403:24;9421:5;9403:24;:::i;:::-;9398:3;9391:37;9381:53;;:::o;9462:301::-;;9579:70;9642:6;9637:3;9579:70;:::i;:::-;9572:77;;9659:43;9695:6;9690:3;9683:5;9659:43;:::i;:::-;9727:29;9749:6;9727:29;:::i;:::-;9722:3;9718:39;9711:46;;9562:201;;;;;:::o;9769:360::-;;9883:38;9915:5;9883:38;:::i;:::-;9937:70;10000:6;9995:3;9937:70;:::i;:::-;9930:77;;10016:52;10061:6;10056:3;10049:4;10042:5;10038:16;10016:52;:::i;:::-;10093:29;10115:6;10093:29;:::i;:::-;10088:3;10084:39;10077:46;;9859:270;;;;;:::o;10135:199::-;10256:71;10321:5;10256:71;:::i;:::-;10251:3;10244:84;10234:100;;:::o;10340:364::-;;10456:39;10489:5;10456:39;:::i;:::-;10511:71;10575:6;10570:3;10511:71;:::i;:::-;10504:78;;10591:52;10636:6;10631:3;10624:4;10617:5;10613:16;10591:52;:::i;:::-;10668:29;10690:6;10668:29;:::i;:::-;10663:3;10659:39;10652:46;;10432:272;;;;;:::o;10710:377::-;;10844:39;10877:5;10844:39;:::i;:::-;10899:89;10981:6;10976:3;10899:89;:::i;:::-;10892:96;;10997:52;11042:6;11037:3;11030:4;11023:5;11019:16;10997:52;:::i;:::-;11074:6;11069:3;11065:16;11058:23;;10820:267;;;;;:::o;11093:330::-;;11256:67;11320:2;11315:3;11256:67;:::i;:::-;11249:74;;11353:34;11349:1;11344:3;11340:11;11333:55;11414:2;11409:3;11405:12;11398:19;;11239:184;;;:::o;11429:369::-;;11592:67;11656:2;11651:3;11592:67;:::i;:::-;11585:74;;11689:34;11685:1;11680:3;11676:11;11669:55;11755:7;11750:2;11745:3;11741:12;11734:29;11789:2;11784:3;11780:12;11773:19;;11575:223;;;:::o;11804:373::-;;11967:67;12031:2;12026:3;11967:67;:::i;:::-;11960:74;;12064:34;12060:1;12055:3;12051:11;12044:55;12130:11;12125:2;12120:3;12116:12;12109:33;12168:2;12163:3;12159:12;12152:19;;11950:227;;;:::o;12183:433::-;;12346:67;12410:2;12405:3;12346:67;:::i;:::-;12339:74;;12443:34;12439:1;12434:3;12430:11;12423:55;12509:34;12504:2;12499:3;12495:12;12488:56;12575:5;12570:2;12565:3;12561:12;12554:27;12607:2;12602:3;12598:12;12591:19;;12329:287;;;:::o;12622:310::-;;12785:67;12849:2;12844:3;12785:67;:::i;:::-;12778:74;;12882:14;12878:1;12873:3;12869:11;12862:35;12923:2;12918:3;12914:12;12907:19;;12768:164;;;:::o;12938:305::-;;13101:66;13165:1;13160:3;13101:66;:::i;:::-;13094:73;;13197:10;13193:1;13188:3;13184:11;13177:31;13234:2;13229:3;13225:12;13218:19;;13084:159;;;:::o;13249:374::-;;13412:67;13476:2;13471:3;13412:67;:::i;:::-;13405:74;;13509:34;13505:1;13500:3;13496:11;13489:55;13575:12;13570:2;13565:3;13561:12;13554:34;13614:2;13609:3;13605:12;13598:19;;13395:228;;;:::o;13629:369::-;;13792:67;13856:2;13851:3;13792:67;:::i;:::-;13785:74;;13889:34;13885:1;13880:3;13876:11;13869:55;13955:7;13950:2;13945:3;13941:12;13934:29;13989:2;13984:3;13980:12;13973:19;;13775:223;;;:::o;14004:330::-;;14167:67;14231:2;14226:3;14167:67;:::i;:::-;14160:74;;14264:34;14260:1;14255:3;14251:11;14244:55;14325:2;14320:3;14316:12;14309:19;;14150:184;;;:::o;14340:311::-;;14503:67;14567:2;14562:3;14503:67;:::i;:::-;14496:74;;14600:15;14596:1;14591:3;14587:11;14580:36;14642:2;14637:3;14633:12;14626:19;;14486:165;;;:::o;14657:297::-;;14837:83;14918:1;14913:3;14837:83;:::i;:::-;14830:90;;14946:1;14941:3;14937:11;14930:18;;14820:134;;;:::o;14960:303::-;;15123:66;15187:1;15182:3;15123:66;:::i;:::-;15116:73;;15219:8;15215:1;15210:3;15206:11;15199:29;15254:2;15249:3;15245:12;15238:19;;15106:157;;;:::o;15269:378::-;;15432:67;15496:2;15491:3;15432:67;:::i;:::-;15425:74;;15529:34;15525:1;15520:3;15516:11;15509:55;15595:16;15590:2;15585:3;15581:12;15574:38;15638:2;15633:3;15629:12;15622:19;;15415:232;;;:::o;15653:357::-;;15834:85;15916:2;15911:3;15834:85;:::i;:::-;15827:92;;15949:25;15945:1;15940:3;15936:11;15929:46;16001:2;15996:3;15992:12;15985:19;;15817:193;;;:::o;16016:368::-;;16179:67;16243:2;16238:3;16179:67;:::i;:::-;16172:74;;16276:34;16272:1;16267:3;16263:11;16256:55;16342:6;16337:2;16332:3;16328:12;16321:28;16375:2;16370:3;16366:12;16359:19;;16162:222;;;:::o;16390:446::-;;16553:67;16617:2;16612:3;16553:67;:::i;:::-;16546:74;;16650:34;16646:1;16641:3;16637:11;16630:55;16716:34;16711:2;16706:3;16702:12;16695:56;16782:18;16777:2;16772:3;16768:12;16761:40;16827:2;16822:3;16818:12;16811:19;;16536:300;;;:::o;16842:351::-;;17023:85;17105:2;17100:3;17023:85;:::i;:::-;17016:92;;17138:19;17134:1;17129:3;17125:11;17118:40;17184:2;17179:3;17175:12;17168:19;;17006:187;;;:::o;17199:379::-;;17362:67;17426:2;17421:3;17362:67;:::i;:::-;17355:74;;17459:34;17455:1;17450:3;17446:11;17439:55;17525:17;17520:2;17515:3;17511:12;17504:39;17569:2;17564:3;17560:12;17553:19;;17345:233;;;:::o;17584:330::-;;17747:67;17811:2;17806:3;17747:67;:::i;:::-;17740:74;;17844:34;17840:1;17835:3;17831:11;17824:55;17905:2;17900:3;17896:12;17889:19;;17730:184;;;:::o;17920:118::-;18007:24;18025:5;18007:24;:::i;:::-;18002:3;17995:37;17985:53;;:::o;18044:379::-;;18250:147;18393:3;18250:147;:::i;:::-;18243:154;;18414:3;18407:10;;18232:191;;;:::o;18429:967::-;;18833:148;18977:3;18833:148;:::i;:::-;18826:155;;18998:95;19089:3;19080:6;18998:95;:::i;:::-;18991:102;;19110:148;19254:3;19110:148;:::i;:::-;19103:155;;19275:95;19366:3;19357:6;19275:95;:::i;:::-;19268:102;;19387:3;19380:10;;18815:581;;;;;:::o;19402:751::-;;19663:3;19652:9;19648:19;19640:27;;19677:71;19745:1;19734:9;19730:17;19721:6;19677:71;:::i;:::-;19758:72;19826:2;19815:9;19811:18;19802:6;19758:72;:::i;:::-;19840;19908:2;19897:9;19893:18;19884:6;19840:72;:::i;:::-;19922;19990:2;19979:9;19975:18;19966:6;19922:72;:::i;:::-;20042:9;20036:4;20032:20;20026:3;20015:9;20011:19;20004:49;20070:76;20141:4;20132:6;20070:76;:::i;:::-;20062:84;;19630:523;;;;;;;;:::o;20159:509::-;;20384:2;20373:9;20369:18;20361:26;;20433:9;20427:4;20423:20;20419:1;20408:9;20404:17;20397:47;20461:118;20574:4;20565:6;20557;20461:118;:::i;:::-;20453:126;;20589:72;20657:2;20646:9;20642:18;20633:6;20589:72;:::i;:::-;20351:317;;;;;;:::o;20674:784::-;;20981:2;20970:9;20966:18;20958:26;;21030:9;21024:4;21020:20;21016:1;21005:9;21001:17;20994:47;21058:118;21171:4;21162:6;21154;21058:118;:::i;:::-;21050:126;;21223:9;21217:4;21213:20;21208:2;21197:9;21193:18;21186:48;21251:118;21364:4;21355:6;21347;21251:118;:::i;:::-;21243:126;;21379:72;21447:2;21436:9;21432:18;21423:6;21379:72;:::i;:::-;20948:510;;;;;;;;:::o;21464:210::-;;21589:2;21578:9;21574:18;21566:26;;21602:65;21664:1;21653:9;21649:17;21640:6;21602:65;:::i;:::-;21556:118;;;;:::o;21680:222::-;;21811:2;21800:9;21796:18;21788:26;;21824:71;21892:1;21881:9;21877:17;21868:6;21824:71;:::i;:::-;21778:124;;;;:::o;21908:290::-;;22073:2;22062:9;22058:18;22050:26;;22086:105;22188:1;22177:9;22173:17;22164:6;22086:105;:::i;:::-;22040:158;;;;:::o;22204:313::-;;22355:2;22344:9;22340:18;22332:26;;22404:9;22398:4;22394:20;22390:1;22379:9;22375:17;22368:47;22432:78;22505:4;22496:6;22432:78;:::i;:::-;22424:86;;22322:195;;;;:::o;22523:419::-;;22727:2;22716:9;22712:18;22704:26;;22776:9;22770:4;22766:20;22762:1;22751:9;22747:17;22740:47;22804:131;22930:4;22804:131;:::i;:::-;22796:139;;22694:248;;;:::o;22948:419::-;;23152:2;23141:9;23137:18;23129:26;;23201:9;23195:4;23191:20;23187:1;23176:9;23172:17;23165:47;23229:131;23355:4;23229:131;:::i;:::-;23221:139;;23119:248;;;:::o;23373:419::-;;23577:2;23566:9;23562:18;23554:26;;23626:9;23620:4;23616:20;23612:1;23601:9;23597:17;23590:47;23654:131;23780:4;23654:131;:::i;:::-;23646:139;;23544:248;;;:::o;23798:419::-;;24002:2;23991:9;23987:18;23979:26;;24051:9;24045:4;24041:20;24037:1;24026:9;24022:17;24015:47;24079:131;24205:4;24079:131;:::i;:::-;24071:139;;23969:248;;;:::o;24223:419::-;;24427:2;24416:9;24412:18;24404:26;;24476:9;24470:4;24466:20;24462:1;24451:9;24447:17;24440:47;24504:131;24630:4;24504:131;:::i;:::-;24496:139;;24394:248;;;:::o;24648:419::-;;24852:2;24841:9;24837:18;24829:26;;24901:9;24895:4;24891:20;24887:1;24876:9;24872:17;24865:47;24929:131;25055:4;24929:131;:::i;:::-;24921:139;;24819:248;;;:::o;25073:419::-;;25277:2;25266:9;25262:18;25254:26;;25326:9;25320:4;25316:20;25312:1;25301:9;25297:17;25290:47;25354:131;25480:4;25354:131;:::i;:::-;25346:139;;25244:248;;;:::o;25498:419::-;;25702:2;25691:9;25687:18;25679:26;;25751:9;25745:4;25741:20;25737:1;25726:9;25722:17;25715:47;25779:131;25905:4;25779:131;:::i;:::-;25771:139;;25669:248;;;:::o;25923:419::-;;26127:2;26116:9;26112:18;26104:26;;26176:9;26170:4;26166:20;26162:1;26151:9;26147:17;26140:47;26204:131;26330:4;26204:131;:::i;:::-;26196:139;;26094:248;;;:::o;26348:419::-;;26552:2;26541:9;26537:18;26529:26;;26601:9;26595:4;26591:20;26587:1;26576:9;26572:17;26565:47;26629:131;26755:4;26629:131;:::i;:::-;26621:139;;26519:248;;;:::o;26773:419::-;;26977:2;26966:9;26962:18;26954:26;;27026:9;27020:4;27016:20;27012:1;27001:9;26997:17;26990:47;27054:131;27180:4;27054:131;:::i;:::-;27046:139;;26944:248;;;:::o;27198:419::-;;27402:2;27391:9;27387:18;27379:26;;27451:9;27445:4;27441:20;27437:1;27426:9;27422:17;27415:47;27479:131;27605:4;27479:131;:::i;:::-;27471:139;;27369:248;;;:::o;27623:419::-;;27827:2;27816:9;27812:18;27804:26;;27876:9;27870:4;27866:20;27862:1;27851:9;27847:17;27840:47;27904:131;28030:4;27904:131;:::i;:::-;27896:139;;27794:248;;;:::o;28048:419::-;;28252:2;28241:9;28237:18;28229:26;;28301:9;28295:4;28291:20;28287:1;28276:9;28272:17;28265:47;28329:131;28455:4;28329:131;:::i;:::-;28321:139;;28219:248;;;:::o;28473:419::-;;28677:2;28666:9;28662:18;28654:26;;28726:9;28720:4;28716:20;28712:1;28701:9;28697:17;28690:47;28754:131;28880:4;28754:131;:::i;:::-;28746:139;;28644:248;;;:::o;28898:419::-;;29102:2;29091:9;29087:18;29079:26;;29151:9;29145:4;29141:20;29137:1;29126:9;29122:17;29115:47;29179:131;29305:4;29179:131;:::i;:::-;29171:139;;29069:248;;;:::o;29323:222::-;;29454:2;29443:9;29439:18;29431:26;;29467:71;29535:1;29524:9;29520:17;29511:6;29467:71;:::i;:::-;29421:124;;;;:::o;29551:439::-;;29738:2;29727:9;29723:18;29715:26;;29751:71;29819:1;29808:9;29804:17;29795:6;29751:71;:::i;:::-;29869:9;29863:4;29859:20;29854:2;29843:9;29839:18;29832:48;29897:86;29978:4;29969:6;29961;29897:86;:::i;:::-;29889:94;;29705:285;;;;;;:::o;29996:613::-;;30243:2;30232:9;30228:18;30220:26;;30256:71;30324:1;30313:9;30309:17;30300:6;30256:71;:::i;:::-;30337:72;30405:2;30394:9;30390:18;30381:6;30337:72;:::i;:::-;30456:9;30450:4;30446:20;30441:2;30430:9;30426:18;30419:48;30484:118;30597:4;30588:6;30580;30484:118;:::i;:::-;30476:126;;30210:399;;;;;;;:::o;30615:523::-;;;30754:11;30741:25;30854:1;30848:4;30844:12;30833:8;30817:14;30813:29;30809:48;30789:18;30785:73;30775:2;;30872:1;30869;30862:12;30775:2;30907:18;30897:8;30893:33;30885:41;;30959:4;30946:18;30936:28;;30987:18;30979:6;30976:30;30973:2;;;31019:1;31016;31009:12;30973:2;31050;31044:4;31040:13;31032:21;;31107:4;31099:6;31095:17;31079:14;31075:38;31069:4;31065:49;31062:2;;;31127:1;31124;31117:12;31062:2;30705:433;;;;;;:::o;31144:98::-;;31229:5;31223:12;31213:22;;31202:40;;;:::o;31248:99::-;;31334:5;31328:12;31318:22;;31307:40;;;:::o;31353:184::-;;31486:6;31481:3;31474:19;31526:4;31521:3;31517:14;31502:29;;31464:73;;;;:::o;31543:168::-;;31660:6;31655:3;31648:19;31700:4;31695:3;31691:14;31676:29;;31638:73;;;;:::o;31717:147::-;;31855:3;31840:18;;31830:34;;;;:::o;31870:169::-;;31988:6;31983:3;31976:19;32028:4;32023:3;32019:14;32004:29;;31966:73;;;;:::o;32045:148::-;;32184:3;32169:18;;32159:34;;;;:::o;32199:352::-;;;32369:8;32357:10;32354:24;32351:2;;;32391:1;32388;32381:12;32351:2;32420:6;32410:8;32407:20;32404:2;;;32440:1;32437;32430:12;32404:2;32494;32482:10;32478:19;32470:6;32466:32;32453:45;;32534:10;32524:8;32520:25;32507:38;;32341:210;;;;;;;:::o;32557:305::-;;32616:20;32634:1;32616:20;:::i;:::-;32611:25;;32650:20;32668:1;32650:20;:::i;:::-;32645:25;;32804:1;32736:66;32732:74;32729:1;32726:81;32723:2;;;32810:18;;:::i;:::-;32723:2;32854:1;32851;32847:9;32840:16;;32601:261;;;;:::o;32868:185::-;;32925:20;32943:1;32925:20;:::i;:::-;32920:25;;32959:20;32977:1;32959:20;:::i;:::-;32954:25;;32998:1;32988:2;;33003:18;;:::i;:::-;32988:2;33045:1;33042;33038:9;33033:14;;32910:143;;;;:::o;33059:348::-;;33122:20;33140:1;33122:20;:::i;:::-;33117:25;;33156:20;33174:1;33156:20;:::i;:::-;33151:25;;33344:1;33276:66;33272:74;33269:1;33266:81;33261:1;33254:9;33247:17;33243:105;33240:2;;;33351:18;;:::i;:::-;33240:2;33399:1;33396;33392:9;33381:20;;33107:300;;;;:::o;33413:191::-;;33473:20;33491:1;33473:20;:::i;:::-;33468:25;;33507:20;33525:1;33507:20;:::i;:::-;33502:25;;33546:1;33543;33540:8;33537:2;;;33551:18;;:::i;:::-;33537:2;33596:1;33593;33589:9;33581:17;;33458:146;;;;:::o;33610:96::-;;33676:24;33694:5;33676:24;:::i;:::-;33665:35;;33655:51;;;:::o;33712:90::-;;33789:5;33782:13;33775:21;33764:32;;33754:48;;;:::o;33808:77::-;;33874:5;33863:16;;33853:32;;;:::o;33891:149::-;;33967:66;33960:5;33956:78;33945:89;;33935:105;;;:::o;34046:126::-;;34123:42;34116:5;34112:54;34101:65;;34091:81;;;:::o;34178:77::-;;34244:5;34233:16;;34223:32;;;:::o;34261:194::-;;34378:71;34443:5;34378:71;:::i;:::-;34365:84;;34355:100;;;:::o;34461:147::-;;34578:24;34596:5;34578:24;:::i;:::-;34565:37;;34555:53;;;:::o;34614:154::-;34698:6;34693:3;34688;34675:30;34760:1;34751:6;34746:3;34742:16;34735:27;34665:103;;;:::o;34774:307::-;34842:1;34852:113;34866:6;34863:1;34860:13;34852:113;;;34951:1;34946:3;34942:11;34936:18;34932:1;34927:3;34923:11;34916:39;34888:2;34885:1;34881:10;34876:15;;34852:113;;;34983:6;34980:1;34977:13;34974:2;;;35063:1;35054:6;35049:3;35045:16;35038:27;34974:2;34823:258;;;;:::o;35087:171::-;;35149:24;35167:5;35149:24;:::i;:::-;35140:33;;35195:4;35188:5;35185:15;35182:2;;;35203:18;;:::i;:::-;35182:2;35250:1;35243:5;35239:13;35232:20;;35130:128;;;:::o;35264:176::-;;35313:20;35331:1;35313:20;:::i;:::-;35308:25;;35347:20;35365:1;35347:20;:::i;:::-;35342:25;;35386:1;35376:2;;35391:18;;:::i;:::-;35376:2;35432:1;35429;35425:9;35420:14;;35298:142;;;;:::o;35446:180::-;35494:77;35491:1;35484:88;35591:4;35588:1;35581:15;35615:4;35612:1;35605:15;35632:180;35680:77;35677:1;35670:88;35777:4;35774:1;35767:15;35801:4;35798:1;35791:15;35818:102;;35910:2;35906:7;35901:2;35894:5;35890:14;35886:28;35876:38;;35866:54;;;:::o;35926:122::-;35999:24;36017:5;35999:24;:::i;:::-;35992:5;35989:35;35979:2;;36038:1;36035;36028:12;35979:2;35969:79;:::o;36054:116::-;36124:21;36139:5;36124:21;:::i;:::-;36117:5;36114:32;36104:2;;36160:1;36157;36150:12;36104:2;36094:76;:::o;36176:122::-;36249:24;36267:5;36249:24;:::i;:::-;36242:5;36239:35;36229:2;;36288:1;36285;36278:12;36229:2;36219:79;:::o;36304:120::-;36376:23;36393:5;36376:23;:::i;:::-;36369:5;36366:34;36356:2;;36414:1;36411;36404:12;36356:2;36346:78;:::o;36430:122::-;36503:24;36521:5;36503:24;:::i;:::-;36496:5;36493:35;36483:2;;36542:1;36539;36532:12;36483:2;36473:79;:::o

Swarm Source

ipfs://6eada6e0059e52a4ad4305f5e8aa58f2b531f8e546cd0e2362f843aef09f8a20
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.