{"file_path":"project:/contracts/CMTAT_PROXY.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"./modules/CMTAT_BASE.sol\";\n\ncontract CMTAT_PROXY is CMTAT_BASE {\n    /** \n    @notice Contract version for the deployment with a proxy\n    */\n    /// @custom:oz-upgrades-unsafe-allow constructor\n    constructor() {\n        // Initialize the variable for the implementation\n        deployedWithProxy = true;\n        // Disable the possibility to initialize the implementation\n        _disableInitializers();\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     */\n    uint256[50] private __gap;\n}","deployed_bytecode":"0x60806040526004361061038c5760003560e01c80637f4ab1dd116101dc578063d051665011610102578063d7ffbbaa116100a0578063e63ab1e91161006f578063e63ab1e914610a7f578063ea11a40114610ab3578063f47b774014610ad3578063fcf196b414610ae857600080fd5b8063d7ffbbaa14610a08578063dcfd616f14610a28578063dd62ed3e14610a48578063e4c71cb314610a6857600080fd5b8063d4ce1415116100dc578063d4ce141514610991578063d5025625146109b1578063d5391393146109c6578063d547741f146109e857600080fd5b8063d051665014610931578063d379324114610951578063d40c79f01461097157600080fd5b806397d22b901161017a578063a9059cbb11610149578063a9059cbb14610889578063b9585446146108a9578063c6946a12146108dd578063cc7c36fe146108fd57600080fd5b806397d22b9014610814578063a217fddf14610834578063a457c2d714610849578063a4a0a3011461086957600080fd5b80638c609dbc116101b65780638c609dbc1461079c578063919aeb84146107b157806391d14854146107df57806395d89b41146107ff57600080fd5b80637f4ab1dd146107505780638456cb5914610770578063890eba681461078557600080fd5b806339509351116102c15780635c975abb1161025f57806370a082311161022e57806370a08231146106c357806375bf8fe7146106f9578063766718081461071957806378f86afc1461073057600080fd5b80635c975abb146106415780635e71fba9146106595780636439fd7514610679578063686837ac146106ad57600080fd5b8063426a84931161029b578063426a8493146105d957806345d11c2d146105f95780634f1ef2861461061957806352d1902d1461062c57600080fd5b806339509351146105845780633f4ba83a146105a45780633f4f9067146105b957600080fd5b806323b872dd1161032e5780632f2ff15d116103085780632f2ff15d14610502578063313ce5671461052257806336568abe146105445780633659cfe61461056457600080fd5b806323b872dd1461047e578063246b72ec1461049e578063248a9ca3146104d257600080fd5b80630cf6a2601161036a5780630cf6a26014610408578063156e29f61461042a57806317d70f7c1461044a57806318160ddd1461045f57600080fd5b806301ffc9a71461039157806306fdde03146103c6578063095ea7b3146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613702565b610b21565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610b58565b6040516103bd919061377c565b3480156103f457600080fd5b506103b16104033660046137af565b610bea565b34801561041457600080fd5b506104286104233660046137db565b610c02565b005b34801561043657600080fd5b506104286104453660046137f4565b610c33565b34801561045657600080fd5b506103db610d0e565b34801561046b57600080fd5b50609a545b6040519081526020016103bd565b34801561048a57600080fd5b506103b1610499366004613829565b610d9d565b3480156104aa57600080fd5b506104707f809a0fc49fc0600540f1d39e23454e1f6f215bc7505fa22b17c154616570ddef81565b3480156104de57600080fd5b506104706104ed3660046137db565b600090815260fc602052604090206001015490565b34801561050e57600080fd5b5061042861051d36600461386a565b610db4565b34801561052e57600080fd5b5060125b60405160ff90911681526020016103bd565b34801561055057600080fd5b5061042861055f36600461386a565b610dde565b34801561057057600080fd5b5061042861057f36600461389a565b610e5d565b34801561059057600080fd5b506103b161059f3660046137af565b610f3c565b3480156105b057600080fd5b50610428610f5e565b3480156105c557600080fd5b506103b16105d4366004613982565b610f90565b3480156105e557600080fd5b506103b16105f43660046137f4565b610fce565b34801561060557600080fd5b50610428610614366004613a1c565b61104b565b610428610627366004613a8f565b611240565b34801561063857600080fd5b5061047061130c565b34801561064d57600080fd5b5060335460ff166103b1565b34801561066557600080fd5b50610428610674366004613ae8565b6113bf565b34801561068557600080fd5b506104707f973ef39d76cc2c6090feab1c030bec6ab5db557f64df047a4c4f9b5953cf1df381565b3480156106b957600080fd5b5061047061271081565b3480156106cf57600080fd5b506104706106de36600461389a565b6001600160a01b031660009081526098602052604090205490565b34801561070557600080fd5b506103b1610714366004613982565b6114e2565b34801561072557600080fd5b506104706101c95481565b34801561073c57600080fd5b5061042861074b366004613c09565b611518565b34801561075c57600080fd5b506103db61076b366004613c4c565b611582565b34801561077c57600080fd5b506104286116c4565b34801561079157600080fd5b506104706101645481565b3480156107a857600080fd5b506103db6116f6565b3480156107bd57600080fd5b506104706107cc3660046137db565b60009081526101cd602052604090205490565b3480156107eb57600080fd5b506103b16107fa36600461386a565b611704565b34801561080b57600080fd5b506103db611777565b34801561082057600080fd5b5061042861082f366004613c69565b611786565b34801561084057600080fd5b50610470600081565b34801561085557600080fd5b506103b16108643660046137af565b6119a3565b34801561087557600080fd5b5061042861088436600461389a565b611a1e565b34801561089557600080fd5b506103b16108a43660046137af565b611a7d565b3480156108b557600080fd5b506104707faa2de0737115053bf7d3d68e733306557628aef4b4aefa746cbf344fc726724781565b3480156108e957600080fd5b506103b16108f8366004613829565b611a8b565b34801561090957600080fd5b506104707fc6f3350ab30f55ce45863160fc345c1663d4633fe7cacfd3b9bbb6420a9147f881565b34801561093d57600080fd5b506103b161094c36600461389a565b611ae8565b34801561095d57600080fd5b5061042861096c366004613d39565b611b06565b34801561097d57600080fd5b5061042861098c3660046137db565b611be3565b34801561099d57600080fd5b506105326109ac366004613829565b611c62565b3480156109bd57600080fd5b506103db611cca565b3480156109d257600080fd5b506104706000805160206143b683398151915281565b3480156109f457600080fd5b50610428610a0336600461386a565b611cd8565b348015610a1457600080fd5b50610428610a23366004613c09565b611cfd565b348015610a3457600080fd5b50610428610a43366004613c09565b611d5b565b348015610a5457600080fd5b50610470610a63366004613d99565b611db9565b348015610a7457600080fd5b506104706101ca5481565b348015610a8b57600080fd5b506104707f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b348015610abf57600080fd5b50610428610ace366004613dc7565b611de4565b348015610adf57600080fd5b506103db611e9e565b348015610af457600080fd5b5061019754610b09906001600160a01b031681565b6040516001600160a01b0390911681526020016103bd565b60006001600160e01b03198216637965db0b60e01b1480610b5257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060609b8054610b6790613de9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9390613de9565b8015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b5050505050905090565b600033610bf8818585611eac565b5060019392505050565b6000805160206143b6833981519152610c1a81611fd0565b610c22611fda565b610c2f6101c954836120e7565b5050565b6000805160206143b6833981519152610c4b81611fd0565b81600003610c6c57604051633f725b7160e01b815260040160405180910390fd5b610c76848461220d565b6101c95460009081526101cd60205260409020541580610ca957506101c95460009081526101cd60205260409020548214155b15610cb757610cb782610c02565b610cc18484612219565b836001600160a01b03167fcd0e00beb8e6d5ab96ee16e6a1a735ff07cae8702f2e48feb32fefe40f25692c84846101cc604051610d0093929190613ea0565b60405180910390a250505050565b6101618054610d1c90613de9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4890613de9565b8015610d955780601f10610d6a57610100808354040283529160200191610d95565b820191906000526020600020905b815481529060010190602001808311610d7857829003601f168201915b505050505081565b6000610daa8484846122e6565b90505b9392505050565b600082815260fc6020526040902060010154610dcf81611fd0565b610dd98383612344565b505050565b6001600160a01b0381163314610e535760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610c2f82826123ca565b6001600160a01b037f00000000000000000000000037686928ddf77be20fc4199f03f0638d90d9907e163003610ea55760405162461bcd60e51b8152600401610e4a90613ebf565b7f00000000000000000000000037686928ddf77be20fc4199f03f0638d90d9907e6001600160a01b0316610eee60008051602061436f833981519152546001600160a01b031690565b6001600160a01b031614610f145760405162461bcd60e51b8152600401610e4a90613f0b565b610f1d81612431565b60408051600080825260208201909252610f399183919061243c565b50565b600033610bf8818585610f4f8383611db9565b610f599190613f6d565b611eac565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610f8881611fd0565b610f396125a7565b60007f973ef39d76cc2c6090feab1c030bec6ab5db557f64df047a4c4f9b5953cf1df3610fbc81611fd0565b610fc684846125f9565b949350505050565b600081610fdb3386611db9565b146110365760405162461bcd60e51b815260206004820152602560248201527f434d5441543a2063757272656e7420616c6c6f77616e6365206973206e6f74206044820152641c9a59da1d60da1b6064820152608401610e4a565b6110408484610bea565b506001949350505050565b6000805160206143b683398151915261106381611fd0565b8160000361108457604051633f725b7160e01b815260040160405180910390fd5b60008590036110a657604051630c7e659960e01b815260040160405180910390fd5b8483146110c6576040516307a4e50160e21b815260040160405180910390fd5b6101c95460009081526101cd602052604090205415806110f957506101c95460009081526101cd60205260409020548214155b156111075761110782610c02565b60005b858110156112375761115a87878381811061112757611127613f80565b905060200201602081019061113c919061389a565b86868481811061114e5761114e613f80565b9050602002013561220d565b6111a287878381811061116f5761116f613f80565b9050602002016020810190611184919061389a565b86868481811061119657611196613f80565b90506020020135612219565b8686828181106111b4576111b4613f80565b90506020020160208101906111c9919061389a565b6001600160a01b03167fcd0e00beb8e6d5ab96ee16e6a1a735ff07cae8702f2e48feb32fefe40f25692c86868481811061120557611205613f80565b90506020020135856101cc60405161121f93929190613ea0565b60405180910390a261123081613f96565b905061110a565b50505050505050565b6001600160a01b037f00000000000000000000000037686928ddf77be20fc4199f03f0638d90d9907e1630036112885760405162461bcd60e51b8152600401610e4a90613ebf565b7f00000000000000000000000037686928ddf77be20fc4199f03f0638d90d9907e6001600160a01b03166112d160008051602061436f833981519152546001600160a01b031690565b6001600160a01b0316146112f75760405162461bcd60e51b8152600401610e4a90613f0b565b61130082612431565b610c2f8282600161243c565b6000306001600160a01b037f00000000000000000000000037686928ddf77be20fc4199f03f0638d90d9907e16146113ac5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610e4a565b5060008051602061436f83398151915290565b600054610100900460ff16158080156113df5750600054600160ff909116105b806113f95750303b1580156113f9575060005460ff166001145b61145c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e4a565b6000805460ff19166001179055801561147f576000805461ff0019166101001790555b6114908a8a8a8a8a8a8a8a8a6126b5565b80156114d6576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050505050565b60007f973ef39d76cc2c6090feab1c030bec6ab5db557f64df047a4c4f9b5953cf1df361150e81611fd0565b610fc68484612768565b600061152381611fd0565b6101626115308382613ffd565b508160405161153f91906140bc565b60405180910390207f8763f25a8d9538205dfcd4dc235a0f6bf9f0a6a01327e13524aaf39f954fa50f83604051611576919061377c565b60405180910390a25050565b606060ff82166115b657505060408051808201909152600e81526d2737903932b9ba3934b1ba34b7b760911b602082015290565b60001960ff8316016115f2575050604080518082019091526014815273105b1b081d1c985b9cd9995c9cc81c185d5cd95960621b602082015290565b60011960ff83160161163757505060408051808201909152601a81527f54686520616464726573732046524f4d2069732066726f7a656e000000000000602082015290565b60021960ff83160161167c57505060408051808201909152601881527f546865206164647265737320544f2069732066726f7a656e0000000000000000602082015290565b610197546001600160a01b03161561169757610b528261280f565b505060408051808201909152600c81526b556e6b6e6f776e20636f646560a01b602082015290565b919050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116ee81611fd0565b610f39612884565b6101cc8054610d1c90613de9565b6001600160a01b03811660009081527f3d65bc8af043c3492e2efc328ab30f794c3cc5eba72564adef73ad45ad4ac2ea602052604081205460ff161561174c57506001610b52565b600083815260fc602090815260408083206001600160a01b038616845290915290205460ff16610dad565b6060609c8054610b6790613de9565b6000805160206143b683398151915261179e81611fd0565b816000036117be5760405162471be360e81b815260040160405180910390fd5b60008790036117e0576040516311eaa8e760e21b815260040160405180910390fd5b6101c95460009081526101cd602052604081205490036118035761180382610c02565b86851461182357604051637a9d6e6d60e01b815260040160405180910390fd5b6101c95460009081526101cd6020526040902054158061185657506101c95460009081526101cd60205260409020548214155b156118645761186482610c02565b60005b87811015611998576118b789898381811061188457611884613f80565b9050602002016020810190611899919061389a565b8888848181106118ab576118ab613f80565b905060200201356128c1565b6118ff8989838181106118cc576118cc613f80565b90506020020160208101906118e1919061389a565b8888848181106118f3576118f3613f80565b905060200201356128cd565b88888281811061191157611911613f80565b9050602002016020810190611926919061389a565b6001600160a01b03167f7ac04017f24da45893af8da5aa95f35462ea5a8c01909c084a06218f4935635188888481811061196257611962613f80565b905060200201358787876101cc6040516119809594939291906140d8565b60405180910390a261199181613f96565b9050611867565b505050505050505050565b600033816119b18286611db9565b905083811015611a115760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610e4a565b6110408286868403611eac565b6000611a2981611fd0565b610197546001600160a01b03808416911603611a745760405162461bcd60e51b815260206004820152600a60248201526953616d652076616c756560b01b6044820152606401610e4a565b610c2f82612a0d565b600033610bf8818585612a58565b6000611a9960335460ff1690565b80611aa85750611aa884611ae8565b80611ab75750611ab783611ae8565b15611ac457506000610dad565b610197546001600160a01b031615610bf857611ae1848484612c10565b9050610dad565b6001600160a01b031660009081526065602052604090205460ff1690565b6000805160206143b6833981519152611b1e81611fd0565b81600003611b3e5760405162471be360e81b815260040160405180910390fd5b611b4885856128c1565b6101c95460009081526101cd60205260409020541580611b7b57506101c95460009081526101cd60205260409020548214155b15611b8957611b8982610c02565b611b9385856128cd565b846001600160a01b03167f7ac04017f24da45893af8da5aa95f35462ea5a8c01909c084a06218f493563518585856101cc604051611bd4949392919061412e565b60405180910390a25050505050565b6000611bee81611fd0565b816101645403611c2d5760405162461bcd60e51b815260206004820152600a60248201526953616d652076616c756560b01b6044820152606401610e4a565b61016482905560405182907f7fd5fca7bc379fa5c0330db55f9b725ddbe03460514a6fa71918966f3848779f90600090a25050565b6000611c7060335460ff1690565b15611c7c576001611ae1565b611c8584611ae8565b15611c91576002611ae1565b611c9a83611ae8565b15611ca6576003611ae1565b610197546001600160a01b031615611cc357611ae1848484612c1d565b6000611ae1565b6101628054610d1c90613de9565b600082815260fc6020526040902060010154611cf381611fd0565b610dd983836123ca565b6000611d0881611fd0565b610163611d158382613ffd565b5081604051611d2491906140bc565b60405180910390207f62ecbd406143b0f9293af502fc172da71440b7821e18045e13c652c6841fff9583604051611576919061377c565b6000611d6681611fd0565b610161611d738382613ffd565b5081604051611d8291906140bc565b60405180910390207f6403c68076c59949275ad9be2137a73c51043d7d6af6a38473047a0bc45df49283604051611576919061377c565b6001600160a01b03918216600090815260996020908152604080832093909416825291909152205490565b6000805160206143b6833981519152611dfc81611fd0565b6101c954831115611e4f5760405162461bcd60e51b815260206004820152601c60248201527f4e41563a2043616e6e6f7420736574206675747572652065706f6368000000006044820152606401610e4a565b60008381526101cd602090815260409182902080549085905582518181529182018590529185917f5e82649aa80f5f7e85ff77824732c4c0fb91044af500edfc129ff221ffbd31169101610d00565b6101638054610d1c90613de9565b6001600160a01b038316611f0e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610e4a565b6001600160a01b038216611f6f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610e4a565b6001600160a01b0383811660008181526099602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b610f398133612c9c565b60006101cb5442611feb919061416a565b90506000611ffc6201518083614193565b90508015610c2f576101c9805490829060006120188385613f6d565b9091555061202b905062015180836141a7565b6101cb600082825461203d9190613f6d565b90915550506101cb54600090612057906201518090614193565b61206490620151806141a7565b61207090615460613f6d565b9050615460620151806101cb5461208791906141be565b101561209d5761209a620151808261416a565b90505b6101cb8190556101c9546040805184815260208101929092527f140dc4a002b0832946ae16882055907cbee0b371c27a4fdd5059c769fe744c69910160405180910390a150505050565b60008281526101cd602052604090205482156121ad57600f60015b81811115801561211b57506000612119828761416a565b115b156121aa57600061212c828761416a565b60008181526101cd60205260409020549091501561214a57506121aa565b60008181526101cd60209081526040808320889055805192835290820187905282917f5e82649aa80f5f7e85ff77824732c4c0fb91044af500edfc129ff221ffbd3116910160405180910390a250806121a281613f96565b915050612102565b50505b60008381526101cd6020908152604091829020849055815183815290810184905284917f5e82649aa80f5f7e85ff77824732c4c0fb91044af500edfc129ff221ffbd3116910160405180910390a26101c9548303610dd957506101ca5550565b610dd960008383612c10565b6001600160a01b03821661226f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610e4a565b61227b60008383612cf5565b80609a600082825461228d9190613f6d565b90915550506001600160a01b0382166000818152609860209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806122f4858585612d62565b90508015610daa5760405183815233906001600160a01b038716907f7c2b9369bf4a6bd9745889c658ad00a4d57e280c4c80fa1c74db2a9e52c136359060200160405180910390a3949350505050565b61234e8282611704565b610c2f57600082815260fc602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123863390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6123d48282611704565b15610c2f57600082815260fc602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610c2f81611fd0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561246f57610dd983612d7b565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156124c9575060408051601f3d908101601f191682019092526124c6918101906141d2565b60015b61252c5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610e4a565b60008051602061436f833981519152811461259b5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610e4a565b50610dd9838383612e17565b6125af612e3c565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03821660009081526065602052604081205460ff161561262257506000610b52565b6001600160a01b03831660009081526065602052604090819020805460ff19166001179055516126539083906140bc565b6040518091039020836001600160a01b031661266c3390565b6001600160a01b03167fe80aede59db0b770aef5e4bd04670759d38e64959d07a4343257a0a4f6b6d1ed856040516126a4919061377c565b60405180910390a450600192915050565b600054610100900460ff166126dc5760405162461bcd60e51b8152600401610e4a906141eb565b6126e4612e87565b6126ee8888612eae565b6126f6612e87565b6126fe612e87565b612706612e87565b61270e612eee565b61271789612f21565b61272084612fa1565b61272a848a612fd9565b6127368686858561304a565b61273e612e87565b612746612e87565b61275388888b87856130a4565b61276088888b8785613107565b611998612e87565b6001600160a01b03821660009081526065602052604081205460ff1661279057506000610b52565b6001600160a01b03831660009081526065602052604090819020805460ff19169055516127be9083906140bc565b6040518091039020836001600160a01b03166127d73390565b6001600160a01b03167f7a52fdbc4f3e9f93670cd35b5b9c2d974791d25c5c04984336a80be3f7f42c32856040516126a4919061377c565b61019754604051637f4ab1dd60e01b815260ff831660048201526060916001600160a01b031690637f4ab1dd90602401600060405180830381865afa15801561285c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b529190810190614236565b61288c61319e565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125dc3390565b610dd982600083612c10565b6001600160a01b03821661292d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610e4a565b61293982600083612cf5565b6001600160a01b038216600090815260986020526040902054818110156129ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610e4a565b6001600160a01b03831660008181526098602090815260408083208686039055609a80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b61019780546001600160a01b0319166001600160a01b0383169081179091556040517f37213fe93a5aae50df0ef53f98b81c048e51b3ab2969309a103a647e44b6191890600090a250565b6001600160a01b038316612abc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610e4a565b6001600160a01b038216612b1e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610e4a565b612b29838383612cf5565b6001600160a01b03831660009081526098602052604090205481811015612ba15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610e4a565b6001600160a01b0380851660008181526098602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612c019086815260200190565b60405180910390a35b50505050565b6000610daa8484846131e4565b6101975460405163d4ce141560e01b81526001600160a01b038581166004830152848116602483015260448201849052600092169063d4ce141590606401602060405180830381865afa158015612c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daa91906142a3565b612ca68282611704565b610c2f57612cb381613282565b612cbe836020613294565b604051602001612ccf9291906142c0565b60408051601f198184030181529082905262461bcd60e51b8252610e4a9160040161377c565b612d00838383611a8b565b610dd95760405162461bcd60e51b815260206004820152602d60248201527f434d5441543a207472616e736665722072656a65637465642062792076616c6960448201526c646174696f6e206d6f64756c6560981b6064820152608401610e4a565b600033612d7085828561342f565b611040858585612a58565b6001600160a01b0381163b612de85760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610e4a565b60008051602061436f83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612e20836134a3565b600082511180612e2d5750805b15610dd957612c0a83836134e3565b60335460ff16612e855760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e4a565b565b600054610100900460ff16612e855760405162461bcd60e51b8152600401610e4a906141eb565b600054610100900460ff16612ed55760405162461bcd60e51b8152600401610e4a906141eb565b609b612ee18382613ffd565b50609c610dd98282613ffd565b600054610100900460ff16612f155760405162461bcd60e51b8152600401610e4a906141eb565b6033805460ff19169055565b600054610100900460ff16612f485760405162461bcd60e51b8152600401610e4a906141eb565b6001600160a01b038116612f965760405162461bcd60e51b81526020600482015260156024820152741059191c995cdcc80c081b9bdd08185b1b1bddd959605a1b6044820152606401610e4a565b610f39600082612344565b600054610100900460ff16612fc85760405162461bcd60e51b8152600401610e4a906141eb565b612fd0612e87565b610f39816135d7565b600054610100900460ff166130005760405162461bcd60e51b8152600401610e4a906141eb565b613008612e87565b613010612e87565b613018612e87565b613020612eee565b61302982612fa1565b61303281612f21565b61303a612e87565b613042612e87565b610c2f612e87565b600054610100900460ff166130715760405162461bcd60e51b8152600401610e4a906141eb565b61016161307e8582613ffd565b5061016261308c8482613ffd565b5061016361309a8382613ffd565b5061016455505050565b600054610100900460ff166130cb5760405162461bcd60e51b8152600401610e4a906141eb565b6130d3612e87565b6130dd8585612eae565b6130e6826135d7565b6130ef8161362e565b6130f883612f21565b613100612e87565b5050505050565b600054610100900460ff1661312e5760405162461bcd60e51b8152600401610e4a906141eb565b613136612e87565b6131408585612eae565b613148612e87565b613150612e87565b61315983612f21565b6131628161362e565b61316a612e87565b6001600160a01b038216156131005761019780546001600160a01b0384166001600160a01b03199091161790555050505050565b60335460ff1615612e855760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e4a565b610197546000906001600160a01b031661320057506001610dad565b6101975460405163634a350960e11b81526001600160a01b0386811660048301528581166024830152604482018590529091169063c6946a1290606401602060405180830381865afa925050508015613276575060408051601f3d908101601f1916820190925261327391810190614335565b60015b611ae157506000610dad565b6060610b526001600160a01b03831660145b606060006132a38360026141a7565b6132ae906002613f6d565b6001600160401b038111156132c5576132c56138b7565b6040519080825280601f01601f1916602001820160405280156132ef576020820181803683370190505b509050600360fc1b8160008151811061330a5761330a613f80565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061333957613339613f80565b60200101906001600160f81b031916908160001a905350600061335d8460026141a7565b613368906001613f6d565b90505b60018111156133e0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061339c5761339c613f80565b1a60f81b8282815181106133b2576133b2613f80565b60200101906001600160f81b031916908160001a90535060049490941c936133d981614357565b905061336b565b508315610dad5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e4a565b600061343b8484611db9565b90506000198114612c0a57818110156134965760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e4a565b612c0a8484848403611eac565b6134ac81612d7b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61354b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610e4a565b600080846001600160a01b03168460405161356691906140bc565b600060405180830381855af49150503d80600081146135a1576040519150601f19603f3d011682016040523d82523d6000602084013e6135a6565b606091505b50915091506135ce828260405180606001604052806027815260200161438f602791396136c4565b95945050505050565b600054610100900460ff166135fe5760405162461bcd60e51b8152600401610e4a906141eb565b6001600160a01b03811615610f395761019780546001600160a01b0383166001600160a01b031990911617905550565b600054610100900460ff166136555760405162461bcd60e51b8152600401610e4a906141eb565b6136626201518042614193565b61366f90620151806141a7565b61367b90615460613f6d565b6101cb5561546061368f62015180426141be565b10156136b157620151806101cb60008282546136ab919061416a565b90915550505b60006101c9556101cc610c2f8282613ffd565b606083156136d3575081610dad565b610dad83838151156136e85781518083602001fd5b8060405162461bcd60e51b8152600401610e4a919061377c565b60006020828403121561371457600080fd5b81356001600160e01b031981168114610dad57600080fd5b60005b8381101561374757818101518382015260200161372f565b50506000910152565b6000815180845261376881602086016020860161372c565b601f01601f19169290920160200192915050565b602081526000610dad6020830184613750565b6001600160a01b0381168114610f3957600080fd5b80356116bf8161378f565b600080604083850312156137c257600080fd5b82356137cd8161378f565b946020939093013593505050565b6000602082840312156137ed57600080fd5b5035919050565b60008060006060848603121561380957600080fd5b83356138148161378f565b95602085013595506040909401359392505050565b60008060006060848603121561383e57600080fd5b83356138498161378f565b925060208401356138598161378f565b929592945050506040919091013590565b6000806040838503121561387d57600080fd5b82359150602083013561388f8161378f565b809150509250929050565b6000602082840312156138ac57600080fd5b8135610dad8161378f565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156138f5576138f56138b7565b604052919050565b60006001600160401b03821115613916576139166138b7565b50601f01601f191660200190565b6000613937613932846138fd565b6138cd565b905082815283838301111561394b57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261397357600080fd5b610dad83833560208501613924565b6000806040838503121561399557600080fd5b82356139a08161378f565b915060208301356001600160401b038111156139bb57600080fd5b6139c785828601613962565b9150509250929050565b60008083601f8401126139e357600080fd5b5081356001600160401b038111156139fa57600080fd5b6020830191508360208260051b8501011115613a1557600080fd5b9250929050565b600080600080600060608688031215613a3457600080fd5b85356001600160401b0380821115613a4b57600080fd5b613a5789838a016139d1565b90975095506020880135915080821115613a7057600080fd5b50613a7d888289016139d1565b96999598509660400135949350505050565b60008060408385031215613aa257600080fd5b8235613aad8161378f565b915060208301356001600160401b03811115613ac857600080fd5b8301601f81018513613ad957600080fd5b6139c785823560208401613924565b60008060008060008060008060006101208a8c031215613b0757600080fd5b613b108a6137a4565b985060208a01356001600160401b0380821115613b2c57600080fd5b613b388d838e01613962565b995060408c0135915080821115613b4e57600080fd5b613b5a8d838e01613962565b985060608c0135915080821115613b7057600080fd5b613b7c8d838e01613962565b975060808c0135915080821115613b9257600080fd5b613b9e8d838e01613962565b9650613bac60a08d016137a4565b955060c08c0135915080821115613bc257600080fd5b613bce8d838e01613962565b945060e08c013593506101008c0135915080821115613bec57600080fd5b50613bf98c828d01613962565b9150509295985092959850929598565b600060208284031215613c1b57600080fd5b81356001600160401b03811115613c3157600080fd5b610fc684828501613962565b60ff81168114610f3957600080fd5b600060208284031215613c5e57600080fd5b8135610dad81613c3d565b60008060008060008060006080888a031215613c8457600080fd5b87356001600160401b0380821115613c9b57600080fd5b613ca78b838c016139d1565b909950975060208a0135915080821115613cc057600080fd5b613ccc8b838c016139d1565b909750955060408a0135915080821115613ce557600080fd5b818a0191508a601f830112613cf957600080fd5b813581811115613d0857600080fd5b8b6020828501011115613d1a57600080fd5b6020830195508094505050506060880135905092959891949750929550565b60008060008060808587031215613d4f57600080fd5b8435613d5a8161378f565b93506020850135925060408501356001600160401b03811115613d7c57600080fd5b613d8887828801613962565b949793965093946060013593505050565b60008060408385031215613dac57600080fd5b8235613db78161378f565b9150602083013561388f8161378f565b60008060408385031215613dda57600080fd5b50508035926020909101359150565b600181811c90821680613dfd57607f821691505b602082108103613e1d57634e487b7160e01b600052602260045260246000fd5b50919050565b60008154613e3081613de9565b808552602060018381168015613e4d5760018114613e6757613e95565b60ff1985168884015283151560051b880183019550613e95565b866000528260002060005b85811015613e8d5781548a8201860152908301908401613e72565b890184019650505b505050505092915050565b8381528260208201526060604082015260006135ce6060830184613e23565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b5257610b52613f57565b634e487b7160e01b600052603260045260246000fd5b600060018201613fa857613fa8613f57565b5060010190565b601f821115610dd957600081815260208120601f850160051c81016020861015613fd65750805b601f850160051c820191505b81811015613ff557828155600101613fe2565b505050505050565b81516001600160401b03811115614016576140166138b7565b61402a816140248454613de9565b84613faf565b602080601f83116001811461405f57600084156140475750858301515b600019600386901b1c1916600185901b178555613ff5565b600085815260208120601f198616915b8281101561408e5788860151825594840194600190910190840161406f565b50858210156140ac5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516140ce81846020870161372c565b9190910192915050565b85815260806020820152836080820152838560a0830137600060a085830101526000601f19601f860116820184604084015260a083820301606084015261412260a0820185613e23565b98975050505050505050565b8481526080602082015260006141476080830186613750565b846040840152828103606084015261415f8185613e23565b979650505050505050565b81810381811115610b5257610b52613f57565b634e487b7160e01b600052601260045260246000fd5b6000826141a2576141a261417d565b500490565b8082028115828204841417610b5257610b52613f57565b6000826141cd576141cd61417d565b500690565b6000602082840312156141e457600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561424857600080fd5b81516001600160401b0381111561425e57600080fd5b8201601f8101841361426f57600080fd5b805161427d613932826138fd565b81815285602083850101111561429257600080fd5b6135ce82602083016020860161372c565b6000602082840312156142b557600080fd5b8151610dad81613c3d565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516142f881601785016020880161372c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161432981602884016020880161372c565b01602801949350505050565b60006020828403121561434757600080fd5b81518015158114610dad57600080fd5b60008161436657614366613f57565b50600019019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a264697066735822122083aa390df2fd3e0c07e8cd7eccff13bd946cccd89ab8fc231046b1e05b0fcfcd64736f6c63430008110033","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"optimization_runs":200,"sourcify_repo_url":null,"decoded_constructor_args":null,"compiler_version":"0.8.17+commit.8df45f5f","is_verified_via_verifier_alliance":true,"verified_at":"2026-03-06T14:54:30.117784Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x60c060405230608081905260a0523480156200001a57600080fd5b50610160805460ff191660011790556200003362000039565b620000fb565b600054610100900460ff1615620000a65760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161015620000f9576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b60805160a05161440b6200013a60003960008181610e6701528181610ea70152818161124a0152818161128a015261131901526000505061440b6000f3fe60806040526004361061038c5760003560e01c80637f4ab1dd116101dc578063d051665011610102578063d7ffbbaa116100a0578063e63ab1e91161006f578063e63ab1e914610a7f578063ea11a40114610ab3578063f47b774014610ad3578063fcf196b414610ae857600080fd5b8063d7ffbbaa14610a08578063dcfd616f14610a28578063dd62ed3e14610a48578063e4c71cb314610a6857600080fd5b8063d4ce1415116100dc578063d4ce141514610991578063d5025625146109b1578063d5391393146109c6578063d547741f146109e857600080fd5b8063d051665014610931578063d379324114610951578063d40c79f01461097157600080fd5b806397d22b901161017a578063a9059cbb11610149578063a9059cbb14610889578063b9585446146108a9578063c6946a12146108dd578063cc7c36fe146108fd57600080fd5b806397d22b9014610814578063a217fddf14610834578063a457c2d714610849578063a4a0a3011461086957600080fd5b80638c609dbc116101b65780638c609dbc1461079c578063919aeb84146107b157806391d14854146107df57806395d89b41146107ff57600080fd5b80637f4ab1dd146107505780638456cb5914610770578063890eba681461078557600080fd5b806339509351116102c15780635c975abb1161025f57806370a082311161022e57806370a08231146106c357806375bf8fe7146106f9578063766718081461071957806378f86afc1461073057600080fd5b80635c975abb146106415780635e71fba9146106595780636439fd7514610679578063686837ac146106ad57600080fd5b8063426a84931161029b578063426a8493146105d957806345d11c2d146105f95780634f1ef2861461061957806352d1902d1461062c57600080fd5b806339509351146105845780633f4ba83a146105a45780633f4f9067146105b957600080fd5b806323b872dd1161032e5780632f2ff15d116103085780632f2ff15d14610502578063313ce5671461052257806336568abe146105445780633659cfe61461056457600080fd5b806323b872dd1461047e578063246b72ec1461049e578063248a9ca3146104d257600080fd5b80630cf6a2601161036a5780630cf6a26014610408578063156e29f61461042a57806317d70f7c1461044a57806318160ddd1461045f57600080fd5b806301ffc9a71461039157806306fdde03146103c6578063095ea7b3146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613702565b610b21565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610b58565b6040516103bd919061377c565b3480156103f457600080fd5b506103b16104033660046137af565b610bea565b34801561041457600080fd5b506104286104233660046137db565b610c02565b005b34801561043657600080fd5b506104286104453660046137f4565b610c33565b34801561045657600080fd5b506103db610d0e565b34801561046b57600080fd5b50609a545b6040519081526020016103bd565b34801561048a57600080fd5b506103b1610499366004613829565b610d9d565b3480156104aa57600080fd5b506104707f809a0fc49fc0600540f1d39e23454e1f6f215bc7505fa22b17c154616570ddef81565b3480156104de57600080fd5b506104706104ed3660046137db565b600090815260fc602052604090206001015490565b34801561050e57600080fd5b5061042861051d36600461386a565b610db4565b34801561052e57600080fd5b5060125b60405160ff90911681526020016103bd565b34801561055057600080fd5b5061042861055f36600461386a565b610dde565b34801561057057600080fd5b5061042861057f36600461389a565b610e5d565b34801561059057600080fd5b506103b161059f3660046137af565b610f3c565b3480156105b057600080fd5b50610428610f5e565b3480156105c557600080fd5b506103b16105d4366004613982565b610f90565b3480156105e557600080fd5b506103b16105f43660046137f4565b610fce565b34801561060557600080fd5b50610428610614366004613a1c565b61104b565b610428610627366004613a8f565b611240565b34801561063857600080fd5b5061047061130c565b34801561064d57600080fd5b5060335460ff166103b1565b34801561066557600080fd5b50610428610674366004613ae8565b6113bf565b34801561068557600080fd5b506104707f973ef39d76cc2c6090feab1c030bec6ab5db557f64df047a4c4f9b5953cf1df381565b3480156106b957600080fd5b5061047061271081565b3480156106cf57600080fd5b506104706106de36600461389a565b6001600160a01b031660009081526098602052604090205490565b34801561070557600080fd5b506103b1610714366004613982565b6114e2565b34801561072557600080fd5b506104706101c95481565b34801561073c57600080fd5b5061042861074b366004613c09565b611518565b34801561075c57600080fd5b506103db61076b366004613c4c565b611582565b34801561077c57600080fd5b506104286116c4565b34801561079157600080fd5b506104706101645481565b3480156107a857600080fd5b506103db6116f6565b3480156107bd57600080fd5b506104706107cc3660046137db565b60009081526101cd602052604090205490565b3480156107eb57600080fd5b506103b16107fa36600461386a565b611704565b34801561080b57600080fd5b506103db611777565b34801561082057600080fd5b5061042861082f366004613c69565b611786565b34801561084057600080fd5b50610470600081565b34801561085557600080fd5b506103b16108643660046137af565b6119a3565b34801561087557600080fd5b5061042861088436600461389a565b611a1e565b34801561089557600080fd5b506103b16108a43660046137af565b611a7d565b3480156108b557600080fd5b506104707faa2de0737115053bf7d3d68e733306557628aef4b4aefa746cbf344fc726724781565b3480156108e957600080fd5b506103b16108f8366004613829565b611a8b565b34801561090957600080fd5b506104707fc6f3350ab30f55ce45863160fc345c1663d4633fe7cacfd3b9bbb6420a9147f881565b34801561093d57600080fd5b506103b161094c36600461389a565b611ae8565b34801561095d57600080fd5b5061042861096c366004613d39565b611b06565b34801561097d57600080fd5b5061042861098c3660046137db565b611be3565b34801561099d57600080fd5b506105326109ac366004613829565b611c62565b3480156109bd57600080fd5b506103db611cca565b3480156109d257600080fd5b506104706000805160206143b683398151915281565b3480156109f457600080fd5b50610428610a0336600461386a565b611cd8565b348015610a1457600080fd5b50610428610a23366004613c09565b611cfd565b348015610a3457600080fd5b50610428610a43366004613c09565b611d5b565b348015610a5457600080fd5b50610470610a63366004613d99565b611db9565b348015610a7457600080fd5b506104706101ca5481565b348015610a8b57600080fd5b506104707f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b348015610abf57600080fd5b50610428610ace366004613dc7565b611de4565b348015610adf57600080fd5b506103db611e9e565b348015610af457600080fd5b5061019754610b09906001600160a01b031681565b6040516001600160a01b0390911681526020016103bd565b60006001600160e01b03198216637965db0b60e01b1480610b5257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060609b8054610b6790613de9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9390613de9565b8015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b5050505050905090565b600033610bf8818585611eac565b5060019392505050565b6000805160206143b6833981519152610c1a81611fd0565b610c22611fda565b610c2f6101c954836120e7565b5050565b6000805160206143b6833981519152610c4b81611fd0565b81600003610c6c57604051633f725b7160e01b815260040160405180910390fd5b610c76848461220d565b6101c95460009081526101cd60205260409020541580610ca957506101c95460009081526101cd60205260409020548214155b15610cb757610cb782610c02565b610cc18484612219565b836001600160a01b03167fcd0e00beb8e6d5ab96ee16e6a1a735ff07cae8702f2e48feb32fefe40f25692c84846101cc604051610d0093929190613ea0565b60405180910390a250505050565b6101618054610d1c90613de9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4890613de9565b8015610d955780601f10610d6a57610100808354040283529160200191610d95565b820191906000526020600020905b815481529060010190602001808311610d7857829003601f168201915b505050505081565b6000610daa8484846122e6565b90505b9392505050565b600082815260fc6020526040902060010154610dcf81611fd0565b610dd98383612344565b505050565b6001600160a01b0381163314610e535760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610c2f82826123ca565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ea55760405162461bcd60e51b8152600401610e4a90613ebf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610eee60008051602061436f833981519152546001600160a01b031690565b6001600160a01b031614610f145760405162461bcd60e51b8152600401610e4a90613f0b565b610f1d81612431565b60408051600080825260208201909252610f399183919061243c565b50565b600033610bf8818585610f4f8383611db9565b610f599190613f6d565b611eac565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610f8881611fd0565b610f396125a7565b60007f973ef39d76cc2c6090feab1c030bec6ab5db557f64df047a4c4f9b5953cf1df3610fbc81611fd0565b610fc684846125f9565b949350505050565b600081610fdb3386611db9565b146110365760405162461bcd60e51b815260206004820152602560248201527f434d5441543a2063757272656e7420616c6c6f77616e6365206973206e6f74206044820152641c9a59da1d60da1b6064820152608401610e4a565b6110408484610bea565b506001949350505050565b6000805160206143b683398151915261106381611fd0565b8160000361108457604051633f725b7160e01b815260040160405180910390fd5b60008590036110a657604051630c7e659960e01b815260040160405180910390fd5b8483146110c6576040516307a4e50160e21b815260040160405180910390fd5b6101c95460009081526101cd602052604090205415806110f957506101c95460009081526101cd60205260409020548214155b156111075761110782610c02565b60005b858110156112375761115a87878381811061112757611127613f80565b905060200201602081019061113c919061389a565b86868481811061114e5761114e613f80565b9050602002013561220d565b6111a287878381811061116f5761116f613f80565b9050602002016020810190611184919061389a565b86868481811061119657611196613f80565b90506020020135612219565b8686828181106111b4576111b4613f80565b90506020020160208101906111c9919061389a565b6001600160a01b03167fcd0e00beb8e6d5ab96ee16e6a1a735ff07cae8702f2e48feb32fefe40f25692c86868481811061120557611205613f80565b90506020020135856101cc60405161121f93929190613ea0565b60405180910390a261123081613f96565b905061110a565b50505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036112885760405162461bcd60e51b8152600401610e4a90613ebf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112d160008051602061436f833981519152546001600160a01b031690565b6001600160a01b0316146112f75760405162461bcd60e51b8152600401610e4a90613f0b565b61130082612431565b610c2f8282600161243c565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146113ac5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610e4a565b5060008051602061436f83398151915290565b600054610100900460ff16158080156113df5750600054600160ff909116105b806113f95750303b1580156113f9575060005460ff166001145b61145c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e4a565b6000805460ff19166001179055801561147f576000805461ff0019166101001790555b6114908a8a8a8a8a8a8a8a8a6126b5565b80156114d6576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050505050565b60007f973ef39d76cc2c6090feab1c030bec6ab5db557f64df047a4c4f9b5953cf1df361150e81611fd0565b610fc68484612768565b600061152381611fd0565b6101626115308382613ffd565b508160405161153f91906140bc565b60405180910390207f8763f25a8d9538205dfcd4dc235a0f6bf9f0a6a01327e13524aaf39f954fa50f83604051611576919061377c565b60405180910390a25050565b606060ff82166115b657505060408051808201909152600e81526d2737903932b9ba3934b1ba34b7b760911b602082015290565b60001960ff8316016115f2575050604080518082019091526014815273105b1b081d1c985b9cd9995c9cc81c185d5cd95960621b602082015290565b60011960ff83160161163757505060408051808201909152601a81527f54686520616464726573732046524f4d2069732066726f7a656e000000000000602082015290565b60021960ff83160161167c57505060408051808201909152601881527f546865206164647265737320544f2069732066726f7a656e0000000000000000602082015290565b610197546001600160a01b03161561169757610b528261280f565b505060408051808201909152600c81526b556e6b6e6f776e20636f646560a01b602082015290565b919050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6116ee81611fd0565b610f39612884565b6101cc8054610d1c90613de9565b6001600160a01b03811660009081527f3d65bc8af043c3492e2efc328ab30f794c3cc5eba72564adef73ad45ad4ac2ea602052604081205460ff161561174c57506001610b52565b600083815260fc602090815260408083206001600160a01b038616845290915290205460ff16610dad565b6060609c8054610b6790613de9565b6000805160206143b683398151915261179e81611fd0565b816000036117be5760405162471be360e81b815260040160405180910390fd5b60008790036117e0576040516311eaa8e760e21b815260040160405180910390fd5b6101c95460009081526101cd602052604081205490036118035761180382610c02565b86851461182357604051637a9d6e6d60e01b815260040160405180910390fd5b6101c95460009081526101cd6020526040902054158061185657506101c95460009081526101cd60205260409020548214155b156118645761186482610c02565b60005b87811015611998576118b789898381811061188457611884613f80565b9050602002016020810190611899919061389a565b8888848181106118ab576118ab613f80565b905060200201356128c1565b6118ff8989838181106118cc576118cc613f80565b90506020020160208101906118e1919061389a565b8888848181106118f3576118f3613f80565b905060200201356128cd565b88888281811061191157611911613f80565b9050602002016020810190611926919061389a565b6001600160a01b03167f7ac04017f24da45893af8da5aa95f35462ea5a8c01909c084a06218f4935635188888481811061196257611962613f80565b905060200201358787876101cc6040516119809594939291906140d8565b60405180910390a261199181613f96565b9050611867565b505050505050505050565b600033816119b18286611db9565b905083811015611a115760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610e4a565b6110408286868403611eac565b6000611a2981611fd0565b610197546001600160a01b03808416911603611a745760405162461bcd60e51b815260206004820152600a60248201526953616d652076616c756560b01b6044820152606401610e4a565b610c2f82612a0d565b600033610bf8818585612a58565b6000611a9960335460ff1690565b80611aa85750611aa884611ae8565b80611ab75750611ab783611ae8565b15611ac457506000610dad565b610197546001600160a01b031615610bf857611ae1848484612c10565b9050610dad565b6001600160a01b031660009081526065602052604090205460ff1690565b6000805160206143b6833981519152611b1e81611fd0565b81600003611b3e5760405162471be360e81b815260040160405180910390fd5b611b4885856128c1565b6101c95460009081526101cd60205260409020541580611b7b57506101c95460009081526101cd60205260409020548214155b15611b8957611b8982610c02565b611b9385856128cd565b846001600160a01b03167f7ac04017f24da45893af8da5aa95f35462ea5a8c01909c084a06218f493563518585856101cc604051611bd4949392919061412e565b60405180910390a25050505050565b6000611bee81611fd0565b816101645403611c2d5760405162461bcd60e51b815260206004820152600a60248201526953616d652076616c756560b01b6044820152606401610e4a565b61016482905560405182907f7fd5fca7bc379fa5c0330db55f9b725ddbe03460514a6fa71918966f3848779f90600090a25050565b6000611c7060335460ff1690565b15611c7c576001611ae1565b611c8584611ae8565b15611c91576002611ae1565b611c9a83611ae8565b15611ca6576003611ae1565b610197546001600160a01b031615611cc357611ae1848484612c1d565b6000611ae1565b6101628054610d1c90613de9565b600082815260fc6020526040902060010154611cf381611fd0565b610dd983836123ca565b6000611d0881611fd0565b610163611d158382613ffd565b5081604051611d2491906140bc565b60405180910390207f62ecbd406143b0f9293af502fc172da71440b7821e18045e13c652c6841fff9583604051611576919061377c565b6000611d6681611fd0565b610161611d738382613ffd565b5081604051611d8291906140bc565b60405180910390207f6403c68076c59949275ad9be2137a73c51043d7d6af6a38473047a0bc45df49283604051611576919061377c565b6001600160a01b03918216600090815260996020908152604080832093909416825291909152205490565b6000805160206143b6833981519152611dfc81611fd0565b6101c954831115611e4f5760405162461bcd60e51b815260206004820152601c60248201527f4e41563a2043616e6e6f7420736574206675747572652065706f6368000000006044820152606401610e4a565b60008381526101cd602090815260409182902080549085905582518181529182018590529185917f5e82649aa80f5f7e85ff77824732c4c0fb91044af500edfc129ff221ffbd31169101610d00565b6101638054610d1c90613de9565b6001600160a01b038316611f0e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610e4a565b6001600160a01b038216611f6f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610e4a565b6001600160a01b0383811660008181526099602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b610f398133612c9c565b60006101cb5442611feb919061416a565b90506000611ffc6201518083614193565b90508015610c2f576101c9805490829060006120188385613f6d565b9091555061202b905062015180836141a7565b6101cb600082825461203d9190613f6d565b90915550506101cb54600090612057906201518090614193565b61206490620151806141a7565b61207090615460613f6d565b9050615460620151806101cb5461208791906141be565b101561209d5761209a620151808261416a565b90505b6101cb8190556101c9546040805184815260208101929092527f140dc4a002b0832946ae16882055907cbee0b371c27a4fdd5059c769fe744c69910160405180910390a150505050565b60008281526101cd602052604090205482156121ad57600f60015b81811115801561211b57506000612119828761416a565b115b156121aa57600061212c828761416a565b60008181526101cd60205260409020549091501561214a57506121aa565b60008181526101cd60209081526040808320889055805192835290820187905282917f5e82649aa80f5f7e85ff77824732c4c0fb91044af500edfc129ff221ffbd3116910160405180910390a250806121a281613f96565b915050612102565b50505b60008381526101cd6020908152604091829020849055815183815290810184905284917f5e82649aa80f5f7e85ff77824732c4c0fb91044af500edfc129ff221ffbd3116910160405180910390a26101c9548303610dd957506101ca5550565b610dd960008383612c10565b6001600160a01b03821661226f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610e4a565b61227b60008383612cf5565b80609a600082825461228d9190613f6d565b90915550506001600160a01b0382166000818152609860209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806122f4858585612d62565b90508015610daa5760405183815233906001600160a01b038716907f7c2b9369bf4a6bd9745889c658ad00a4d57e280c4c80fa1c74db2a9e52c136359060200160405180910390a3949350505050565b61234e8282611704565b610c2f57600082815260fc602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123863390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6123d48282611704565b15610c2f57600082815260fc602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610c2f81611fd0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561246f57610dd983612d7b565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156124c9575060408051601f3d908101601f191682019092526124c6918101906141d2565b60015b61252c5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610e4a565b60008051602061436f833981519152811461259b5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610e4a565b50610dd9838383612e17565b6125af612e3c565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03821660009081526065602052604081205460ff161561262257506000610b52565b6001600160a01b03831660009081526065602052604090819020805460ff19166001179055516126539083906140bc565b6040518091039020836001600160a01b031661266c3390565b6001600160a01b03167fe80aede59db0b770aef5e4bd04670759d38e64959d07a4343257a0a4f6b6d1ed856040516126a4919061377c565b60405180910390a450600192915050565b600054610100900460ff166126dc5760405162461bcd60e51b8152600401610e4a906141eb565b6126e4612e87565b6126ee8888612eae565b6126f6612e87565b6126fe612e87565b612706612e87565b61270e612eee565b61271789612f21565b61272084612fa1565b61272a848a612fd9565b6127368686858561304a565b61273e612e87565b612746612e87565b61275388888b87856130a4565b61276088888b8785613107565b611998612e87565b6001600160a01b03821660009081526065602052604081205460ff1661279057506000610b52565b6001600160a01b03831660009081526065602052604090819020805460ff19169055516127be9083906140bc565b6040518091039020836001600160a01b03166127d73390565b6001600160a01b03167f7a52fdbc4f3e9f93670cd35b5b9c2d974791d25c5c04984336a80be3f7f42c32856040516126a4919061377c565b61019754604051637f4ab1dd60e01b815260ff831660048201526060916001600160a01b031690637f4ab1dd90602401600060405180830381865afa15801561285c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b529190810190614236565b61288c61319e565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125dc3390565b610dd982600083612c10565b6001600160a01b03821661292d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610e4a565b61293982600083612cf5565b6001600160a01b038216600090815260986020526040902054818110156129ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610e4a565b6001600160a01b03831660008181526098602090815260408083208686039055609a80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b61019780546001600160a01b0319166001600160a01b0383169081179091556040517f37213fe93a5aae50df0ef53f98b81c048e51b3ab2969309a103a647e44b6191890600090a250565b6001600160a01b038316612abc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610e4a565b6001600160a01b038216612b1e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610e4a565b612b29838383612cf5565b6001600160a01b03831660009081526098602052604090205481811015612ba15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610e4a565b6001600160a01b0380851660008181526098602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612c019086815260200190565b60405180910390a35b50505050565b6000610daa8484846131e4565b6101975460405163d4ce141560e01b81526001600160a01b038581166004830152848116602483015260448201849052600092169063d4ce141590606401602060405180830381865afa158015612c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daa91906142a3565b612ca68282611704565b610c2f57612cb381613282565b612cbe836020613294565b604051602001612ccf9291906142c0565b60408051601f198184030181529082905262461bcd60e51b8252610e4a9160040161377c565b612d00838383611a8b565b610dd95760405162461bcd60e51b815260206004820152602d60248201527f434d5441543a207472616e736665722072656a65637465642062792076616c6960448201526c646174696f6e206d6f64756c6560981b6064820152608401610e4a565b600033612d7085828561342f565b611040858585612a58565b6001600160a01b0381163b612de85760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610e4a565b60008051602061436f83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612e20836134a3565b600082511180612e2d5750805b15610dd957612c0a83836134e3565b60335460ff16612e855760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e4a565b565b600054610100900460ff16612e855760405162461bcd60e51b8152600401610e4a906141eb565b600054610100900460ff16612ed55760405162461bcd60e51b8152600401610e4a906141eb565b609b612ee18382613ffd565b50609c610dd98282613ffd565b600054610100900460ff16612f155760405162461bcd60e51b8152600401610e4a906141eb565b6033805460ff19169055565b600054610100900460ff16612f485760405162461bcd60e51b8152600401610e4a906141eb565b6001600160a01b038116612f965760405162461bcd60e51b81526020600482015260156024820152741059191c995cdcc80c081b9bdd08185b1b1bddd959605a1b6044820152606401610e4a565b610f39600082612344565b600054610100900460ff16612fc85760405162461bcd60e51b8152600401610e4a906141eb565b612fd0612e87565b610f39816135d7565b600054610100900460ff166130005760405162461bcd60e51b8152600401610e4a906141eb565b613008612e87565b613010612e87565b613018612e87565b613020612eee565b61302982612fa1565b61303281612f21565b61303a612e87565b613042612e87565b610c2f612e87565b600054610100900460ff166130715760405162461bcd60e51b8152600401610e4a906141eb565b61016161307e8582613ffd565b5061016261308c8482613ffd565b5061016361309a8382613ffd565b5061016455505050565b600054610100900460ff166130cb5760405162461bcd60e51b8152600401610e4a906141eb565b6130d3612e87565b6130dd8585612eae565b6130e6826135d7565b6130ef8161362e565b6130f883612f21565b613100612e87565b5050505050565b600054610100900460ff1661312e5760405162461bcd60e51b8152600401610e4a906141eb565b613136612e87565b6131408585612eae565b613148612e87565b613150612e87565b61315983612f21565b6131628161362e565b61316a612e87565b6001600160a01b038216156131005761019780546001600160a01b0384166001600160a01b03199091161790555050505050565b60335460ff1615612e855760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e4a565b610197546000906001600160a01b031661320057506001610dad565b6101975460405163634a350960e11b81526001600160a01b0386811660048301528581166024830152604482018590529091169063c6946a1290606401602060405180830381865afa925050508015613276575060408051601f3d908101601f1916820190925261327391810190614335565b60015b611ae157506000610dad565b6060610b526001600160a01b03831660145b606060006132a38360026141a7565b6132ae906002613f6d565b6001600160401b038111156132c5576132c56138b7565b6040519080825280601f01601f1916602001820160405280156132ef576020820181803683370190505b509050600360fc1b8160008151811061330a5761330a613f80565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061333957613339613f80565b60200101906001600160f81b031916908160001a905350600061335d8460026141a7565b613368906001613f6d565b90505b60018111156133e0576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061339c5761339c613f80565b1a60f81b8282815181106133b2576133b2613f80565b60200101906001600160f81b031916908160001a90535060049490941c936133d981614357565b905061336b565b508315610dad5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e4a565b600061343b8484611db9565b90506000198114612c0a57818110156134965760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e4a565b612c0a8484848403611eac565b6134ac81612d7b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61354b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610e4a565b600080846001600160a01b03168460405161356691906140bc565b600060405180830381855af49150503d80600081146135a1576040519150601f19603f3d011682016040523d82523d6000602084013e6135a6565b606091505b50915091506135ce828260405180606001604052806027815260200161438f602791396136c4565b95945050505050565b600054610100900460ff166135fe5760405162461bcd60e51b8152600401610e4a906141eb565b6001600160a01b03811615610f395761019780546001600160a01b0383166001600160a01b031990911617905550565b600054610100900460ff166136555760405162461bcd60e51b8152600401610e4a906141eb565b6136626201518042614193565b61366f90620151806141a7565b61367b90615460613f6d565b6101cb5561546061368f62015180426141be565b10156136b157620151806101cb60008282546136ab919061416a565b90915550505b60006101c9556101cc610c2f8282613ffd565b606083156136d3575081610dad565b610dad83838151156136e85781518083602001fd5b8060405162461bcd60e51b8152600401610e4a919061377c565b60006020828403121561371457600080fd5b81356001600160e01b031981168114610dad57600080fd5b60005b8381101561374757818101518382015260200161372f565b50506000910152565b6000815180845261376881602086016020860161372c565b601f01601f19169290920160200192915050565b602081526000610dad6020830184613750565b6001600160a01b0381168114610f3957600080fd5b80356116bf8161378f565b600080604083850312156137c257600080fd5b82356137cd8161378f565b946020939093013593505050565b6000602082840312156137ed57600080fd5b5035919050565b60008060006060848603121561380957600080fd5b83356138148161378f565b95602085013595506040909401359392505050565b60008060006060848603121561383e57600080fd5b83356138498161378f565b925060208401356138598161378f565b929592945050506040919091013590565b6000806040838503121561387d57600080fd5b82359150602083013561388f8161378f565b809150509250929050565b6000602082840312156138ac57600080fd5b8135610dad8161378f565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156138f5576138f56138b7565b604052919050565b60006001600160401b03821115613916576139166138b7565b50601f01601f191660200190565b6000613937613932846138fd565b6138cd565b905082815283838301111561394b57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261397357600080fd5b610dad83833560208501613924565b6000806040838503121561399557600080fd5b82356139a08161378f565b915060208301356001600160401b038111156139bb57600080fd5b6139c785828601613962565b9150509250929050565b60008083601f8401126139e357600080fd5b5081356001600160401b038111156139fa57600080fd5b6020830191508360208260051b8501011115613a1557600080fd5b9250929050565b600080600080600060608688031215613a3457600080fd5b85356001600160401b0380821115613a4b57600080fd5b613a5789838a016139d1565b90975095506020880135915080821115613a7057600080fd5b50613a7d888289016139d1565b96999598509660400135949350505050565b60008060408385031215613aa257600080fd5b8235613aad8161378f565b915060208301356001600160401b03811115613ac857600080fd5b8301601f81018513613ad957600080fd5b6139c785823560208401613924565b60008060008060008060008060006101208a8c031215613b0757600080fd5b613b108a6137a4565b985060208a01356001600160401b0380821115613b2c57600080fd5b613b388d838e01613962565b995060408c0135915080821115613b4e57600080fd5b613b5a8d838e01613962565b985060608c0135915080821115613b7057600080fd5b613b7c8d838e01613962565b975060808c0135915080821115613b9257600080fd5b613b9e8d838e01613962565b9650613bac60a08d016137a4565b955060c08c0135915080821115613bc257600080fd5b613bce8d838e01613962565b945060e08c013593506101008c0135915080821115613bec57600080fd5b50613bf98c828d01613962565b9150509295985092959850929598565b600060208284031215613c1b57600080fd5b81356001600160401b03811115613c3157600080fd5b610fc684828501613962565b60ff81168114610f3957600080fd5b600060208284031215613c5e57600080fd5b8135610dad81613c3d565b60008060008060008060006080888a031215613c8457600080fd5b87356001600160401b0380821115613c9b57600080fd5b613ca78b838c016139d1565b909950975060208a0135915080821115613cc057600080fd5b613ccc8b838c016139d1565b909750955060408a0135915080821115613ce557600080fd5b818a0191508a601f830112613cf957600080fd5b813581811115613d0857600080fd5b8b6020828501011115613d1a57600080fd5b6020830195508094505050506060880135905092959891949750929550565b60008060008060808587031215613d4f57600080fd5b8435613d5a8161378f565b93506020850135925060408501356001600160401b03811115613d7c57600080fd5b613d8887828801613962565b949793965093946060013593505050565b60008060408385031215613dac57600080fd5b8235613db78161378f565b9150602083013561388f8161378f565b60008060408385031215613dda57600080fd5b50508035926020909101359150565b600181811c90821680613dfd57607f821691505b602082108103613e1d57634e487b7160e01b600052602260045260246000fd5b50919050565b60008154613e3081613de9565b808552602060018381168015613e4d5760018114613e6757613e95565b60ff1985168884015283151560051b880183019550613e95565b866000528260002060005b85811015613e8d5781548a8201860152908301908401613e72565b890184019650505b505050505092915050565b8381528260208201526060604082015260006135ce6060830184613e23565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b5257610b52613f57565b634e487b7160e01b600052603260045260246000fd5b600060018201613fa857613fa8613f57565b5060010190565b601f821115610dd957600081815260208120601f850160051c81016020861015613fd65750805b601f850160051c820191505b81811015613ff557828155600101613fe2565b505050505050565b81516001600160401b03811115614016576140166138b7565b61402a816140248454613de9565b84613faf565b602080601f83116001811461405f57600084156140475750858301515b600019600386901b1c1916600185901b178555613ff5565b600085815260208120601f198616915b8281101561408e5788860151825594840194600190910190840161406f565b50858210156140ac5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516140ce81846020870161372c565b9190910192915050565b85815260806020820152836080820152838560a0830137600060a085830101526000601f19601f860116820184604084015260a083820301606084015261412260a0820185613e23565b98975050505050505050565b8481526080602082015260006141476080830186613750565b846040840152828103606084015261415f8185613e23565b979650505050505050565b81810381811115610b5257610b52613f57565b634e487b7160e01b600052601260045260246000fd5b6000826141a2576141a261417d565b500490565b8082028115828204841417610b5257610b52613f57565b6000826141cd576141cd61417d565b500690565b6000602082840312156141e457600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561424857600080fd5b81516001600160401b0381111561425e57600080fd5b8201601f8101841361426f57600080fd5b805161427d613932826138fd565b81815285602083850101111561429257600080fd5b6135ce82602083016020860161372c565b6000602082840312156142b557600080fd5b8151610dad81613c3d565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516142f881601785016020880161372c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161432981602884016020880161372c565b01602801949350505050565b60006020828403121561434757600080fd5b81518015158114610dad57600080fd5b60008161436657614366613f57565b50600019019056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a264697066735822122083aa390df2fd3e0c07e8cd7eccff13bd946cccd89ab8fc231046b1e05b0fcfcd64736f6c63430008110033","name":"CMTAT_PROXY","is_blueprint":false,"license_type":"none","is_fully_verified":true,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"london","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":false,"additional_sources":[{"file_path":"project:/contracts/modules/wrapper/mandatory/BaseModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\n// required OZ imports here\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\nimport \"../../security/OnlyDelegateCallModule.sol\";\n\nabstract contract BaseModule is AuthorizationModule, OnlyDelegateCallModule {\n    // to initialize inside the implementation constructor when deployed with a Proxy\n    bool internal deployedWithProxy;\n    /* Events */\n    event Term(string indexed newTermIndexed, string newTerm);\n    event TokenId(string indexed newTokenIdIndexed, string newTokenId);\n    event Information(\n        string indexed newInformationIndexed,\n        string newInformation\n    );\n    event Flag(uint256 indexed newFlag);\n\n    /* Variables */\n    string public tokenId;\n    string public terms;\n    string public information;\n    uint256 public flag;\n\n    /* Initializers */\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\n     */\n    function __Base_init(\n        string memory tokenId_,\n        string memory terms_,\n        string memory information_,\n        uint256 flag_,\n        address admin\n    ) internal onlyInitializing {\n        /* OpenZeppelin */\n        __Context_init_unchained();\n        // AccessControlUpgradeable inherits from ERC165Upgradeable\n        __ERC165_init_unchained();\n        // AuthorizationModule inherits from AccessControlUpgradeable\n        __AccessControl_init_unchained();\n\n        /* CMTAT modules */\n        // Security\n        __AuthorizationModule_init_unchained(admin);\n\n        // own function\n        __Base_init_unchained(tokenId_, terms_, information_, flag_);\n    }\n\n    function __Base_init_unchained(\n        string memory tokenId_,\n        string memory terms_,\n        string memory information_,\n        uint256 flag_\n    ) internal onlyInitializing {\n        tokenId = tokenId_;\n        terms = terms_;\n        information = information_;\n        flag = flag_;\n    }\n\n    /* Methods */\n    /*\n    @notice the tokenId will be changed even if the new value is the same as the current one\n    */\n    function setTokenId(\n        string memory tokenId_\n    ) public onlyRole(DEFAULT_ADMIN_ROLE) {\n        tokenId = tokenId_;\n        emit TokenId(tokenId_, tokenId_);\n    }\n\n    /*\n    @notice The terms will be changed even if the new value is the same as the current one\n    */\n    function setTerms(\n        string memory terms_\n    ) public onlyRole(DEFAULT_ADMIN_ROLE) {\n        terms = terms_;\n        emit Term(terms_, terms_);\n    }\n\n    /*\n    @notice The information will be changed even if the new value is the same as the current one\n    */\n    function setInformation(\n        string memory information_\n    ) public onlyRole(DEFAULT_ADMIN_ROLE) {\n        information = information_;\n        emit Information(information_, information_);\n    }\n\n    /*\n    @notice The call will be reverted if the new value of flag is the same as the current one\n    */\n    function setFlag(uint256 flag_) public onlyRole(DEFAULT_ADMIN_ROLE) {\n        require(flag != flag_, \"Same value\");\n        flag = flag_;\n        emit Flag(flag_);\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/utils/introspection/IERC165Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165Upgradeable {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/token/ERC20/IERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20Upgradeable {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(\n        address from,\n        address to,\n        uint256 amount\n    ) external returns (bool);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/access/AccessControlUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControlUpgradeable.sol\";\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../utils/StringsUpgradeable.sol\";\nimport \"../utils/introspection/ERC165Upgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it.\n */\nabstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {\n    function __AccessControl_init() internal onlyInitializing {\n    }\n\n    function __AccessControl_init_unchained() internal onlyInitializing {\n    }\n    struct RoleData {\n        mapping(address => bool) members;\n        bytes32 adminRole;\n    }\n\n    mapping(bytes32 => RoleData) private _roles;\n\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n    /**\n     * @dev Modifier that checks that an account has a specific role. Reverts\n     * with a standardized message including the required role.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     *\n     * _Available since v4.1._\n     */\n    modifier onlyRole(bytes32 role) {\n        _checkRole(role);\n        _;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\n        return _roles[role].members[account];\n    }\n\n    /**\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\n     *\n     * Format of the revert message is described in {_checkRole}.\n     *\n     * _Available since v4.6._\n     */\n    function _checkRole(bytes32 role) internal view virtual {\n        _checkRole(role, _msgSender());\n    }\n\n    /**\n     * @dev Revert with a standard message if `account` is missing `role`.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     */\n    function _checkRole(bytes32 role, address account) internal view virtual {\n        if (!hasRole(role, account)) {\n            revert(\n                string(\n                    abi.encodePacked(\n                        \"AccessControl: account \",\n                        StringsUpgradeable.toHexString(account),\n                        \" is missing role \",\n                        StringsUpgradeable.toHexString(uint256(role), 32)\n                    )\n                )\n            );\n        }\n    }\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\n        return _roles[role].adminRole;\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function renounceRole(bytes32 role, address account) public virtual override {\n        require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event. Note that unlike {grantRole}, this function doesn't perform any\n     * checks on the calling account.\n     *\n     * May emit a {RoleGranted} event.\n     *\n     * [WARNING]\n     * ====\n     * This function should only be called from the constructor when setting\n     * up the initial roles for the system.\n     *\n     * Using this function in any other way is effectively circumventing the admin\n     * system imposed by {AccessControl}.\n     * ====\n     *\n     * NOTE: This function is deprecated in favor of {_grantRole}.\n     */\n    function _setupRole(bytes32 role, address account) internal virtual {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Sets `adminRole` as ``role``'s admin role.\n     *\n     * Emits a {RoleAdminChanged} event.\n     */\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n        bytes32 previousAdminRole = getRoleAdmin(role);\n        _roles[role].adminRole = adminRole;\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function _grantRole(bytes32 role, address account) internal virtual {\n        if (!hasRole(role, account)) {\n            _roles[role].members[account] = true;\n            emit RoleGranted(role, account, _msgSender());\n        }\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual {\n        if (hasRole(role, account)) {\n            _roles[role].members[account] = false;\n            emit RoleRevoked(role, account, _msgSender());\n        }\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n    /**\n     * @dev Emitted when the pause is triggered by `account`.\n     */\n    event Paused(address account);\n\n    /**\n     * @dev Emitted when the pause is lifted by `account`.\n     */\n    event Unpaused(address account);\n\n    bool private _paused;\n\n    /**\n     * @dev Initializes the contract in unpaused state.\n     */\n    function __Pausable_init() internal onlyInitializing {\n        __Pausable_init_unchained();\n    }\n\n    function __Pausable_init_unchained() internal onlyInitializing {\n        _paused = false;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is not paused.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    modifier whenNotPaused() {\n        _requireNotPaused();\n        _;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is paused.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    modifier whenPaused() {\n        _requirePaused();\n        _;\n    }\n\n    /**\n     * @dev Returns true if the contract is paused, and false otherwise.\n     */\n    function paused() public view virtual returns (bool) {\n        return _paused;\n    }\n\n    /**\n     * @dev Throws if the contract is paused.\n     */\n    function _requireNotPaused() internal view virtual {\n        require(!paused(), \"Pausable: paused\");\n    }\n\n    /**\n     * @dev Throws if the contract is not paused.\n     */\n    function _requirePaused() internal view virtual {\n        require(paused(), \"Pausable: not paused\");\n    }\n\n    /**\n     * @dev Triggers stopped state.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    function _pause() internal virtual whenNotPaused {\n        _paused = true;\n        emit Paused(_msgSender());\n    }\n\n    /**\n     * @dev Returns to normal state.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    function _unpause() internal virtual whenPaused {\n        _paused = false;\n        emit Unpaused(_msgSender());\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../interfaces/draft-IERC1822Upgradeable.sol\";\nimport \"../ERC1967/ERC1967UpgradeUpgradeable.sol\";\nimport \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n *\n * _Available since v4.1._\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\n    function __UUPSUpgradeable_init() internal onlyInitializing {\n    }\n\n    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n    }\n    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\n    address private immutable __self = address(this);\n\n    /**\n     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\n     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\n     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\n     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n     * fail.\n     */\n    modifier onlyProxy() {\n        require(address(this) != __self, \"Function must be called through delegatecall\");\n        require(_getImplementation() == __self, \"Function must be called through active proxy\");\n        _;\n    }\n\n    /**\n     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n     * callable on the implementing contract but not through proxies.\n     */\n    modifier notDelegated() {\n        require(address(this) == __self, \"UUPSUpgradeable: must not be called through delegatecall\");\n        _;\n    }\n\n    /**\n     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\n     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n     */\n    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\n        return _IMPLEMENTATION_SLOT;\n    }\n\n    /**\n     * @dev Upgrade the implementation of the proxy to `newImplementation`.\n     *\n     * Calls {_authorizeUpgrade}.\n     *\n     * Emits an {Upgraded} event.\n     */\n    function upgradeTo(address newImplementation) external virtual onlyProxy {\n        _authorizeUpgrade(newImplementation);\n        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\n    }\n\n    /**\n     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\n     * encoded in `data`.\n     *\n     * Calls {_authorizeUpgrade}.\n     *\n     * Emits an {Upgraded} event.\n     */\n    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\n        _authorizeUpgrade(newImplementation);\n        _upgradeToAndCallUUPS(newImplementation, data, true);\n    }\n\n    /**\n     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n     * {upgradeTo} and {upgradeToAndCall}.\n     *\n     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\n     *\n     * ```solidity\n     * function _authorizeUpgrade(address) internal override onlyOwner {}\n     * ```\n     */\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/modules/security/AuthorizationModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../openzeppelin-contracts-upgradeable/contracts/access/AccessControlUpgradeable.sol\";\nimport \"../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\n\nabstract contract AuthorizationModule is AccessControlUpgradeable {\n    // EnforcementModule\n    bytes32 public constant ENFORCER_ROLE = keccak256(\"ENFORCER_ROLE\");\n    // MintModule\n    bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n    // PauseModule\n    bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n    // SnapshotModule\n    bytes32 public constant SNAPSHOOTER_ROLE = keccak256(\"SNAPSHOOTER_ROLE\");\n    // DebtModule\n    bytes32 public constant DEBT_ROLE = keccak256(\"DEBT_ROLE\");\n    // CreditEvents\n    bytes32 public constant DEBT_CREDIT_EVENT_ROLE =\n        keccak256(\"DEBT_CREDIT_EVENT_ROLE\");\n\n    function __AuthorizationModule_init(\n        address admin\n    ) internal onlyInitializing {\n        /* OpenZeppelin */\n        __Context_init_unchained();\n        // AccessControlUpgradeable inherits from ERC165Upgradeable\n        __ERC165_init_unchained();\n        __AccessControl_init_unchained();\n\n        /* own function */\n        __AuthorizationModule_init_unchained(admin);\n    }\n\n    /**\n     * @dev Grants the different roles to the\n     * account that deploys the contract.\n     *\n     */\n    function __AuthorizationModule_init_unchained(\n        address admin\n    ) internal onlyInitializing {\n        require(admin != address(0), \"Address 0 not allowed\");\n        _grantRole(DEFAULT_ADMIN_ROLE, admin);\n    }\n\n    /*\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(\n        bytes32 role,\n        address account\n    ) public view virtual override returns (bool) {\n        // The Default Admin has all roles\n        if (AccessControlUpgradeable.hasRole(DEFAULT_ADMIN_ROLE, account)) {\n            return true;\n        }\n        return AccessControlUpgradeable.hasRole(role, account);\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/interfaces/IRule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.0;\n\nimport \"../interfaces/IEIP1404/IEIP1404Wrapper.sol\";\n\ninterface IRule is IEIP1404Wrapper {\n    /**\n     * @dev Returns true if the restriction code exists, and false otherwise.\n     */\n    function canReturnTransferRestrictionCode(\n        uint8 _restrictionCode\n    ) external view returns (bool);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/token/ERC20/extensions/IERC20MetadataUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20Upgradeable.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},{"file_path":"project:/contracts/modules/security/OnlyDelegateCallModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\n/**\n@dev When a contract is deployed with a proxy, insure that some functions (e.g. delegatecall and selfdestruct) can only be triggered through proxies \nand not on the implementation contract itself.\n*/\nabstract contract OnlyDelegateCallModule {\n    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\n    address private immutable self = address(this);\n\n    function checkDelegateCall() private view {\n        require(\n            address(this) != self,\n            \"Direct call to the implementation not allowed\"\n        );\n    }\n\n    modifier onlyDelegateCall(bool deployedWithProxy) {\n        if (deployedWithProxy) {\n            checkDelegateCall();\n        }\n        _;\n    }\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/utils/introspection/ERC165Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165Upgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {\n    function __ERC165_init() internal onlyInitializing {\n    }\n\n    function __ERC165_init_unchained() internal onlyInitializing {\n    }\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IERC165Upgradeable).interfaceId;\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/modules/wrapper/mandatory/RuleEngineModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\nimport \"../../../interfaces/IRuleEngine.sol\";\n\nabstract contract RuleEngineModule is Initializable, AuthorizationModule {\n    IRuleEngine public ruleEngine;\n\n    event RuleEngine(address indexed newRuleEngine);\n\n    error RuleEngineTransferRestricted(string message);\n\n    function __RuleEngineModule_init(\n        address ruleEngine_\n    ) internal onlyInitializing {\n        if (ruleEngine_ != address(0)) {\n            ruleEngine = IRuleEngine(ruleEngine_);\n        }\n    }\n\n    function _setRuleEngine(address newRuleEngine) internal {\n        ruleEngine = IRuleEngine(newRuleEngine);\n        emit RuleEngine(newRuleEngine);\n    }\n\n    function _validateTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal view virtual returns (bool) {\n        if (address(ruleEngine) == address(0)) {\n            return true;\n        }\n        if (!ruleEngine.validateTransfer(from, to, amount)) {\n            uint8 restrictionCode = ruleEngine.detectTransferRestriction(\n                from,\n                to,\n                amount\n            );\n            revert RuleEngineTransferRestricted(\n                ruleEngine.messageForTransferRestriction(restrictionCode)\n            );\n        }\n        return true;\n    }\n\n    uint256[49] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/utils/StorageSlotUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```\n * contract ERC1967 {\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\n */\nlibrary StorageSlotUpgradeable {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n}\n"},{"file_path":"project:/contracts/modules/wrapper/optional/ValidationModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\nimport \"../../internal/ValidationModuleInternal.sol\";\nimport \"../mandatory/PauseModule.sol\";\nimport \"../mandatory/EnforcementModule.sol\";\nimport \"../../../interfaces/IEIP1404/IEIP1404Wrapper.sol\";\n\n/**\n * @dev Validation module.\n *\n * Useful for to restrict and validate transfers\n */\nabstract contract ValidationModule is\n    ValidationModuleInternal,\n    PauseModule,\n    EnforcementModule,\n    IEIP1404Wrapper\n{\n    string constant TEXT_TRANSFER_OK = \"No restriction\";\n    string constant TEXT_UNKNOWN_CODE = \"Unknown code\";\n\n    function __ValidationModule_init(\n        address ruleEngine_,\n        address admin\n    ) internal onlyInitializing {\n        /* OpenZeppelin */\n        __Context_init_unchained();\n        // AccessControlUpgradeable inherits from ERC165Upgradeable\n        __ERC165_init_unchained();\n        __AccessControl_init_unchained();\n        __Pausable_init_unchained();\n\n        /* CMTAT modules */\n        // Internal\n        __ValidationModuleInternal_init(ruleEngine_);\n\n        // Security\n        __AuthorizationModule_init_unchained(admin);\n\n        // Wrapper\n        __PauseModule_init_unchained();\n        __EnforcementModule_init_unchained();\n\n        // own function\n        __ValidationModule_init_unchained();\n    }\n\n    function __ValidationModule_init_unchained() internal onlyInitializing {\n        // no variable to initialize\n    }\n\n    /*\n    @notice set a RuleEngine\n    @param ruleEngine_ the call will be reverted if the new value of ruleEngine is the same as the current one\n    */\n    function setRuleEngine(\n        IEIP1404Wrapper ruleEngine_\n    ) external onlyRole(DEFAULT_ADMIN_ROLE) {\n        require(address(ruleEngine) != address(ruleEngine_), \"Same value\");\n        _setRuleEngine(address(ruleEngine_));\n    }\n\n    /**\n     * @dev ERC1404 check if _value token can be transferred from _from to _to\n     * @param from address The address which you want to send tokens from\n     * @param to address The address which you want to transfer to\n     * @param amount uint256 the amount of tokens to be transferred\n     * @return code of the rejection reason\n     */\n    function detectTransferRestriction(\n        address from,\n        address to,\n        uint256 amount\n    ) public view override returns (uint8 code) {\n        if (paused()) {\n            return uint8(REJECTED_CODE_BASE.TRANSFER_REJECTED_PAUSED);\n        } else if (frozen(from)) {\n            return uint8(REJECTED_CODE_BASE.TRANSFER_REJECTED_FROM_FROZEN);\n        } else if (frozen(to)) {\n            return uint8(REJECTED_CODE_BASE.TRANSFER_REJECTED_TO_FROZEN);\n        } else if (address(ruleEngine) != address(0)) {\n            return _detectTransferRestriction(from, to, amount);\n        } else {\n            return uint8(REJECTED_CODE_BASE.TRANSFER_OK);\n        }\n    }\n\n    /**\n     * @dev ERC1404 returns the human readable explaination corresponding to the error code returned by detectTransferRestriction\n     * @param restrictionCode The error code returned by detectTransferRestriction\n     * @return message The human readable explaination corresponding to the error code returned by detectTransferRestriction\n     */\n    function messageForTransferRestriction(\n        uint8 restrictionCode\n    ) external view override returns (string memory message) {\n        if (restrictionCode == uint8(REJECTED_CODE_BASE.TRANSFER_OK)) {\n            return TEXT_TRANSFER_OK;\n        } else if (\n            restrictionCode ==\n            uint8(REJECTED_CODE_BASE.TRANSFER_REJECTED_PAUSED)\n        ) {\n            return TEXT_TRANSFER_REJECTED_PAUSED;\n        } else if (\n            restrictionCode ==\n            uint8(REJECTED_CODE_BASE.TRANSFER_REJECTED_FROM_FROZEN)\n        ) {\n            return TEXT_TRANSFER_REJECTED_FROM_FROZEN;\n        } else if (\n            restrictionCode ==\n            uint8(REJECTED_CODE_BASE.TRANSFER_REJECTED_TO_FROZEN)\n        ) {\n            return TEXT_TRANSFER_REJECTED_TO_FROZEN;\n        } else if (address(ruleEngine) != address(0)) {\n            return _messageForTransferRestriction(restrictionCode);\n        } else {\n            return TEXT_UNKNOWN_CODE;\n        }\n    }\n\n    function validateTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) public view override returns (bool) {\n        if (paused() || frozen(from) || frozen(to)) {\n            return false;\n        }\n        if (address(ruleEngine) != address(0)) {\n            return _validateTransfer(from, to, amount);\n        }\n        return true;\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/modules/wrapper/mandatory/EnforcementModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol\";\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\nimport \"../../internal/EnforcementModuleInternal.sol\";\n\n/**\n * @dev Enforcement module.\n *\n * Allows the issuer to freeze transfers from a given address\n */\nabstract contract EnforcementModule is\n    EnforcementModuleInternal,\n    AuthorizationModule\n{\n    string internal constant TEXT_TRANSFER_REJECTED_FROM_FROZEN =\n        \"The address FROM is frozen\";\n\n    string internal constant TEXT_TRANSFER_REJECTED_TO_FROZEN =\n        \"The address TO is frozen\";\n\n    function __EnforcementModule_init(address admin) internal onlyInitializing {\n        /* OpenZeppelin */\n        __Context_init_unchained();\n        // AccessControlUpgradeable inherits from ERC165Upgradeable\n        __ERC165_init_unchained();\n        // AuthorizationModule inherits from AccessControlUpgradeable\n        __AccessControl_init_unchained();\n\n        /* CMTAT modules */\n        // Internal\n        __Enforcement_init_unchained();\n\n        // Security\n        __AuthorizationModule_init_unchained(admin);\n\n        // own function\n        __EnforcementModule_init_unchained();\n    }\n\n    function __EnforcementModule_init_unchained() internal onlyInitializing {\n        // no variable to initialize\n    }\n\n    /**\n     * @notice Freezes an address.\n     * @param account the account to freeze\n     * @param reason indicate why the account was frozen.\n     */\n    function freeze(\n        address account,\n        string memory reason\n    ) public onlyRole(ENFORCER_ROLE) returns (bool) {\n        return _freeze(account, reason);\n    }\n\n    /**\n     * @notice Unfreezes an address.\n     * @param account the account to unfreeze\n     * @param reason indicate why the account was unfrozen.\n     *\n     *\n     */\n    function unfreeze(\n        address account,\n        string memory reason\n    ) public onlyRole(ENFORCER_ROLE) returns (bool) {\n        return _unfreeze(account, reason);\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/modules/wrapper/mandatory/MintModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/token/ERC20/ERC20Upgradeable.sol\";\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\nimport \"../custom/NAVModule.sol\";\nimport \"./RuleEngineModule.sol\";\n\nabstract contract MintModule is\n    ERC20Upgradeable,\n    AuthorizationModule,\n    RuleEngineModule,\n    NAVModule\n{\n    event Mint(\n        address indexed beneficiary,\n        uint256 amount,\n        uint256 nav,\n        string currencyNAV\n    );\n\n    // Add these error definitions at the top of the contract\n    error CMTAT_MintModule_ZeroNAV();\n    error CMTAT_MintModule_EmptyAccounts();\n    error CMTAT_MintModule_AccountsValueslengthMismatch();\n    error CMTAT_MintModule_TransferRestricted(string message);\n\n    function __MintModule_init(\n        string memory name_,\n        string memory symbol_,\n        address admin,\n        address ruleEngine_,\n        string memory currencyNAV_\n    ) internal onlyInitializing {\n        /* OpenZeppelin */\n        __Context_init_unchained();\n        __ERC20_init_unchained(name_, symbol_);\n        // AccessControlUpgradeable inherits from ERC165Upgradeable\n        __ERC165_init_unchained();\n        // AuthorizationModule inherits from AccessControlUpgradeable\n        __AccessControl_init_unchained();\n\n        /* CMTAT modules */\n        // Security\n        __AuthorizationModule_init_unchained(admin);\n\n        // NAV Module\n        __NAVModule_init_unchained(currencyNAV_);\n        // own function\n        __MintModule_init_unchained();\n\n        // set ruleEngine instance\n        if (ruleEngine_ != address(0)) {\n            ruleEngine = IRuleEngine(ruleEngine_);\n        }\n    }\n\n    function __MintModule_init_unchained() internal onlyInitializing {\n        // no variable to initialize\n    }\n\n    function _validateMint(address to, uint256 amount) internal view {\n        _validateTransfer(address(0), to, amount);\n    }\n\n    /**\n     * @dev Creates `amount` new tokens for `to` with associated NAV.\n     * If there's no NAV set for the current epoch, it will set the provided NAV.\n     * @param to The address that will receive the minted tokens\n     * @param amount The amount of tokens to mint\n     * @param NAV The NAV value to use if no NAV is set for the current epoch (scaled by 1e18)\n     */\n    function mint(\n        address to,\n        uint256 amount,\n        uint256 NAV\n    ) public onlyRole(MINTER_ROLE) {\n        if (NAV == 0) {\n            revert CMTAT_MintModule_ZeroNAV();\n        }\n        _validateMint(to, amount);\n        // set NAV if it hasn't been set for this epoch yet, or if it has changed for the same epoch\n        if (\n            _epochToNAV[currentEpoch] == 0 || _epochToNAV[currentEpoch] != NAV\n        ) {\n            setLatestNAV(NAV);\n        }\n\n        _mint(to, amount);\n        emit Mint(to, amount, NAV, currencyNAV);\n    }\n\n    /**\n     *\n     * @notice batch version of {mint}\n     * @dev\n     * See {OpenZeppelin ERC20-_mint} and {OpenZeppelin ERC1155_mintBatch}.\n     *\n     * For each mint action:\n     * - Emits a {Mint} event.\n     * - Emits a {Transfer} event with `from` set to the zero address (emits inside _mint).\n     *\n     * Requirements:\n     * - `accounts` and `values` must have the same length\n     * - `accounts` cannot contain a zero address (check made by _mint).\n     * - the caller must have the `MINTER_ROLE`.\n     */\n    function mintBatch(\n        address[] calldata accounts,\n        uint256[] calldata values,\n        uint256 NAV\n    ) public onlyRole(MINTER_ROLE) {\n        if (NAV == 0) {\n            revert CMTAT_MintModule_ZeroNAV();\n        }\n        if (accounts.length == 0) {\n            revert CMTAT_MintModule_EmptyAccounts();\n        }\n        if (accounts.length != values.length) {\n            revert CMTAT_MintModule_AccountsValueslengthMismatch();\n        }\n\n        // set NAV if it hasn't been set for this epoch yet, or if it has changed for the same epoch\n        if (\n            _epochToNAV[currentEpoch] == 0 || _epochToNAV[currentEpoch] != NAV\n        ) {\n            setLatestNAV(NAV);\n        }\n\n        // No need of unchecked block since Soliditiy 0.8.22\n        for (uint256 i = 0; i < accounts.length; ++i) {\n            _validateMint(accounts[i], values[i]);\n            _mint(accounts[i], values[i]);\n            emit Mint(accounts[i], values[i], NAV, currencyNAV);\n        }\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/token/ERC20/ERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20Upgradeable.sol\";\nimport \"./extensions/IERC20MetadataUpgradeable.sol\";\nimport \"../../utils/ContextUpgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\n    mapping(address => uint256) private _balances;\n\n    mapping(address => mapping(address => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * The default value of {decimals} is 18. To select a different value for\n     * {decimals} you should overload it.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\n     */\n    function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\n        __ERC20_init_unchained(name_, symbol_);\n    }\n\n    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual override returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual override returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the value {ERC20} uses, unless this function is\n     * overridden;\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual override returns (uint8) {\n        return 18;\n    }\n\n    /**\n     * @dev See {IERC20-totalSupply}.\n     */\n    function totalSupply() public view virtual override returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See {IERC20-balanceOf}.\n     */\n    function balanceOf(address account) public view virtual override returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address to, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-allowance}.\n     */\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Emits an {Approval} event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of {ERC20}.\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(\n        address from,\n        address to,\n        uint256 amount\n    ) public virtual override returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, amount);\n        _transfer(from, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, allowance(owner, spender) + addedValue);\n        return true;\n    }\n\n    /**\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `spender` must have allowance for the caller of at least\n     * `subtractedValue`.\n     */\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        uint256 currentAllowance = allowance(owner, spender);\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n        unchecked {\n            _approve(owner, spender, currentAllowance - subtractedValue);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Moves `amount` of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     */\n    function _transfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual {\n        require(from != address(0), \"ERC20: transfer from the zero address\");\n        require(to != address(0), \"ERC20: transfer to the zero address\");\n\n        _beforeTokenTransfer(from, to, amount);\n\n        uint256 fromBalance = _balances[from];\n        require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n        unchecked {\n            _balances[from] = fromBalance - amount;\n            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n            // decrementing then incrementing.\n            _balances[to] += amount;\n        }\n\n        emit Transfer(from, to, amount);\n\n        _afterTokenTransfer(from, to, amount);\n    }\n\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n     * the total supply.\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     */\n    function _mint(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: mint to the zero address\");\n\n        _beforeTokenTransfer(address(0), account, amount);\n\n        _totalSupply += amount;\n        unchecked {\n            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n            _balances[account] += amount;\n        }\n        emit Transfer(address(0), account, amount);\n\n        _afterTokenTransfer(address(0), account, amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account`, reducing the\n     * total supply.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     * - `account` must have at least `amount` tokens.\n     */\n    function _burn(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: burn from the zero address\");\n\n        _beforeTokenTransfer(account, address(0), amount);\n\n        uint256 accountBalance = _balances[account];\n        require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n        unchecked {\n            _balances[account] = accountBalance - amount;\n            // Overflow not possible: amount <= accountBalance <= totalSupply.\n            _totalSupply -= amount;\n        }\n\n        emit Transfer(account, address(0), amount);\n\n        _afterTokenTransfer(account, address(0), amount);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     */\n    function _approve(\n        address owner,\n        address spender,\n        uint256 amount\n    ) internal virtual {\n        require(owner != address(0), \"ERC20: approve from the zero address\");\n        require(spender != address(0), \"ERC20: approve to the zero address\");\n\n        _allowances[owner][spender] = amount;\n        emit Approval(owner, spender, amount);\n    }\n\n    /**\n     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n     *\n     * Does not update the allowance amount in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Might emit an {Approval} event.\n     */\n    function _spendAllowance(\n        address owner,\n        address spender,\n        uint256 amount\n    ) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\n    }\n\n    /**\n     * @dev Hook that is called before any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * will be transferred to `to`.\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _beforeTokenTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual {}\n\n    /**\n     * @dev Hook that is called after any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * has been transferred to `to`.\n     * - when `from` is zero, `amount` tokens have been minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _afterTokenTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual {}\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[45] private __gap;\n}\n"},{"file_path":"project:/contracts/modules/internal/EnforcementModuleInternal.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol\";\nimport \"../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../../openzeppelin-contracts-upgradeable/contracts/token/ERC20/ERC20Upgradeable.sol\";\n\n/**\n * @dev Enforcement module.\n *\n * Allows the issuer to freeze transfers from a given address\n */\nabstract contract EnforcementModuleInternal is\n    Initializable,\n    ContextUpgradeable\n{\n    /**\n     * @notice Emitted when an address is frozen.\n     */\n    event Freeze(\n        address indexed enforcer,\n        address indexed owner,\n        string indexed reasonIndexed,\n        string reason\n    );\n\n    /**\n     * @notice Emitted when an address is unfrozen.\n     */\n    event Unfreeze(\n        address indexed enforcer,\n        address indexed owner,\n        string indexed reasonIndexed,\n        string reason\n    );\n\n    mapping(address => bool) private _frozen;\n\n    /**\n     * @dev Initializes the contract\n     */\n    function __Enforcement_init() internal onlyInitializing {\n        __Context_init_unchained();\n        __Enforcement_init_unchained();\n    }\n\n    function __Enforcement_init_unchained() internal onlyInitializing {\n        // no variable to initialize\n    }\n\n    /**\n     * @dev Returns true if the account is frozen, and false otherwise.\n     */\n    function frozen(address account) public view virtual returns (bool) {\n        return _frozen[account];\n    }\n\n    /**\n     * @dev Freezes an address.\n     * @param account the account to freeze\n     * @param reason indicate why the account was frozen.\n     *\n     */\n    function _freeze(\n        address account,\n        string memory reason\n    ) internal virtual returns (bool) {\n        if (_frozen[account]) return false;\n        _frozen[account] = true;\n        emit Freeze(_msgSender(), account, reason, reason);\n        return true;\n    }\n\n    /**\n     * @dev Unfreezes an address.\n     * @param account the account to unfreeze\n     * @param reason indicate why the account was unfrozen.\n     */\n    function _unfreeze(\n        address account,\n        string memory reason\n    ) internal virtual returns (bool) {\n        if (!_frozen[account]) return false;\n        _frozen[account] = false;\n        emit Unfreeze(_msgSender(), account, reason, reason);\n\n        return true;\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n    /**\n     * @dev Indicates that the contract has been initialized.\n     * @custom:oz-retyped-from bool\n     */\n    uint8 private _initialized;\n\n    /**\n     * @dev Indicates that the contract is in the process of being initialized.\n     */\n    bool private _initializing;\n\n    /**\n     * @dev Triggered when the contract has been initialized or reinitialized.\n     */\n    event Initialized(uint8 version);\n\n    /**\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n     * `onlyInitializing` functions can be used to initialize parent contracts.\n     *\n     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n     * constructor.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier initializer() {\n        bool isTopLevelCall = !_initializing;\n        require(\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n            \"Initializable: contract is already initialized\"\n        );\n        _initialized = 1;\n        if (isTopLevelCall) {\n            _initializing = true;\n        }\n        _;\n        if (isTopLevelCall) {\n            _initializing = false;\n            emit Initialized(1);\n        }\n    }\n\n    /**\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n     * used to initialize parent contracts.\n     *\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n     * are added through upgrades and that require initialization.\n     *\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\n     *\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n     * a contract, executing them in the right order is up to the developer or operator.\n     *\n     * WARNING: setting the version to 255 will prevent any future reinitialization.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier reinitializer(uint8 version) {\n        require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n        _initialized = version;\n        _initializing = true;\n        _;\n        _initializing = false;\n        emit Initialized(version);\n    }\n\n    /**\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\n     */\n    modifier onlyInitializing() {\n        require(_initializing, \"Initializable: contract is not initializing\");\n        _;\n    }\n\n    /**\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n     * through proxies.\n     *\n     * Emits an {Initialized} event the first time it is successfully executed.\n     */\n    function _disableInitializers() internal virtual {\n        require(!_initializing, \"Initializable: contract is initializing\");\n        if (_initialized < type(uint8).max) {\n            _initialized = type(uint8).max;\n            emit Initialized(type(uint8).max);\n        }\n    }\n\n    /**\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\n     */\n    function _getInitializedVersion() internal view returns (uint8) {\n        return _initialized;\n    }\n\n    /**\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _initializing;\n    }\n}\n"},{"file_path":"project:/contracts/modules/CMTAT_BASE.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\n// required OZ imports here\nimport \"../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol\";\nimport \"../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol\";\n\nimport \"./wrapper/mandatory/BaseModule.sol\";\nimport \"./wrapper/mandatory/BurnModule.sol\";\nimport \"./wrapper/mandatory/MintModule.sol\";\nimport \"./wrapper/mandatory/EnforcementModule.sol\";\nimport \"./wrapper/mandatory/ERC20BaseModule.sol\";\nimport \"./wrapper/mandatory/PauseModule.sol\";\nimport \"./wrapper/optional/ValidationModule.sol\";\nimport \"./security/AuthorizationModule.sol\";\nimport \"../interfaces/IEIP1404/IEIP1404Wrapper.sol\";\nimport \"./internal/ValidationModuleInternal.sol\";\nimport \"./wrapper/mandatory/RuleEngineModule.sol\";\n\nabstract contract CMTAT_BASE is\n    Initializable,\n    ContextUpgradeable,\n    BaseModule,\n    PauseModule,\n    MintModule,\n    BurnModule,\n    EnforcementModule,\n    ValidationModule,\n    ERC20BaseModule,\n    UUPSUpgradeable\n{\n    /**\n    @notice \n    initialize the proxy contract\n    The calls to this function will revert if the contract was deployed without a proxy\n    */\n    function initialize(\n        address admin,\n        string memory nameIrrevocable,\n        string memory symbolIrrevocable,\n        string memory tokenId_,\n        string memory terms_,\n        IEIP1404Wrapper ruleEngine_,\n        string memory information_,\n        uint256 flag_,\n        string memory currencyNAV_\n    ) public initializer {\n        __CMTAT_init(\n            admin,\n            nameIrrevocable,\n            symbolIrrevocable,\n            tokenId_,\n            terms_,\n            address(ruleEngine_),\n            information_,\n            flag_,\n            currencyNAV_\n        );\n    }\n\n    /**\n    @dev calls the different initialize functions from the different modules\n    */\n    function __CMTAT_init(\n        address admin_,\n        string memory name_,\n        string memory symbol_,\n        string memory tokenId_,\n        string memory terms_,\n        address ruleEngine_,\n        string memory information_,\n        uint256 flag_,\n        string memory currencyNAV_\n    ) internal onlyInitializing {\n        __Context_init_unchained();\n        __ERC20_init_unchained(name_, symbol_);\n        __UUPSUpgradeable_init();\n\n        // Initialize modules\n        __AccessControl_init_unchained();\n        __ERC165_init_unchained();\n        __Pausable_init_unchained();\n        __AuthorizationModule_init_unchained(admin_);\n        __ValidationModuleInternal_init(ruleEngine_);\n        __ValidationModule_init(ruleEngine_, admin_);\n        __Base_init_unchained(tokenId_, terms_, information_, flag_);\n        __EnforcementModule_init_unchained();\n        __PauseModule_init_unchained();\n        __BurnModule_init(name_, symbol_, admin_, ruleEngine_, currencyNAV_);\n        __MintModule_init(name_, symbol_, admin_, ruleEngine_, currencyNAV_);\n\n        // Own initialization\n        __CMTAT_init_unchained();\n    }\n\n    function __CMTAT_init_unchained() internal onlyInitializing {\n        // no variable to initialize\n    }\n\n    /**\n     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n     * {upgradeTo} and {upgradeToAndCall}.\n     * \n     * Normally, this function will use an access control modifier such as {Ownable-onlyOwner}.\n     */\n    function _authorizeUpgrade(address newImplementation) internal override onlyRole(DEFAULT_ADMIN_ROLE) {\n        // Only admin can upgrade\n    }\n\n    /**\n    @notice Returns the number of decimals used to get its user representation.\n    */\n    function decimals()\n        public\n        view\n        virtual\n        override(ERC20Upgradeable, ERC20BaseModule)\n        returns (uint8)\n    {\n        return 18;\n    }\n\n    function transferFrom(\n        address sender,\n        address recipient,\n        uint256 amount\n    )\n        public\n        virtual\n        override(ERC20Upgradeable, ERC20BaseModule)\n        returns (bool)\n    {\n        return ERC20BaseModule.transferFrom(sender, recipient, amount);\n    }\n\n    /*\n    @dev \n    SnapshotModule:\n    - override SnapshotModuleInternal if you add the SnapshotModule\n    e.g. override(SnapshotModuleInternal, ERC20Upgradeable)\n    - remove the keyword view\n    */\n    function _beforeTokenTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal view override {\n        require(\n            ValidationModule.validateTransfer(from, to, amount),\n            \"CMTAT: transfer rejected by validation module\"\n        );\n        // We call the SnapshotModule only if the transfer is valid\n        /*\n        SnapshotModule:\n        Add this call in case you add the SnapshotModule\n        SnapshotModuleInternal._beforeTokenTransfer(from, to, amount);\n        */\n    }\n\n    function _validateTransfer(\n        address from,\n        address to,\n        uint256 amount\n    )\n        internal\n        view\n        virtual\n        override(ValidationModuleInternal, RuleEngineModule)\n        returns (bool)\n    {\n        return ValidationModuleInternal._validateTransfer(from, to, amount);\n    }\n}\n"},{"file_path":"project:/contracts/interfaces/IEIP1404/IEIP1404Wrapper.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.0;\n\nimport \"./IEIP1404.sol\";\n\ninterface IEIP1404Wrapper is IEIP1404 {\n    /* \n    @dev leave the code 4-9 free/unused for further additions in your ruleEngine implementation\n    */\n    enum REJECTED_CODE_BASE {\n        TRANSFER_OK,\n        TRANSFER_REJECTED_PAUSED,\n        TRANSFER_REJECTED_FROM_FROZEN,\n        TRANSFER_REJECTED_TO_FROZEN\n    }\n\n    /**\n     * @dev Returns true if the transfer is valid, and false otherwise.\n     */\n    function validateTransfer(\n        address _from,\n        address _to,\n        uint256 _amount\n    ) external view returns (bool isValid);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/access/IAccessControlUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControlUpgradeable {\n    /**\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n     *\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n     * {RoleAdminChanged} not being emitted signaling this.\n     *\n     * _Available since v3.1._\n     */\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n    /**\n     * @dev Emitted when `account` is granted `role`.\n     *\n     * `sender` is the account that originated the contract call, an admin role\n     * bearer except when using {AccessControl-_setupRole}.\n     */\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Emitted when `account` is revoked `role`.\n     *\n     * `sender` is the account that originated the contract call:\n     *   - if using `revokeRole`, it is the admin role bearer\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n     */\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     */\n    function renounceRole(bytes32 role, address account) external;\n}\n"},{"file_path":"project:/contracts/modules/wrapper/mandatory/BurnModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/token/ERC20/ERC20Upgradeable.sol\";\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\nimport \"../custom/NAVModule.sol\";\nimport \"./RuleEngineModule.sol\";\n\n// Add these error definitions at the top of the contract\nerror CMTAT_BurnModule_ZeroNAV();\nerror CMTAT_BurnModule_EmptyAccounts();\nerror CMTAT_BurnModule_AccountsValueslengthMismatch();\nerror CMTAT_BurnModule_TransferRestricted(string message);\n\nabstract contract BurnModule is ERC20Upgradeable, RuleEngineModule, NAVModule {\n    event Burn(\n        address indexed owner,\n        uint256 amount,\n        string reason,\n        uint256 NAV,\n        string currencyNAV\n    );\n\n    function __BurnModule_init(\n        string memory name_,\n        string memory symbol_,\n        address admin,\n        address ruleEngine_,\n        string memory currencyNAV\n    ) internal onlyInitializing {\n        __Context_init_unchained();\n        __ERC20_init_unchained(name_, symbol_);\n        __RuleEngineModule_init(ruleEngine_);\n        __NAVModule_init_unchained(currencyNAV);\n        __AuthorizationModule_init_unchained(admin);\n\n        // Add back the unchained init\n        __BurnModule_init_unchained();\n    }\n\n    function __BurnModule_init_unchained() internal onlyInitializing {\n        // no variable to initialize\n    }\n\n    function _validateBurn(address from, uint256 amount) internal view {\n        _validateTransfer(from, address(0), amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account` with associated NAV.\n     * If there's no NAV set for the current epoch, it will set the provided NAV.\n     * @param account The address from which to burn tokens\n     * @param amount The amount of tokens to burn\n     * @param reason The reason for burning\n     * @param NAV The NAV value to use if no NAV is set for the current epoch (scaled by 1e18)\n     */\n    function burn(\n        address account,\n        uint256 amount,\n        string memory reason,\n        uint256 NAV\n    ) public onlyRole(MINTER_ROLE) {\n        if (NAV == 0) {\n            revert CMTAT_BurnModule_ZeroNAV();\n        }\n        _validateBurn(account, amount);\n\n        // set NAV if it hasn't been set for this epoch yet, or if it has changed for the same epoch\n        if (\n            _epochToNAV[currentEpoch] == 0 || _epochToNAV[currentEpoch] != NAV\n        ) {\n            setLatestNAV(NAV);\n        }\n\n        _burn(account, amount);\n        emit Burn(account, amount, reason, NAV, currencyNAV);\n    }\n\n    uint256[50] private __gap;\n\n    /**\n     *\n     * @notice batch version of {burn}.\n     * @dev\n     * See {ERC20-_burn} and {OpenZeppelin ERC1155_burnBatch}.\n     *\n     * For each burn action:\n     * -Emits a {Burn} event\n     * -Emits a {Transfer} event with `to` set to the zero address  (emits inside _burn).\n     * The burn `reason`is the same for all `accounts` which tokens are burnt.\n     * Requirements:\n     * - `accounts` and `values` must have the same length\n     * - the caller must have the `MINTER_ROLE`.\n     */\n    function burnBatch(\n        address[] calldata accounts,\n        uint256[] calldata values,\n        string calldata reason,\n        uint256 NAV\n    ) public onlyRole(MINTER_ROLE) {\n        if (NAV == 0) {\n            revert CMTAT_BurnModule_ZeroNAV();\n        }\n        if (accounts.length == 0) {\n            revert CMTAT_BurnModule_EmptyAccounts();\n        }\n        // Only set NAV if it hasn't been set for this epoch yet\n        if (_epochToNAV[currentEpoch] == 0) {\n            setLatestNAV(NAV);\n        }\n        if (accounts.length != values.length) {\n            revert CMTAT_BurnModule_AccountsValueslengthMismatch();\n        }\n        // set NAV if it hasn't been set for this epoch yet, or if it has changed for the same epoch\n        if (\n            _epochToNAV[currentEpoch] == 0 || _epochToNAV[currentEpoch] != NAV\n        ) {\n            setLatestNAV(NAV);\n        }\n\n        // No need of unchecked block since Soliditiy 0.8.22\n        for (uint256 i = 0; i < accounts.length; ++i) {\n            _validateBurn(accounts[i], values[i]);\n            _burn(accounts[i], values[i]);\n            emit Burn(accounts[i], values[i], reason, NAV, currencyNAV);\n        }\n    }\n}\n"},{"file_path":"project:/contracts/interfaces/IEIP1404/IEIP1404.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.0;\n\n/*\n@dev Contrary to the EIP-1404, this interface does not inherit from the ERC20 interface\n*/\ninterface IEIP1404 {\n    /**\n     * @dev See ERC/EIP-1404\n     *\n     */\n    function detectTransferRestriction(\n        address _from,\n        address _to,\n        uint256 _amount\n    ) external view returns (uint8);\n\n    /**\n     * @dev See ERC/EIP-1404\n     *\n     */\n    function messageForTransferRestriction(\n        uint8 _restrictionCode\n    ) external view returns (string memory);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/interfaces/draft-IERC1822Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822ProxiableUpgradeable {\n    /**\n     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n     * address.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy.\n     */\n    function proxiableUUID() external view returns (bytes32);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/utils/math/MathUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary MathUpgradeable {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(\n        uint256 x,\n        uint256 y,\n        uint256 denominator\n    ) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1);\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(\n        uint256 x,\n        uint256 y,\n        uint256 denominator,\n        Rounding rounding\n    ) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10**64) {\n                value /= 10**64;\n                result += 64;\n            }\n            if (value >= 10**32) {\n                value /= 10**32;\n                result += 32;\n            }\n            if (value >= 10**16) {\n                value /= 10**16;\n                result += 16;\n            }\n            if (value >= 10**8) {\n                value /= 10**8;\n                result += 8;\n            }\n            if (value >= 10**4) {\n                value /= 10**4;\n                result += 4;\n            }\n            if (value >= 10**2) {\n                value /= 10**2;\n                result += 2;\n            }\n            if (value >= 10**1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\n        }\n    }\n}\n"},{"file_path":"project:/contracts/modules/wrapper/mandatory/ERC20BaseModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\n// required OZ imports here\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/token/ERC20/ERC20Upgradeable.sol\";\n\nabstract contract ERC20BaseModule is ERC20Upgradeable {\n    /* Events */\n    event Spend(address indexed owner, address indexed spender, uint256 amount);\n\n    /* Variables */\n    uint8 private _decimals;\n\n    /* Initializers */\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\n     */\n    function __ERC20Module_init(\n        string memory name_,\n        string memory symbol_,\n        uint8 decimals_\n    ) internal onlyInitializing {\n        /* OpenZeppelin */\n        __Context_init_unchained();\n        __ERC20_init(name_, symbol_);\n\n        /* own function */\n        __ERC20Module_init_unchained(decimals_);\n    }\n\n    function __ERC20Module_init_unchained(\n        uint8 decimals_\n    ) internal onlyInitializing {\n        _decimals = decimals_;\n    }\n\n    /* Methods */\n    /**\n     * @notice Returns the number of decimals used to get its user representation.\n     * @dev\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5,05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the value {ERC20} uses, unless this function is\n     * overridden;\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual override returns (uint8) {\n        return _decimals;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Emits an {Approval} event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of {ERC20}.\n     *\n     * Requirements:\n     *\n     * - `sender` and `recipient` cannot be the zero address.\n     * - `sender` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``sender``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(\n        address sender,\n        address recipient,\n        uint256 amount\n    ) public virtual override returns (bool) {\n        bool result = super.transferFrom(sender, recipient, amount);\n        // The result will be normally always true because OpenZeppelin uses require to check all the conditions.\n        if (result) {\n            emit Spend(sender, _msgSender(), amount);\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(\n        address spender,\n        uint256 amount,\n        uint256 currentAllowance\n    ) public virtual returns (bool) {\n        require(\n            allowance(_msgSender(), spender) == currentAllowance,\n            \"CMTAT: current allowance is not right\"\n        );\n        super.approve(spender, amount);\n        return true;\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/interfaces/IRuleEngine.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.0;\n\nimport \"./IRule.sol\";\nimport \"../interfaces/IEIP1404/IEIP1404Wrapper.sol\";\n\ninterface IRuleEngine is IEIP1404Wrapper {\n    /**\n     * @dev define the rules, the precedent rules will be overwritten\n     */\n    function setRules(IRule[] calldata rules_) external;\n\n    /**\n     * @dev return the number of rules\n     */\n    function rulesCount() external view returns (uint256);\n\n    /**\n     * @dev return the rule at the index specified by ruleId\n     */\n    function rule(uint256 ruleId) external view returns (IRule);\n\n    /**\n     * @dev return all the rules\n     */\n    function rules() external view returns (IRule[] memory);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/utils/AddressUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},{"file_path":"project:/contracts/modules/wrapper/custom/NAVModule.sol","source_code":"// SPDX-License-Identifier: MPL-2.0\npragma solidity ^0.8.17;\n\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\n\n/**\n * @title NAVModule\n * @dev Manages Net Asset Value (NAV) tracking per epoch (24-hour periods)\n */\nabstract contract NAVModule is Initializable, AuthorizationModule {\n    // Events\n    event EpochTransition(uint256 previousEpoch, uint256 currentEpoch);\n    event updatedNAV(\n        uint256 indexed epoch,\n        uint256 previousNAV,\n        uint256 newNAV\n    );\n\n    // State variables\n    uint256 public currentEpoch;\n    uint256 public latestNAV; \n    uint256 private _currentEpochStartTimestamp;\n    uint256 private constant _epochDuration = 86400;\n    uint256 public constant NAVScalingFactor = 10_000; // 1e4 scaling factor for NAV values\n    string public currencyNAV;\n\n    // Mapping to store NAV for each epoch\n    mapping(uint256 => uint256) internal _epochToNAV;\n\n    /**\n     * @dev Initializes the NAV module\n     */\n\n    function __NAVModule_init_unchained(\n        string memory currency\n    ) internal onlyInitializing {\n        // Initialize first epoch\n        _currentEpochStartTimestamp = (block.timestamp / 86400) * 86400 + 21600; // 06:00 UTC\n        if (block.timestamp % 86400 < 21600) {\n            _currentEpochStartTimestamp -= 86400;\n        }\n        currentEpoch = 0;\n        currencyNAV = currency;\n    }\n\n    /**\n     * @dev Sets the NAV for the current epoch and fills any missing previous epochs\n     * @param NAVValue The NAV value to set (scaled by 1e4)\n     */\n    function setLatestNAV(uint256 NAVValue) public onlyRole(MINTER_ROLE) {\n        _transitionEpoch();\n        _updateNAV(currentEpoch, NAVValue);\n    }\n\n    /**\n     * @dev Sets the NAV for a specific epoch\n     * @param epoch The epoch to set the NAV for\n     * @param NAVValue The NAV value to set (scaled by 1e4)\n     */\n    function setNAV(\n        uint256 epoch,\n        uint256 NAVValue\n    ) external onlyRole(MINTER_ROLE) {\n        require(epoch <= currentEpoch, \"NAV: Cannot set future epoch\");\n        uint256 previousNAV = _epochToNAV[epoch];\n        _epochToNAV[epoch] = NAVValue;\n        emit updatedNAV(epoch, previousNAV, NAVValue);\n    }\n\n    /**\n     * @dev Returns the NAV for a specific epoch\n     * @param epoch The epoch to query\n     * @return The NAV value for the specified epoch\n     */\n    function getNAV(uint256 epoch) public view returns (uint256) {\n        return _epochToNAV[epoch];\n    }\n\n    /**\n     * @dev Internal function to handle epoch transitions\n     */\n    function _transitionEpoch() internal {\n        uint256 timeSinceEpochStart = block.timestamp -\n            _currentEpochStartTimestamp;\n        uint256 epochDifference = timeSinceEpochStart / _epochDuration;\n\n        if (epochDifference > 0) {\n            uint256 prevEpoch = currentEpoch;\n            currentEpoch += epochDifference;\n            _currentEpochStartTimestamp += epochDifference * _epochDuration;\n\n            // Align to 06:00 UTC\n            uint256 targetCutoff = (_currentEpochStartTimestamp / 86400) *\n                86400 +\n                21600;\n            if (_currentEpochStartTimestamp % 86400 < 21600) {\n                targetCutoff -= 86400;\n            }\n            _currentEpochStartTimestamp = targetCutoff;\n\n            emit EpochTransition(prevEpoch, currentEpoch);\n        }\n    }\n\n    function _updateNAV(uint256 epoch, uint256 NAVValue) internal {\n        uint256 previousNAV = _epochToNAV[epoch];\n        \n        // Fill in missing NAV values for skipped epochs\n        if (epoch > 0) {\n            uint256 maxSteps = 15; // Maximum number of days to look back\n            \n            // Look back up to 15 epochs to find the last known NAV\n            for (uint256 i = 1; i <= maxSteps && (epoch - i) > 0; i++) {\n                uint256 checkEpoch = epoch - i;\n                if (_epochToNAV[checkEpoch] > 0) {\n                    break;\n                }\n                // Fill in the gap with the new NAV value\n                _epochToNAV[checkEpoch] = NAVValue;\n                emit updatedNAV(checkEpoch, 0, NAVValue);\n            }\n        }\n        \n        // Set the current epoch's NAV\n        _epochToNAV[epoch] = NAVValue;\n        emit updatedNAV(epoch, previousNAV, NAVValue);\n\n        // Update latestNAV if we're setting the current epoch\n        if (epoch == currentEpoch) {\n            latestNAV = NAVValue;\n        }\n    }\n\n    uint256[48] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/proxy/beacon/IBeaconUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\n */\ninterface IBeaconUpgradeable {\n    /**\n     * @dev Must return an address that can be used as a delegate call target.\n     *\n     * {BeaconProxy} will check that this address is a contract.\n     */\n    function implementation() external view returns (address);\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../beacon/IBeaconUpgradeable.sol\";\nimport \"../../interfaces/draft-IERC1822Upgradeable.sol\";\nimport \"../../utils/AddressUpgradeable.sol\";\nimport \"../../utils/StorageSlotUpgradeable.sol\";\nimport \"../utils/Initializable.sol\";\n\n/**\n * @dev This abstract contract provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\n *\n * _Available since v4.1._\n *\n * @custom:oz-upgrades-unsafe-allow delegatecall\n */\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\n    function __ERC1967Upgrade_init() internal onlyInitializing {\n    }\n\n    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\n    }\n    // This is the keccak-256 hash of \"eip1967.proxy.rollback\" subtracted by 1\n    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\n\n    /**\n     * @dev Storage slot with the address of the current implementation.\n     * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\n     * validated in the constructor.\n     */\n    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /**\n     * @dev Emitted when the implementation is upgraded.\n     */\n    event Upgraded(address indexed implementation);\n\n    /**\n     * @dev Returns the current implementation address.\n     */\n    function _getImplementation() internal view returns (address) {\n        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the EIP1967 implementation slot.\n     */\n    function _setImplementation(address newImplementation) private {\n        require(AddressUpgradeable.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n    }\n\n    /**\n     * @dev Perform implementation upgrade\n     *\n     * Emits an {Upgraded} event.\n     */\n    function _upgradeTo(address newImplementation) internal {\n        _setImplementation(newImplementation);\n        emit Upgraded(newImplementation);\n    }\n\n    /**\n     * @dev Perform implementation upgrade with additional setup call.\n     *\n     * Emits an {Upgraded} event.\n     */\n    function _upgradeToAndCall(\n        address newImplementation,\n        bytes memory data,\n        bool forceCall\n    ) internal {\n        _upgradeTo(newImplementation);\n        if (data.length > 0 || forceCall) {\n            _functionDelegateCall(newImplementation, data);\n        }\n    }\n\n    /**\n     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\n     *\n     * Emits an {Upgraded} event.\n     */\n    function _upgradeToAndCallUUPS(\n        address newImplementation,\n        bytes memory data,\n        bool forceCall\n    ) internal {\n        // Upgrades from old implementations will perform a rollback test. This test requires the new\n        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\n        // this special case will break upgrade paths from old UUPS implementation to new ones.\n        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\n            _setImplementation(newImplementation);\n        } else {\n            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n                require(slot == _IMPLEMENTATION_SLOT, \"ERC1967Upgrade: unsupported proxiableUUID\");\n            } catch {\n                revert(\"ERC1967Upgrade: new implementation is not UUPS\");\n            }\n            _upgradeToAndCall(newImplementation, data, forceCall);\n        }\n    }\n\n    /**\n     * @dev Storage slot with the admin of the contract.\n     * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1, and is\n     * validated in the constructor.\n     */\n    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n    /**\n     * @dev Emitted when the admin account has changed.\n     */\n    event AdminChanged(address previousAdmin, address newAdmin);\n\n    /**\n     * @dev Returns the current admin.\n     */\n    function _getAdmin() internal view returns (address) {\n        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the EIP1967 admin slot.\n     */\n    function _setAdmin(address newAdmin) private {\n        require(newAdmin != address(0), \"ERC1967: new admin is the zero address\");\n        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\n    }\n\n    /**\n     * @dev Changes the admin of the proxy.\n     *\n     * Emits an {AdminChanged} event.\n     */\n    function _changeAdmin(address newAdmin) internal {\n        emit AdminChanged(_getAdmin(), newAdmin);\n        _setAdmin(newAdmin);\n    }\n\n    /**\n     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\n     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\n     */\n    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n    /**\n     * @dev Emitted when the beacon is upgraded.\n     */\n    event BeaconUpgraded(address indexed beacon);\n\n    /**\n     * @dev Returns the current beacon.\n     */\n    function _getBeacon() internal view returns (address) {\n        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new beacon in the EIP1967 beacon slot.\n     */\n    function _setBeacon(address newBeacon) private {\n        require(AddressUpgradeable.isContract(newBeacon), \"ERC1967: new beacon is not a contract\");\n        require(\n            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\n            \"ERC1967: beacon implementation is not a contract\"\n        );\n        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\n    }\n\n    /**\n     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\n     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\n     *\n     * Emits a {BeaconUpgraded} event.\n     */\n    function _upgradeBeaconToAndCall(\n        address newBeacon,\n        bytes memory data,\n        bool forceCall\n    ) internal {\n        _setBeacon(newBeacon);\n        emit BeaconUpgraded(newBeacon);\n        if (data.length > 0 || forceCall) {\n            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\n        }\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) {\n        require(AddressUpgradeable.isContract(target), \"Address: delegate call to non-contract\");\n\n        // solhint-disable-next-line avoid-low-level-calls\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return AddressUpgradeable.verifyCallResult(success, returndata, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/utils/StringsUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/MathUpgradeable.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary StringsUpgradeable {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = MathUpgradeable.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, MathUpgradeable.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n}\n"},{"file_path":"project:/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/modules/wrapper/mandatory/PauseModule.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol\";\nimport \"../../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../../security/AuthorizationModule.sol\";\n\n/**\n * @dev ERC20 token with pausable token transfers, minting and burning.\n *\n * Useful for scenarios such as preventing trades until the end of an evaluation\n * period, or having an emergency switch for freezing all token transfers in the\n * event of a large bug.\n */\nabstract contract PauseModule is PausableUpgradeable, AuthorizationModule {\n    string internal constant TEXT_TRANSFER_REJECTED_PAUSED =\n        \"All transfers paused\";\n\n    function __PauseModule_init(address admin) internal onlyInitializing {\n        /* OpenZeppelin */\n        __Context_init_unchained();\n        __Pausable_init_unchained();\n        // AccessControlUpgradeable inherits from ERC165Upgradeable\n        __ERC165_init_unchained();\n        // AuthorizationModule inherits from AccessControlUpgradeable\n        __AccessControl_init_unchained();\n\n        /* CMTAT modules */\n        // Security\n        __AuthorizationModule_init_unchained(admin);\n\n        // own function\n        __PauseModule_init_unchained();\n    }\n\n    function __PauseModule_init_unchained() internal onlyInitializing {\n        // no variable to initialize\n    }\n\n    /**\n     * @dev Pauses all token transfers.\n     *\n     * See {ERC20Pausable} and {Pausable-_pause}.\n     *\n     * Requirements:\n     *\n     * - the caller must have the `PAUSER_ROLE`.\n     */\n    function pause() public onlyRole(PAUSER_ROLE) {\n        _pause();\n    }\n\n    /**\n     * @dev Unpauses all token transfers.\n     *\n     * See {ERC20Pausable} and {Pausable-_unpause}.\n     *\n     * Requirements:\n     *\n     * - the caller must have the `PAUSER_ROLE`.\n     */\n    function unpause() public onlyRole(PAUSER_ROLE) {\n        _unpause();\n    }\n\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/modules/internal/ValidationModuleInternal.sol","source_code":"//SPDX-License-Identifier: MPL-2.0\n\npragma solidity ^0.8.17;\n\nimport \"../../../openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol\";\nimport \"../../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\";\nimport \"../wrapper/mandatory/RuleEngineModule.sol\";\n\n/**\n * @dev Validation module.\n *\n * Useful for to restrict and validate transfers\n */\nabstract contract ValidationModuleInternal is\n    Initializable,\n    ContextUpgradeable,\n    RuleEngineModule\n{\n    /**\n     * @dev Emitted when a rule engine is set.\n     */\n    event RuleEngine(IEIP1404Wrapper indexed newRuleEngine);\n\n    /**\n     * @dev Initializes the contract with rule engine.\n     */\n    function __ValidationModuleInternal_init(\n        address ruleEngine_\n    ) internal onlyInitializing {\n        __Context_init_unchained();\n        __RuleEngineModule_init(ruleEngine_);\n    }\n\n    /**\n    @dev before making a call to this function, you have to check if a ruleEngine is set.\n    */\n    function _validateTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal view virtual override returns (bool) {\n        if (address(ruleEngine) == address(0)) {\n            return true;\n        }\n        try ruleEngine.validateTransfer(from, to, amount) returns (\n            bool result\n        ) {\n            return result;\n        } catch {\n            return false;\n        }\n    }\n\n    /**\n    @dev before making a call to this function, you have to check if a ruleEngine is set.\n    */\n    function _messageForTransferRestriction(\n        uint8 restrictionCode\n    ) internal view returns (string memory) {\n        return ruleEngine.messageForTransferRestriction(restrictionCode);\n    }\n\n    /**\n    @dev before making a call to this function, you have to check if a ruleEngine is set.\n    */\n    function _detectTransferRestriction(\n        address from,\n        address to,\n        uint256 amount\n    ) internal view returns (uint8) {\n        return ruleEngine.detectTransferRestriction(from, to, amount);\n    }\n\n    uint256[50] private __gap;\n}\n"}],"certified":false,"conflicting_implementations":null,"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CMTAT_BurnModule_AccountsValueslengthMismatch","type":"error"},{"inputs":[],"name":"CMTAT_BurnModule_EmptyAccounts","type":"error"},{"inputs":[],"name":"CMTAT_BurnModule_ZeroNAV","type":"error"},{"inputs":[],"name":"CMTAT_MintModule_AccountsValueslengthMismatch","type":"error"},{"inputs":[],"name":"CMTAT_MintModule_EmptyAccounts","type":"error"},{"inputs":[{"internalType":"string","name":"message","type":"string"}],"name":"CMTAT_MintModule_TransferRestricted","type":"error"},{"inputs":[],"name":"CMTAT_MintModule_ZeroNAV","type":"error"},{"inputs":[{"internalType":"string","name":"message","type":"string"}],"name":"RuleEngineTransferRestricted","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"reason","type":"string"},{"indexed":false,"internalType":"uint256","name":"NAV","type":"uint256"},{"indexed":false,"internalType":"string","name":"currencyNAV","type":"string"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousEpoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentEpoch","type":"uint256"}],"name":"EpochTransition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newFlag","type":"uint256"}],"name":"Flag","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"enforcer","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"string","name":"reasonIndexed","type":"string"},{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"newInformationIndexed","type":"string"},{"indexed":false,"internalType":"string","name":"newInformation","type":"string"}],"name":"Information","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nav","type":"uint256"},{"indexed":false,"internalType":"string","name":"currencyNAV","type":"string"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IEIP1404Wrapper","name":"newRuleEngine","type":"address"}],"name":"RuleEngine","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Spend","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"newTermIndexed","type":"string"},{"indexed":false,"internalType":"string","name":"newTerm","type":"string"}],"name":"Term","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"newTokenIdIndexed","type":"string"},{"indexed":false,"internalType":"string","name":"newTokenId","type":"string"}],"name":"TokenId","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"enforcer","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"string","name":"reasonIndexed","type":"string"},{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"Unfreeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"previousNAV","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newNAV","type":"uint256"}],"name":"updatedNAV","type":"event"},{"inputs":[],"name":"DEBT_CREDIT_EVENT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEBT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ENFORCER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAVScalingFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SNAPSHOOTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"currentAllowance","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"reason","type":"string"},{"internalType":"uint256","name":"NAV","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"string","name":"reason","type":"string"},{"internalType":"uint256","name":"NAV","type":"uint256"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currencyNAV","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"detectTransferRestriction","outputs":[{"internalType":"uint8","name":"code","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flag","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"string","name":"reason","type":"string"}],"name":"freeze","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"getNAV","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":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"information","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"string","name":"nameIrrevocable","type":"string"},{"internalType":"string","name":"symbolIrrevocable","type":"string"},{"internalType":"string","name":"tokenId_","type":"string"},{"internalType":"string","name":"terms_","type":"string"},{"internalType":"contract IEIP1404Wrapper","name":"ruleEngine_","type":"address"},{"internalType":"string","name":"information_","type":"string"},{"internalType":"uint256","name":"flag_","type":"uint256"},{"internalType":"string","name":"currencyNAV_","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"latestNAV","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"restrictionCode","type":"uint8"}],"name":"messageForTransferRestriction","outputs":[{"internalType":"string","name":"message","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"NAV","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"uint256","name":"NAV","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[],"name":"ruleEngine","outputs":[{"internalType":"contract IRuleEngine","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"flag_","type":"uint256"}],"name":"setFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"information_","type":"string"}],"name":"setInformation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NAVValue","type":"uint256"}],"name":"setLatestNAV","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"NAVValue","type":"uint256"}],"name":"setNAV","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IEIP1404Wrapper","name":"ruleEngine_","type":"address"}],"name":"setRuleEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"terms_","type":"string"}],"name":"setTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenId_","type":"string"}],"name":"setTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terms","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"string","name":"reason","type":"string"}],"name":"unfreeze","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"validateTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"is_changed_bytecode":false,"is_partially_verified":false,"constructor_args":null}